2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.2.
5 # Report bugs to <http://www.imagemagick.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
685 test -n "$DJDIR" || exec 7<&0 </dev/null
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696 ac_default_prefix=/usr/local
698 ac_config_libobj_dir=.
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.6.2'
709 PACKAGE_STRING='ImageMagick 6.6.2'
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
838 GnuplotDecodeDelegate
852 BlenderDecodeDelegate
854 AutotraceDecodeDelegate
885 OPENEXR_DELEGATE_FALSE
886 OPENEXR_DELEGATE_TRUE
913 FREETYPE_DELEGATE_FALSE
914 FREETYPE_DELEGATE_TRUE
916 FONTCONFIG_DELEGATE_FALSE
917 FONTCONFIG_DELEGATE_TRUE
932 AUTOTRACE_DELEGATE_FALSE
933 AUTOTRACE_DELEGATE_TRUE
958 WITH_MAGICK_PLUS_PLUS_FALSE
959 WITH_MAGICK_PLUS_PLUS_TRUE
974 LIBRARY_EXTRA_CPPFLAGS
975 MODULE_EXTRA_CPPFLAGS
980 MAINTAINER_MODE_FALSE
988 WITH_SHARED_LIBS_FALSE
989 WITH_SHARED_LIBS_TRUE
992 CONVENIENCE_LTDL_FALSE
993 CONVENIENCE_LTDL_TRUE
997 sys_symbol_underscore
1038 WIN32_NATIVE_BUILD_FALSE
1039 WIN32_NATIVE_BUILD_TRUE
1040 WINGDI32_DELEGATE_FALSE
1041 WINGDI32_DELEGATE_TRUE
1048 am__fastdepCXX_FALSE
1074 MAGICK_FILTER_MODULE_PATH
1075 MAGICK_CONFIGURE_BUILD_PATH
1076 MAGICK_CONFIGURE_SRC_PATH
1077 MAGICK_CODER_MODULE_PATH
1092 CONFIG_STATUS_DEPENDENCIES
1093 MAGICK_LIB_VERSION_NUMBER
1094 MAGICK_LIB_VERSION_TEXT
1097 AM_DEFAULT_VERBOSITY
1106 INSTALL_STRIP_PROGRAM
1121 PACKAGE_VERSION_ADDENDUM
1122 PACKAGE_RELEASE_DATE
1123 PACKAGE_LIB_VERSION_NUMBER
1127 MAGICK_LIBRARY_VERSION_INFO
1128 MAGICK_LIBRARY_CURRENT_MIN
1130 MAGICK_LIBRARY_REVISION
1131 MAGICK_LIBRARY_CURRENT
1133 MAGICK_TARGET_VENDOR
1148 DISTCHECK_CONFIG_FLAGS
1176 program_transform_name
1189 enable_option_checking
1191 enable_dependency_tracking
1194 enable_bounds_checking
1195 enable_osx_universal_binary
1210 enable_delegate_build
1217 enable_maintainer_mode
1227 with_magick_plus_plus
1238 with_dejavu_font_dir
1257 with_windows_font_dir
1261 ac_precious_vars='build_alias
1292 # Initialize some variables set by options.
1294 ac_init_version=false
1295 ac_unrecognized_opts=
1296 ac_unrecognized_sep=
1297 # The variables have the same names as the options, with
1298 # dashes changed to underlines.
1299 cache_file=/dev/null
1306 program_transform_name=s,x,x,
1314 # Installation directory options.
1315 # These are left unexpanded so users can "make install exec_prefix=/foo"
1316 # and all the variables that are supposed to be based on exec_prefix
1317 # by default will actually change.
1318 # Use braces instead of parens because sh, perl, etc. also accept them.
1319 # (The list follows the same order as the GNU Coding Standards.)
1320 bindir='${exec_prefix}/bin'
1321 sbindir='${exec_prefix}/sbin'
1322 libexecdir='${exec_prefix}/libexec'
1323 datarootdir='${prefix}/share'
1324 datadir='${datarootdir}'
1325 sysconfdir='${prefix}/etc'
1326 sharedstatedir='${prefix}/com'
1327 localstatedir='${prefix}/var'
1328 includedir='${prefix}/include'
1329 oldincludedir='/usr/include'
1330 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1331 infodir='${datarootdir}/info'
1336 libdir='${exec_prefix}/lib'
1337 localedir='${datarootdir}/locale'
1338 mandir='${datarootdir}/man'
1344 # If the previous option needs an argument, assign it.
1345 if test -n "$ac_prev"; then
1346 eval $ac_prev=\$ac_option
1352 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1356 # Accept the important Cygnus configure options, so we can diagnose typos.
1358 case $ac_dashdash$ac_option in
1362 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1364 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1365 bindir=$ac_optarg ;;
1367 -build | --build | --buil | --bui | --bu)
1368 ac_prev=build_alias ;;
1369 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1370 build_alias=$ac_optarg ;;
1372 -cache-file | --cache-file | --cache-fil | --cache-fi \
1373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1374 ac_prev=cache_file ;;
1375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1377 cache_file=$ac_optarg ;;
1379 --config-cache | -C)
1380 cache_file=config.cache ;;
1382 -datadir | --datadir | --datadi | --datad)
1384 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1385 datadir=$ac_optarg ;;
1387 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1388 | --dataroo | --dataro | --datar)
1389 ac_prev=datarootdir ;;
1390 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1391 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1392 datarootdir=$ac_optarg ;;
1394 -disable-* | --disable-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 as_fn_error "invalid feature name: $ac_useropt"
1399 ac_useropt_orig=$ac_useropt
1400 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401 case $ac_user_opts in
1403 "enable_$ac_useropt"
1405 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1406 ac_unrecognized_sep=', ';;
1408 eval enable_$ac_useropt=no ;;
1410 -docdir | --docdir | --docdi | --doc | --do)
1412 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1413 docdir=$ac_optarg ;;
1415 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1417 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1418 dvidir=$ac_optarg ;;
1420 -enable-* | --enable-*)
1421 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424 as_fn_error "invalid feature name: $ac_useropt"
1425 ac_useropt_orig=$ac_useropt
1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1429 "enable_$ac_useropt"
1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1432 ac_unrecognized_sep=', ';;
1434 eval enable_$ac_useropt=\$ac_optarg ;;
1436 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1437 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1438 | --exec | --exe | --ex)
1439 ac_prev=exec_prefix ;;
1440 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1441 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1442 | --exec=* | --exe=* | --ex=*)
1443 exec_prefix=$ac_optarg ;;
1445 -gas | --gas | --ga | --g)
1446 # Obsolete; use --with-gas.
1449 -help | --help | --hel | --he | -h)
1450 ac_init_help=long ;;
1451 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1452 ac_init_help=recursive ;;
1453 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1454 ac_init_help=short ;;
1456 -host | --host | --hos | --ho)
1457 ac_prev=host_alias ;;
1458 -host=* | --host=* | --hos=* | --ho=*)
1459 host_alias=$ac_optarg ;;
1461 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1463 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1465 htmldir=$ac_optarg ;;
1467 -includedir | --includedir | --includedi | --included | --include \
1468 | --includ | --inclu | --incl | --inc)
1469 ac_prev=includedir ;;
1470 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1471 | --includ=* | --inclu=* | --incl=* | --inc=*)
1472 includedir=$ac_optarg ;;
1474 -infodir | --infodir | --infodi | --infod | --info | --inf)
1476 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1477 infodir=$ac_optarg ;;
1479 -libdir | --libdir | --libdi | --libd)
1481 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1482 libdir=$ac_optarg ;;
1484 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1485 | --libexe | --libex | --libe)
1486 ac_prev=libexecdir ;;
1487 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1488 | --libexe=* | --libex=* | --libe=*)
1489 libexecdir=$ac_optarg ;;
1491 -localedir | --localedir | --localedi | --localed | --locale)
1492 ac_prev=localedir ;;
1493 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1494 localedir=$ac_optarg ;;
1496 -localstatedir | --localstatedir | --localstatedi | --localstated \
1497 | --localstate | --localstat | --localsta | --localst | --locals)
1498 ac_prev=localstatedir ;;
1499 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1500 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1501 localstatedir=$ac_optarg ;;
1503 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1505 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1506 mandir=$ac_optarg ;;
1508 -nfp | --nfp | --nf)
1509 # Obsolete; use --without-fp.
1512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1513 | --no-cr | --no-c | -n)
1516 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1517 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1520 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1521 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1522 | --oldin | --oldi | --old | --ol | --o)
1523 ac_prev=oldincludedir ;;
1524 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1525 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1526 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1527 oldincludedir=$ac_optarg ;;
1529 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1531 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1532 prefix=$ac_optarg ;;
1534 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1535 | --program-pre | --program-pr | --program-p)
1536 ac_prev=program_prefix ;;
1537 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1538 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1539 program_prefix=$ac_optarg ;;
1541 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1542 | --program-suf | --program-su | --program-s)
1543 ac_prev=program_suffix ;;
1544 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1545 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1546 program_suffix=$ac_optarg ;;
1548 -program-transform-name | --program-transform-name \
1549 | --program-transform-nam | --program-transform-na \
1550 | --program-transform-n | --program-transform- \
1551 | --program-transform | --program-transfor \
1552 | --program-transfo | --program-transf \
1553 | --program-trans | --program-tran \
1554 | --progr-tra | --program-tr | --program-t)
1555 ac_prev=program_transform_name ;;
1556 -program-transform-name=* | --program-transform-name=* \
1557 | --program-transform-nam=* | --program-transform-na=* \
1558 | --program-transform-n=* | --program-transform-=* \
1559 | --program-transform=* | --program-transfor=* \
1560 | --program-transfo=* | --program-transf=* \
1561 | --program-trans=* | --program-tran=* \
1562 | --progr-tra=* | --program-tr=* | --program-t=*)
1563 program_transform_name=$ac_optarg ;;
1565 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1567 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1568 pdfdir=$ac_optarg ;;
1570 -psdir | --psdir | --psdi | --psd | --ps)
1572 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1575 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1576 | -silent | --silent | --silen | --sile | --sil)
1579 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1581 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1583 sbindir=$ac_optarg ;;
1585 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1586 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1587 | --sharedst | --shareds | --shared | --share | --shar \
1589 ac_prev=sharedstatedir ;;
1590 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1591 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1592 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1594 sharedstatedir=$ac_optarg ;;
1596 -site | --site | --sit)
1598 -site=* | --site=* | --sit=*)
1601 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1603 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1604 srcdir=$ac_optarg ;;
1606 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1607 | --syscon | --sysco | --sysc | --sys | --sy)
1608 ac_prev=sysconfdir ;;
1609 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1610 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1611 sysconfdir=$ac_optarg ;;
1613 -target | --target | --targe | --targ | --tar | --ta | --t)
1614 ac_prev=target_alias ;;
1615 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1616 target_alias=$ac_optarg ;;
1618 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1621 -version | --version | --versio | --versi | --vers | -V)
1622 ac_init_version=: ;;
1625 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1626 # Reject names that are not valid shell variable names.
1627 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1628 as_fn_error "invalid package name: $ac_useropt"
1629 ac_useropt_orig=$ac_useropt
1630 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1631 case $ac_user_opts in
1635 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1636 ac_unrecognized_sep=', ';;
1638 eval with_$ac_useropt=\$ac_optarg ;;
1640 -without-* | --without-*)
1641 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1642 # Reject names that are not valid shell variable names.
1643 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1644 as_fn_error "invalid package name: $ac_useropt"
1645 ac_useropt_orig=$ac_useropt
1646 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1647 case $ac_user_opts in
1651 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1652 ac_unrecognized_sep=', ';;
1654 eval with_$ac_useropt=no ;;
1657 # Obsolete; use --with-x.
1660 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1661 | --x-incl | --x-inc | --x-in | --x-i)
1662 ac_prev=x_includes ;;
1663 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1664 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1665 x_includes=$ac_optarg ;;
1667 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1668 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1669 ac_prev=x_libraries ;;
1670 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1671 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1672 x_libraries=$ac_optarg ;;
1674 -*) as_fn_error "unrecognized option: \`$ac_option'
1675 Try \`$0 --help' for more information."
1679 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1680 # Reject names that are not valid shell variable names.
1681 case $ac_envvar in #(
1682 '' | [0-9]* | *[!_$as_cr_alnum]* )
1683 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1685 eval $ac_envvar=\$ac_optarg
1686 export $ac_envvar ;;
1689 # FIXME: should be removed in autoconf 3.0.
1690 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1691 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1692 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1693 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1699 if test -n "$ac_prev"; then
1700 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1701 as_fn_error "missing argument to $ac_option"
1704 if test -n "$ac_unrecognized_opts"; then
1705 case $enable_option_checking in
1707 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1708 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1712 # Check all directory arguments for consistency.
1713 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1714 datadir sysconfdir sharedstatedir localstatedir includedir \
1715 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1716 libdir localedir mandir
1718 eval ac_val=\$$ac_var
1719 # Remove trailing slashes.
1722 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1723 eval $ac_var=\$ac_val;;
1725 # Be sure to have absolute directory names.
1727 [\\/$]* | ?:[\\/]* ) continue;;
1728 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1730 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1733 # There might be people who depend on the old broken behavior: `$host'
1734 # used to hold the argument of --host etc.
1735 # FIXME: To remove some day.
1738 target=$target_alias
1740 # FIXME: To remove some day.
1741 if test "x$host_alias" != x; then
1742 if test "x$build_alias" = x; then
1743 cross_compiling=maybe
1744 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1745 If a cross compiler is detected then cross compile mode will be used." >&2
1746 elif test "x$build_alias" != "x$host_alias"; then
1752 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1754 test "$silent" = yes && exec 6>/dev/null
1757 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758 ac_ls_di=`ls -di .` &&
1759 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1760 as_fn_error "working directory cannot be determined"
1761 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1762 as_fn_error "pwd does not report name of working directory"
1765 # Find the source files, if location was not specified.
1766 if test -z "$srcdir"; then
1767 ac_srcdir_defaulted=yes
1768 # Try the directory containing this script, then the parent directory.
1769 ac_confdir=`$as_dirname -- "$as_myself" ||
1770 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771 X"$as_myself" : 'X\(//\)[^/]' \| \
1772 X"$as_myself" : 'X\(//\)$' \| \
1773 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774 $as_echo X"$as_myself" |
1775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1797 ac_srcdir_defaulted=no
1799 if test ! -r "$srcdir/$ac_unique_file"; then
1800 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1801 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1803 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1805 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1807 # When building in place, set srcdir=.
1808 if test "$ac_abs_confdir" = "$ac_pwd"; then
1811 # Remove unnecessary trailing slashes from srcdir.
1812 # Double slashes in file names in object file debugging info
1813 # mess up M-x gdb in Emacs.
1815 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1817 for ac_var in $ac_precious_vars; do
1818 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_env_${ac_var}_value=\$${ac_var}
1820 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1825 # Report the --help message.
1827 if test "$ac_init_help" = "long"; then
1828 # Omit some internal or obsolete options to make the list less imposing.
1829 # This message is too long to be a string in the A/UX 3.1 sh.
1831 \`configure' configures ImageMagick 6.6.2 to adapt to many kinds of systems.
1833 Usage: $0 [OPTION]... [VAR=VALUE]...
1835 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836 VAR=VALUE. See below for descriptions of some of the useful variables.
1838 Defaults for the options are specified in brackets.
1841 -h, --help display this help and exit
1842 --help=short display options specific to this package
1843 --help=recursive display the short help of all the included packages
1844 -V, --version display version information and exit
1845 -q, --quiet, --silent do not print \`checking...' messages
1846 --cache-file=FILE cache test results in FILE [disabled]
1847 -C, --config-cache alias for \`--cache-file=config.cache'
1848 -n, --no-create do not create output files
1849 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1851 Installation directories:
1852 --prefix=PREFIX install architecture-independent files in PREFIX
1853 [$ac_default_prefix]
1854 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1857 By default, \`make install' will install all the files in
1858 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1859 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860 for instance \`--prefix=\$HOME'.
1862 For better control, use the options below.
1864 Fine tuning of the installation directories:
1865 --bindir=DIR user executables [EPREFIX/bin]
1866 --sbindir=DIR system admin executables [EPREFIX/sbin]
1867 --libexecdir=DIR program executables [EPREFIX/libexec]
1868 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1869 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1870 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1871 --libdir=DIR object code libraries [EPREFIX/lib]
1872 --includedir=DIR C header files [PREFIX/include]
1873 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1874 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1875 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1876 --infodir=DIR info documentation [DATAROOTDIR/info]
1877 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1878 --mandir=DIR man documentation [DATAROOTDIR/man]
1879 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1880 --htmldir=DIR html documentation [DOCDIR]
1881 --dvidir=DIR dvi documentation [DOCDIR]
1882 --pdfdir=DIR pdf documentation [DOCDIR]
1883 --psdir=DIR ps documentation [DOCDIR]
1889 --program-prefix=PREFIX prepend PREFIX to installed program names
1890 --program-suffix=SUFFIX append SUFFIX to installed program names
1891 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1894 --x-includes=DIR X include files are in DIR
1895 --x-libraries=DIR X library files are in DIR
1898 --build=BUILD configure for building on BUILD [guessed]
1899 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1900 --target=TARGET configure for building compilers for TARGET [HOST]
1904 if test -n "$ac_init_help"; then
1905 case $ac_init_help in
1906 short | recursive ) echo "Configuration of ImageMagick 6.6.2:";;
1911 --disable-option-checking ignore unrecognized --enable/--with options
1912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1913 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1914 --enable-silent-rules less verbose build output (undo: `make V=1')
1915 --disable-silent-rules verbose build output (undo: `make V=0')
1916 --disable-dependency-tracking speeds up one-time build
1917 --enable-dependency-tracking do not reject slow dependency extractors
1918 --bounds-checking enable run-time bounds-checking
1919 --enable-osx-universal-binary
1920 build universal binary on OS X [[default=no]]
1921 --disable-openmp do not use OpenMP
1922 --disable-opencl do not use OpenCL
1923 --disable-largefile omit support for large files
1924 --enable-shared[=PKGS] build shared libraries [default=yes]
1925 --enable-static[=PKGS] build static libraries [default=yes]
1926 --enable-fast-install[=PKGS]
1927 optimize for fast installation [default=yes]
1928 --disable-libtool-lock avoid locking (might break parallel builds)
1929 --enable-ltdl-install install libltdl
1930 --enable-delegate-build look for delegate libraries in build directory
1931 --disable-deprecated exclude deprecated methods in MagickCore and
1933 --disable-installed Formally install ImageMagick under PREFIX
1934 --disable-cipher disable enciphering and deciphering image pixels
1935 --enable-embeddable enable self-contained, embeddable,
1936 zero-configuration ImageMagick
1937 --enable-hdri accurately represent the wide range of intensity
1938 levels found in real scenes
1939 --disable-assert disable assert() statements in build
1940 --enable-maintainer-mode enable make rules and dependencies not useful
1941 (and sometimes confusing) to the casual installer
1942 --enable-ccmalloc enable 'ccmalloc' memory debug support
1943 --enable-efence enable 'efence' memory debug support
1944 --enable-prof enable 'prof' profiling support
1945 --enable-gprof enable 'gprof' profiling support
1946 --enable-gcov enable 'gcov' profiling support
1947 --disable-assert turn off assertions
1950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1952 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1953 --with-dmalloc use dmalloc, as in
1954 http://www.dmalloc.com/dmalloc.tar.gz
1955 --without-threads disable threads support
1956 --with-pic try to use only PIC/non-PIC objects [default=use
1958 --with-included-ltdl use the GNU ltdl sources included here
1959 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1961 --with-modules enable building dynamically loadable modules
1962 --with-method-prefix=PREFIX
1963 prefix MagickCore API methods
1964 --with-quantum-depth=DEPTH
1965 number of bits in a pixel quantum (default 16)
1966 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1968 --with-frozenpaths freeze delegate paths
1969 --without-magick-plus-plus
1970 disable build/install of Magick++
1971 --with-perl enable build/install of PerlMagick
1972 --with-perl-options=OPTIONS
1973 options to pass on command-line when generating
1974 PerlMagick's build file
1975 --with-umem enable umem memory allocation library support
1976 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1977 --without-bzlib disable BZLIB support
1978 --with-x use the X Window System
1979 --without-zlib disable ZLIB support
1980 --with-autotrace enable autotrace support
1981 --without-dps disable Display Postscript support
1982 --without-djvu disable DjVu support
1983 --with-dejavu-font-dir=DIR
1984 DejaVu font directory
1985 --without-fftw disable FFTW support
1986 --without-fpx disable FlashPIX support
1987 --without-fontconfig disable fontconfig support
1988 --without-freetype disable Freetype support
1989 --without-gslib enable Ghostscript library support
1990 --with-fontpath=DIR prepend to default font search path
1991 --with-gs-font-dir=DIR Ghostscript font directory
1992 --without-gvc disable GVC support
1993 --without-jbig disable JBIG support
1994 --without-jpeg disable JPEG support
1995 --without-jp2 disable JPEG-2000 support
1996 --without-lcms disable lcms (v1.1X) support
1997 --without-lcms2 disable lcms (v2.X) support
1998 --without-lqr disable Liquid Rescale support
1999 --without-openexr disable OpenEXR support
2000 --without-png disable PNG support
2001 --without-rsvg disable RSVG support
2002 --without-tiff disable TIFF support
2003 --with-windows-font-dir=DIR
2004 directory containing MS-Windows fonts
2005 --without-wmf disable WMF support
2006 --without-xml disable XML support
2008 Some influential environment variables:
2009 CC C compiler command
2010 CFLAGS C compiler flags
2011 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2012 nonstandard directory <lib dir>
2013 LIBS libraries to pass to the linker, e.g. -l<library>
2014 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2015 you have headers in a nonstandard directory <include dir>
2017 CXX C++ compiler command
2018 CXXFLAGS C++ compiler flags
2019 PKG_CONFIG path to pkg-config utility
2020 CXXCPP C++ preprocessor
2021 XMKMF Path to xmkmf, Makefile generator for X Window System
2023 C compiler flags for AUTOTRACE, overriding pkg-config
2025 linker flags for AUTOTRACE, overriding pkg-config
2027 C compiler flags for FONTCONFIG, overriding pkg-config
2029 linker flags for FONTCONFIG, overriding pkg-config
2030 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2031 GVC_LIBS linker flags for GVC, overriding pkg-config
2032 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2033 LQR_LIBS linker flags for LQR, overriding pkg-config
2035 C compiler flags for OPENEXR, overriding pkg-config
2037 linker flags for OPENEXR, overriding pkg-config
2038 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2039 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2041 C compiler flags for CAIRO_SVG, overriding pkg-config
2043 linker flags for CAIRO_SVG, overriding pkg-config
2045 Use these variables to override the choices made by `configure' or to help
2046 it to find libraries and programs with nonstandard names/locations.
2048 Report bugs to <http://www.imagemagick.org>.
2053 if test "$ac_init_help" = "recursive"; then
2054 # If there are subdirs, report their specific --help.
2055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2056 test -d "$ac_dir" ||
2057 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2065 # A ".." for each directory in $ac_dir_suffix.
2066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2067 case $ac_top_builddir_sub in
2068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2072 ac_abs_top_builddir=$ac_pwd
2073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2074 # for backward compatibility:
2075 ac_top_builddir=$ac_top_build_prefix
2078 .) # We are building in place.
2080 ac_top_srcdir=$ac_top_builddir_sub
2081 ac_abs_top_srcdir=$ac_pwd ;;
2082 [\\/]* | ?:[\\/]* ) # Absolute name.
2083 ac_srcdir=$srcdir$ac_dir_suffix;
2084 ac_top_srcdir=$srcdir
2085 ac_abs_top_srcdir=$srcdir ;;
2087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2088 ac_top_srcdir=$ac_top_build_prefix$srcdir
2089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2093 cd "$ac_dir" || { ac_status=$?; continue; }
2094 # Check for guested configure.
2095 if test -f "$ac_srcdir/configure.gnu"; then
2097 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2098 elif test -f "$ac_srcdir/configure"; then
2100 $SHELL "$ac_srcdir/configure" --help=recursive
2102 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2104 cd "$ac_pwd" || { ac_status=$?; break; }
2108 test -n "$ac_init_help" && exit $ac_status
2109 if $ac_init_version; then
2111 ImageMagick configure 6.6.2
2112 generated by GNU Autoconf 2.65
2114 Copyright (C) 2009 Free Software Foundation, Inc.
2115 This configure script is free software; the Free Software Foundation
2116 gives unlimited permission to copy, distribute and modify it.
2121 ## ------------------------ ##
2122 ## Autoconf initialization. ##
2123 ## ------------------------ ##
2125 # ac_fn_c_try_compile LINENO
2126 # --------------------------
2127 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_c_try_compile ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 rm -f conftest.$ac_objext
2132 if { { ac_try="$ac_compile"
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138 $as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_compile") 2>conftest.err
2141 if test -s conftest.err; then
2142 grep -v '^ *+' conftest.err >conftest.er1
2143 cat conftest.er1 >&5
2144 mv -f conftest.er1 conftest.err
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; } && {
2148 test -z "$ac_c_werror_flag" ||
2149 test ! -s conftest.err
2150 } && test -s conftest.$ac_objext; then :
2153 $as_echo "$as_me: failed program was:" >&5
2154 sed 's/^/| /' conftest.$ac_ext >&5
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159 as_fn_set_status $ac_retval
2161 } # ac_fn_c_try_compile
2163 # ac_fn_c_try_cpp LINENO
2164 # ----------------------
2165 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if { { ac_try="$ac_cpp conftest.$ac_ext"
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } >/dev/null && {
2185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 as_fn_set_status $ac_retval
2200 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2201 # -------------------------------------------------------
2202 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2203 # the include files in INCLUDES and setting the cache variable VAR
2205 ac_fn_c_check_header_mongrel ()
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2210 $as_echo_n "checking for $2... " >&6; }
2211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 $as_echo_n "(cached) " >&6
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2218 # Is the header compilable?
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2220 $as_echo_n "checking $2 usability... " >&6; }
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_header_compiler=yes
2229 ac_header_compiler=no
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2233 $as_echo "$ac_header_compiler" >&6; }
2235 # Is the header present?
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2237 $as_echo_n "checking $2 presence... " >&6; }
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2242 if ac_fn_c_try_cpp "$LINENO"; then :
2243 ac_header_preproc=yes
2245 ac_header_preproc=no
2247 rm -f conftest.err conftest.$ac_ext
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2249 $as_echo "$ac_header_preproc" >&6; }
2251 # So? What about this header?
2252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2255 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2257 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2261 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2263 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2265 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2267 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2269 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2271 ## ----------------------------------------- ##
2272 ## Report this to http://www.imagemagick.org ##
2273 ## ----------------------------------------- ##
2275 ) | sed "s/^/$as_me: WARNING: /" >&2
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281 $as_echo_n "(cached) " >&6
2283 eval "$3=\$ac_header_compiler"
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 } # ac_fn_c_check_header_mongrel
2293 # ac_fn_c_try_run LINENO
2294 # ----------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296 # that executables *can* be run.
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 ac_retval=$ac_status
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331 as_fn_set_status $ac_retval
2335 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2336 # -------------------------------------------------------
2337 # Tests whether HEADER exists and can be compiled using the include files in
2338 # INCLUDES, setting the cache variable VAR accordingly.
2339 ac_fn_c_check_header_compile ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2345 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2352 if ac_fn_c_try_compile "$LINENO"; then :
2357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 } # ac_fn_c_check_header_compile
2366 # ac_fn_cxx_try_compile LINENO
2367 # ----------------------------
2368 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2369 ac_fn_cxx_try_compile ()
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 rm -f conftest.$ac_objext
2373 if { { ac_try="$ac_compile"
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_compile") 2>conftest.err
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } && {
2389 test -z "$ac_cxx_werror_flag" ||
2390 test ! -s conftest.err
2391 } && test -s conftest.$ac_objext; then :
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_cxx_try_compile
2404 # ac_fn_c_try_link LINENO
2405 # -----------------------
2406 # Try to link conftest.$ac_ext, and return whether this succeeded.
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 rm -f conftest.$ac_objext conftest$ac_exeext
2411 if { { ac_try="$ac_link"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2417 $as_echo "$ac_try_echo"; } >&5
2418 (eval "$ac_link") 2>conftest.err
2420 if test -s conftest.err; then
2421 grep -v '^ *+' conftest.err >conftest.er1
2422 cat conftest.er1 >&5
2423 mv -f conftest.er1 conftest.err
2425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2426 test $ac_status = 0; } && {
2427 test -z "$ac_c_werror_flag" ||
2428 test ! -s conftest.err
2429 } && test -s conftest$ac_exeext && {
2430 test "$cross_compiling" = yes ||
2431 $as_test_x conftest$ac_exeext
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2440 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2441 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2442 # interfere with the next link command; also delete a directory that is
2443 # left behind by Apple's compiler. We do this before executing the actions.
2444 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2445 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_c_try_link
2450 # ac_fn_c_check_func LINENO FUNC VAR
2451 # ----------------------------------
2452 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2453 ac_fn_c_check_func ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2457 $as_echo_n "checking for $2... " >&6; }
2458 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2459 $as_echo_n "(cached) " >&6
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2463 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2465 #define $2 innocuous_$2
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $2 (); below.
2469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2470 <limits.h> exists even on freestanding compilers. */
2473 # include <limits.h>
2475 # include <assert.h>
2480 /* Override any GCC internal prototype to avoid an error.
2481 Use char because int might match the return type of a GCC
2482 builtin and then its argument prototype would still apply. */
2487 /* The GNU C library defines this for functions which it implements
2488 to always fail with ENOSYS. Some functions are actually named
2489 something starting with __ and the normal name is an alias. */
2490 #if defined __stub_$2 || defined __stub___$2
2502 if ac_fn_c_try_link "$LINENO"; then :
2507 rm -f core conftest.err conftest.$ac_objext \
2508 conftest$ac_exeext conftest.$ac_ext
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2512 $as_echo "$ac_res" >&6; }
2513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2515 } # ac_fn_c_check_func
2517 # ac_fn_cxx_try_cpp LINENO
2518 # ------------------------
2519 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2520 ac_fn_cxx_try_cpp ()
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_cpp conftest.$ac_ext"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529 $as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2532 if test -s conftest.err; then
2533 grep -v '^ *+' conftest.err >conftest.er1
2534 cat conftest.er1 >&5
2535 mv -f conftest.er1 conftest.err
2537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2538 test $ac_status = 0; } >/dev/null && {
2539 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2540 test ! -s conftest.err
2544 $as_echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2550 as_fn_set_status $ac_retval
2552 } # ac_fn_cxx_try_cpp
2554 # ac_fn_cxx_try_link LINENO
2555 # -------------------------
2556 # Try to link conftest.$ac_ext, and return whether this succeeded.
2557 ac_fn_cxx_try_link ()
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560 rm -f conftest.$ac_objext conftest$ac_exeext
2561 if { { ac_try="$ac_link"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2567 $as_echo "$ac_try_echo"; } >&5
2568 (eval "$ac_link") 2>conftest.err
2570 if test -s conftest.err; then
2571 grep -v '^ *+' conftest.err >conftest.er1
2572 cat conftest.er1 >&5
2573 mv -f conftest.er1 conftest.err
2575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2576 test $ac_status = 0; } && {
2577 test -z "$ac_cxx_werror_flag" ||
2578 test ! -s conftest.err
2579 } && test -s conftest$ac_exeext && {
2580 test "$cross_compiling" = yes ||
2581 $as_test_x conftest$ac_exeext
2585 $as_echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2590 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2591 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2592 # interfere with the next link command; also delete a directory that is
2593 # left behind by Apple's compiler. We do this before executing the actions.
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596 as_fn_set_status $ac_retval
2598 } # ac_fn_cxx_try_link
2600 # ac_fn_c_check_decl LINENO SYMBOL VAR
2601 # ------------------------------------
2602 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2603 ac_fn_c_check_decl ()
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2607 $as_echo_n "checking whether $2 is declared... " >&6; }
2608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2609 $as_echo_n "(cached) " >&6
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2625 if ac_fn_c_try_compile "$LINENO"; then :
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2637 } # ac_fn_c_check_decl
2639 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2640 # -------------------------------------------
2641 # Tests whether TYPE exists after having included INCLUDES, setting cache
2642 # variable VAR accordingly.
2643 ac_fn_c_check_type ()
2645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2647 $as_echo_n "checking for $2... " >&6; }
2648 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2649 $as_echo_n "(cached) " >&6
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2677 if ac_fn_c_try_compile "$LINENO"; then :
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2691 } # ac_fn_c_check_type
2693 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2694 # ----------------------------------------------------
2695 # Tries to find if the field MEMBER exists in type AGGR, after including
2696 # INCLUDES, setting cache variable VAR accordingly.
2697 ac_fn_c_check_member ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2701 $as_echo_n "checking for $2.$3... " >&6; }
2702 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2703 $as_echo_n "(cached) " >&6
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2718 if ac_fn_c_try_compile "$LINENO"; then :
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2728 if (sizeof ac_aggr.$3)
2734 if ac_fn_c_try_compile "$LINENO"; then :
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2745 $as_echo "$ac_res" >&6; }
2746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748 } # ac_fn_c_check_member
2750 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2751 # --------------------------------------------
2752 # Tries to find the compile-time value of EXPR in a program that includes
2753 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2755 ac_fn_c_compute_int ()
2757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2758 if test "$cross_compiling" = yes; then
2759 # Depending upon the size, compute the lo and hi bounds.
2760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h. */
2766 static int test_array [1 - 2 * !(($2) >= 0)];
2773 if ac_fn_c_try_compile "$LINENO"; then :
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2782 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2789 if ac_fn_c_try_compile "$LINENO"; then :
2790 ac_hi=$ac_mid; break
2792 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2793 if test $ac_lo -le $ac_mid; then
2797 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2808 static int test_array [1 - 2 * !(($2) < 0)];
2815 if ac_fn_c_try_compile "$LINENO"; then :
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2824 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832 ac_lo=$ac_mid; break
2834 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2835 if test $ac_mid -le $ac_hi; then
2839 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 # Binary search between lo and hi bounds.
2850 while test "x$ac_lo" != "x$ac_hi"; do
2851 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2858 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2865 if ac_fn_c_try_compile "$LINENO"; then :
2868 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2880 static long int longval () { return $2; }
2881 static unsigned long int ulongval () { return $2; }
2888 FILE *f = fopen ("conftest.val", "w");
2893 long int i = longval ();
2896 fprintf (f, "%ld", i);
2900 unsigned long int i = ulongval ();
2903 fprintf (f, "%lu", i);
2905 /* Do not output a trailing newline, as this causes \r\n confusion
2906 on some platforms. */
2907 return ferror (f) || fclose (f) != 0;
2913 if ac_fn_c_try_run "$LINENO"; then :
2914 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2919 conftest.$ac_objext conftest.beam conftest.$ac_ext
2923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2924 as_fn_set_status $ac_retval
2926 } # ac_fn_c_compute_int
2928 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2929 # ---------------------------------------------------------
2930 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2931 # the include files in INCLUDES and setting the cache variable VAR
2933 ac_fn_cxx_check_header_mongrel ()
2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2938 $as_echo_n "checking for $2... " >&6; }
2939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2940 $as_echo_n "(cached) " >&6
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2946 # Is the header compilable?
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2948 $as_echo_n "checking $2 usability... " >&6; }
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2954 if ac_fn_cxx_try_compile "$LINENO"; then :
2955 ac_header_compiler=yes
2957 ac_header_compiler=no
2959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2961 $as_echo "$ac_header_compiler" >&6; }
2963 # Is the header present?
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2965 $as_echo_n "checking $2 presence... " >&6; }
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2970 if ac_fn_cxx_try_cpp "$LINENO"; then :
2971 ac_header_preproc=yes
2973 ac_header_preproc=no
2975 rm -f conftest.err conftest.$ac_ext
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2977 $as_echo "$ac_header_preproc" >&6; }
2979 # So? What about this header?
2980 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2983 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2985 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2989 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2991 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2993 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2995 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2999 ## ----------------------------------------- ##
3000 ## Report this to http://www.imagemagick.org ##
3001 ## ----------------------------------------- ##
3003 ) | sed "s/^/$as_me: WARNING: /" >&2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3007 $as_echo_n "checking for $2... " >&6; }
3008 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3009 $as_echo_n "(cached) " >&6
3011 eval "$3=\$ac_header_compiler"
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3015 $as_echo "$ac_res" >&6; }
3017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3019 } # ac_fn_cxx_check_header_mongrel
3020 cat >config.log <<_ACEOF
3021 This file contains any messages produced by compilers while
3022 running configure, to aid debugging if configure makes a mistake.
3024 It was created by ImageMagick $as_me 6.6.2, which was
3025 generated by GNU Autoconf 2.65. Invocation command line was
3037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 $as_echo "PATH: $as_dir"
3077 # Keep a trace of the command line.
3078 # Strip out --no-create and --no-recursion so they do not pile up.
3079 # Strip out --silent because we don't want to record it for future runs.
3080 # Also quote any args containing shell meta-characters.
3081 # Make two passes to allow for proper duplicate-argument suppression.
3085 ac_must_keep_next=false
3091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3093 | -silent | --silent | --silen | --sile | --sil)
3096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3101 as_fn_append ac_configure_args1 " '$ac_arg'"
3102 if test $ac_must_keep_next = true; then
3103 ac_must_keep_next=false # Got value, back to normal.
3106 *=* | --config-cache | -C | -disable-* | --disable-* \
3107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3109 | -with-* | --with-* | -without-* | --without-* | --x)
3110 case "$ac_configure_args0 " in
3111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3114 -* ) ac_must_keep_next=true ;;
3117 as_fn_append ac_configure_args " '$ac_arg'"
3122 { ac_configure_args0=; unset ac_configure_args0;}
3123 { ac_configure_args1=; unset ac_configure_args1;}
3125 # When interrupted or exit'd, cleanup temporary files, and complete
3126 # config.log. We remove comments because anyway the quotes in there
3127 # would cause problems or look ugly.
3128 # WARNING: Use '\'' to represent an apostrophe within the trap.
3129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3130 trap 'exit_status=$?
3131 # Save into config.log some information that might help in debugging.
3136 ## ---------------- ##
3137 ## Cache variables. ##
3138 ## ---------------- ##
3141 # The following way of writing the cache mishandles newlines in values,
3143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3144 eval ac_val=\$$ac_var
3148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3152 _ | IFS | as_nl) ;; #(
3153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3154 *) { eval $ac_var=; unset $ac_var;} ;;
3159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3160 *${as_nl}ac_space=\ *)
3162 "s/'\''/'\''\\\\'\'''\''/g;
3163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3174 ## ----------------- ##
3175 ## Output variables. ##
3176 ## ----------------- ##
3179 for ac_var in $ac_subst_vars
3181 eval ac_val=\$$ac_var
3183 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3185 $as_echo "$ac_var='\''$ac_val'\''"
3189 if test -n "$ac_subst_files"; then
3191 ## ------------------- ##
3192 ## File substitutions. ##
3193 ## ------------------- ##
3196 for ac_var in $ac_subst_files
3198 eval ac_val=\$$ac_var
3200 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 $as_echo "$ac_var='\''$ac_val'\''"
3207 if test -s confdefs.h; then
3217 test "$ac_signal" != 0 &&
3218 $as_echo "$as_me: caught signal $ac_signal"
3219 $as_echo "$as_me: exit $exit_status"
3221 rm -f core *.core core.conftest.* &&
3222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3225 for ac_signal in 1 2 13 15; do
3226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3231 rm -f -r conftest* confdefs.h
3233 $as_echo "/* confdefs.h */" > confdefs.h
3235 # Predefined preprocessor variables.
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE_NAME "$PACKAGE_NAME"
3241 cat >>confdefs.h <<_ACEOF
3242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3245 cat >>confdefs.h <<_ACEOF
3246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE_STRING "$PACKAGE_STRING"
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE_URL "$PACKAGE_URL"
3262 # Let the site file select an alternate cache file if it wants to.
3263 # Prefer an explicitly selected file to automatically selected ones.
3266 if test -n "$CONFIG_SITE"; then
3267 ac_site_file1=$CONFIG_SITE
3268 elif test "x$prefix" != xNONE; then
3269 ac_site_file1=$prefix/share/config.site
3270 ac_site_file2=$prefix/etc/config.site
3272 ac_site_file1=$ac_default_prefix/share/config.site
3273 ac_site_file2=$ac_default_prefix/etc/config.site
3275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3277 test "x$ac_site_file" = xNONE && continue
3278 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3281 sed 's/^/| /' "$ac_site_file" >&5
3286 if test -r "$cache_file"; then
3287 # Some versions of bash will fail to source /dev/null (special files
3288 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3289 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3291 $as_echo "$as_me: loading cache $cache_file" >&6;}
3293 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3294 *) . "./$cache_file";;
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3299 $as_echo "$as_me: creating cache $cache_file" >&6;}
3303 as_fn_append ac_header_list " stdlib.h"
3304 as_fn_append ac_header_list " unistd.h"
3305 as_fn_append ac_header_list " sys/param.h"
3306 # Check that the precious variables saved in the cache have kept the same
3308 ac_cache_corrupted=false
3309 for ac_var in $ac_precious_vars; do
3310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3311 eval ac_new_set=\$ac_env_${ac_var}_set
3312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3313 eval ac_new_val=\$ac_env_${ac_var}_value
3314 case $ac_old_set,$ac_new_set in
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3318 ac_cache_corrupted=: ;;
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3322 ac_cache_corrupted=: ;;
3325 if test "x$ac_old_val" != "x$ac_new_val"; then
3326 # differences in whitespace do not lead to failure.
3327 ac_old_val_w=`echo x $ac_old_val`
3328 ac_new_val_w=`echo x $ac_new_val`
3329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3332 ac_cache_corrupted=:
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3336 eval $ac_var=\$ac_old_val
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3344 # Pass precious variables to config.status.
3345 if test "$ac_new_set" = set; then
3347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3348 *) ac_arg=$ac_var=$ac_new_val ;;
3350 case " $ac_configure_args " in
3351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3356 if $ac_cache_corrupted; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3361 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3363 ## -------------------- ##
3364 ## Main body of script. ##
3365 ## -------------------- ##
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 for ac_dir in config "$srcdir"/config; do
3377 for ac_t in install-sh install.sh shtool; do
3378 if test -f "$ac_dir/$ac_t"; then
3380 ac_install_sh="$ac_aux_dir/$ac_t -c"
3385 if test -z "$ac_aux_dir"; then
3386 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3389 # These three variables are undocumented and unsupported,
3390 # and are intended to be withdrawn in a future Autoconf release.
3391 # They can cause serious problems if a builder's source tree is in a directory
3392 # whose full name contains unusual characters.
3393 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3394 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3395 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3400 ac_config_headers="$ac_config_headers config/config.h"
3402 ac_config_commands="$ac_config_commands magick/magick-config.h"
3404 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3408 # Save initial user-tunable values
3411 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3412 eval isset=\${$var+set}
3413 if test "$isset" = 'set'; then
3414 eval val=$`echo $var`
3415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3420 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3423 # Source file containing package/library versioning information.
3424 . ${srcdir}/version.sh
3426 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3427 # Make sure we can run config.sub.
3428 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3429 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3432 $as_echo_n "checking build system type... " >&6; }
3433 if test "${ac_cv_build+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3436 ac_build_alias=$build_alias
3437 test "x$ac_build_alias" = x &&
3438 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3439 test "x$ac_build_alias" = x &&
3440 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3441 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3442 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3446 $as_echo "$ac_cv_build" >&6; }
3447 case $ac_cv_build in
3449 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3452 ac_save_IFS=$IFS; IFS='-'
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3466 $as_echo_n "checking host system type... " >&6; }
3467 if test "${ac_cv_host+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 if test "x$host_alias" = x; then
3471 ac_cv_host=$ac_cv_build
3473 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3474 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3479 $as_echo "$ac_cv_host" >&6; }
3482 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3485 ac_save_IFS=$IFS; IFS='-'
3491 # Remember, the first character of IFS is used to create $*,
3492 # except with old shells:
3495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3499 $as_echo_n "checking target system type... " >&6; }
3500 if test "${ac_cv_target+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test "x$target_alias" = x; then
3504 ac_cv_target=$ac_cv_host
3506 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3507 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3512 $as_echo "$ac_cv_target" >&6; }
3513 case $ac_cv_target in
3515 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3517 target=$ac_cv_target
3518 ac_save_IFS=$IFS; IFS='-'
3524 # Remember, the first character of IFS is used to create $*,
3525 # except with old shells:
3528 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3531 # The aliases save the names the user supplied, while $host etc.
3532 # will get canonicalized.
3533 test -n "$target_alias" &&
3534 test "$program_prefix$program_suffix$program_transform_name" = \
3536 program_prefix=${target_alias}-
3542 MAGICK_TARGET_CPU=$target_cpu
3545 MAGICK_TARGET_VENDOR=$target_vendor
3548 MAGICK_TARGET_OS=$target_os
3551 # Substitute library versioning
3552 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3554 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3558 # Ensure that make can run correctly
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3560 $as_echo_n "checking whether build environment is sane... " >&6; }
3563 echo timestamp > conftest.file
3564 # Reject unsafe characters in $srcdir or the absolute working directory
3565 # name. Accept space and tab only in the latter.
3569 *[\\\"\#\$\&\'\`$am_lf]*)
3570 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3573 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3574 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3577 # Do `set' in a subshell so we don't clobber the current shell's
3578 # arguments. Must try -L first in case configure is actually a
3579 # symlink; some systems play weird games with the mod time of symlinks
3580 # (eg FreeBSD returns the mod time of the symlink's containing
3583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3584 if test "$*" = "X"; then
3586 set X `ls -t "$srcdir/configure" conftest.file`
3589 if test "$*" != "X $srcdir/configure conftest.file" \
3590 && test "$*" != "X conftest.file $srcdir/configure"; then
3592 # If neither matched, then we have a broken ls. This can happen
3593 # if, for instance, CONFIG_SHELL is bash and it inherits a
3594 # broken ls alias from the environment. This has actually
3595 # happened. Such a system could not be considered "sane".
3596 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3597 alias in your environment" "$LINENO" 5
3600 test "$2" = conftest.file
3606 as_fn_error "newly created file is older than distributed files!
3607 Check your system clock" "$LINENO" 5
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3610 $as_echo "yes" >&6; }
3612 am__api_version='1.11'
3614 # Find a good install program. We prefer a C program (faster),
3615 # so one script is as good as another. But avoid the broken or
3616 # incompatible versions:
3617 # SysV /etc/install, /usr/sbin/install
3618 # SunOS /usr/etc/install
3619 # IRIX /sbin/install
3621 # AmigaOS /C/install, which installs bootblocks on floppy discs
3622 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3623 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3624 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3625 # OS/2's system install, which has a completely different semantic
3626 # ./install, which can be erroneously created by make from ./install.sh.
3627 # Reject install programs that cannot install multiple files.
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3629 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3630 if test -z "$INSTALL"; then
3631 if test "${ac_cv_path_install+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 # Account for people who put trailing slashes in PATH elements.
3640 case $as_dir/ in #((
3641 ./ | .// | /[cC]/* | \
3642 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3643 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3646 # OSF1 and SCO ODT 3.0 have their own names for install.
3647 # Don't use installbsd from OSF since it installs stuff as root
3649 for ac_prog in ginstall scoinst install; do
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3652 if test $ac_prog = install &&
3653 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3654 # AIX install. It has an incompatible calling convention.
3656 elif test $ac_prog = install &&
3657 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # program-specific install script used by HP pwplus--don't use.
3661 rm -rf conftest.one conftest.two conftest.dir
3662 echo one > conftest.one
3663 echo two > conftest.two
3665 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3666 test -s conftest.one && test -s conftest.two &&
3667 test -s conftest.dir/conftest.one &&
3668 test -s conftest.dir/conftest.two
3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3683 rm -rf conftest.one conftest.two conftest.dir
3686 if test "${ac_cv_path_install+set}" = set; then
3687 INSTALL=$ac_cv_path_install
3689 # As a last resort, use the slow shell script. Don't cache a
3690 # value for INSTALL within a source directory, because that will
3691 # break other packages using the cache if that directory is
3692 # removed, or if the value is a relative name.
3693 INSTALL=$ac_install_sh
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3697 $as_echo "$INSTALL" >&6; }
3699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3700 # It thinks the first close brace ends the variable substitution.
3701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3707 test "$program_prefix" != NONE &&
3708 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3709 # Use a double $ so make ignores it.
3710 test "$program_suffix" != NONE &&
3711 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3712 # Double any \ or $.
3713 # By default was `s,x,x', remove it if useless.
3714 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3715 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3717 # expand $ac_aux_dir to an absolute path
3718 am_aux_dir=`cd $ac_aux_dir && pwd`
3720 if test x"${MISSING+set}" != xset; then
3723 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3725 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3728 # Use eval to expand $SHELL
3729 if eval "$MISSING --run true"; then
3730 am_missing_run="$MISSING --run "
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3734 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3737 if test x"${install_sh}" != xset; then
3740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3742 install_sh="\${SHELL} $am_aux_dir/install-sh"
3746 # Installed binaries are usually stripped using `strip' when the user
3747 # run `make install-strip'. However `strip' might not be the right
3748 # tool to use in cross-compilation environments, therefore Automake
3749 # will honor the `STRIP' environment variable to overrule this program.
3750 if test "$cross_compiling" != no; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}strip; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_STRIP+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -n "$STRIP"; then
3760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 STRIP=$ac_cv_prog_STRIP
3780 if test -n "$STRIP"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3782 $as_echo "$STRIP" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$ac_cv_prog_STRIP"; then
3792 # Extract the first word of "strip", so it can be a program name with args.
3793 set dummy strip; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -n "$ac_ct_STRIP"; then
3800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_STRIP="strip"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3820 if test -n "$ac_ct_STRIP"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3822 $as_echo "$ac_ct_STRIP" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3828 if test "x$ac_ct_STRIP" = x; then
3831 case $cross_compiling:$ac_tool_warned in
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3840 STRIP="$ac_cv_prog_STRIP"
3844 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3847 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3848 if test -z "$MKDIR_P"; then
3849 if test "${ac_cv_path_mkdir+set}" = set; then :
3850 $as_echo_n "(cached) " >&6
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3856 test -z "$as_dir" && as_dir=.
3857 for ac_prog in mkdir gmkdir; do
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3860 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3861 'mkdir (GNU coreutils) '* | \
3862 'mkdir (coreutils) '* | \
3863 'mkdir (fileutils) '4.1*)
3864 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3874 test -d ./--version && rmdir ./--version
3875 if test "${ac_cv_path_mkdir+set}" = set; then
3876 MKDIR_P="$ac_cv_path_mkdir -p"
3878 # As a last resort, use the slow shell script. Don't cache a
3879 # value for MKDIR_P within a source directory, because that will
3880 # break other packages using the cache if that directory is
3881 # removed, or if the value is a relative name.
3882 MKDIR_P="$ac_install_sh -d"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3886 $as_echo "$MKDIR_P" >&6; }
3890 [\\/$]* | ?:[\\/]*) ;;
3891 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3894 for ac_prog in gawk mawk nawk awk
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899 $as_echo_n "checking for $ac_word... " >&6; }
3900 if test "${ac_cv_prog_AWK+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3903 if test -n "$AWK"; then
3904 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3913 ac_cv_prog_AWK="$ac_prog"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test -n "$AWK"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3926 $as_echo "$AWK" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3933 test -n "$AWK" && break
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3937 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3939 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3940 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3941 $as_echo_n "(cached) " >&6
3943 cat >conftest.make <<\_ACEOF
3946 @echo '@@@%%%=$(MAKE)=@@@%%%'
3948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3949 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3951 eval ac_cv_prog_make_${ac_make}_set=yes;;
3953 eval ac_cv_prog_make_${ac_make}_set=no;;
3957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3959 $as_echo "yes" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3964 SET_MAKE="MAKE=${MAKE-make}"
3967 rm -rf .tst 2>/dev/null
3968 mkdir .tst 2>/dev/null
3969 if test -d .tst; then
3974 rmdir .tst 2>/dev/null
3976 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3977 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3978 # is not polluted with repeated "-I."
3979 am__isrc=' -I$(srcdir)'
3980 # test to see if srcdir already configured
3981 if test -f $srcdir/config.status; then
3982 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3986 # test whether we have cygpath
3987 if test -z "$CYGPATH_W"; then
3988 if (cygpath --version) >/dev/null 2>/dev/null; then
3989 CYGPATH_W='cygpath -w'
3996 # Define the identity of the package.
3997 PACKAGE=$PACKAGE_NAME
3998 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4001 # Some tools Automake needs.
4003 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4006 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4009 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4012 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4015 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4017 # We need awk for the "check" target. The system "awk" is bad on
4019 # Always define AMTAR for backward compatibility.
4021 AMTAR=${AMTAR-"${am_missing_run}tar"}
4023 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4030 # Enable support for silent build rules
4031 # Check whether --enable-silent-rules was given.
4032 if test "${enable_silent_rules+set}" = set; then :
4033 enableval=$enable_silent_rules;
4036 case $enable_silent_rules in
4037 yes) AM_DEFAULT_VERBOSITY=0;;
4038 no) AM_DEFAULT_VERBOSITY=1;;
4039 *) AM_DEFAULT_VERBOSITY=0;;
4044 MAGICK_LIB_VERSION="0x"
4045 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4046 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4048 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4049 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4050 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4053 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4054 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4056 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4059 # Definition used to define MagickLibVersionText in version.h
4060 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4063 # Definition used to define MagickLibVersionNumber in version.h
4064 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4067 # Regenerate config.status if ChangeLog or version.sh is updated.
4068 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4074 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4075 MAGICK_PCFLAGS=$CPPFLAGS_USER
4080 # Evaluate shell variable equivalents to Makefile directory variables
4082 if test "x$prefix" = xNONE; then
4083 prefix=$ac_default_prefix
4085 # Let make expand exec_prefix.
4086 if test "x$exec_prefix" = xNONE; then
4087 exec_prefix='${prefix}'
4091 eval "eval PREFIX_DIR=${prefix}"
4093 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4095 eval "eval BIN_DIR=$bindir"
4097 eval "eval SBIN_DIR=$sbindir"
4099 eval "eval LIBEXEC_DIR=$libexecdir"
4101 eval "eval DATA_DIR=$datadir"
4103 eval "eval SYSCONF_DIR=$sysconfdir"
4105 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4107 eval "eval LOCALSTATE_DIR=$localstatedir"
4109 eval "eval LIB_DIR=$libdir"
4111 eval "eval INCLUDE_DIR=$includedir"
4113 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4115 eval "eval INFO_DIR=$infodir"
4117 eval "eval MAN_DIR=$mandir"
4120 # Get full paths to source and build directories
4121 srcdirfull="`cd $srcdir && pwd`"
4125 # Compute variables useful for running uninstalled software.
4127 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4128 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4129 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4130 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4132 case "${build_os}" in
4134 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4135 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4136 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4137 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4141 case "${host_os}" in
4154 # Enable OS features.
4156 DEPDIR="${am__leading_dot}deps"
4158 ac_config_commands="$ac_config_commands depfiles"
4161 am_make=${MAKE-make}
4162 cat > confinc << 'END'
4164 @echo this is the am__doit target
4167 # If we don't find an include directive, just comment out the code.
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4169 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4173 # First try GNU make style include.
4174 echo "include confinc" > confmf
4175 # Ignore all kinds of additional output from `make'.
4176 case `$am_make -s -f confmf 2> /dev/null` in #(
4177 *the\ am__doit\ target*)
4183 # Now try BSD make style include.
4184 if test "$am__include" = "#"; then
4185 echo '.include "confinc"' > confmf
4186 case `$am_make -s -f confmf 2> /dev/null` in #(
4187 *the\ am__doit\ target*)
4188 am__include=.include
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4197 $as_echo "$_am_result" >&6; }
4198 rm -f confinc confmf
4200 # Check whether --enable-dependency-tracking was given.
4201 if test "${enable_dependency_tracking+set}" = set; then :
4202 enableval=$enable_dependency_tracking;
4205 if test "x$enable_dependency_tracking" != xno; then
4206 am_depcomp="$ac_aux_dir/depcomp"
4209 if test "x$enable_dependency_tracking" != xno; then
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_CC+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$CC"; then
4232 ac_cv_prog_CC="$CC" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$ac_cv_prog_CC"; then
4264 # Extract the first word of "gcc", so it can be a program name with args.
4265 set dummy gcc; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -n "$ac_ct_CC"; then
4272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_ac_ct_CC="gcc"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4292 if test -n "$ac_ct_CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4294 $as_echo "$ac_ct_CC" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4300 if test "x$ac_ct_CC" = x; then
4303 case $cross_compiling:$ac_tool_warned in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned=yes ;;
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -n "$CC"; then
4325 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 if test -n "$CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4356 if test -z "$CC"; then
4357 # Extract the first word of "cc", so it can be a program name with args.
4358 set dummy cc; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_CC+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4376 ac_prog_rejected=yes
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test $ac_prog_rejected = yes; then
4388 # We found a bogon in the path, so make sure we never use it.
4389 set dummy $ac_cv_prog_CC
4391 if test $# != 0; then
4392 # We chose a different compiler from the bogus one.
4393 # However, it has the same basename, so the bogon will be chosen
4394 # first if we set CC to just the basename; use the full file name.
4396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4402 if test -n "$CC"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4404 $as_echo "$CC" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4412 if test -z "$CC"; then
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in cl.exe
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if test "${ac_cv_prog_CC+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -n "$CC"; then
4424 ac_cv_prog_CC="$CC" # Let the user override the test.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 if test -n "$CC"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4446 $as_echo "$CC" >&6; }
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4453 test -n "$CC" && break
4456 if test -z "$CC"; then
4458 for ac_prog in cl.exe
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4465 $as_echo_n "(cached) " >&6
4467 if test -n "$ac_ct_CC"; then
4468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_CC="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4488 if test -n "$ac_ct_CC"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4490 $as_echo "$ac_ct_CC" >&6; }
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4497 test -n "$ac_ct_CC" && break
4500 if test "x$ac_ct_CC" = x; then
4503 case $cross_compiling:$ac_tool_warned in
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4518 as_fn_error "no acceptable C compiler found in \$PATH
4519 See \`config.log' for more details." "$LINENO" 5; }
4521 # Provide some information about the compiler.
4522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4525 for ac_option in --version -v -V -qversion; do
4526 { { ac_try="$ac_compiler $ac_option >&5"
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532 $as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4535 if test -s conftest.err; then
4537 ... rest of stderr output deleted ...
4538 10q' conftest.err >conftest.er1
4539 cat conftest.er1 >&5
4541 rm -f conftest.er1 conftest.err
4542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4543 test $ac_status = 0; }
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 ac_clean_files_save=$ac_clean_files
4558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4559 # Try to create an executable without -o first, disregard a.out.
4560 # It will help us diagnose broken compilers, and finding out an intuition
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4563 $as_echo_n "checking whether the C compiler works... " >&6; }
4564 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4566 # The possible output files:
4567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4570 for ac_file in $ac_files
4573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4579 if { { ac_try="$ac_link_default"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4585 $as_echo "$ac_try_echo"; } >&5
4586 (eval "$ac_link_default") 2>&5
4588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4589 test $ac_status = 0; }; then :
4590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4593 # so that the user can short-circuit this test for compilers unknown to
4595 for ac_file in $ac_files ''
4597 test -f "$ac_file" || continue
4599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4602 # We found the default executable, but exeext='' is most
4606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4610 # We set ac_cv_exeext here because the later test for it is not
4611 # safe: cross compilers may not add the suffix if given an `-o'
4612 # argument, so we may need to know it at that point already.
4613 # Even if this section looks crufty: it has the advantage of
4620 test "$ac_cv_exeext" = no && ac_cv_exeext=
4625 if test -z "$ac_file"; then :
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 $as_echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4633 { as_fn_set_status 77
4634 as_fn_error "C compiler cannot create executables
4635 See \`config.log' for more details." "$LINENO" 5; }; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4638 $as_echo "yes" >&6; }
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4641 $as_echo_n "checking for C compiler default output file name... " >&6; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4643 $as_echo "$ac_file" >&6; }
4644 ac_exeext=$ac_cv_exeext
4646 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4647 ac_clean_files=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4649 $as_echo_n "checking for suffix of executables... " >&6; }
4650 if { { ac_try="$ac_link"
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657 (eval "$ac_link") 2>&5
4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660 test $ac_status = 0; }; then :
4661 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4662 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4663 # work properly (i.e., refer to `conftest.exe'), while it won't with
4665 for ac_file in conftest.exe conftest conftest.*; do
4666 test -f "$ac_file" || continue
4668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4669 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error "cannot compute suffix of executables: cannot compile and link
4678 See \`config.log' for more details." "$LINENO" 5; }
4680 rm -f conftest conftest$ac_cv_exeext
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4682 $as_echo "$ac_cv_exeext" >&6; }
4684 rm -f conftest.$ac_ext
4685 EXEEXT=$ac_cv_exeext
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4693 FILE *f = fopen ("conftest.out", "w");
4694 return ferror (f) || fclose (f) != 0;
4700 ac_clean_files="$ac_clean_files conftest.out"
4701 # Check that the compiler produces executables we can run. If not, either
4702 # the compiler is broken, or we cross compile.
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4704 $as_echo_n "checking whether we are cross compiling... " >&6; }
4705 if test "$cross_compiling" != yes; then
4706 { { ac_try="$ac_link"
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_link") 2>&5
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 if { ac_try='./conftest$ac_cv_exeext'
4718 { { case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723 $as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_try") 2>&5
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; }; then
4730 if test "$cross_compiling" = maybe; then
4733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4735 as_fn_error "cannot run C compiled programs.
4736 If you meant to cross compile, use \`--host'.
4737 See \`config.log' for more details." "$LINENO" 5; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4742 $as_echo "$cross_compiling" >&6; }
4744 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4745 ac_clean_files=$ac_clean_files_save
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4747 $as_echo_n "checking for suffix of object files... " >&6; }
4748 if test "${ac_cv_objext+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4762 rm -f conftest.o conftest.obj
4763 if { { ac_try="$ac_compile"
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4769 $as_echo "$ac_try_echo"; } >&5
4770 (eval "$ac_compile") 2>&5
4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }; then :
4774 for ac_file in conftest.o conftest.obj conftest.*; do
4775 test -f "$ac_file" || continue;
4777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4783 $as_echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4788 as_fn_error "cannot compute suffix of object files: cannot compile
4789 See \`config.log' for more details." "$LINENO" 5; }
4791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4794 $as_echo "$ac_cv_objext" >&6; }
4795 OBJEXT=$ac_cv_objext
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4798 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4799 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4816 if ac_fn_c_try_compile "$LINENO"; then :
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4826 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4827 if test $ac_compiler_gnu = yes; then
4832 ac_test_CFLAGS=${CFLAGS+set}
4833 ac_save_CFLAGS=$CFLAGS
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4835 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4836 if test "${ac_cv_prog_cc_g+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 ac_save_c_werror_flag=$ac_c_werror_flag
4840 ac_c_werror_flag=yes
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4854 if ac_fn_c_try_compile "$LINENO"; then :
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859 /* end confdefs.h. */
4869 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_c_werror_flag=$ac_save_c_werror_flag
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4885 if ac_fn_c_try_compile "$LINENO"; then :
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 ac_c_werror_flag=$ac_save_c_werror_flag
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4896 $as_echo "$ac_cv_prog_cc_g" >&6; }
4897 if test "$ac_test_CFLAGS" = set; then
4898 CFLAGS=$ac_save_CFLAGS
4899 elif test $ac_cv_prog_cc_g = yes; then
4900 if test "$GCC" = yes; then
4906 if test "$GCC" = yes; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4914 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4917 ac_cv_prog_cc_c89=no
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 #include <sys/stat.h>
4925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4926 struct buf { int x; };
4927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4928 static char *e (p, i)
4934 static char *f (char * (*g) (char **, int), char **p, ...)
4939 s = g (p, va_arg (v,int));
4944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4945 function prototypes and stuff, but not '\xHH' hex character constants.
4946 These don't provoke an error unfortunately, instead are silently treated
4947 as 'x'. The following induces an error, until -std is added to get
4948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4949 array size at least. It's necessary to write '\x00'==0 to get something
4950 that's true only with -std. */
4951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4954 inside strings and character constants. */
4956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4958 int test (int i, double x);
4959 struct s1 {int (*f) (int a);};
4960 struct s2 {int (*f) (double a);};
4961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4975 CC="$ac_save_CC $ac_arg"
4976 if ac_fn_c_try_compile "$LINENO"; then :
4977 ac_cv_prog_cc_c89=$ac_arg
4979 rm -f core conftest.err conftest.$ac_objext
4980 test "x$ac_cv_prog_cc_c89" != "xno" && break
4982 rm -f conftest.$ac_ext
4987 case "x$ac_cv_prog_cc_c89" in
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4990 $as_echo "none needed" >&6; } ;;
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4993 $as_echo "unsupported" >&6; } ;;
4995 CC="$CC $ac_cv_prog_cc_c89"
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4999 if test "x$ac_cv_prog_cc_c89" != xno; then :
5004 ac_cpp='$CPP $CPPFLAGS'
5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009 depcc="$CC" am_compiler_list=
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5012 $as_echo_n "checking dependency style of $depcc... " >&6; }
5013 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
5016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5017 # We make a subdir and do the tests there. Otherwise we can end up
5018 # making bogus files that we don't know about and never remove. For
5019 # instance it was reported that on HP-UX the gcc test will end up
5020 # making a dummy file named `D' -- because `-MD' means `put the output
5023 # Copy depcomp to subdir because otherwise we won't find it if we're
5024 # using a relative directory.
5025 cp "$am_depcomp" conftest.dir
5027 # We will build objects and dependencies in a subdirectory because
5028 # it helps to detect inapplicable dependency modes. For instance
5029 # both Tru64's cc and ICC support -MD to output dependencies as a
5030 # side effect of compilation, but ICC will put the dependencies in
5031 # the current directory while Tru64 will put them in the object
5035 am_cv_CC_dependencies_compiler_type=none
5036 if test "$am_compiler_list" = ""; then
5037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5040 case " $depcc " in #(
5041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5044 for depmode in $am_compiler_list; do
5045 # Setup a source with many dependencies, because some compilers
5046 # like to wrap large dependency lists on column 80 (with \), and
5047 # we should not choose a depcomp mode which is confused by this.
5049 # We need to recreate these files for each test, as the compiler may
5050 # overwrite some of them when testing with obscure command lines.
5051 # This happens at least with the AIX C compiler.
5053 for i in 1 2 3 4 5 6; do
5054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5056 # Solaris 8's {/usr,}/bin/sh.
5057 touch sub/conftst$i.h
5059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5062 # mode. It turns out that the SunPro C++ compiler does not properly
5063 # handle `-M -o', and we need to detect this. Also, some Intel
5064 # versions had trouble with output in subdirs
5065 am__obj=sub/conftest.${OBJEXT-o}
5066 am__minus_obj="-o $am__obj"
5069 # This depmode causes a compiler race in universal mode.
5070 test "$am__universal" = false || continue
5073 # after this tag, mechanisms are not by side-effect, so they'll
5074 # only be used when explicitly requested
5075 if test "x$enable_dependency_tracking" = xyes; then
5081 msvisualcpp | msvcmsys)
5082 # This compiler won't grok `-c -o', but also, the minuso test has
5083 # not run yet. These depmodes are late enough in the game, and
5084 # so weak that their functioning should not be impacted.
5085 am__obj=conftest.${OBJEXT-o}
5090 if depmode=$depmode \
5091 source=sub/conftest.c object=$am__obj \
5092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5094 >/dev/null 2>conftest.err &&
5095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5099 # icc doesn't choke on unknown options, it will just issue warnings
5100 # or remarks (even with -Werror). So we grep stderr for any message
5101 # that says an option was ignored or not supported.
5102 # When given -MP, icc 7.0 and 7.1 complain thusly:
5103 # icc: Command line warning: ignoring option '-M'; no argument required
5104 # The diagnosis changed in icc 8.0:
5105 # icc: Command line remark: option '-MP' not supported
5106 if (grep 'ignoring option' conftest.err ||
5107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5108 am_cv_CC_dependencies_compiler_type=$depmode
5117 am_cv_CC_dependencies_compiler_type=none
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5122 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5126 test "x$enable_dependency_tracking" != xno \
5127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5129 am__fastdepCC_FALSE='#'
5131 am__fastdepCC_TRUE='#'
5132 am__fastdepCC_FALSE=
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5143 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5144 # On Suns, sometimes $CPP names a directory.
5145 if test -n "$CPP" && test -d "$CPP"; then
5148 if test -z "$CPP"; then
5149 if test "${ac_cv_prog_CPP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 # Double quotes because CPP needs to be expanded
5153 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5156 for ac_c_preproc_warn_flag in '' yes
5158 # Use a header file that comes with gcc, so configuring glibc
5159 # with a fresh cross-compiler works.
5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 # <limits.h> exists even on freestanding compilers.
5162 # On the NeXT, cc -E runs the code through the compiler's parser,
5163 # not just through cpp. "Syntax error" is here to catch this case.
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5167 # include <limits.h>
5169 # include <assert.h>
5173 if ac_fn_c_try_cpp "$LINENO"; then :
5176 # Broken: fails on valid input.
5179 rm -f conftest.err conftest.$ac_ext
5181 # OK, works on sane cases. Now check whether nonexistent headers
5182 # can be detected and how.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <ac_nonexistent.h>
5187 if ac_fn_c_try_cpp "$LINENO"; then :
5188 # Broken: success on invalid input.
5191 # Passes both tests.
5195 rm -f conftest.err conftest.$ac_ext
5198 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5199 rm -f conftest.err conftest.$ac_ext
5200 if $ac_preproc_ok; then :
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5213 $as_echo "$CPP" >&6; }
5215 for ac_c_preproc_warn_flag in '' yes
5217 # Use a header file that comes with gcc, so configuring glibc
5218 # with a fresh cross-compiler works.
5219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5220 # <limits.h> exists even on freestanding compilers.
5221 # On the NeXT, cc -E runs the code through the compiler's parser,
5222 # not just through cpp. "Syntax error" is here to catch this case.
5223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h. */
5226 # include <limits.h>
5228 # include <assert.h>
5232 if ac_fn_c_try_cpp "$LINENO"; then :
5235 # Broken: fails on valid input.
5238 rm -f conftest.err conftest.$ac_ext
5240 # OK, works on sane cases. Now check whether nonexistent headers
5241 # can be detected and how.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #include <ac_nonexistent.h>
5246 if ac_fn_c_try_cpp "$LINENO"; then :
5247 # Broken: success on invalid input.
5250 # Passes both tests.
5254 rm -f conftest.err conftest.$ac_ext
5257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5258 rm -f conftest.err conftest.$ac_ext
5259 if $ac_preproc_ok; then :
5262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5264 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5265 See \`config.log' for more details." "$LINENO" 5; }
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5277 if test "${ac_cv_path_GREP+set}" = set; then :
5278 $as_echo_n "(cached) " >&6
5280 if test -z "$GREP"; then
5281 ac_path_GREP_found=false
5282 # Loop through the user's path and test for each of PROGNAME-LIST
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287 test -z "$as_dir" && as_dir=.
5288 for ac_prog in grep ggrep; do
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5291 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5292 # Check for GNU ac_path_GREP and select it if it is found.
5293 # Check for GNU $ac_path_GREP
5294 case `"$ac_path_GREP" --version 2>&1` in
5296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5299 $as_echo_n 0123456789 >"conftest.in"
5302 cat "conftest.in" "conftest.in" >"conftest.tmp"
5303 mv "conftest.tmp" "conftest.in"
5304 cp "conftest.in" "conftest.nl"
5305 $as_echo 'GREP' >> "conftest.nl"
5306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5308 as_fn_arith $ac_count + 1 && ac_count=$as_val
5309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5310 # Best one so far, save it but keep looking for a better one
5311 ac_cv_path_GREP="$ac_path_GREP"
5312 ac_path_GREP_max=$ac_count
5314 # 10*(2^10) chars as input seems more than enough
5315 test $ac_count -gt 10 && break
5317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5320 $ac_path_GREP_found && break 3
5325 if test -z "$ac_cv_path_GREP"; then
5326 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 ac_cv_path_GREP=$GREP
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5334 $as_echo "$ac_cv_path_GREP" >&6; }
5335 GREP="$ac_cv_path_GREP"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5339 $as_echo_n "checking for egrep... " >&6; }
5340 if test "${ac_cv_path_EGREP+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5343 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5344 then ac_cv_path_EGREP="$GREP -E"
5346 if test -z "$EGREP"; then
5347 ac_path_EGREP_found=false
5348 # Loop through the user's path and test for each of PROGNAME-LIST
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353 test -z "$as_dir" && as_dir=.
5354 for ac_prog in egrep; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5357 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5358 # Check for GNU ac_path_EGREP and select it if it is found.
5359 # Check for GNU $ac_path_EGREP
5360 case `"$ac_path_EGREP" --version 2>&1` in
5362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5365 $as_echo_n 0123456789 >"conftest.in"
5368 cat "conftest.in" "conftest.in" >"conftest.tmp"
5369 mv "conftest.tmp" "conftest.in"
5370 cp "conftest.in" "conftest.nl"
5371 $as_echo 'EGREP' >> "conftest.nl"
5372 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5374 as_fn_arith $ac_count + 1 && ac_count=$as_val
5375 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5376 # Best one so far, save it but keep looking for a better one
5377 ac_cv_path_EGREP="$ac_path_EGREP"
5378 ac_path_EGREP_max=$ac_count
5380 # 10*(2^10) chars as input seems more than enough
5381 test $ac_count -gt 10 && break
5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5386 $ac_path_EGREP_found && break 3
5391 if test -z "$ac_cv_path_EGREP"; then
5392 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5395 ac_cv_path_EGREP=$EGREP
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5401 $as_echo "$ac_cv_path_EGREP" >&6; }
5402 EGREP="$ac_cv_path_EGREP"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5406 $as_echo_n "checking for ANSI C header files... " >&6; }
5407 if test "${ac_cv_header_stdc+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5425 if ac_fn_c_try_compile "$LINENO"; then :
5426 ac_cv_header_stdc=yes
5428 ac_cv_header_stdc=no
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 if test $ac_cv_header_stdc = yes; then
5433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5440 $EGREP "memchr" >/dev/null 2>&1; then :
5443 ac_cv_header_stdc=no
5449 if test $ac_cv_header_stdc = yes; then
5450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5457 $EGREP "free" >/dev/null 2>&1; then :
5460 ac_cv_header_stdc=no
5466 if test $ac_cv_header_stdc = yes; then
5467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5468 if test "$cross_compiling" = yes; then :
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5475 #if ((' ' & 0x0FF) == 0x020)
5476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5479 # define ISLOWER(c) \
5480 (('a' <= (c) && (c) <= 'i') \
5481 || ('j' <= (c) && (c) <= 'r') \
5482 || ('s' <= (c) && (c) <= 'z'))
5483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5491 for (i = 0; i < 256; i++)
5492 if (XOR (islower (i), ISLOWER (i))
5493 || toupper (i) != TOUPPER (i))
5498 if ac_fn_c_try_run "$LINENO"; then :
5501 ac_cv_header_stdc=no
5503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5504 conftest.$ac_objext conftest.beam conftest.$ac_ext
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5510 $as_echo "$ac_cv_header_stdc" >&6; }
5511 if test $ac_cv_header_stdc = yes; then
5513 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5517 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5518 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5519 inttypes.h stdint.h unistd.h
5521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5524 eval as_val=\$$as_ac_Header
5525 if test "x$as_val" = x""yes; then :
5526 cat >>confdefs.h <<_ACEOF
5527 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5537 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5544 if test "$MINIX" = yes; then
5546 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5549 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5552 $as_echo "#define _MINIX 1" >>confdefs.h
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5558 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5559 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5565 # define __EXTENSIONS__ 1
5566 $ac_includes_default
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576 ac_cv_safe_to_define___extensions__=yes
5578 ac_cv_safe_to_define___extensions__=no
5580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5583 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5584 test $ac_cv_safe_to_define___extensions__ = yes &&
5585 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5587 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5589 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5591 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5593 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5597 # Check for programs
5599 ac_cpp='$CPP $CPPFLAGS'
5600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603 if test -n "$ac_tool_prefix"; then
5604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_CC+set}" = set; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$CC"; then
5612 ac_cv_prog_CC="$CC" # Let the user override the test.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 if test -n "$CC"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5634 $as_echo "$CC" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5642 if test -z "$ac_cv_prog_CC"; then
5644 # Extract the first word of "gcc", so it can be a program name with args.
5645 set dummy gcc; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$ac_ct_CC"; then
5652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_ac_ct_CC="gcc"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5672 if test -n "$ac_ct_CC"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5674 $as_echo "$ac_ct_CC" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5680 if test "x$ac_ct_CC" = x; then
5683 case $cross_compiling:$ac_tool_warned in
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5695 if test -z "$CC"; then
5696 if test -n "$ac_tool_prefix"; then
5697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5698 set dummy ${ac_tool_prefix}cc; ac_word=$2
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5700 $as_echo_n "checking for $ac_word... " >&6; }
5701 if test "${ac_cv_prog_CC+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5704 if test -n "$CC"; then
5705 ac_cv_prog_CC="$CC" # Let the user override the test.
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_CC="${ac_tool_prefix}cc"
5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 if test -n "$CC"; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5727 $as_echo "$CC" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5730 $as_echo "no" >&6; }
5736 if test -z "$CC"; then
5737 # Extract the first word of "cc", so it can be a program name with args.
5738 set dummy cc; ac_word=$2
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5740 $as_echo_n "checking for $ac_word... " >&6; }
5741 if test "${ac_cv_prog_CC+set}" = set; then :
5742 $as_echo_n "(cached) " >&6
5744 if test -n "$CC"; then
5745 ac_cv_prog_CC="$CC" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5756 ac_prog_rejected=yes
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 if test $ac_prog_rejected = yes; then
5768 # We found a bogon in the path, so make sure we never use it.
5769 set dummy $ac_cv_prog_CC
5771 if test $# != 0; then
5772 # We chose a different compiler from the bogus one.
5773 # However, it has the same basename, so the bogon will be chosen
5774 # first if we set CC to just the basename; use the full file name.
5776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5782 if test -n "$CC"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5784 $as_echo "$CC" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5792 if test -z "$CC"; then
5793 if test -n "$ac_tool_prefix"; then
5794 for ac_prog in cl.exe
5796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if test "${ac_cv_prog_CC+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5803 if test -n "$CC"; then
5804 ac_cv_prog_CC="$CC" # Let the user override the test.
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5824 if test -n "$CC"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5826 $as_echo "$CC" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5833 test -n "$CC" && break
5836 if test -z "$CC"; then
5838 for ac_prog in cl.exe
5840 # Extract the first word of "$ac_prog", so it can be a program name with args.
5841 set dummy $ac_prog; ac_word=$2
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5843 $as_echo_n "checking for $ac_word... " >&6; }
5844 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_ac_ct_CC="$ac_prog"
5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5868 if test -n "$ac_ct_CC"; then
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5870 $as_echo "$ac_ct_CC" >&6; }
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5877 test -n "$ac_ct_CC" && break
5880 if test "x$ac_ct_CC" = x; then
5883 case $cross_compiling:$ac_tool_warned in
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5887 ac_tool_warned=yes ;;
5896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5898 as_fn_error "no acceptable C compiler found in \$PATH
5899 See \`config.log' for more details." "$LINENO" 5; }
5901 # Provide some information about the compiler.
5902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5905 for ac_option in --version -v -V -qversion; do
5906 { { ac_try="$ac_compiler $ac_option >&5"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5912 $as_echo "$ac_try_echo"; } >&5
5913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5915 if test -s conftest.err; then
5917 ... rest of stderr output deleted ...
5918 10q' conftest.err >conftest.er1
5919 cat conftest.er1 >&5
5921 rm -f conftest.er1 conftest.err
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5928 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5945 if ac_fn_c_try_compile "$LINENO"; then :
5950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5956 if test $ac_compiler_gnu = yes; then
5961 ac_test_CFLAGS=${CFLAGS+set}
5962 ac_save_CFLAGS=$CFLAGS
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5965 if test "${ac_cv_prog_cc_g+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5968 ac_save_c_werror_flag=$ac_c_werror_flag
5969 ac_c_werror_flag=yes
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5983 if ac_fn_c_try_compile "$LINENO"; then :
5987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h. */
5998 if ac_fn_c_try_compile "$LINENO"; then :
6001 ac_c_werror_flag=$ac_save_c_werror_flag
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6014 if ac_fn_c_try_compile "$LINENO"; then :
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 ac_c_werror_flag=$ac_save_c_werror_flag
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6025 $as_echo "$ac_cv_prog_cc_g" >&6; }
6026 if test "$ac_test_CFLAGS" = set; then
6027 CFLAGS=$ac_save_CFLAGS
6028 elif test $ac_cv_prog_cc_g = yes; then
6029 if test "$GCC" = yes; then
6035 if test "$GCC" = yes; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6043 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6046 ac_cv_prog_cc_c89=no
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6052 #include <sys/types.h>
6053 #include <sys/stat.h>
6054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6055 struct buf { int x; };
6056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6057 static char *e (p, i)
6063 static char *f (char * (*g) (char **, int), char **p, ...)
6068 s = g (p, va_arg (v,int));
6073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6074 function prototypes and stuff, but not '\xHH' hex character constants.
6075 These don't provoke an error unfortunately, instead are silently treated
6076 as 'x'. The following induces an error, until -std is added to get
6077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6078 array size at least. It's necessary to write '\x00'==0 to get something
6079 that's true only with -std. */
6080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6083 inside strings and character constants. */
6085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087 int test (int i, double x);
6088 struct s1 {int (*f) (int a);};
6089 struct s2 {int (*f) (double a);};
6090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104 CC="$ac_save_CC $ac_arg"
6105 if ac_fn_c_try_compile "$LINENO"; then :
6106 ac_cv_prog_cc_c89=$ac_arg
6108 rm -f core conftest.err conftest.$ac_objext
6109 test "x$ac_cv_prog_cc_c89" != "xno" && break
6111 rm -f conftest.$ac_ext
6116 case "x$ac_cv_prog_cc_c89" in
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6119 $as_echo "none needed" >&6; } ;;
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6122 $as_echo "unsupported" >&6; } ;;
6124 CC="$CC $ac_cv_prog_cc_c89"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6128 if test "x$ac_cv_prog_cc_c89" != xno; then :
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138 depcc="$CC" am_compiler_list=
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6141 $as_echo_n "checking dependency style of $depcc... " >&6; }
6142 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6145 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6146 # We make a subdir and do the tests there. Otherwise we can end up
6147 # making bogus files that we don't know about and never remove. For
6148 # instance it was reported that on HP-UX the gcc test will end up
6149 # making a dummy file named `D' -- because `-MD' means `put the output
6152 # Copy depcomp to subdir because otherwise we won't find it if we're
6153 # using a relative directory.
6154 cp "$am_depcomp" conftest.dir
6156 # We will build objects and dependencies in a subdirectory because
6157 # it helps to detect inapplicable dependency modes. For instance
6158 # both Tru64's cc and ICC support -MD to output dependencies as a
6159 # side effect of compilation, but ICC will put the dependencies in
6160 # the current directory while Tru64 will put them in the object
6164 am_cv_CC_dependencies_compiler_type=none
6165 if test "$am_compiler_list" = ""; then
6166 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6169 case " $depcc " in #(
6170 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6173 for depmode in $am_compiler_list; do
6174 # Setup a source with many dependencies, because some compilers
6175 # like to wrap large dependency lists on column 80 (with \), and
6176 # we should not choose a depcomp mode which is confused by this.
6178 # We need to recreate these files for each test, as the compiler may
6179 # overwrite some of them when testing with obscure command lines.
6180 # This happens at least with the AIX C compiler.
6182 for i in 1 2 3 4 5 6; do
6183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6185 # Solaris 8's {/usr,}/bin/sh.
6186 touch sub/conftst$i.h
6188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6190 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6191 # mode. It turns out that the SunPro C++ compiler does not properly
6192 # handle `-M -o', and we need to detect this. Also, some Intel
6193 # versions had trouble with output in subdirs
6194 am__obj=sub/conftest.${OBJEXT-o}
6195 am__minus_obj="-o $am__obj"
6198 # This depmode causes a compiler race in universal mode.
6199 test "$am__universal" = false || continue
6202 # after this tag, mechanisms are not by side-effect, so they'll
6203 # only be used when explicitly requested
6204 if test "x$enable_dependency_tracking" = xyes; then
6210 msvisualcpp | msvcmsys)
6211 # This compiler won't grok `-c -o', but also, the minuso test has
6212 # not run yet. These depmodes are late enough in the game, and
6213 # so weak that their functioning should not be impacted.
6214 am__obj=conftest.${OBJEXT-o}
6219 if depmode=$depmode \
6220 source=sub/conftest.c object=$am__obj \
6221 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6222 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6223 >/dev/null 2>conftest.err &&
6224 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6225 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6226 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6227 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6228 # icc doesn't choke on unknown options, it will just issue warnings
6229 # or remarks (even with -Werror). So we grep stderr for any message
6230 # that says an option was ignored or not supported.
6231 # When given -MP, icc 7.0 and 7.1 complain thusly:
6232 # icc: Command line warning: ignoring option '-M'; no argument required
6233 # The diagnosis changed in icc 8.0:
6234 # icc: Command line remark: option '-MP' not supported
6235 if (grep 'ignoring option' conftest.err ||
6236 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6237 am_cv_CC_dependencies_compiler_type=$depmode
6246 am_cv_CC_dependencies_compiler_type=none
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6251 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6255 test "x$enable_dependency_tracking" != xno \
6256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6258 am__fastdepCC_FALSE='#'
6260 am__fastdepCC_TRUE='#'
6261 am__fastdepCC_FALSE=
6266 ac_cpp='$CXXCPP $CPPFLAGS'
6267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6270 if test -z "$CXX"; then
6271 if test -n "$CCC"; then
6274 if test -n "$ac_tool_prefix"; then
6275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if test "${ac_cv_prog_CXX+set}" = set; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$CXX"; then
6285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 if test -n "$CXX"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6307 $as_echo "$CXX" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6314 test -n "$CXX" && break
6317 if test -z "$CXX"; then
6319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6321 # Extract the first word of "$ac_prog", so it can be a program name with args.
6322 set dummy $ac_prog; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6328 if test -n "$ac_ct_CXX"; then
6329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338 ac_cv_prog_ac_ct_CXX="$ac_prog"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6349 if test -n "$ac_ct_CXX"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6351 $as_echo "$ac_ct_CXX" >&6; }
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6358 test -n "$ac_ct_CXX" && break
6361 if test "x$ac_ct_CXX" = x; then
6364 case $cross_compiling:$ac_tool_warned in
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6376 # Provide some information about the compiler.
6377 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6380 for ac_option in --version -v -V -qversion; do
6381 { { ac_try="$ac_compiler $ac_option >&5"
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6387 $as_echo "$ac_try_echo"; } >&5
6388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6390 if test -s conftest.err; then
6392 ... rest of stderr output deleted ...
6393 10q' conftest.err >conftest.er1
6394 cat conftest.er1 >&5
6396 rm -f conftest.er1 conftest.err
6397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6398 test $ac_status = 0; }
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6402 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6403 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6420 if ac_fn_cxx_try_compile "$LINENO"; then :
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6430 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6431 if test $ac_compiler_gnu = yes; then
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6439 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6458 if ac_fn_cxx_try_compile "$LINENO"; then :
6459 ac_cv_prog_cxx_g=yes
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6473 if ac_fn_cxx_try_compile "$LINENO"; then :
6476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6489 if ac_fn_cxx_try_compile "$LINENO"; then :
6490 ac_cv_prog_cxx_g=yes
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6500 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6501 if test "$ac_test_CXXFLAGS" = set; then
6502 CXXFLAGS=$ac_save_CXXFLAGS
6503 elif test $ac_cv_prog_cxx_g = yes; then
6504 if test "$GXX" = yes; then
6510 if test "$GXX" = yes; then
6517 ac_cpp='$CPP $CPPFLAGS'
6518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6522 depcc="$CXX" am_compiler_list=
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6525 $as_echo_n "checking dependency style of $depcc... " >&6; }
6526 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6530 # We make a subdir and do the tests there. Otherwise we can end up
6531 # making bogus files that we don't know about and never remove. For
6532 # instance it was reported that on HP-UX the gcc test will end up
6533 # making a dummy file named `D' -- because `-MD' means `put the output
6536 # Copy depcomp to subdir because otherwise we won't find it if we're
6537 # using a relative directory.
6538 cp "$am_depcomp" conftest.dir
6540 # We will build objects and dependencies in a subdirectory because
6541 # it helps to detect inapplicable dependency modes. For instance
6542 # both Tru64's cc and ICC support -MD to output dependencies as a
6543 # side effect of compilation, but ICC will put the dependencies in
6544 # the current directory while Tru64 will put them in the object
6548 am_cv_CXX_dependencies_compiler_type=none
6549 if test "$am_compiler_list" = ""; then
6550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6553 case " $depcc " in #(
6554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6557 for depmode in $am_compiler_list; do
6558 # Setup a source with many dependencies, because some compilers
6559 # like to wrap large dependency lists on column 80 (with \), and
6560 # we should not choose a depcomp mode which is confused by this.
6562 # We need to recreate these files for each test, as the compiler may
6563 # overwrite some of them when testing with obscure command lines.
6564 # This happens at least with the AIX C compiler.
6566 for i in 1 2 3 4 5 6; do
6567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6569 # Solaris 8's {/usr,}/bin/sh.
6570 touch sub/conftst$i.h
6572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6575 # mode. It turns out that the SunPro C++ compiler does not properly
6576 # handle `-M -o', and we need to detect this. Also, some Intel
6577 # versions had trouble with output in subdirs
6578 am__obj=sub/conftest.${OBJEXT-o}
6579 am__minus_obj="-o $am__obj"
6582 # This depmode causes a compiler race in universal mode.
6583 test "$am__universal" = false || continue
6586 # after this tag, mechanisms are not by side-effect, so they'll
6587 # only be used when explicitly requested
6588 if test "x$enable_dependency_tracking" = xyes; then
6594 msvisualcpp | msvcmsys)
6595 # This compiler won't grok `-c -o', but also, the minuso test has
6596 # not run yet. These depmodes are late enough in the game, and
6597 # so weak that their functioning should not be impacted.
6598 am__obj=conftest.${OBJEXT-o}
6603 if depmode=$depmode \
6604 source=sub/conftest.c object=$am__obj \
6605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6607 >/dev/null 2>conftest.err &&
6608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6612 # icc doesn't choke on unknown options, it will just issue warnings
6613 # or remarks (even with -Werror). So we grep stderr for any message
6614 # that says an option was ignored or not supported.
6615 # When given -MP, icc 7.0 and 7.1 complain thusly:
6616 # icc: Command line warning: ignoring option '-M'; no argument required
6617 # The diagnosis changed in icc 8.0:
6618 # icc: Command line remark: option '-MP' not supported
6619 if (grep 'ignoring option' conftest.err ||
6620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6621 am_cv_CXX_dependencies_compiler_type=$depmode
6630 am_cv_CXX_dependencies_compiler_type=none
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6635 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6636 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6639 test "x$enable_dependency_tracking" != xno \
6640 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6641 am__fastdepCXX_TRUE=
6642 am__fastdepCXX_FALSE='#'
6644 am__fastdepCXX_TRUE='#'
6645 am__fastdepCXX_FALSE=
6649 case $ac_cv_prog_cc_stdc in #(
6651 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6654 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6655 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6658 ac_cv_prog_cc_c99=no
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6663 #include <stdbool.h>
6668 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6669 #define debug(...) fprintf (stderr, __VA_ARGS__)
6670 #define showlist(...) puts (#__VA_ARGS__)
6671 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6673 test_varargs_macros (void)
6678 debug ("X = %d\n", x);
6679 showlist (The first, second, and third items.);
6680 report (x>y, "x is %d but y is %d", x, y);
6683 // Check long long types.
6684 #define BIG64 18446744073709551615ull
6685 #define BIG32 4294967295ul
6686 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6688 your preprocessor is broken;
6692 your preprocessor is broken;
6694 static long long int bignum = -9223372036854775807LL;
6695 static unsigned long long int ubignum = BIG64;
6697 struct incomplete_array
6705 const wchar_t *name;
6709 typedef const char *ccp;
6712 test_restrict (ccp restrict text)
6714 // See if C++-style comments work.
6715 // Iterate through items via the restricted pointer.
6716 // Also check for declarations in for loops.
6717 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6722 // Check varargs and va_copy.
6724 test_varargs (const char *format, ...)
6727 va_start (args, format);
6729 va_copy (args_copy, args);
6740 str = va_arg (args_copy, const char *);
6743 number = va_arg (args_copy, int);
6746 fnumber = va_arg (args_copy, double);
6761 _Bool success = false;
6764 if (test_restrict ("String literal") == 0)
6766 char *restrict newvar = "Another string";
6769 test_varargs ("s, d' f .", "string", 65, 34.234);
6770 test_varargs_macros ();
6772 // Check flexible array members.
6773 struct incomplete_array *ia =
6774 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6776 for (int i = 0; i < ia->datasize; ++i)
6777 ia->data[i] = i * 1.234;
6779 // Check named initializers.
6780 struct named_init ni = {
6782 .name = L"Test wide string",
6783 .average = 543.34343,
6788 int dynamic_array[ni.number];
6789 dynamic_array[ni.number - 1] = 543;
6791 // work around unused variable warnings
6792 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6793 || dynamic_array[ni.number - 1] != 543);
6799 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6801 CC="$ac_save_CC $ac_arg"
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 ac_cv_prog_cc_c99=$ac_arg
6805 rm -f core conftest.err conftest.$ac_objext
6806 test "x$ac_cv_prog_cc_c99" != "xno" && break
6808 rm -f conftest.$ac_ext
6813 case "x$ac_cv_prog_cc_c99" in
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6816 $as_echo "none needed" >&6; } ;;
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6819 $as_echo "unsupported" >&6; } ;;
6821 CC="$CC $ac_cv_prog_cc_c99"
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6823 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6825 if test "x$ac_cv_prog_cc_c99" != xno; then :
6826 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6830 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6831 $as_echo_n "(cached) " >&6
6833 ac_cv_prog_cc_c89=no
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6839 #include <sys/types.h>
6840 #include <sys/stat.h>
6841 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6842 struct buf { int x; };
6843 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6844 static char *e (p, i)
6850 static char *f (char * (*g) (char **, int), char **p, ...)
6855 s = g (p, va_arg (v,int));
6860 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6861 function prototypes and stuff, but not '\xHH' hex character constants.
6862 These don't provoke an error unfortunately, instead are silently treated
6863 as 'x'. The following induces an error, until -std is added to get
6864 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6865 array size at least. It's necessary to write '\x00'==0 to get something
6866 that's true only with -std. */
6867 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6869 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6870 inside strings and character constants. */
6872 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6874 int test (int i, double x);
6875 struct s1 {int (*f) (int a);};
6876 struct s2 {int (*f) (double a);};
6877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6888 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6889 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6891 CC="$ac_save_CC $ac_arg"
6892 if ac_fn_c_try_compile "$LINENO"; then :
6893 ac_cv_prog_cc_c89=$ac_arg
6895 rm -f core conftest.err conftest.$ac_objext
6896 test "x$ac_cv_prog_cc_c89" != "xno" && break
6898 rm -f conftest.$ac_ext
6903 case "x$ac_cv_prog_cc_c89" in
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6906 $as_echo "none needed" >&6; } ;;
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6909 $as_echo "unsupported" >&6; } ;;
6911 CC="$CC $ac_cv_prog_cc_c89"
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6913 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6915 if test "x$ac_cv_prog_cc_c89" != xno; then :
6916 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6918 ac_cv_prog_cc_stdc=no
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6925 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6926 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6927 $as_echo_n "(cached) " >&6
6930 case $ac_cv_prog_cc_stdc in #(
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933 $as_echo "unsupported" >&6; } ;; #(
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6936 $as_echo "none needed" >&6; } ;; #(
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6939 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6949 # On Suns, sometimes $CPP names a directory.
6950 if test -n "$CPP" && test -d "$CPP"; then
6953 if test -z "$CPP"; then
6954 if test "${ac_cv_prog_CPP+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 # Double quotes because CPP needs to be expanded
6958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6961 for ac_c_preproc_warn_flag in '' yes
6963 # Use a header file that comes with gcc, so configuring glibc
6964 # with a fresh cross-compiler works.
6965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6966 # <limits.h> exists even on freestanding compilers.
6967 # On the NeXT, cc -E runs the code through the compiler's parser,
6968 # not just through cpp. "Syntax error" is here to catch this case.
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 # include <limits.h>
6974 # include <assert.h>
6978 if ac_fn_c_try_cpp "$LINENO"; then :
6981 # Broken: fails on valid input.
6984 rm -f conftest.err conftest.$ac_ext
6986 # OK, works on sane cases. Now check whether nonexistent headers
6987 # can be detected and how.
6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 #include <ac_nonexistent.h>
6992 if ac_fn_c_try_cpp "$LINENO"; then :
6993 # Broken: success on invalid input.
6996 # Passes both tests.
7000 rm -f conftest.err conftest.$ac_ext
7003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7004 rm -f conftest.err conftest.$ac_ext
7005 if $ac_preproc_ok; then :
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7018 $as_echo "$CPP" >&6; }
7020 for ac_c_preproc_warn_flag in '' yes
7022 # Use a header file that comes with gcc, so configuring glibc
7023 # with a fresh cross-compiler works.
7024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7025 # <limits.h> exists even on freestanding compilers.
7026 # On the NeXT, cc -E runs the code through the compiler's parser,
7027 # not just through cpp. "Syntax error" is here to catch this case.
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7031 # include <limits.h>
7033 # include <assert.h>
7037 if ac_fn_c_try_cpp "$LINENO"; then :
7040 # Broken: fails on valid input.
7043 rm -f conftest.err conftest.$ac_ext
7045 # OK, works on sane cases. Now check whether nonexistent headers
7046 # can be detected and how.
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 #include <ac_nonexistent.h>
7051 if ac_fn_c_try_cpp "$LINENO"; then :
7052 # Broken: success on invalid input.
7055 # Passes both tests.
7059 rm -f conftest.err conftest.$ac_ext
7062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7063 rm -f conftest.err conftest.$ac_ext
7064 if $ac_preproc_ok; then :
7067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7069 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7070 See \`config.log' for more details." "$LINENO" 5; }
7074 ac_cpp='$CPP $CPPFLAGS'
7075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7080 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7081 if test "${ac_cv_path_SED+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7084 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7085 for ac_i in 1 2 3 4 5 6 7; do
7086 ac_script="$ac_script$as_nl$ac_script"
7088 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7089 { ac_script=; unset ac_script;}
7090 if test -z "$SED"; then
7091 ac_path_SED_found=false
7092 # Loop through the user's path and test for each of PROGNAME-LIST
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_prog in sed gsed; do
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7101 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7102 # Check for GNU ac_path_SED and select it if it is found.
7103 # Check for GNU $ac_path_SED
7104 case `"$ac_path_SED" --version 2>&1` in
7106 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7109 $as_echo_n 0123456789 >"conftest.in"
7112 cat "conftest.in" "conftest.in" >"conftest.tmp"
7113 mv "conftest.tmp" "conftest.in"
7114 cp "conftest.in" "conftest.nl"
7115 $as_echo '' >> "conftest.nl"
7116 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7118 as_fn_arith $ac_count + 1 && ac_count=$as_val
7119 if test $ac_count -gt ${ac_path_SED_max-0}; then
7120 # Best one so far, save it but keep looking for a better one
7121 ac_cv_path_SED="$ac_path_SED"
7122 ac_path_SED_max=$ac_count
7124 # 10*(2^10) chars as input seems more than enough
7125 test $ac_count -gt 10 && break
7127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7130 $ac_path_SED_found && break 3
7135 if test -z "$ac_cv_path_SED"; then
7136 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7144 $as_echo "$ac_cv_path_SED" >&6; }
7145 SED="$ac_cv_path_SED"
7148 test -z "$SED" && SED=sed
7149 Xsed="$SED -e 1s/^X//"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7162 $as_echo_n "checking for fgrep... " >&6; }
7163 if test "${ac_cv_path_FGREP+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7166 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7167 then ac_cv_path_FGREP="$GREP -F"
7169 if test -z "$FGREP"; then
7170 ac_path_FGREP_found=false
7171 # Loop through the user's path and test for each of PROGNAME-LIST
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7176 test -z "$as_dir" && as_dir=.
7177 for ac_prog in fgrep; do
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7180 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7181 # Check for GNU ac_path_FGREP and select it if it is found.
7182 # Check for GNU $ac_path_FGREP
7183 case `"$ac_path_FGREP" --version 2>&1` in
7185 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7188 $as_echo_n 0123456789 >"conftest.in"
7191 cat "conftest.in" "conftest.in" >"conftest.tmp"
7192 mv "conftest.tmp" "conftest.in"
7193 cp "conftest.in" "conftest.nl"
7194 $as_echo 'FGREP' >> "conftest.nl"
7195 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7197 as_fn_arith $ac_count + 1 && ac_count=$as_val
7198 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7199 # Best one so far, save it but keep looking for a better one
7200 ac_cv_path_FGREP="$ac_path_FGREP"
7201 ac_path_FGREP_max=$ac_count
7203 # 10*(2^10) chars as input seems more than enough
7204 test $ac_count -gt 10 && break
7206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7209 $ac_path_FGREP_found && break 3
7214 if test -z "$ac_cv_path_FGREP"; then
7215 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7218 ac_cv_path_FGREP=$FGREP
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7224 $as_echo "$ac_cv_path_FGREP" >&6; }
7225 FGREP="$ac_cv_path_FGREP"
7228 test -z "$GREP" && GREP=grep
7248 # Check whether --with-gnu-ld was given.
7249 if test "${with_gnu_ld+set}" = set; then :
7250 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7256 if test "$GCC" = yes; then
7257 # Check if gcc -print-prog-name=ld gives a path.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7259 $as_echo_n "checking for ld used by $CC... " >&6; }
7262 # gcc leaves a trailing carriage return which upsets mingw
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7268 # Accept absolute paths.
7270 re_direlt='/[^/][^/]*/\.\./'
7271 # Canonicalize the pathname of ld
7272 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7276 test -z "$LD" && LD="$ac_prog"
7279 # If it fails, then pretend we aren't using GCC.
7283 # If it is relative, then search for the first ld in PATH.
7287 elif test "$with_gnu_ld" = yes; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7289 $as_echo_n "checking for GNU ld... " >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7292 $as_echo_n "checking for non-GNU ld... " >&6; }
7294 if test "${lt_cv_path_LD+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
7297 if test -z "$LD"; then
7298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7299 for ac_dir in $PATH; do
7301 test -z "$ac_dir" && ac_dir=.
7302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7303 lt_cv_path_LD="$ac_dir/$ac_prog"
7304 # Check to see if the program is GNU ld. I'd rather use --version,
7305 # but apparently some variants of GNU ld only accept -v.
7306 # Break only if it was the GNU/non-GNU ld that we prefer.
7307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7308 *GNU* | *'with BFD'*)
7309 test "$with_gnu_ld" != no && break
7312 test "$with_gnu_ld" != yes && break
7319 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7324 if test -n "$LD"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7326 $as_echo "$LD" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7331 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7333 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7334 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7335 $as_echo_n "(cached) " >&6
7337 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7338 case `$LD -v 2>&1 </dev/null` in
7339 *GNU* | *'with BFD'*)
7340 lt_cv_prog_gnu_ld=yes
7343 lt_cv_prog_gnu_ld=no
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7348 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7349 with_gnu_ld=$lt_cv_prog_gnu_ld
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7361 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7362 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7365 ac_cv_prog_cc_c99=no
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7370 #include <stdbool.h>
7375 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7376 #define debug(...) fprintf (stderr, __VA_ARGS__)
7377 #define showlist(...) puts (#__VA_ARGS__)
7378 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7380 test_varargs_macros (void)
7385 debug ("X = %d\n", x);
7386 showlist (The first, second, and third items.);
7387 report (x>y, "x is %d but y is %d", x, y);
7390 // Check long long types.
7391 #define BIG64 18446744073709551615ull
7392 #define BIG32 4294967295ul
7393 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7395 your preprocessor is broken;
7399 your preprocessor is broken;
7401 static long long int bignum = -9223372036854775807LL;
7402 static unsigned long long int ubignum = BIG64;
7404 struct incomplete_array
7412 const wchar_t *name;
7416 typedef const char *ccp;
7419 test_restrict (ccp restrict text)
7421 // See if C++-style comments work.
7422 // Iterate through items via the restricted pointer.
7423 // Also check for declarations in for loops.
7424 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7429 // Check varargs and va_copy.
7431 test_varargs (const char *format, ...)
7434 va_start (args, format);
7436 va_copy (args_copy, args);
7447 str = va_arg (args_copy, const char *);
7450 number = va_arg (args_copy, int);
7453 fnumber = va_arg (args_copy, double);
7468 _Bool success = false;
7471 if (test_restrict ("String literal") == 0)
7473 char *restrict newvar = "Another string";
7476 test_varargs ("s, d' f .", "string", 65, 34.234);
7477 test_varargs_macros ();
7479 // Check flexible array members.
7480 struct incomplete_array *ia =
7481 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7483 for (int i = 0; i < ia->datasize; ++i)
7484 ia->data[i] = i * 1.234;
7486 // Check named initializers.
7487 struct named_init ni = {
7489 .name = L"Test wide string",
7490 .average = 543.34343,
7495 int dynamic_array[ni.number];
7496 dynamic_array[ni.number - 1] = 543;
7498 // work around unused variable warnings
7499 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7500 || dynamic_array[ni.number - 1] != 543);
7506 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7508 CC="$ac_save_CC $ac_arg"
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510 ac_cv_prog_cc_c99=$ac_arg
7512 rm -f core conftest.err conftest.$ac_objext
7513 test "x$ac_cv_prog_cc_c99" != "xno" && break
7515 rm -f conftest.$ac_ext
7520 case "x$ac_cv_prog_cc_c99" in
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7523 $as_echo "none needed" >&6; } ;;
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7526 $as_echo "unsupported" >&6; } ;;
7528 CC="$CC $ac_cv_prog_cc_c99"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7530 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7532 if test "x$ac_cv_prog_cc_c99" != xno; then :
7537 if test "x$CC" != xcc; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7539 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7542 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7544 set dummy $CC; ac_cc=`$as_echo "$2" |
7545 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7546 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7547 $as_echo_n "(cached) " >&6
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7560 # Make sure it works both with $CC and with simple cc.
7561 # We do the test twice because some compilers refuse to overwrite an
7562 # existing .o file with -o, though they will create one.
7563 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7565 if { { case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7570 $as_echo "$ac_try_echo"; } >&5
7571 (eval "$ac_try") 2>&5
7573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7574 test $ac_status = 0; } &&
7575 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7580 $as_echo "$ac_try_echo"; } >&5
7581 (eval "$ac_try") 2>&5
7583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; };
7586 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7587 if test "x$CC" != xcc; then
7588 # Test first that cc exists at all.
7589 if { ac_try='cc -c conftest.$ac_ext >&5'
7590 { { case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7595 $as_echo "$ac_try_echo"; } >&5
7596 (eval "$ac_try") 2>&5
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; }; then
7600 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7602 if { { case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7607 $as_echo "$ac_try_echo"; } >&5
7608 (eval "$ac_try") 2>&5
7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7611 test $ac_status = 0; } &&
7612 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7617 $as_echo "$ac_try_echo"; } >&5
7618 (eval "$ac_try") 2>&5
7620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621 test $ac_status = 0; };
7626 # cc exists but doesn't like -o.
7627 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7632 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7634 rm -f core conftest*
7637 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7639 $as_echo "yes" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7644 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7648 # FIXME: we rely on the cache variable name because
7649 # there is no other way.
7651 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7652 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7653 if test "$am_t" != yes; then
7654 # Losing compiler, so override with the script.
7655 # FIXME: It is wrong to rewrite CC.
7656 # But if we don't then we get into trouble of one sort or another.
7657 # A longer-term fix would be to have automake use am__CC in this case,
7658 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7659 CC="$am_aux_dir/compile $CC"
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7664 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7665 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7668 ac_cv_cflags_warn_all="no, unknown"
7671 ac_cpp='$CPP $CPPFLAGS'
7672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7676 ac_save_CFLAGS="$CFLAGS"
7677 for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7678 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7690 if ac_fn_c_try_compile "$LINENO"; then :
7691 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 CFLAGS="$ac_save_CFLAGS"
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7705 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7706 case ".$ac_cv_cflags_warn_all" in
7711 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7712 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7713 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }
7717 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7718 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7721 test $ac_status = 0; }
7722 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7727 $ac_includes_default
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7730 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7732 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7733 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7734 $as_echo_n "(cached) " >&6
7736 cat >conftest.make <<\_ACEOF
7739 @echo '@@@%%%=$(MAKE)=@@@%%%'
7741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7742 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7744 eval ac_cv_prog_make_${ac_make}_set=yes;;
7746 eval ac_cv_prog_make_${ac_make}_set=no;;
7750 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7752 $as_echo "yes" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 SET_MAKE="MAKE=${MAKE-make}"
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7761 $as_echo_n "checking whether ln -s works... " >&6; }
7763 if test "$LN_S" = "ln -s"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7765 $as_echo "yes" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7768 $as_echo "no, using $LN_S" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7772 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7774 # Check whether --with-dmalloc was given.
7775 if test "${with_dmalloc+set}" = set; then :
7776 withval=$with_dmalloc; if test "$withval" = yes; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7778 $as_echo "yes" >&6; }
7780 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7782 LIBS="$LIBS -ldmalloc"
7783 LDFLAGS="$LDFLAGS -g"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7796 $as_echo_n "checking for __attribute__... " >&6; }
7797 if test "${ax_cv___attribute__+set}" = set; then :
7798 $as_echo_n "(cached) " >&6
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7803 static void foo(void) __attribute__ ((unused));
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 ax_cv___attribute__=yes
7820 ax_cv___attribute__=no
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7827 $as_echo "$ax_cv___attribute__" >&6; }
7828 if test "$ax_cv___attribute__" = "yes"; then
7830 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7836 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7869 if test -n "$PKG_CONFIG"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7871 $as_echo "$PKG_CONFIG" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 if test -z "$ac_cv_path_PKG_CONFIG"; then
7880 ac_pt_PKG_CONFIG=$PKG_CONFIG
7881 # Extract the first word of "pkg-config", so it can be a program name with args.
7882 set dummy pkg-config; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7886 $as_echo_n "(cached) " >&6
7888 case $ac_pt_PKG_CONFIG in
7890 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7912 if test -n "$ac_pt_PKG_CONFIG"; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7914 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917 $as_echo "no" >&6; }
7920 if test "x$ac_pt_PKG_CONFIG" = x; then
7923 case $cross_compiling:$ac_tool_warned in
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7927 ac_tool_warned=yes ;;
7929 PKG_CONFIG=$ac_pt_PKG_CONFIG
7932 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7936 if test -n "$PKG_CONFIG"; then
7937 _pkg_min_version=0.9.0
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7939 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7940 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942 $as_echo "yes" >&6; }
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7952 # Enable run-time checking.
7954 # Check whether --enable-bounds-checking was given.
7955 if test "${enable_bounds_checking+set}" = set; then :
7956 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7958 enable_bounds_checking='no'
7962 if test "$enable_bounds_checking" = yes; then
7964 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7974 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7975 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7992 if ac_fn_c_try_compile "$LINENO"; then :
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 ax_cv_c_compiler_ms=$ax_compiler_ms
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8002 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8005 native_win32_build='no'
8007 case "${host_os}" in
8010 GDI32_LIBS='-lgdi32'
8013 native_win32_build='yes'
8014 GDI32_LIBS='-lgdi32'
8017 if test "${GDI32_LIBS}x" != 'x'; then
8019 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8023 if test "${GDI32_LIBS}x" != 'x' ; then
8024 WINGDI32_DELEGATE_TRUE=
8025 WINGDI32_DELEGATE_FALSE='#'
8027 WINGDI32_DELEGATE_TRUE='#'
8028 WINGDI32_DELEGATE_FALSE=
8031 if test "${native_win32_build}" = 'yes' ; then
8032 WIN32_NATIVE_BUILD_TRUE=
8033 WIN32_NATIVE_BUILD_FALSE='#'
8035 WIN32_NATIVE_BUILD_TRUE='#'
8036 WIN32_NATIVE_BUILD_FALSE=
8039 if test "${cygwin_build}" = 'yes' ; then
8041 CYGWIN_BUILD_FALSE='#'
8043 CYGWIN_BUILD_TRUE='#'
8047 if test "x${CC}" = 'xcl.exe' ; then
8056 WinPathScript="${srcdirfull}/winpath.sh"
8060 # Compiler flags tweaks
8062 if test "${GCC}" != "yes"; then
8065 # aCC: HP ANSI C++ B3910B A.03.34
8066 CFLAGS="${CFLAGS} -Wp,-H30000"
8067 if test -n "${CXXFLAGS}"; then
8070 CXXFLAGS="${CXXFLAGS} -AA"
8074 # Compaq alphaev68-dec-osf5.1 compiler
8075 if test -n "${CXXFLAGS}"; then
8076 CXXFLAGS='-std strict_ansi -noimplicit_include'
8078 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8083 # Check for lazy-loading.
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8085 $as_echo_n "checking for linker lazyload option... " >&6; }
8086 if test "${im_cv_ld_lazyload+set}" = set; then :
8087 $as_echo_n "(cached) " >&6
8090 im_cv_ld_lazyload='none'
8092 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8093 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8094 im_cv_ld_lazyload='-Wl,-zlazyload'
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8101 $as_echo "$im_cv_ld_lazyload" >&6; }
8102 if test "${im_cv_ld_lazyload}" != 'none' ; then
8103 if test -z "${LDFLAGS}" ; then
8104 LDFLAGS="${im_cv_ld_lazyload}"
8106 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8111 *darwin* | *-macos10*)
8112 # Check whether --enable-osx-universal-binary was given.
8113 if test "${enable_osx_universal_binary+set}" = set; then :
8114 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8116 build_osxuniversal=no
8120 if test "${build_osxuniversal}" != no ; then
8121 if test "$enable_dependency_tracking" != no ; then
8122 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
8123 Please re-run configure with these options:
8124 --disable-dependency-tracking --enable-osx-universal-binary
8127 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8128 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8129 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8134 # Enable support for threads
8136 # Check whether --with-threads was given.
8137 if test "${with_threads+set}" = set; then :
8138 withval=$with_threads; with_threads=$withval
8145 if test "$with_threads" != 'no'; then
8150 ac_cpp='$CPP $CPPFLAGS'
8151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157 # We used to check for pthread.h first, but this fails if pthread.h
8158 # requires special compiler flags (e.g. on True64 or Sequent).
8159 # It gets checked for in the link test anyway.
8161 # First of all, check if the user has set any of the PTHREAD_LIBS,
8162 # etcetera environment variables, and if threads linking works using
8164 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8165 save_CFLAGS="$CFLAGS"
8166 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8168 LIBS="$PTHREAD_LIBS $LIBS"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8170 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8174 /* Override any GCC internal prototype to avoid an error.
8175 Use char because int might match the return type of a GCC
8176 builtin and then its argument prototype would still apply. */
8180 char pthread_join ();
8184 return pthread_join ();
8189 if ac_fn_c_try_link "$LINENO"; then :
8192 rm -f core conftest.err conftest.$ac_objext \
8193 conftest$ac_exeext conftest.$ac_ext
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8195 $as_echo "$ax_pthread_ok" >&6; }
8196 if test x"$ax_pthread_ok" = xno; then
8201 CFLAGS="$save_CFLAGS"
8204 # We must check for the threads library under a number of different
8205 # names; the ordering is very important because some systems
8206 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8207 # libraries is broken (non-POSIX).
8209 # Create a list of thread flags to try. Items starting with a "-" are
8210 # C compiler flags, and other items are library names, except for "none"
8211 # which indicates that we try without any flags at all, and "pthread-config"
8212 # which is a program returning the flags for the Pth emulation library.
8214 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8216 # The ordering *is* (sometimes) important. Some notes on the
8217 # individual items follow:
8219 # pthreads: AIX (must check this before -lpthread)
8220 # none: in case threads are in libc; should be tried before -Kthread and
8221 # other compiler flags to prevent continual compiler warnings
8222 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8223 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8224 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8225 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8226 # -pthreads: Solaris/gcc
8227 # -mthreads: Mingw32/gcc, Lynx/gcc
8228 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8229 # doesn't hurt to check since this sometimes defines pthreads too;
8230 # also defines -D_REENTRANT)
8231 # ... -mt is also the pthreads flag for HP/aCC
8232 # pthread: Linux, etcetera
8233 # --thread-safe: KAI C++
8234 # pthread-config: use pthread-config program (for GNU Pth library)
8236 case "${host_cpu}-${host_os}" in
8239 # On Solaris (at least, for some versions), libc contains stubbed
8240 # (non-functional) versions of the pthreads routines, so link-based
8241 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8242 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8243 # a function called by this macro, so we could check for that, but
8244 # who knows whether they'll stub that too in a future libc.) So,
8245 # we'll just look for -pthreads and -lpthread first:
8247 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8251 acx_pthread_flags="-pthread $acx_pthread_flags"
8255 if test x"$ax_pthread_ok" = xno; then
8256 for flag in $ax_pthread_flags; do
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8261 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8266 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8267 PTHREAD_CFLAGS="$flag"
8271 # Extract the first word of "pthread-config", so it can be a program name with args.
8272 set dummy pthread-config; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$ax_pthread_config"; then
8279 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8288 ac_cv_prog_ax_pthread_config="yes"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8299 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8300 if test -n "$ax_pthread_config"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8302 $as_echo "$ax_pthread_config" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8309 if test x"$ax_pthread_config" = xno; then continue; fi
8310 PTHREAD_CFLAGS="`pthread-config --cflags`"
8311 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8316 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8317 PTHREAD_LIBS="-l$flag"
8322 save_CFLAGS="$CFLAGS"
8323 LIBS="$PTHREAD_LIBS $LIBS"
8324 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8326 # Check for various functions. We must include pthread.h,
8327 # since some functions may be macros. (On the Sequent, we
8328 # need a special flag -Kthread to make this header compile.)
8329 # We check for pthread_join because it is in -lpthread on IRIX
8330 # while pthread_create is in libc. We check for pthread_attr_init
8331 # due to DEC craziness with -lpthreads. We check for
8332 # pthread_cleanup_push because it is one of the few pthread
8333 # functions on Solaris that doesn't have a non-functional libc stub.
8334 # We try pthread_create on general principles.
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 #include <pthread.h>
8338 static void routine(void* a) {a=0;}
8339 static void* start_routine(void* a) {return a;}
8343 pthread_t th; pthread_attr_t attr;
8344 pthread_join(th, 0);
8345 pthread_attr_init(&attr);
8346 pthread_cleanup_push(routine, 0);
8347 pthread_create(&th,0,start_routine,0);
8348 pthread_cleanup_pop(0);
8353 if ac_fn_c_try_link "$LINENO"; then :
8356 rm -f core conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8360 CFLAGS="$save_CFLAGS"
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8363 $as_echo "$ax_pthread_ok" >&6; }
8364 if test "x$ax_pthread_ok" = xyes; then
8373 # Various other checks:
8374 if test "x$ax_pthread_ok" = xyes; then
8376 LIBS="$PTHREAD_LIBS $LIBS"
8377 save_CFLAGS="$CFLAGS"
8378 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8380 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8382 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8384 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8387 #include <pthread.h>
8391 int attr=$attr; return attr;
8396 if ac_fn_c_try_link "$LINENO"; then :
8397 attr_name=$attr; break
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8403 $as_echo "$attr_name" >&6; }
8404 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8406 cat >>confdefs.h <<_ACEOF
8407 #define PTHREAD_CREATE_JOINABLE $attr_name
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8413 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8415 case "${host_cpu}-${host_os}" in
8416 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8417 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8420 $as_echo "${flag}" >&6; }
8421 if test "x$flag" != xno; then
8422 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8426 CFLAGS="$save_CFLAGS"
8428 # More AIX lossage: must compile with xlc_r or cc_r
8429 if test x"$GCC" != xyes; then
8430 for ac_prog in xlc_r cc_r
8432 # Extract the first word of "$ac_prog", so it can be a program name with args.
8433 set dummy $ac_prog; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8437 $as_echo_n "(cached) " >&6
8439 if test -n "$PTHREAD_CC"; then
8440 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8449 ac_cv_prog_PTHREAD_CC="$ac_prog"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8459 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8460 if test -n "$PTHREAD_CC"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8462 $as_echo "$PTHREAD_CC" >&6; }
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8469 test -n "$PTHREAD_CC" && break
8471 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8484 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8485 if test x"$ax_pthread_ok" = xyes; then
8487 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8495 ac_cpp='$CPP $CPPFLAGS'
8496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8501 if test "$ax_pthread_ok" = yes; then
8503 DEF_THREAD="$PTHREAD_CFLAGS"
8504 CFLAGS="$CFLAGS $DEF_THREAD"
8505 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8506 if test "$CC" != "$PTHREAD_CC"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8508 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8514 # Enable support for OpenMP
8515 if test "$have_threads" != 'yes'; then
8516 ac_cv_prog_c_openmp=unsupported
8520 # Check whether --enable-openmp was given.
8521 if test "${enable_openmp+set}" = set; then :
8522 enableval=$enable_openmp;
8525 if test "$enable_openmp" != no; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8527 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8528 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8529 $as_echo_n "(cached) " >&6
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8538 int main () { return omp_get_num_threads (); }
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 ac_cv_prog_c_openmp='none needed'
8544 ac_cv_prog_c_openmp='unsupported'
8545 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8546 ac_save_CFLAGS=$CFLAGS
8547 CFLAGS="$CFLAGS $ac_option"
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8555 int main () { return omp_get_num_threads (); }
8558 if ac_fn_c_try_link "$LINENO"; then :
8559 ac_cv_prog_c_openmp=$ac_option
8561 rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 CFLAGS=$ac_save_CFLAGS
8564 if test "$ac_cv_prog_c_openmp" != unsupported; then
8569 rm -f core conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8573 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8574 case $ac_cv_prog_c_openmp in #(
8575 "none needed" | unsupported)
8578 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8583 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8584 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8587 # Enable support for OpenCL
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8599 # We used to check for pthread.h first, but this fails if pthread.h
8600 # requires special compiler flags (e.g. on True64 or Sequent).
8601 # It gets checked for in the link test anyway.
8603 # First of all, check if the user has set any of the PTHREAD_LIBS,
8604 # etcetera environment variables, and if threads linking works using
8606 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8607 save_CFLAGS="$CFLAGS"
8608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8610 LIBS="$PTHREAD_LIBS $LIBS"
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8612 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8622 char pthread_join ();
8626 return pthread_join ();
8631 if ac_fn_c_try_link "$LINENO"; then :
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8637 $as_echo "$ax_pthread_ok" >&6; }
8638 if test x"$ax_pthread_ok" = xno; then
8643 CFLAGS="$save_CFLAGS"
8646 # We must check for the threads library under a number of different
8647 # names; the ordering is very important because some systems
8648 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8649 # libraries is broken (non-POSIX).
8651 # Create a list of thread flags to try. Items starting with a "-" are
8652 # C compiler flags, and other items are library names, except for "none"
8653 # which indicates that we try without any flags at all, and "pthread-config"
8654 # which is a program returning the flags for the Pth emulation library.
8656 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8658 # The ordering *is* (sometimes) important. Some notes on the
8659 # individual items follow:
8661 # pthreads: AIX (must check this before -lpthread)
8662 # none: in case threads are in libc; should be tried before -Kthread and
8663 # other compiler flags to prevent continual compiler warnings
8664 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8665 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8666 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8667 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8668 # -pthreads: Solaris/gcc
8669 # -mthreads: Mingw32/gcc, Lynx/gcc
8670 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8671 # doesn't hurt to check since this sometimes defines pthreads too;
8672 # also defines -D_REENTRANT)
8673 # ... -mt is also the pthreads flag for HP/aCC
8674 # pthread: Linux, etcetera
8675 # --thread-safe: KAI C++
8676 # pthread-config: use pthread-config program (for GNU Pth library)
8678 case "${host_cpu}-${host_os}" in
8681 # On Solaris (at least, for some versions), libc contains stubbed
8682 # (non-functional) versions of the pthreads routines, so link-based
8683 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8684 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8685 # a function called by this macro, so we could check for that, but
8686 # who knows whether they'll stub that too in a future libc.) So,
8687 # we'll just look for -pthreads and -lpthread first:
8689 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8693 acx_pthread_flags="-pthread $acx_pthread_flags"
8697 if test x"$ax_pthread_ok" = xno; then
8698 for flag in $ax_pthread_flags; do
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8703 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8708 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8709 PTHREAD_CFLAGS="$flag"
8713 # Extract the first word of "pthread-config", so it can be a program name with args.
8714 set dummy pthread-config; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$ax_pthread_config"; then
8721 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8730 ac_cv_prog_ax_pthread_config="yes"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8738 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8741 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8742 if test -n "$ax_pthread_config"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8744 $as_echo "$ax_pthread_config" >&6; }
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8751 if test x"$ax_pthread_config" = xno; then continue; fi
8752 PTHREAD_CFLAGS="`pthread-config --cflags`"
8753 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8758 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8759 PTHREAD_LIBS="-l$flag"
8764 save_CFLAGS="$CFLAGS"
8765 LIBS="$PTHREAD_LIBS $LIBS"
8766 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8768 # Check for various functions. We must include pthread.h,
8769 # since some functions may be macros. (On the Sequent, we
8770 # need a special flag -Kthread to make this header compile.)
8771 # We check for pthread_join because it is in -lpthread on IRIX
8772 # while pthread_create is in libc. We check for pthread_attr_init
8773 # due to DEC craziness with -lpthreads. We check for
8774 # pthread_cleanup_push because it is one of the few pthread
8775 # functions on Solaris that doesn't have a non-functional libc stub.
8776 # We try pthread_create on general principles.
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 #include <pthread.h>
8780 static void routine(void* a) {a=0;}
8781 static void* start_routine(void* a) {return a;}
8785 pthread_t th; pthread_attr_t attr;
8786 pthread_join(th, 0);
8787 pthread_attr_init(&attr);
8788 pthread_cleanup_push(routine, 0);
8789 pthread_create(&th,0,start_routine,0);
8790 pthread_cleanup_pop(0);
8795 if ac_fn_c_try_link "$LINENO"; then :
8798 rm -f core conftest.err conftest.$ac_objext \
8799 conftest$ac_exeext conftest.$ac_ext
8802 CFLAGS="$save_CFLAGS"
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8805 $as_echo "$ax_pthread_ok" >&6; }
8806 if test "x$ax_pthread_ok" = xyes; then
8815 # Various other checks:
8816 if test "x$ax_pthread_ok" = xyes; then
8818 LIBS="$PTHREAD_LIBS $LIBS"
8819 save_CFLAGS="$CFLAGS"
8820 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8822 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8824 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8826 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 #include <pthread.h>
8833 int attr=$attr; return attr;
8838 if ac_fn_c_try_link "$LINENO"; then :
8839 attr_name=$attr; break
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8845 $as_echo "$attr_name" >&6; }
8846 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define PTHREAD_CREATE_JOINABLE $attr_name
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8855 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8857 case "${host_cpu}-${host_os}" in
8858 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8859 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8862 $as_echo "${flag}" >&6; }
8863 if test "x$flag" != xno; then
8864 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8868 CFLAGS="$save_CFLAGS"
8870 # More AIX lossage: must compile with xlc_r or cc_r
8871 if test x"$GCC" != xyes; then
8872 for ac_prog in xlc_r cc_r
8874 # Extract the first word of "$ac_prog", so it can be a program name with args.
8875 set dummy $ac_prog; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8881 if test -n "$PTHREAD_CC"; then
8882 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8891 ac_cv_prog_PTHREAD_CC="$ac_prog"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8902 if test -n "$PTHREAD_CC"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8904 $as_echo "$PTHREAD_CC" >&6; }
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8911 test -n "$PTHREAD_CC" && break
8913 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8926 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8927 if test x"$ax_pthread_ok" = xyes; then
8929 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8944 # Check whether --enable-opencl was given.
8945 if test "${enable_opencl+set}" = set; then :
8946 enableval=$enable_opencl; disable_opencl=$enableval
8948 disable_opencl='yes'
8952 if test "$disable_opencl" = 'yes'; then
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8960 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8961 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8978 if ac_fn_c_try_compile "$LINENO"; then :
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 ax_cv_c_compiler_ms=$ax_compiler_ms
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8988 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8989 if test X$ax_compiler_ms = Xno; then :
8990 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8993 ax_save_CPPFLAGS=$CPPFLAGS
8994 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8995 for ac_header in CL/cl.h OpenCL/cl.h
8997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8999 eval as_val=\$$as_ac_Header
9000 if test "x$as_val" = x""yes; then :
9001 cat >>confdefs.h <<_ACEOF
9002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009 CPPFLAGS=$ax_save_CPPFLAGS
9011 for ac_header in windows.h
9013 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9014 if test "x$ac_cv_header_windows_h" = x""yes; then :
9015 cat >>confdefs.h <<_ACEOF
9016 #define HAVE_WINDOWS_H 1
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9027 $as_echo_n "checking for OpenCL library... " >&6; }
9028 if test "${ax_cv_check_cl_libcl+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9031 ax_cv_check_cl_libcl=no
9033 x86_64) ax_check_cl_libdir=lib64 ;;
9034 *) ax_check_cl_libdir=lib ;;
9036 ax_save_CPPFLAGS=$CPPFLAGS
9037 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9040 ax_check_libs="-lOpenCL -lCL -lclparser"
9041 for ax_lib in $ax_check_libs; do
9042 if test X$ax_compiler_ms = Xyes; then :
9043 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9047 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9051 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9052 # include <windows.h>
9054 # ifdef HAVE_CL_CL_H
9056 # elif defined(HAVE_OPENCL_CL_H)
9057 # include <OpenCL/cl.h>
9064 clCreateContextFromType(0,0,0,0,0)
9069 if ac_fn_c_try_link "$LINENO"; then :
9070 ax_cv_check_cl_libcl=$ax_try_lib; break
9072 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"
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9076 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9077 # include <windows.h>
9079 # ifdef HAVE_CL_CL_H
9081 # elif defined(HAVE_OPENCL_CL_H)
9082 # include <OpenCL/cl.h>
9089 clCreateContextFromType(0,0,0,0,0)
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9097 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9101 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9102 # include <windows.h>
9104 # ifdef HAVE_CL_CL_H
9106 # elif defined(HAVE_OPENCL_CL_H)
9107 # include <OpenCL/cl.h>
9114 clCreateContextFromType(0,0,0,0,0)
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9125 rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9132 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9133 LIBS='-framework OpenCL'
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9137 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9138 # include <windows.h>
9140 # ifdef HAVE_CL_CL_H
9142 # elif defined(HAVE_OPENCL_CL_H)
9143 # include <OpenCL/cl.h>
9150 clCreateContextFromType(0,0,0,0,0)
9155 if ac_fn_c_try_link "$LINENO"; then :
9156 ax_cv_check_cl_libcl=$LIBS
9158 rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9163 CPPFLAGS=$ax_save_CPPFLAGS
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9166 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9168 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9169 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9171 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9172 $as_echo "#define _OPENCL 1" >>confdefs.h
9176 ac_cpp='$CPP $CPPFLAGS'
9177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9186 CFLAGS="$CL_CFLAGS $CFLAGS"
9187 LIBS="$CL_LIBS $LIBS"
9192 # Check for large file support
9195 # Check whether --enable-largefile was given.
9196 if test "${enable_largefile+set}" = set; then :
9197 enableval=$enable_largefile;
9200 if test "$enable_largefile" != no; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9203 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9204 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9205 $as_echo_n "(cached) " >&6
9207 ac_cv_sys_largefile_CC=no
9208 if test "$GCC" != yes; then
9211 # IRIX 6.2 and later do not support large files by default,
9212 # so use the C compiler's -n32 option if that helps.
9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9214 /* end confdefs.h. */
9215 #include <sys/types.h>
9216 /* Check that off_t can represent 2**63 - 1 correctly.
9217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218 since some C++ compilers masquerading as C compilers
9219 incorrectly reject 9223372036854775807. */
9220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222 && LARGE_OFF_T % 2147483647 == 1)
9232 if ac_fn_c_try_compile "$LINENO"; then :
9235 rm -f core conftest.err conftest.$ac_objext
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 ac_cv_sys_largefile_CC=' -n32'; break
9240 rm -f core conftest.err conftest.$ac_objext
9244 rm -f conftest.$ac_ext
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9248 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9249 if test "$ac_cv_sys_largefile_CC" != no; then
9250 CC=$CC$ac_cv_sys_largefile_CC
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9254 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9255 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261 #include <sys/types.h>
9262 /* Check that off_t can represent 2**63 - 1 correctly.
9263 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9264 since some C++ compilers masquerading as C compilers
9265 incorrectly reject 9223372036854775807. */
9266 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9267 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9268 && LARGE_OFF_T % 2147483647 == 1)
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 ac_cv_sys_file_offset_bits=no; break
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 #define _FILE_OFFSET_BITS 64
9285 #include <sys/types.h>
9286 /* Check that off_t can represent 2**63 - 1 correctly.
9287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9288 since some C++ compilers masquerading as C compilers
9289 incorrectly reject 9223372036854775807. */
9290 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9292 && LARGE_OFF_T % 2147483647 == 1)
9302 if ac_fn_c_try_compile "$LINENO"; then :
9303 ac_cv_sys_file_offset_bits=64; break
9305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9306 ac_cv_sys_file_offset_bits=unknown
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9311 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9312 case $ac_cv_sys_file_offset_bits in #(
9315 cat >>confdefs.h <<_ACEOF
9316 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9321 if test $ac_cv_sys_file_offset_bits = unknown; then
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9323 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9324 if test "${ac_cv_sys_large_files+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 #include <sys/types.h>
9331 /* Check that off_t can represent 2**63 - 1 correctly.
9332 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9333 since some C++ compilers masquerading as C compilers
9334 incorrectly reject 9223372036854775807. */
9335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9337 && LARGE_OFF_T % 2147483647 == 1)
9347 if ac_fn_c_try_compile "$LINENO"; then :
9348 ac_cv_sys_large_files=no; break
9350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9353 #define _LARGE_FILES 1
9354 #include <sys/types.h>
9355 /* Check that off_t can represent 2**63 - 1 correctly.
9356 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9357 since some C++ compilers masquerading as C compilers
9358 incorrectly reject 9223372036854775807. */
9359 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9360 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9361 && LARGE_OFF_T % 2147483647 == 1)
9371 if ac_fn_c_try_compile "$LINENO"; then :
9372 ac_cv_sys_large_files=1; break
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375 ac_cv_sys_large_files=unknown
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9380 $as_echo "$ac_cv_sys_large_files" >&6; }
9381 case $ac_cv_sys_large_files in #(
9384 cat >>confdefs.h <<_ACEOF
9385 #define _LARGE_FILES $ac_cv_sys_large_files
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9394 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9395 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9401 #include <sys/types.h> /* for off_t */
9406 int (*fp) (FILE *, off_t, int) = fseeko;
9407 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9412 if ac_fn_c_try_link "$LINENO"; then :
9413 ac_cv_sys_largefile_source=no; break
9415 rm -f core conftest.err conftest.$ac_objext \
9416 conftest$ac_exeext conftest.$ac_ext
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #define _LARGEFILE_SOURCE 1
9420 #include <sys/types.h> /* for off_t */
9425 int (*fp) (FILE *, off_t, int) = fseeko;
9426 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 ac_cv_sys_largefile_source=1; break
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 ac_cv_sys_largefile_source=unknown
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9441 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9442 case $ac_cv_sys_largefile_source in #(
9445 cat >>confdefs.h <<_ACEOF
9446 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9452 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9453 # in glibc 2.1.3, but that breaks too many other things.
9454 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9455 if test $ac_cv_sys_largefile_source != unknown; then
9457 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9462 if test "$enable_largefile" != no; then
9463 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9464 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9467 $as_echo_n "checking for native large file support... " >&6; }
9468 if test "$cross_compiling" = yes; then :
9469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9471 as_fn_error "cannot run test program while cross compiling
9472 See \`config.log' for more details." "$LINENO" 5; }
9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475 /* end confdefs.h. */
9478 exit(!(sizeof(off_t) == 8));
9481 if ac_fn_c_try_run "$LINENO"; then :
9482 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9485 $as_echo "yes" >&6; }
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491 conftest.$ac_objext conftest.beam conftest.$ac_ext
9495 if test "$ac_cv_sys_large_files" != 'no'; then
9496 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9498 if test "$ac_cv_sys_largefile_source" != 'no'; then
9499 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9505 # Configure libtool & libltdl
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9515 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9520 macro_version='2.2.6b'
9521 macro_revision='1.3017'
9535 ltmain="$ac_aux_dir/ltmain.sh"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9538 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9539 if test "${lt_cv_path_NM+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9542 if test -n "$NM"; then
9543 # Let the user override the test.
9546 lt_nm_to_check="${ac_tool_prefix}nm"
9547 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9548 lt_nm_to_check="$lt_nm_to_check nm"
9550 for lt_tmp_nm in $lt_nm_to_check; do
9551 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9552 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9554 test -z "$ac_dir" && ac_dir=.
9555 tmp_nm="$ac_dir/$lt_tmp_nm"
9556 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9557 # Check to see if the nm accepts a BSD-compat flag.
9558 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9559 # nm: unknown option "B" ignored
9560 # Tru64's nm complains that /dev/null is an invalid object file
9561 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9562 */dev/null* | *'Invalid file or object type'*)
9563 lt_cv_path_NM="$tmp_nm -B"
9567 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9569 lt_cv_path_NM="$tmp_nm -p"
9573 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9574 continue # so that we can try to find one that supports BSD flags
9583 : ${lt_cv_path_NM=no}
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9587 $as_echo "$lt_cv_path_NM" >&6; }
9588 if test "$lt_cv_path_NM" != "no"; then
9591 # Didn't find any BSD compatible name lister, look for dumpbin.
9592 if test -n "$ac_tool_prefix"; then
9593 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598 $as_echo_n "checking for $ac_word... " >&6; }
9599 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9602 if test -n "$DUMPBIN"; then
9603 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9622 DUMPBIN=$ac_cv_prog_DUMPBIN
9623 if test -n "$DUMPBIN"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9625 $as_echo "$DUMPBIN" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9632 test -n "$DUMPBIN" && break
9635 if test -z "$DUMPBIN"; then
9636 ac_ct_DUMPBIN=$DUMPBIN
9637 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9639 # Extract the first word of "$ac_prog", so it can be a program name with args.
9640 set dummy $ac_prog; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9646 if test -n "$ac_ct_DUMPBIN"; then
9647 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9667 if test -n "$ac_ct_DUMPBIN"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9669 $as_echo "$ac_ct_DUMPBIN" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9676 test -n "$ac_ct_DUMPBIN" && break
9679 if test "x$ac_ct_DUMPBIN" = x; then
9682 case $cross_compiling:$ac_tool_warned in
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9686 ac_tool_warned=yes ;;
9688 DUMPBIN=$ac_ct_DUMPBIN
9693 if test "$DUMPBIN" != ":"; then
9697 test -z "$NM" && NM=nm
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9705 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9706 if test "${lt_cv_nm_interface+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9709 lt_cv_nm_interface="BSD nm"
9710 echo "int some_variable = 0;" > conftest.$ac_ext
9711 (eval echo "\"\$as_me:9711: $ac_compile\"" >&5)
9712 (eval "$ac_compile" 2>conftest.err)
9713 cat conftest.err >&5
9714 (eval echo "\"\$as_me:9714: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9715 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716 cat conftest.err >&5
9717 (eval echo "\"\$as_me:9717: output\"" >&5)
9718 cat conftest.out >&5
9719 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720 lt_cv_nm_interface="MS dumpbin"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9725 $as_echo "$lt_cv_nm_interface" >&6; }
9727 # find the maximum length of command line arguments
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9729 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9730 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9731 $as_echo_n "(cached) " >&6
9738 # On DJGPP, this test can blow up pretty badly due to problems in libc
9739 # (any single argument exceeding 2000 bytes causes a buffer overrun
9740 # during glob expansion). Even if it were fixed, the result of this
9741 # check would be larger than it should be.
9742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9746 # Under GNU Hurd, this test is not required because there is
9747 # no limit to the length of command line arguments.
9748 # Libtool will interpret -1 as no limit whatsoever
9749 lt_cv_sys_max_cmd_len=-1;
9752 cygwin* | mingw* | cegcc*)
9753 # On Win9x/ME, this test blows up -- it succeeds, but takes
9754 # about 5 minutes as the teststring grows exponentially.
9755 # Worse, since 9x/ME are not pre-emptively multitasking,
9756 # you end up with a "frozen" computer, even though with patience
9757 # the test eventually succeeds (with a max line length of 256k).
9758 # Instead, let's just punt: use the minimum linelength reported by
9759 # all of the supported platforms: 8192 (on NT/2K/XP).
9760 lt_cv_sys_max_cmd_len=8192;
9764 # On AmigaOS with pdksh, this test takes hours, literally.
9765 # So we just punt and use a minimum line length of 8192.
9766 lt_cv_sys_max_cmd_len=8192;
9769 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9770 # This has been around since 386BSD, at least. Likely further.
9771 if test -x /sbin/sysctl; then
9772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9773 elif test -x /usr/sbin/sysctl; then
9774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9776 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9778 # And add a safety zone
9779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9784 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9785 lt_cv_sys_max_cmd_len=196608
9789 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9790 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9791 # nice to cause kernel panics so lets avoid the loop below.
9792 # First set a reasonable default.
9793 lt_cv_sys_max_cmd_len=16384
9795 if test -x /sbin/sysconfig; then
9796 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9797 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9802 lt_cv_sys_max_cmd_len=102400
9804 sysv5* | sco5v6* | sysv4.2uw2*)
9805 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9806 if test -n "$kargmax"; then
9807 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9809 lt_cv_sys_max_cmd_len=32768
9813 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9814 if test -n "$lt_cv_sys_max_cmd_len"; then
9815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9818 # Make teststring a little bigger before we do anything with it.
9819 # a 1K string should be a reasonable start.
9820 for i in 1 2 3 4 5 6 7 8 ; do
9821 teststring=$teststring$teststring
9823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9824 # If test is not a shell built-in, we'll probably end up computing a
9825 # maximum length that is only half of the actual maximum length, but
9827 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9828 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9829 test $i != 17 # 1/2 MB should be enough
9832 teststring=$teststring$teststring
9834 # Only check the string length outside the loop.
9835 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9837 # Add a significant safety factor because C++ compilers can tack on
9838 # massive amounts of additional arguments before passing them to the
9839 # linker. It appears as though 1/2 is a usable value.
9840 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9847 if test -n $lt_cv_sys_max_cmd_len ; then
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9849 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9852 $as_echo "none" >&6; }
9854 max_cmd_len=$lt_cv_sys_max_cmd_len
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9866 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9867 # Try some XSI features
9870 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9872 && eval 'test $(( 1 + 1 )) -eq 2 \
9873 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9876 $as_echo "$xsi_shell" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9880 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9882 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9884 && lt_shell_append=yes
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9886 $as_echo "$lt_shell_append" >&6; }
9889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9899 # test EBCDIC or ASCII
9900 case `echo X|tr X '\101'` in
9901 A) # ASCII based system
9902 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9903 lt_SP2NL='tr \040 \012'
9904 lt_NL2SP='tr \015\012 \040\040'
9906 *) # EBCDIC based system
9907 lt_SP2NL='tr \100 \n'
9908 lt_NL2SP='tr \r\n \100\100'
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9921 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9922 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9925 lt_cv_ld_reload_flag='-r'
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9928 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9929 reload_flag=$lt_cv_ld_reload_flag
9930 case $reload_flag in
9932 *) reload_flag=" $reload_flag" ;;
9934 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9937 if test "$GCC" = yes; then
9938 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9940 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9953 if test -n "$ac_tool_prefix"; then
9954 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9955 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 $as_echo_n "checking for $ac_word... " >&6; }
9958 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9959 $as_echo_n "(cached) " >&6
9961 if test -n "$OBJDUMP"; then
9962 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968 test -z "$as_dir" && as_dir=.
9969 for ac_exec_ext in '' $ac_executable_extensions; do
9970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9971 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 OBJDUMP=$ac_cv_prog_OBJDUMP
9982 if test -n "$OBJDUMP"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9984 $as_echo "$OBJDUMP" >&6; }
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9992 if test -z "$ac_cv_prog_OBJDUMP"; then
9993 ac_ct_OBJDUMP=$OBJDUMP
9994 # Extract the first word of "objdump", so it can be a program name with args.
9995 set dummy objdump; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10001 if test -n "$ac_ct_OBJDUMP"; then
10002 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10022 if test -n "$ac_ct_OBJDUMP"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10024 $as_echo "$ac_ct_OBJDUMP" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10030 if test "x$ac_ct_OBJDUMP" = x; then
10033 case $cross_compiling:$ac_tool_warned in
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10037 ac_tool_warned=yes ;;
10039 OBJDUMP=$ac_ct_OBJDUMP
10042 OBJDUMP="$ac_cv_prog_OBJDUMP"
10045 test -z "$OBJDUMP" && OBJDUMP=objdump
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10053 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10054 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10057 lt_cv_file_magic_cmd='$MAGIC_CMD'
10058 lt_cv_file_magic_test_file=
10059 lt_cv_deplibs_check_method='unknown'
10060 # Need to set the preceding variable on all platforms that support
10061 # interlibrary dependencies.
10062 # 'none' -- dependencies not supported.
10063 # `unknown' -- same as none, but documents that we really don't know.
10064 # 'pass_all' -- all dependencies passed with no checks.
10065 # 'test_compile' -- check by making test program.
10066 # 'file_magic [[regex]]' -- check by looking for files in library path
10067 # which responds to the $file_magic_cmd with a given extended regex.
10068 # If you have `file' or equivalent on your system and you're not sure
10069 # whether `pass_all' will *always* work, you probably want this one.
10073 lt_cv_deplibs_check_method=pass_all
10077 lt_cv_deplibs_check_method=pass_all
10081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10082 lt_cv_file_magic_cmd='/usr/bin/file -L'
10083 lt_cv_file_magic_test_file=/shlib/libc.so
10087 # func_win32_libid is a shell function defined in ltmain.sh
10088 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10089 lt_cv_file_magic_cmd='func_win32_libid'
10093 # Base MSYS/MinGW do not provide the 'file' command needed by
10094 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10095 # unless we find 'file', for example because we are cross-compiling.
10096 if ( file / ) >/dev/null 2>&1; then
10097 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10098 lt_cv_file_magic_cmd='func_win32_libid'
10100 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10101 lt_cv_file_magic_cmd='$OBJDUMP -f'
10106 # use the weaker test based on 'objdump'. See mingw*.
10107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10108 lt_cv_file_magic_cmd='$OBJDUMP -f'
10111 darwin* | rhapsody*)
10112 lt_cv_deplibs_check_method=pass_all
10115 freebsd* | dragonfly*)
10116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10119 # Not sure whether the presence of OpenBSD here was a mistake.
10120 # Let's accept both of them until this is cleared up.
10121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10122 lt_cv_file_magic_cmd=/usr/bin/file
10123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10127 lt_cv_deplibs_check_method=pass_all
10132 lt_cv_deplibs_check_method=pass_all
10135 hpux10.20* | hpux11*)
10136 lt_cv_file_magic_cmd=/usr/bin/file
10139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10143 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]'
10144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10158 irix5* | irix6* | nonstopux*)
10160 *-32|*"-32 ") libmagic=32-bit;;
10161 *-n32|*"-n32 ") libmagic=N32;;
10162 *-64|*"-64 ") libmagic=64-bit;;
10163 *) libmagic=never-match;;
10165 lt_cv_deplibs_check_method=pass_all
10168 # This must be Linux ELF.
10169 linux* | k*bsd*-gnu)
10170 lt_cv_deplibs_check_method=pass_all
10174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10183 lt_cv_file_magic_cmd=/usr/bin/file
10184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10188 lt_cv_deplibs_check_method=pass_all
10192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10199 osf3* | osf4* | osf5*)
10200 lt_cv_deplibs_check_method=pass_all
10204 lt_cv_deplibs_check_method=pass_all
10208 lt_cv_deplibs_check_method=pass_all
10211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10212 lt_cv_deplibs_check_method=pass_all
10216 case $host_vendor in
10218 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]'
10219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10222 lt_cv_deplibs_check_method=pass_all
10225 lt_cv_file_magic_cmd='/bin/file'
10226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10229 lt_cv_file_magic_cmd='/bin/file'
10230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10231 lt_cv_file_magic_test_file=/lib/libc.so
10234 lt_cv_deplibs_check_method=pass_all
10237 lt_cv_deplibs_check_method=pass_all
10243 lt_cv_deplibs_check_method=pass_all
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10249 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10250 file_magic_cmd=$lt_cv_file_magic_cmd
10251 deplibs_check_method=$lt_cv_deplibs_check_method
10252 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10265 if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10267 set dummy ${ac_tool_prefix}ar; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if test "${ac_cv_prog_AR+set}" = set; then :
10271 $as_echo_n "(cached) " >&6
10273 if test -n "$AR"; then
10274 ac_cv_prog_AR="$AR" # Let the user override the test.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10283 ac_cv_prog_AR="${ac_tool_prefix}ar"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 if test -n "$AR"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10296 $as_echo "$AR" >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test -z "$ac_cv_prog_AR"; then
10306 # Extract the first word of "ar", so it can be a program name with args.
10307 set dummy ar; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10313 if test -n "$ac_ct_AR"; then
10314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10323 ac_cv_prog_ac_ct_AR="ar"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10334 if test -n "$ac_ct_AR"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10336 $as_echo "$ac_ct_AR" >&6; }
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10342 if test "x$ac_ct_AR" = x; then
10345 case $cross_compiling:$ac_tool_warned in
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349 ac_tool_warned=yes ;;
10354 AR="$ac_cv_prog_AR"
10357 test -z "$AR" && AR=ar
10358 test -z "$AR_FLAGS" && AR_FLAGS=cru
10370 if test -n "$ac_tool_prefix"; then
10371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10372 set dummy ${ac_tool_prefix}strip; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if test "${ac_cv_prog_STRIP+set}" = set; then :
10376 $as_echo_n "(cached) " >&6
10378 if test -n "$STRIP"; then
10379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 STRIP=$ac_cv_prog_STRIP
10399 if test -n "$STRIP"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10401 $as_echo "$STRIP" >&6; }
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10409 if test -z "$ac_cv_prog_STRIP"; then
10411 # Extract the first word of "strip", so it can be a program name with args.
10412 set dummy strip; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
10418 if test -n "$ac_ct_STRIP"; then
10419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428 ac_cv_prog_ac_ct_STRIP="strip"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10439 if test -n "$ac_ct_STRIP"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10441 $as_echo "$ac_ct_STRIP" >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10447 if test "x$ac_ct_STRIP" = x; then
10450 case $cross_compiling:$ac_tool_warned in
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454 ac_tool_warned=yes ;;
10459 STRIP="$ac_cv_prog_STRIP"
10462 test -z "$STRIP" && STRIP=:
10469 if test -n "$ac_tool_prefix"; then
10470 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10471 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10473 $as_echo_n "checking for $ac_word... " >&6; }
10474 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10475 $as_echo_n "(cached) " >&6
10477 if test -n "$RANLIB"; then
10478 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 RANLIB=$ac_cv_prog_RANLIB
10498 if test -n "$RANLIB"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10500 $as_echo "$RANLIB" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10508 if test -z "$ac_cv_prog_RANLIB"; then
10509 ac_ct_RANLIB=$RANLIB
10510 # Extract the first word of "ranlib", so it can be a program name with args.
10511 set dummy ranlib; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10515 $as_echo_n "(cached) " >&6
10517 if test -n "$ac_ct_RANLIB"; then
10518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10527 ac_cv_prog_ac_ct_RANLIB="ranlib"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10538 if test -n "$ac_ct_RANLIB"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10540 $as_echo "$ac_ct_RANLIB" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10546 if test "x$ac_ct_RANLIB" = x; then
10549 case $cross_compiling:$ac_tool_warned in
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10553 ac_tool_warned=yes ;;
10555 RANLIB=$ac_ct_RANLIB
10558 RANLIB="$ac_cv_prog_RANLIB"
10561 test -z "$RANLIB" && RANLIB=:
10568 # Determine commands to create old-style static archives.
10569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10570 old_postinstall_cmds='chmod 644 $oldlib'
10571 old_postuninstall_cmds=
10573 if test -n "$RANLIB"; then
10576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10579 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10582 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10618 # If no C compiler was specified, use CC.
10621 # If no C compiler flags were specified, use CFLAGS.
10622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10624 # Allow CC to be a program name with arguments.
10628 # Check for command to grab the raw symbol name followed by C symbol from nm.
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10630 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10635 # These are sane defaults that work on at least a few old systems.
10636 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10638 # Character class describing NM global symbol codes.
10639 symcode='[BCDEGRST]'
10641 # Regexp to match symbols that can be accessed directly from C.
10642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10644 # Define system-specific variables.
10649 cygwin* | mingw* | pw32* | cegcc*)
10650 symcode='[ABCDGISTW]'
10653 if test "$host_cpu" = ia64; then
10654 symcode='[ABCDEGRST]'
10657 irix* | nonstopux*)
10658 symcode='[BCDEGRST]'
10661 symcode='[BCDEGQRST]'
10672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10680 # If we're using GNU nm, then use its standard symbol codes.
10681 case `$NM -V 2>&1` in
10682 *GNU* | *'with BFD'*)
10683 symcode='[ABCDGIRSTW]' ;;
10686 # Transform an extracted symbol line into a proper C declaration.
10687 # Some systems (esp. on ia64) link data and code symbols differently,
10688 # so use this general approach.
10689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10691 # Transform an extracted symbol line into symbol name and symbol address
10692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10693 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'"
10695 # Handle CRLF in mingw tool chain
10699 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10703 # Try without a prefix underscore, then with it.
10704 for ac_symprfx in "" "_"; do
10706 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10707 symxfrm="\\1 $ac_symprfx\\2 \\2"
10709 # Write the raw and C identifiers.
10710 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10711 # Fake it for dumpbin and say T for any non-static function
10712 # and D for any global variable.
10713 # Also find C++ and __fastcall symbols from MSVC++,
10714 # which start with @ or ?.
10715 lt_cv_sys_global_symbol_pipe="$AWK '"\
10716 " {last_section=section; section=\$ 3};"\
10717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10718 " \$ 0!~/External *\|/{next};"\
10719 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10720 " {if(hide[section]) next};"\
10721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10725 " ' prfx=^$ac_symprfx"
10727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10730 # Check to see that the pipe works correctly.
10734 cat > conftest.$ac_ext <<_LT_EOF
10739 void nm_test_func(void);
10740 void nm_test_func(void){}
10744 int main(){nm_test_var='a';nm_test_func();return(0);}
10747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10748 (eval $ac_compile) 2>&5
10750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10751 test $ac_status = 0; }; then
10752 # Now try to grab the symbols.
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10755 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } && test -s "$nlist"; then
10759 # Try sorting and uniquifying the output.
10760 if sort "$nlist" | uniq > "$nlist"T; then
10761 mv -f "$nlist"T "$nlist"
10766 # Make sure that we snagged all the symbols we need.
10767 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10768 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10769 cat <<_LT_EOF > conftest.$ac_ext
10775 # Now generate the symbol file.
10776 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10778 cat <<_LT_EOF >> conftest.$ac_ext
10780 /* The mapping between symbol names and symbols. */
10785 lt__PROGRAM__LTX_preloaded_symbols[] =
10787 { "@PROGRAM@", (void *) 0 },
10789 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10790 cat <<\_LT_EOF >> conftest.$ac_ext
10794 /* This works around a problem in FreeBSD linker */
10795 #ifdef FREEBSD_WORKAROUND
10796 static const void *lt_preloaded_setup() {
10797 return lt__PROGRAM__LTX_preloaded_symbols;
10805 # Now try linking the two files.
10806 mv conftest.$ac_objext conftstm.$ac_objext
10807 lt_save_LIBS="$LIBS"
10808 lt_save_CFLAGS="$CFLAGS"
10809 LIBS="conftstm.$ac_objext"
10810 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10812 (eval $ac_link) 2>&5
10814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10815 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10818 LIBS="$lt_save_LIBS"
10819 CFLAGS="$lt_save_CFLAGS"
10821 echo "cannot find nm_test_func in $nlist" >&5
10824 echo "cannot find nm_test_var in $nlist" >&5
10827 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10830 echo "$progname: failed program was:" >&5
10831 cat conftest.$ac_ext >&5
10833 rm -rf conftest* conftst*
10835 # Do not use the global_symbol_pipe unless it works.
10836 if test "$pipe_works" = yes; then
10839 lt_cv_sys_global_symbol_pipe=
10845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10846 lt_cv_sys_global_symbol_to_cdecl=
10848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10850 $as_echo "failed" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10853 $as_echo "ok" >&6; }
10877 # Check whether --enable-libtool-lock was given.
10878 if test "${enable_libtool_lock+set}" = set; then :
10879 enableval=$enable_libtool_lock;
10882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10884 # Some flags need to be propagated to the compiler or linker for good
10888 # Find out which ABI we are using.
10889 echo 'int i;' > conftest.$ac_ext
10890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10891 (eval $ac_compile) 2>&5
10893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10894 test $ac_status = 0; }; then
10895 case `/usr/bin/file conftest.$ac_objext` in
10897 HPUX_IA64_MODE="32"
10900 HPUX_IA64_MODE="64"
10907 # Find out which ABI we are using.
10908 echo '#line 10908 "configure"' > conftest.$ac_ext
10909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10910 (eval $ac_compile) 2>&5
10912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10913 test $ac_status = 0; }; then
10914 if test "$lt_cv_prog_gnu_ld" = yes; then
10915 case `/usr/bin/file conftest.$ac_objext` in
10917 LD="${LD-ld} -melf32bsmip"
10920 LD="${LD-ld} -melf32bmipn32"
10923 LD="${LD-ld} -melf64bmip"
10927 case `/usr/bin/file conftest.$ac_objext` in
10943 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10944 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10945 # Find out which ABI we are using.
10946 echo 'int i;' > conftest.$ac_ext
10947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10948 (eval $ac_compile) 2>&5
10950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10951 test $ac_status = 0; }; then
10952 case `/usr/bin/file conftest.o` in
10955 x86_64-*kfreebsd*-gnu)
10956 LD="${LD-ld} -m elf_i386_fbsd"
10959 LD="${LD-ld} -m elf_i386"
10961 ppc64-*linux*|powerpc64-*linux*)
10962 LD="${LD-ld} -m elf32ppclinux"
10965 LD="${LD-ld} -m elf_s390"
10968 LD="${LD-ld} -m elf32_sparc"
10974 x86_64-*kfreebsd*-gnu)
10975 LD="${LD-ld} -m elf_x86_64_fbsd"
10978 LD="${LD-ld} -m elf_x86_64"
10980 ppc*-*linux*|powerpc*-*linux*)
10981 LD="${LD-ld} -m elf64ppc"
10983 s390*-*linux*|s390*-*tpf*)
10984 LD="${LD-ld} -m elf64_s390"
10987 LD="${LD-ld} -m elf64_sparc"
10997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10998 SAVE_CFLAGS="$CFLAGS"
10999 CFLAGS="$CFLAGS -belf"
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11001 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11002 if test "${lt_cv_cc_needs_belf+set}" = set; then :
11003 $as_echo_n "(cached) " >&6
11006 ac_cpp='$CPP $CPPFLAGS'
11007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h. */
11022 if ac_fn_c_try_link "$LINENO"; then :
11023 lt_cv_cc_needs_belf=yes
11025 lt_cv_cc_needs_belf=no
11027 rm -f core conftest.err conftest.$ac_objext \
11028 conftest$ac_exeext conftest.$ac_ext
11030 ac_cpp='$CPP $CPPFLAGS'
11031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11037 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11038 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11039 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11040 CFLAGS="$SAVE_CFLAGS"
11044 # Find out which ABI we are using.
11045 echo 'int i;' > conftest.$ac_ext
11046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11047 (eval $ac_compile) 2>&5
11049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11050 test $ac_status = 0; }; then
11051 case `/usr/bin/file conftest.o` in
11053 case $lt_cv_prog_gnu_ld in
11054 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11056 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11068 need_locks="$enable_libtool_lock"
11072 rhapsody* | darwin*)
11073 if test -n "$ac_tool_prefix"; then
11074 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11075 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 $as_echo_n "checking for $ac_word... " >&6; }
11078 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11081 if test -n "$DSYMUTIL"; then
11082 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11101 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11102 if test -n "$DSYMUTIL"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11104 $as_echo "$DSYMUTIL" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107 $as_echo "no" >&6; }
11112 if test -z "$ac_cv_prog_DSYMUTIL"; then
11113 ac_ct_DSYMUTIL=$DSYMUTIL
11114 # Extract the first word of "dsymutil", so it can be a program name with args.
11115 set dummy dsymutil; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
11121 if test -n "$ac_ct_DSYMUTIL"; then
11122 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125 for as_dir in $PATH
11128 test -z "$as_dir" && as_dir=.
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11131 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11142 if test -n "$ac_ct_DSYMUTIL"; then
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11144 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147 $as_echo "no" >&6; }
11150 if test "x$ac_ct_DSYMUTIL" = x; then
11153 case $cross_compiling:$ac_tool_warned in
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11157 ac_tool_warned=yes ;;
11159 DSYMUTIL=$ac_ct_DSYMUTIL
11162 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11165 if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11167 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169 $as_echo_n "checking for $ac_word... " >&6; }
11170 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11171 $as_echo_n "(cached) " >&6
11173 if test -n "$NMEDIT"; then
11174 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11183 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11193 NMEDIT=$ac_cv_prog_NMEDIT
11194 if test -n "$NMEDIT"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11196 $as_echo "$NMEDIT" >&6; }
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11204 if test -z "$ac_cv_prog_NMEDIT"; then
11205 ac_ct_NMEDIT=$NMEDIT
11206 # Extract the first word of "nmedit", so it can be a program name with args.
11207 set dummy nmedit; ac_word=$2
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11209 $as_echo_n "checking for $ac_word... " >&6; }
11210 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11213 if test -n "$ac_ct_NMEDIT"; then
11214 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11223 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11234 if test -n "$ac_ct_NMEDIT"; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11236 $as_echo "$ac_ct_NMEDIT" >&6; }
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11242 if test "x$ac_ct_NMEDIT" = x; then
11245 case $cross_compiling:$ac_tool_warned in
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11249 ac_tool_warned=yes ;;
11251 NMEDIT=$ac_ct_NMEDIT
11254 NMEDIT="$ac_cv_prog_NMEDIT"
11257 if test -n "$ac_tool_prefix"; then
11258 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11259 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11261 $as_echo_n "checking for $ac_word... " >&6; }
11262 if test "${ac_cv_prog_LIPO+set}" = set; then :
11263 $as_echo_n "(cached) " >&6
11265 if test -n "$LIPO"; then
11266 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11269 for as_dir in $PATH
11272 test -z "$as_dir" && as_dir=.
11273 for ac_exec_ext in '' $ac_executable_extensions; do
11274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11275 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 LIPO=$ac_cv_prog_LIPO
11286 if test -n "$LIPO"; then
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11288 $as_echo "$LIPO" >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11291 $as_echo "no" >&6; }
11296 if test -z "$ac_cv_prog_LIPO"; then
11298 # Extract the first word of "lipo", so it can be a program name with args.
11299 set dummy lipo; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11305 if test -n "$ac_ct_LIPO"; then
11306 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11315 ac_cv_prog_ac_ct_LIPO="lipo"
11316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11326 if test -n "$ac_ct_LIPO"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11328 $as_echo "$ac_ct_LIPO" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11334 if test "x$ac_ct_LIPO" = x; then
11337 case $cross_compiling:$ac_tool_warned in
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11341 ac_tool_warned=yes ;;
11346 LIPO="$ac_cv_prog_LIPO"
11349 if test -n "$ac_tool_prefix"; then
11350 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11351 set dummy ${ac_tool_prefix}otool; ac_word=$2
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353 $as_echo_n "checking for $ac_word... " >&6; }
11354 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11357 if test -n "$OTOOL"; then
11358 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11364 test -z "$as_dir" && as_dir=.
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11367 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377 OTOOL=$ac_cv_prog_OTOOL
11378 if test -n "$OTOOL"; then
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11380 $as_echo "$OTOOL" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 $as_echo "no" >&6; }
11388 if test -z "$ac_cv_prog_OTOOL"; then
11390 # Extract the first word of "otool", so it can be a program name with args.
11391 set dummy otool; ac_word=$2
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11393 $as_echo_n "checking for $ac_word... " >&6; }
11394 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11397 if test -n "$ac_ct_OTOOL"; then
11398 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11404 test -z "$as_dir" && as_dir=.
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11407 ac_cv_prog_ac_ct_OTOOL="otool"
11408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11418 if test -n "$ac_ct_OTOOL"; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11420 $as_echo "$ac_ct_OTOOL" >&6; }
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423 $as_echo "no" >&6; }
11426 if test "x$ac_ct_OTOOL" = x; then
11429 case $cross_compiling:$ac_tool_warned in
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11433 ac_tool_warned=yes ;;
11438 OTOOL="$ac_cv_prog_OTOOL"
11441 if test -n "$ac_tool_prefix"; then
11442 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11443 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11445 $as_echo_n "checking for $ac_word... " >&6; }
11446 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11447 $as_echo_n "(cached) " >&6
11449 if test -n "$OTOOL64"; then
11450 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453 for as_dir in $PATH
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11459 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11469 OTOOL64=$ac_cv_prog_OTOOL64
11470 if test -n "$OTOOL64"; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11472 $as_echo "$OTOOL64" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11480 if test -z "$ac_cv_prog_OTOOL64"; then
11481 ac_ct_OTOOL64=$OTOOL64
11482 # Extract the first word of "otool64", so it can be a program name with args.
11483 set dummy otool64; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11487 $as_echo_n "(cached) " >&6
11489 if test -n "$ac_ct_OTOOL64"; then
11490 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11496 test -z "$as_dir" && as_dir=.
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499 ac_cv_prog_ac_ct_OTOOL64="otool64"
11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11510 if test -n "$ac_ct_OTOOL64"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11512 $as_echo "$ac_ct_OTOOL64" >&6; }
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11518 if test "x$ac_ct_OTOOL64" = x; then
11521 case $cross_compiling:$ac_tool_warned in
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525 ac_tool_warned=yes ;;
11527 OTOOL64=$ac_ct_OTOOL64
11530 OTOOL64="$ac_cv_prog_OTOOL64"
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11560 $as_echo_n "checking for -single_module linker flag... " >&6; }
11561 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11564 lt_cv_apple_cc_single_mod=no
11565 if test -z "${LT_MULTI_MODULE}"; then
11566 # By default we will add the -single_module flag. You can override
11567 # by either setting the environment variable LT_MULTI_MODULE
11568 # non-empty at configure time, or by adding -multi_module to the
11570 rm -rf libconftest.dylib*
11571 echo "int foo(void){return 1;}" > conftest.c
11572 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11573 -dynamiclib -Wl,-single_module conftest.c" >&5
11574 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11575 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11577 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11578 lt_cv_apple_cc_single_mod=yes
11580 cat conftest.err >&5
11582 rm -rf libconftest.dylib*
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11587 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11589 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11590 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11591 $as_echo_n "(cached) " >&6
11593 lt_cv_ld_exported_symbols_list=no
11594 save_LDFLAGS=$LDFLAGS
11595 echo "_main" > conftest.sym
11596 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11608 if ac_fn_c_try_link "$LINENO"; then :
11609 lt_cv_ld_exported_symbols_list=yes
11611 lt_cv_ld_exported_symbols_list=no
11613 rm -f core conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
11615 LDFLAGS="$save_LDFLAGS"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11619 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11621 rhapsody* | darwin1.[012])
11622 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11624 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11625 darwin*) # darwin 5.x on
11626 # if running on 10.5 or later, the deployment target defaults
11627 # to the OS version, if on x86, and 10.4, the deployment
11628 # target defaults to 10.4. Don't you love it?
11629 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11630 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11631 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11633 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11635 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11639 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11640 _lt_dar_single_mod='$single_module'
11642 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11643 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11645 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11647 if test "$DSYMUTIL" != ":"; then
11648 _lt_dsymutil='~$DSYMUTIL $lib || :'
11655 for ac_header in dlfcn.h
11657 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11659 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_DLFCN_H 1
11671 ac_cpp='$CXXCPP $CPPFLAGS'
11672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11675 if test -z "$CXX"; then
11676 if test -n "$CCC"; then
11679 if test -n "$ac_tool_prefix"; then
11680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if test "${ac_cv_prog_CXX+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11689 if test -n "$CXX"; then
11690 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11699 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 CXX=$ac_cv_prog_CXX
11710 if test -n "$CXX"; then
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11712 $as_echo "$CXX" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11719 test -n "$CXX" && break
11722 if test -z "$CXX"; then
11724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11726 # Extract the first word of "$ac_prog", so it can be a program name with args.
11727 set dummy $ac_prog; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11733 if test -n "$ac_ct_CXX"; then
11734 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737 for as_dir in $PATH
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
11742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11743 ac_cv_prog_ac_ct_CXX="$ac_prog"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11754 if test -n "$ac_ct_CXX"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11756 $as_echo "$ac_ct_CXX" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11763 test -n "$ac_ct_CXX" && break
11766 if test "x$ac_ct_CXX" = x; then
11769 case $cross_compiling:$ac_tool_warned in
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11773 ac_tool_warned=yes ;;
11781 # Provide some information about the compiler.
11782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11785 for ac_option in --version -v -V -qversion; do
11786 { { ac_try="$ac_compiler $ac_option >&5"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11792 $as_echo "$ac_try_echo"; } >&5
11793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11795 if test -s conftest.err; then
11797 ... rest of stderr output deleted ...
11798 10q' conftest.err >conftest.er1
11799 cat conftest.er1 >&5
11801 rm -f conftest.er1 conftest.err
11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803 test $ac_status = 0; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11807 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11808 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11812 /* end confdefs.h. */
11825 if ac_fn_cxx_try_compile "$LINENO"; then :
11826 ac_compiler_gnu=yes
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11835 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11836 if test $ac_compiler_gnu = yes; then
11841 ac_test_CXXFLAGS=${CXXFLAGS+set}
11842 ac_save_CXXFLAGS=$CXXFLAGS
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11844 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11845 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
11848 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11849 ac_cxx_werror_flag=yes
11850 ac_cv_prog_cxx_g=no
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11863 if ac_fn_cxx_try_compile "$LINENO"; then :
11864 ac_cv_prog_cxx_g=yes
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11878 if ac_fn_cxx_try_compile "$LINENO"; then :
11881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11894 if ac_fn_cxx_try_compile "$LINENO"; then :
11895 ac_cv_prog_cxx_g=yes
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11905 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11906 if test "$ac_test_CXXFLAGS" = set; then
11907 CXXFLAGS=$ac_save_CXXFLAGS
11908 elif test $ac_cv_prog_cxx_g = yes; then
11909 if test "$GXX" = yes; then
11915 if test "$GXX" = yes; then
11922 ac_cpp='$CPP $CPPFLAGS'
11923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11927 depcc="$CXX" am_compiler_list=
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11930 $as_echo_n "checking dependency style of $depcc... " >&6; }
11931 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11934 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11935 # We make a subdir and do the tests there. Otherwise we can end up
11936 # making bogus files that we don't know about and never remove. For
11937 # instance it was reported that on HP-UX the gcc test will end up
11938 # making a dummy file named `D' -- because `-MD' means `put the output
11941 # Copy depcomp to subdir because otherwise we won't find it if we're
11942 # using a relative directory.
11943 cp "$am_depcomp" conftest.dir
11945 # We will build objects and dependencies in a subdirectory because
11946 # it helps to detect inapplicable dependency modes. For instance
11947 # both Tru64's cc and ICC support -MD to output dependencies as a
11948 # side effect of compilation, but ICC will put the dependencies in
11949 # the current directory while Tru64 will put them in the object
11953 am_cv_CXX_dependencies_compiler_type=none
11954 if test "$am_compiler_list" = ""; then
11955 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11957 am__universal=false
11958 case " $depcc " in #(
11959 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11962 for depmode in $am_compiler_list; do
11963 # Setup a source with many dependencies, because some compilers
11964 # like to wrap large dependency lists on column 80 (with \), and
11965 # we should not choose a depcomp mode which is confused by this.
11967 # We need to recreate these files for each test, as the compiler may
11968 # overwrite some of them when testing with obscure command lines.
11969 # This happens at least with the AIX C compiler.
11971 for i in 1 2 3 4 5 6; do
11972 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11973 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11974 # Solaris 8's {/usr,}/bin/sh.
11975 touch sub/conftst$i.h
11977 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11979 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11980 # mode. It turns out that the SunPro C++ compiler does not properly
11981 # handle `-M -o', and we need to detect this. Also, some Intel
11982 # versions had trouble with output in subdirs
11983 am__obj=sub/conftest.${OBJEXT-o}
11984 am__minus_obj="-o $am__obj"
11987 # This depmode causes a compiler race in universal mode.
11988 test "$am__universal" = false || continue
11991 # after this tag, mechanisms are not by side-effect, so they'll
11992 # only be used when explicitly requested
11993 if test "x$enable_dependency_tracking" = xyes; then
11999 msvisualcpp | msvcmsys)
12000 # This compiler won't grok `-c -o', but also, the minuso test has
12001 # not run yet. These depmodes are late enough in the game, and
12002 # so weak that their functioning should not be impacted.
12003 am__obj=conftest.${OBJEXT-o}
12008 if depmode=$depmode \
12009 source=sub/conftest.c object=$am__obj \
12010 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12011 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12012 >/dev/null 2>conftest.err &&
12013 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12014 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12015 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12016 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12017 # icc doesn't choke on unknown options, it will just issue warnings
12018 # or remarks (even with -Werror). So we grep stderr for any message
12019 # that says an option was ignored or not supported.
12020 # When given -MP, icc 7.0 and 7.1 complain thusly:
12021 # icc: Command line warning: ignoring option '-M'; no argument required
12022 # The diagnosis changed in icc 8.0:
12023 # icc: Command line remark: option '-MP' not supported
12024 if (grep 'ignoring option' conftest.err ||
12025 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12026 am_cv_CXX_dependencies_compiler_type=$depmode
12033 rm -rf conftest.dir
12035 am_cv_CXX_dependencies_compiler_type=none
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12040 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12041 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12044 test "x$enable_dependency_tracking" != xno \
12045 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12046 am__fastdepCXX_TRUE=
12047 am__fastdepCXX_FALSE='#'
12049 am__fastdepCXX_TRUE='#'
12050 am__fastdepCXX_FALSE=
12054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12056 (test "X$CXX" != "Xg++"))) ; then
12058 ac_cpp='$CXXCPP $CPPFLAGS'
12059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12063 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12064 if test -z "$CXXCPP"; then
12065 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12068 # Double quotes because CXXCPP needs to be expanded
12069 for CXXCPP in "$CXX -E" "/lib/cpp"
12071 ac_preproc_ok=false
12072 for ac_cxx_preproc_warn_flag in '' yes
12074 # Use a header file that comes with gcc, so configuring glibc
12075 # with a fresh cross-compiler works.
12076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077 # <limits.h> exists even on freestanding compilers.
12078 # On the NeXT, cc -E runs the code through the compiler's parser,
12079 # not just through cpp. "Syntax error" is here to catch this case.
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12083 # include <limits.h>
12085 # include <assert.h>
12089 if ac_fn_cxx_try_cpp "$LINENO"; then :
12092 # Broken: fails on valid input.
12095 rm -f conftest.err conftest.$ac_ext
12097 # OK, works on sane cases. Now check whether nonexistent headers
12098 # can be detected and how.
12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100 /* end confdefs.h. */
12101 #include <ac_nonexistent.h>
12103 if ac_fn_cxx_try_cpp "$LINENO"; then :
12104 # Broken: success on invalid input.
12107 # Passes both tests.
12111 rm -f conftest.err conftest.$ac_ext
12114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12115 rm -f conftest.err conftest.$ac_ext
12116 if $ac_preproc_ok; then :
12121 ac_cv_prog_CXXCPP=$CXXCPP
12124 CXXCPP=$ac_cv_prog_CXXCPP
12126 ac_cv_prog_CXXCPP=$CXXCPP
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12129 $as_echo "$CXXCPP" >&6; }
12130 ac_preproc_ok=false
12131 for ac_cxx_preproc_warn_flag in '' yes
12133 # Use a header file that comes with gcc, so configuring glibc
12134 # with a fresh cross-compiler works.
12135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12136 # <limits.h> exists even on freestanding compilers.
12137 # On the NeXT, cc -E runs the code through the compiler's parser,
12138 # not just through cpp. "Syntax error" is here to catch this case.
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12142 # include <limits.h>
12144 # include <assert.h>
12148 if ac_fn_cxx_try_cpp "$LINENO"; then :
12151 # Broken: fails on valid input.
12154 rm -f conftest.err conftest.$ac_ext
12156 # OK, works on sane cases. Now check whether nonexistent headers
12157 # can be detected and how.
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12160 #include <ac_nonexistent.h>
12162 if ac_fn_cxx_try_cpp "$LINENO"; then :
12163 # Broken: success on invalid input.
12166 # Passes both tests.
12170 rm -f conftest.err conftest.$ac_ext
12173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12174 rm -f conftest.err conftest.$ac_ext
12175 if $ac_preproc_ok; then :
12178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12180 _lt_caught_CXX_error=yes; }
12184 ac_cpp='$CPP $CPPFLAGS'
12185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12190 _lt_caught_CXX_error=yes
12198 enable_win32_dll=yes
12201 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12202 if test -n "$ac_tool_prefix"; then
12203 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12204 set dummy ${ac_tool_prefix}as; ac_word=$2
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206 $as_echo_n "checking for $ac_word... " >&6; }
12207 if test "${ac_cv_prog_AS+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12210 if test -n "$AS"; then
12211 ac_cv_prog_AS="$AS" # Let the user override the test.
12213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214 for as_dir in $PATH
12217 test -z "$as_dir" && as_dir=.
12218 for ac_exec_ext in '' $ac_executable_extensions; do
12219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12220 ac_cv_prog_AS="${ac_tool_prefix}as"
12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12231 if test -n "$AS"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12233 $as_echo "$AS" >&6; }
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12241 if test -z "$ac_cv_prog_AS"; then
12243 # Extract the first word of "as", so it can be a program name with args.
12244 set dummy as; ac_word=$2
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12246 $as_echo_n "checking for $ac_word... " >&6; }
12247 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12250 if test -n "$ac_ct_AS"; then
12251 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12257 test -z "$as_dir" && as_dir=.
12258 for ac_exec_ext in '' $ac_executable_extensions; do
12259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12260 ac_cv_prog_ac_ct_AS="as"
12261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12270 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12271 if test -n "$ac_ct_AS"; then
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12273 $as_echo "$ac_ct_AS" >&6; }
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276 $as_echo "no" >&6; }
12279 if test "x$ac_ct_AS" = x; then
12282 case $cross_compiling:$ac_tool_warned in
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12286 ac_tool_warned=yes ;;
12291 AS="$ac_cv_prog_AS"
12294 if test -n "$ac_tool_prefix"; then
12295 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12296 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12298 $as_echo_n "checking for $ac_word... " >&6; }
12299 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12300 $as_echo_n "(cached) " >&6
12302 if test -n "$DLLTOOL"; then
12303 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306 for as_dir in $PATH
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12322 DLLTOOL=$ac_cv_prog_DLLTOOL
12323 if test -n "$DLLTOOL"; then
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12325 $as_echo "$DLLTOOL" >&6; }
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328 $as_echo "no" >&6; }
12333 if test -z "$ac_cv_prog_DLLTOOL"; then
12334 ac_ct_DLLTOOL=$DLLTOOL
12335 # Extract the first word of "dlltool", so it can be a program name with args.
12336 set dummy dlltool; ac_word=$2
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12338 $as_echo_n "checking for $ac_word... " >&6; }
12339 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -n "$ac_ct_DLLTOOL"; then
12343 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12346 for as_dir in $PATH
12349 test -z "$as_dir" && as_dir=.
12350 for ac_exec_ext in '' $ac_executable_extensions; do
12351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12352 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12363 if test -n "$ac_ct_DLLTOOL"; then
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12365 $as_echo "$ac_ct_DLLTOOL" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12371 if test "x$ac_ct_DLLTOOL" = x; then
12374 case $cross_compiling:$ac_tool_warned in
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12378 ac_tool_warned=yes ;;
12380 DLLTOOL=$ac_ct_DLLTOOL
12383 DLLTOOL="$ac_cv_prog_DLLTOOL"
12386 if test -n "$ac_tool_prefix"; then
12387 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12394 if test -n "$OBJDUMP"; then
12395 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12414 OBJDUMP=$ac_cv_prog_OBJDUMP
12415 if test -n "$OBJDUMP"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12417 $as_echo "$OBJDUMP" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12425 if test -z "$ac_cv_prog_OBJDUMP"; then
12426 ac_ct_OBJDUMP=$OBJDUMP
12427 # Extract the first word of "objdump", so it can be a program name with args.
12428 set dummy objdump; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12434 if test -n "$ac_ct_OBJDUMP"; then
12435 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12455 if test -n "$ac_ct_OBJDUMP"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12457 $as_echo "$ac_ct_OBJDUMP" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12463 if test "x$ac_ct_OBJDUMP" = x; then
12466 case $cross_compiling:$ac_tool_warned in
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12472 OBJDUMP=$ac_ct_OBJDUMP
12475 OBJDUMP="$ac_cv_prog_OBJDUMP"
12481 test -z "$AS" && AS=as
12487 test -z "$DLLTOOL" && DLLTOOL=dlltool
12493 test -z "$OBJDUMP" && OBJDUMP=objdump
12503 # Check whether --enable-shared was given.
12504 if test "${enable_shared+set}" = set; then :
12505 enableval=$enable_shared; p=${PACKAGE-default}
12507 yes) enable_shared=yes ;;
12508 no) enable_shared=no ;;
12511 # Look at the argument we got. We use all the common list separators.
12512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12513 for pkg in $enableval; do
12515 if test "X$pkg" = "X$p"; then
12534 # Check whether --enable-static was given.
12535 if test "${enable_static+set}" = set; then :
12536 enableval=$enable_static; p=${PACKAGE-default}
12538 yes) enable_static=yes ;;
12539 no) enable_static=no ;;
12542 # Look at the argument we got. We use all the common list separators.
12543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12544 for pkg in $enableval; do
12546 if test "X$pkg" = "X$p"; then
12566 # Check whether --with-pic was given.
12567 if test "${with_pic+set}" = set; then :
12568 withval=$with_pic; pic_mode="$withval"
12574 test -z "$pic_mode" && pic_mode=default
12582 # Check whether --enable-fast-install was given.
12583 if test "${enable_fast_install+set}" = set; then :
12584 enableval=$enable_fast_install; p=${PACKAGE-default}
12586 yes) enable_fast_install=yes ;;
12587 no) enable_fast_install=no ;;
12589 enable_fast_install=no
12590 # Look at the argument we got. We use all the common list separators.
12591 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12592 for pkg in $enableval; do
12594 if test "X$pkg" = "X$p"; then
12595 enable_fast_install=yes
12602 enable_fast_install=yes
12615 # This can be used to rebuild libtool when needed
12616 LIBTOOL_DEPS="$ltmain"
12618 # Always use our own libtool.
12619 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12645 test -z "$LN_S" && LN_S="ln -s"
12660 if test -n "${ZSH_VERSION+set}" ; then
12661 setopt NO_GLOB_SUBST
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12665 $as_echo_n "checking for objdir... " >&6; }
12666 if test "${lt_cv_objdir+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12669 rm -f .libs 2>/dev/null
12670 mkdir .libs 2>/dev/null
12671 if test -d .libs; then
12674 # MS-DOS does not allow filenames that begin with a dot.
12677 rmdir .libs 2>/dev/null
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12680 $as_echo "$lt_cv_objdir" >&6; }
12681 objdir=$lt_cv_objdir
12687 cat >>confdefs.h <<_ACEOF
12688 #define LT_OBJDIR "$lt_cv_objdir/"
12709 # AIX sometimes has problems with the GCC collect2 program. For some
12710 # reason, if we set the COLLECT_NAMES environment variable, the problems
12711 # vanish in a puff of smoke.
12712 if test "X${COLLECT_NAMES+set}" != Xset; then
12714 export COLLECT_NAMES
12719 # Sed substitution that helps us do robust quoting. It backslashifies
12720 # metacharacters that are still active within double-quoted strings.
12721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12723 # Same as above, but do not quote variable references.
12724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12726 # Sed substitution to delay expansion of an escaped shell variable in a
12727 # double_quote_subst'ed string.
12728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12730 # Sed substitution to delay expansion of an escaped single quote.
12731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12733 # Sed substitution to avoid accidental globbing in evaled expressions
12734 no_glob_subst='s/\*/\\\*/g'
12736 # Global variables:
12738 can_build_shared=yes
12740 # All known linkers require a `.a' archive for static linking (except MSVC,
12741 # which needs '.lib').
12744 with_gnu_ld="$lt_cv_prog_gnu_ld"
12747 old_CFLAGS="$CFLAGS"
12749 # Set sane defaults for various variables
12750 test -z "$CC" && CC=cc
12751 test -z "$LTCC" && LTCC=$CC
12752 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12753 test -z "$LD" && LD=ld
12754 test -z "$ac_objext" && ac_objext=o
12756 for cc_temp in $compiler""; do
12758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12764 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12767 # Only perform the check for file, if the check method requires it
12768 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12769 case $deplibs_check_method in
12771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12773 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12774 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12782 lt_save_MAGIC_CMD="$MAGIC_CMD"
12783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12785 for ac_dir in $ac_dummy; do
12787 test -z "$ac_dir" && ac_dir=.
12788 if test -f $ac_dir/${ac_tool_prefix}file; then
12789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12790 if test -n "$file_magic_test_file"; then
12791 case $deplibs_check_method in
12793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12796 $EGREP "$file_magic_regex" > /dev/null; then
12801 *** Warning: the command libtool uses to detect shared libraries,
12802 *** $file_magic_cmd, produces output that libtool cannot recognize.
12803 *** The result is that libtool may fail to recognize shared libraries
12804 *** as such. This will affect the creation of libtool libraries that
12805 *** depend on shared libraries, but programs linked with such libtool
12806 *** libraries will work regardless of this problem. Nevertheless, you
12807 *** may want to report the problem to your system manager and/or to
12808 *** bug-libtool@gnu.org
12818 MAGIC_CMD="$lt_save_MAGIC_CMD"
12823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12824 if test -n "$MAGIC_CMD"; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12826 $as_echo "$MAGIC_CMD" >&6; }
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12829 $as_echo "no" >&6; }
12836 if test -z "$lt_cv_path_MAGIC_CMD"; then
12837 if test -n "$ac_tool_prefix"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12839 $as_echo_n "checking for file... " >&6; }
12840 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12841 $as_echo_n "(cached) " >&6
12845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12848 lt_save_MAGIC_CMD="$MAGIC_CMD"
12849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12851 for ac_dir in $ac_dummy; do
12853 test -z "$ac_dir" && ac_dir=.
12854 if test -f $ac_dir/file; then
12855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12856 if test -n "$file_magic_test_file"; then
12857 case $deplibs_check_method in
12859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12862 $EGREP "$file_magic_regex" > /dev/null; then
12867 *** Warning: the command libtool uses to detect shared libraries,
12868 *** $file_magic_cmd, produces output that libtool cannot recognize.
12869 *** The result is that libtool may fail to recognize shared libraries
12870 *** as such. This will affect the creation of libtool libraries that
12871 *** depend on shared libraries, but programs linked with such libtool
12872 *** libraries will work regardless of this problem. Nevertheless, you
12873 *** may want to report the problem to your system manager and/or to
12874 *** bug-libtool@gnu.org
12884 MAGIC_CMD="$lt_save_MAGIC_CMD"
12889 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12890 if test -n "$MAGIC_CMD"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12892 $as_echo "$MAGIC_CMD" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12908 # Use C for the default configuration in the libtool script
12912 ac_cpp='$CPP $CPPFLAGS'
12913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12918 # Source file extension for C test sources.
12921 # Object file extension for compiled C test sources.
12925 # Code to be used in simple compile tests
12926 lt_simple_compile_test_code="int some_variable = 0;"
12928 # Code to be used in simple link tests
12929 lt_simple_link_test_code='int main(){return(0);}'
12937 # If no C compiler was specified, use CC.
12940 # If no C compiler flags were specified, use CFLAGS.
12941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12943 # Allow CC to be a program name with arguments.
12946 # Save the default compiler, since it gets overwritten when the other
12947 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12948 compiler_DEFAULT=$CC
12950 # save warnings/boilerplate of simple test code
12951 ac_outfile=conftest.$ac_objext
12952 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12953 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12954 _lt_compiler_boilerplate=`cat conftest.err`
12957 ac_outfile=conftest.$ac_objext
12958 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12959 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12960 _lt_linker_boilerplate=`cat conftest.err`
12965 ## There is no encapsulation within the following macros, do not change
12966 ## the running order or otherwise move them around unless you know exactly
12967 ## what you are doing...
12968 if test -n "$compiler"; then
12970 lt_prog_compiler_no_builtin_flag=
12972 if test "$GCC" = yes; then
12973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12976 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12980 lt_cv_prog_compiler_rtti_exceptions=no
12981 ac_outfile=conftest.$ac_objext
12982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12983 lt_compiler_flag="-fno-rtti -fno-exceptions"
12984 # Insert the option either (1) after the last *FLAGS variable, or
12985 # (2) before a word containing "conftest.", or (3) at the end.
12986 # Note that $ac_compile itself does not contain backslashes and begins
12987 # with a dollar sign (not a hyphen), so the echo should work correctly.
12988 # The option is referenced via a variable to avoid confusing sed.
12989 lt_compile=`echo "$ac_compile" | $SED \
12990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992 -e 's:$: $lt_compiler_flag:'`
12993 (eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
12994 (eval "$lt_compile" 2>conftest.err)
12996 cat conftest.err >&5
12997 echo "$as_me:12997: \$? = $ac_status" >&5
12998 if (exit $ac_status) && test -s "$ac_outfile"; then
12999 # The compiler can only warn and ignore the option if not recognized
13000 # So say no if there are warnings other than the usual output.
13001 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13004 lt_cv_prog_compiler_rtti_exceptions=yes
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13011 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13026 lt_prog_compiler_wl=
13027 lt_prog_compiler_pic=
13028 lt_prog_compiler_static=
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13031 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13033 if test "$GCC" = yes; then
13034 lt_prog_compiler_wl='-Wl,'
13035 lt_prog_compiler_static='-static'
13039 # All AIX code is PIC.
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 now supports IA64 processor
13042 lt_prog_compiler_static='-Bstatic'
13049 # see comment about AmigaOS4 .so support
13050 lt_prog_compiler_pic='-fPIC'
13053 # FIXME: we need at least 68020 code to build shared libraries, but
13054 # adding the `-m68020' flag to GCC prevents building anything better,
13056 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13062 # PIC is the default for these OSes.
13065 mingw* | cygwin* | pw32* | os2* | cegcc*)
13066 # This hack is so that the source file can tell whether it is being
13067 # built for inclusion in a dll (and should export symbols for example).
13068 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13069 # (--disable-auto-import) libraries
13070 lt_prog_compiler_pic='-DDLL_EXPORT'
13073 darwin* | rhapsody*)
13074 # PIC is the default on this platform
13075 # Common symbols not allowed in MH_DYLIB files
13076 lt_prog_compiler_pic='-fno-common'
13080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13082 # sets the default TLS model and affects inlining.
13088 lt_prog_compiler_pic='-fPIC'
13094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13095 # Instead, we relocate shared libraries at runtime.
13099 # Just because we use GCC doesn't mean we suddenly get shared libraries
13100 # on systems that don't support them.
13101 lt_prog_compiler_can_build_shared=no
13106 # QNX uses GNU C++, but need to define -shared option too, otherwise
13107 # it will coredump.
13108 lt_prog_compiler_pic='-fPIC -shared'
13112 if test -d /usr/nec; then
13113 lt_prog_compiler_pic=-Kconform_pic
13118 lt_prog_compiler_pic='-fPIC'
13122 # PORTME Check for flag to pass linker flags through the system compiler.
13125 lt_prog_compiler_wl='-Wl,'
13126 if test "$host_cpu" = ia64; then
13127 # AIX 5 now supports IA64 processor
13128 lt_prog_compiler_static='-Bstatic'
13130 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13134 mingw* | cygwin* | pw32* | os2* | cegcc*)
13135 # This hack is so that the source file can tell whether it is being
13136 # built for inclusion in a dll (and should export symbols for example).
13137 lt_prog_compiler_pic='-DDLL_EXPORT'
13140 hpux9* | hpux10* | hpux11*)
13141 lt_prog_compiler_wl='-Wl,'
13142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13143 # not for PA HP-UX.
13149 lt_prog_compiler_pic='+Z'
13152 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13153 lt_prog_compiler_static='${wl}-a ${wl}archive'
13156 irix5* | irix6* | nonstopux*)
13157 lt_prog_compiler_wl='-Wl,'
13158 # PIC (with -KPIC) is the default.
13159 lt_prog_compiler_static='-non_shared'
13162 linux* | k*bsd*-gnu)
13163 case $cc_basename in
13164 # old Intel for x86_64 which still supported -KPIC.
13166 lt_prog_compiler_wl='-Wl,'
13167 lt_prog_compiler_pic='-KPIC'
13168 lt_prog_compiler_static='-static'
13170 # icc used to be incompatible with GCC.
13171 # ICC 10 doesn't accept -KPIC any more.
13173 lt_prog_compiler_wl='-Wl,'
13174 lt_prog_compiler_pic='-fPIC'
13175 lt_prog_compiler_static='-static'
13177 # Lahey Fortran 8.1.
13179 lt_prog_compiler_wl='-Wl,'
13180 lt_prog_compiler_pic='--shared'
13181 lt_prog_compiler_static='--static'
13183 pgcc* | pgf77* | pgf90* | pgf95*)
13184 # Portland Group compilers (*not* the Pentium gcc compiler,
13185 # which looks to be a dead project)
13186 lt_prog_compiler_wl='-Wl,'
13187 lt_prog_compiler_pic='-fpic'
13188 lt_prog_compiler_static='-Bstatic'
13191 lt_prog_compiler_wl='-Wl,'
13192 # All Alpha code is PIC.
13193 lt_prog_compiler_static='-non_shared'
13196 # IBM XL C 8.0/Fortran 10.1 on PPC
13197 lt_prog_compiler_wl='-Wl,'
13198 lt_prog_compiler_pic='-qpic'
13199 lt_prog_compiler_static='-qstaticlink'
13202 case `$CC -V 2>&1 | sed 5q` in
13205 lt_prog_compiler_pic='-KPIC'
13206 lt_prog_compiler_static='-Bstatic'
13207 lt_prog_compiler_wl='-Wl,'
13210 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13211 lt_prog_compiler_pic='-KPIC'
13212 lt_prog_compiler_static='-Bstatic'
13213 lt_prog_compiler_wl=''
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13226 # QNX uses GNU C++, but need to define -shared option too, otherwise
13227 # it will coredump.
13228 lt_prog_compiler_pic='-fPIC -shared'
13231 osf3* | osf4* | osf5*)
13232 lt_prog_compiler_wl='-Wl,'
13233 # All OSF/1 code is PIC.
13234 lt_prog_compiler_static='-non_shared'
13238 lt_prog_compiler_static='-non_shared'
13242 lt_prog_compiler_pic='-KPIC'
13243 lt_prog_compiler_static='-Bstatic'
13244 case $cc_basename in
13245 f77* | f90* | f95*)
13246 lt_prog_compiler_wl='-Qoption ld ';;
13248 lt_prog_compiler_wl='-Wl,';;
13253 lt_prog_compiler_wl='-Qoption ld '
13254 lt_prog_compiler_pic='-PIC'
13255 lt_prog_compiler_static='-Bstatic'
13258 sysv4 | sysv4.2uw2* | sysv4.3*)
13259 lt_prog_compiler_wl='-Wl,'
13260 lt_prog_compiler_pic='-KPIC'
13261 lt_prog_compiler_static='-Bstatic'
13265 if test -d /usr/nec ;then
13266 lt_prog_compiler_pic='-Kconform_pic'
13267 lt_prog_compiler_static='-Bstatic'
13271 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13272 lt_prog_compiler_wl='-Wl,'
13273 lt_prog_compiler_pic='-KPIC'
13274 lt_prog_compiler_static='-Bstatic'
13278 lt_prog_compiler_wl='-Wl,'
13279 lt_prog_compiler_can_build_shared=no
13283 lt_prog_compiler_pic='-pic'
13284 lt_prog_compiler_static='-Bstatic'
13288 lt_prog_compiler_can_build_shared=no
13294 # For platforms which do not support PIC, -DPIC is meaningless:
13296 lt_prog_compiler_pic=
13299 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13303 $as_echo "$lt_prog_compiler_pic" >&6; }
13311 # Check to make sure the PIC flag actually works.
13313 if test -n "$lt_prog_compiler_pic"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13315 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13316 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13319 lt_cv_prog_compiler_pic_works=no
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13323 # Insert the option either (1) after the last *FLAGS variable, or
13324 # (2) before a word containing "conftest.", or (3) at the end.
13325 # Note that $ac_compile itself does not contain backslashes and begins
13326 # with a dollar sign (not a hyphen), so the echo should work correctly.
13327 # The option is referenced via a variable to avoid confusing sed.
13328 lt_compile=`echo "$ac_compile" | $SED \
13329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13331 -e 's:$: $lt_compiler_flag:'`
13332 (eval echo "\"\$as_me:13332: $lt_compile\"" >&5)
13333 (eval "$lt_compile" 2>conftest.err)
13335 cat conftest.err >&5
13336 echo "$as_me:13336: \$? = $ac_status" >&5
13337 if (exit $ac_status) && test -s "$ac_outfile"; then
13338 # The compiler can only warn and ignore the option if not recognized
13339 # So say no if there are warnings other than the usual output.
13340 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13343 lt_cv_prog_compiler_pic_works=yes
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13350 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13352 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13353 case $lt_prog_compiler_pic in
13355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13358 lt_prog_compiler_pic=
13359 lt_prog_compiler_can_build_shared=no
13370 # Check to make sure the static flag actually works.
13372 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13375 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13378 lt_cv_prog_compiler_static_works=no
13379 save_LDFLAGS="$LDFLAGS"
13380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13383 # The linker can only warn and ignore the option if not recognized
13384 # So say no if there are warnings
13385 if test -s conftest.err; then
13386 # Append any errors to the config.log.
13387 cat conftest.err 1>&5
13388 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13390 if diff conftest.exp conftest.er2 >/dev/null; then
13391 lt_cv_prog_compiler_static_works=yes
13394 lt_cv_prog_compiler_static_works=yes
13398 LDFLAGS="$save_LDFLAGS"
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13402 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13404 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13407 lt_prog_compiler_static=
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
13421 lt_cv_prog_compiler_c_o=no
13422 $RM -r conftest 2>/dev/null
13426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13428 lt_compiler_flag="-o out/conftest2.$ac_objext"
13429 # Insert the option either (1) after the last *FLAGS variable, or
13430 # (2) before a word containing "conftest.", or (3) at the end.
13431 # Note that $ac_compile itself does not contain backslashes and begins
13432 # with a dollar sign (not a hyphen), so the echo should work correctly.
13433 lt_compile=`echo "$ac_compile" | $SED \
13434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13436 -e 's:$: $lt_compiler_flag:'`
13437 (eval echo "\"\$as_me:13437: $lt_compile\"" >&5)
13438 (eval "$lt_compile" 2>out/conftest.err)
13440 cat out/conftest.err >&5
13441 echo "$as_me:13441: \$? = $ac_status" >&5
13442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13444 # The compiler can only warn and ignore the option if not recognized
13445 # So say no if there are warnings
13446 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13449 lt_cv_prog_compiler_c_o=yes
13454 # SGI C++ compiler will create directory out/ii_files/ for
13455 # template instantiation
13456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13457 $RM out/* && rmdir out
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13473 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13476 lt_cv_prog_compiler_c_o=no
13477 $RM -r conftest 2>/dev/null
13481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13483 lt_compiler_flag="-o out/conftest2.$ac_objext"
13484 # Insert the option either (1) after the last *FLAGS variable, or
13485 # (2) before a word containing "conftest.", or (3) at the end.
13486 # Note that $ac_compile itself does not contain backslashes and begins
13487 # with a dollar sign (not a hyphen), so the echo should work correctly.
13488 lt_compile=`echo "$ac_compile" | $SED \
13489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13491 -e 's:$: $lt_compiler_flag:'`
13492 (eval echo "\"\$as_me:13492: $lt_compile\"" >&5)
13493 (eval "$lt_compile" 2>out/conftest.err)
13495 cat out/conftest.err >&5
13496 echo "$as_me:13496: \$? = $ac_status" >&5
13497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13499 # The compiler can only warn and ignore the option if not recognized
13500 # So say no if there are warnings
13501 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13504 lt_cv_prog_compiler_c_o=yes
13509 # SGI C++ compiler will create directory out/ii_files/ for
13510 # template instantiation
13511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13512 $RM out/* && rmdir out
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13524 hard_links="nottested"
13525 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13526 # do not overwrite the value of need_locks provided by the user
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13528 $as_echo_n "checking if we can lock with hard links... " >&6; }
13531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13533 ln conftest.a conftest.b 2>&5 || hard_links=no
13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13536 $as_echo "$hard_links" >&6; }
13537 if test "$hard_links" = no; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13552 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13555 allow_undefined_flag=
13556 always_export_symbols=no
13558 archive_expsym_cmds=
13559 compiler_needs_object=no
13560 enable_shared_with_static_runtimes=no
13561 export_dynamic_flag_spec=
13562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13563 hardcode_automatic=no
13565 hardcode_direct_absolute=no
13566 hardcode_libdir_flag_spec=
13567 hardcode_libdir_flag_spec_ld=
13568 hardcode_libdir_separator=
13569 hardcode_minus_L=no
13570 hardcode_shlibpath_var=unsupported
13572 link_all_deplibs=unknown
13574 module_expsym_cmds=
13575 old_archive_from_new_cmds=
13576 old_archive_from_expsyms_cmds=
13577 thread_safe_flag_spec=
13578 whole_archive_flag_spec=
13579 # include_expsyms should be a list of space-separated symbols to be *always*
13580 # included in the symbol list
13582 # exclude_expsyms can be an extended regexp of symbols to exclude
13583 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13584 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13585 # as well as any symbol that contains `d'.
13586 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13587 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13588 # platforms (ab)use it in PIC code, but their linkers get confused if
13589 # the symbol is explicitly referenced. Since portable code cannot
13590 # rely on this symbol name, it's probably fine to never include it in
13591 # preloaded symbol tables.
13592 # Exclude shared library initialization/finalization symbols.
13593 extract_expsyms_cmds=
13596 cygwin* | mingw* | pw32* | cegcc*)
13597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13598 # When not using gcc, we currently assume that we are using
13599 # Microsoft Visual C++.
13600 if test "$GCC" != yes; then
13605 # we just hope/assume this is gcc and not c89 (= MSVC++)
13614 if test "$with_gnu_ld" = yes; then
13615 # If archive_cmds runs LD, not CC, wlarc should be empty
13618 # Set some defaults for GNU ld with shared library support. These
13619 # are reset later if shared libraries are not supported. Putting them
13620 # here allows them to be overridden if necessary.
13621 runpath_var=LD_RUN_PATH
13622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13623 export_dynamic_flag_spec='${wl}--export-dynamic'
13624 # ancient GNU ld didn't support --whole-archive et. al.
13625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13628 whole_archive_flag_spec=
13630 supports_anon_versioning=no
13631 case `$LD -v 2>&1` in
13632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13635 *\ 2.11.*) ;; # other 2.11 versions
13636 *) supports_anon_versioning=yes ;;
13639 # See if GNU ld supports shared libraries.
13642 # On AIX/PPC, the GNU linker is very broken
13643 if test "$host_cpu" != ia64; then
13647 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13648 *** to be unable to reliably create shared libraries on AIX.
13649 *** Therefore, libtool is disabling shared libraries support. If you
13650 *** really care for shared libraries, you may want to modify your PATH
13651 *** so that a non-GNU linker is found, and then restart.
13660 # see comment about AmigaOS4 .so support
13661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13662 archive_expsym_cmds=''
13665 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)'
13666 hardcode_libdir_flag_spec='-L$libdir'
13667 hardcode_minus_L=yes
13673 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13674 allow_undefined_flag=unsupported
13675 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13676 # support --undefined. This deserves some investigation. FIXME
13677 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13683 cygwin* | mingw* | pw32* | cegcc*)
13684 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13685 # as there is no search path for DLLs.
13686 hardcode_libdir_flag_spec='-L$libdir'
13687 allow_undefined_flag=unsupported
13688 always_export_symbols=no
13689 enable_shared_with_static_runtimes=yes
13690 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13694 # If the export-symbols file already is a .def file (1st line
13695 # is EXPORTS), use it as is; otherwise, prepend...
13696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13697 cp $export_symbols $output_objdir/$soname.def;
13699 echo EXPORTS > $output_objdir/$soname.def;
13700 cat $export_symbols >> $output_objdir/$soname.def;
13702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710 hardcode_shlibpath_var=no
13711 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13712 export_dynamic_flag_spec='${wl}-E'
13713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13714 # Instead, shared libraries are loaded at an image base (0x10000000 by
13715 # default) and relocated if they conflict, which is a slow very memory
13716 # consuming and fragmenting process. To avoid this, we pick a random,
13717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13720 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'
13723 gnu* | linux* | tpf* | k*bsd*-gnu)
13725 if test "$host_os" = linux-dietlibc; then
13726 case $cc_basename in
13727 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13730 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13731 && test "$tmp_diet" = no
13734 tmp_sharedflag='-shared'
13735 case $cc_basename,$host_cpu in
13736 pgcc*) # Portland Group C compiler
13737 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'
13738 tmp_addflag=' $pic_flag'
13740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13741 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'
13742 tmp_addflag=' $pic_flag -Mnomain' ;;
13743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13744 tmp_addflag=' -i_dynamic' ;;
13745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13746 tmp_addflag=' -i_dynamic -nofor_main' ;;
13747 ifc* | ifort*) # Intel Fortran compiler
13748 tmp_addflag=' -nofor_main' ;;
13749 lf95*) # Lahey Fortran 8.1
13750 whole_archive_flag_spec=
13751 tmp_sharedflag='--shared' ;;
13752 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13753 tmp_sharedflag='-qmkshrobj'
13756 case `$CC -V 2>&1 | sed 5q` in
13757 *Sun\ C*) # Sun C 5.9
13758 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'
13759 compiler_needs_object=yes
13760 tmp_sharedflag='-G' ;;
13761 *Sun\ F*) # Sun Fortran 8.3
13762 tmp_sharedflag='-G' ;;
13764 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766 if test "x$supports_anon_versioning" = xyes; then
13767 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13769 echo "local: *; };" >> $output_objdir/$libname.ver~
13770 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13773 case $cc_basename in
13775 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13776 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13777 hardcode_libdir_flag_spec=
13778 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13779 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13780 if test "x$supports_anon_versioning" = xyes; then
13781 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13782 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13783 echo "local: *; };" >> $output_objdir/$libname.ver~
13784 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13804 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13809 *** create shared libraries on Solaris systems. Therefore, libtool
13810 *** is disabling shared libraries support. We urge you to upgrade GNU
13811 *** binutils to release 2.9.1 or newer. Another option is to modify
13812 *** your PATH or compiler configuration so that the native linker is
13813 *** used, and then restart.
13816 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13825 case `$LD -v 2>&1` in
13826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13831 *** reliably create shared libraries on SCO systems. Therefore, libtool
13832 *** is disabling shared libraries support. We urge you to upgrade GNU
13833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13834 *** your PATH or compiler configuration so that the native linker is
13835 *** used, and then restart.
13840 # For security reasons, it is highly recommended that you always
13841 # use absolute paths for naming shared libraries, and exclude the
13842 # DT_RUNPATH tag from executables and libraries. But doing so
13843 # requires that you compile everything twice, which is a pain.
13844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13847 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13856 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13858 hardcode_direct=yes
13859 hardcode_shlibpath_var=no
13863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13872 if test "$ld_shlibs" = no; then
13874 hardcode_libdir_flag_spec=
13875 export_dynamic_flag_spec=
13876 whole_archive_flag_spec=
13879 # PORTME fill in a description of your system's linker (not GNU ld)
13882 allow_undefined_flag=unsupported
13883 always_export_symbols=yes
13884 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'
13885 # Note: this linker hardcodes the directories in LIBPATH if there
13886 # are no directories specified by -L.
13887 hardcode_minus_L=yes
13888 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13889 # Neither direct hardcoding nor static linking is supported with a
13891 hardcode_direct=unsupported
13896 if test "$host_cpu" = ia64; then
13897 # On IA64, the linker does run time linking by default, so we don't
13898 # have to do anything special.
13899 aix_use_runtimelinking=no
13900 exp_sym_flag='-Bexport'
13903 # If we're using GNU nm, then we don't want the "-C" option.
13904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13905 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13906 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'
13908 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'
13910 aix_use_runtimelinking=no
13912 # Test if we are trying to use run time linking or normal
13913 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13914 # need to do runtime linking.
13915 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13916 for ld_flag in $LDFLAGS; do
13917 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13918 aix_use_runtimelinking=yes
13925 exp_sym_flag='-bexport'
13926 no_entry_flag='-bnoentry'
13929 # When large executables or shared objects are built, AIX ld can
13930 # have problems creating the table of contents. If linking a library
13931 # or program results in "error TOC overflow" add -mminimal-toc to
13932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13936 hardcode_direct=yes
13937 hardcode_direct_absolute=yes
13938 hardcode_libdir_separator=':'
13939 link_all_deplibs=yes
13940 file_list_spec='${wl}-f,'
13942 if test "$GCC" = yes; then
13943 case $host_os in aix4.[012]|aix4.[012].*)
13944 # We only want to do this on AIX 4.2 and lower, the check
13945 # below for broken collect2 doesn't work under 4.3+
13946 collect2name=`${CC} -print-prog-name=collect2`
13947 if test -f "$collect2name" &&
13948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13950 # We have reworked collect2
13953 # We have old collect2
13954 hardcode_direct=unsupported
13955 # It fails to find uninstalled libraries when the uninstalled
13956 # path is not listed in the libpath. Setting hardcode_minus_L
13957 # to unsupported forces relinking
13958 hardcode_minus_L=yes
13959 hardcode_libdir_flag_spec='-L$libdir'
13960 hardcode_libdir_separator=
13964 shared_flag='-shared'
13965 if test "$aix_use_runtimelinking" = yes; then
13966 shared_flag="$shared_flag "'${wl}-G'
13970 if test "$host_cpu" = ia64; then
13971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13972 # chokes on -Wl,-G. The following line is correct:
13975 if test "$aix_use_runtimelinking" = yes; then
13976 shared_flag='${wl}-G'
13978 shared_flag='${wl}-bM:SRE'
13983 export_dynamic_flag_spec='${wl}-bexpall'
13984 # It seems that -bexpall does not export symbols beginning with
13985 # underscore (_), so it is better to generate a list of symbols to export.
13986 always_export_symbols=yes
13987 if test "$aix_use_runtimelinking" = yes; then
13988 # Warning - without using the other runtime loading flags (-brtl),
13989 # -berok will link without error, but may produce a broken library.
13990 allow_undefined_flag='-berok'
13991 # Determine the default libpath from the value encoded in an
13992 # empty executable.
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
14004 if ac_fn_c_try_link "$LINENO"; then :
14006 lt_aix_libpath_sed='
14007 /Import File Strings/,/^$/ {
14013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14014 # Check for a 64-bit object if we didn't find anything.
14015 if test -z "$aix_libpath"; then
14016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14023 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14024 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"
14026 if test "$host_cpu" = ia64; then
14027 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14028 allow_undefined_flag="-z nodefs"
14029 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"
14031 # Determine the default libpath from the value encoded in an
14032 # empty executable.
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14044 if ac_fn_c_try_link "$LINENO"; then :
14046 lt_aix_libpath_sed='
14047 /Import File Strings/,/^$/ {
14053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14054 # Check for a 64-bit object if we didn't find anything.
14055 if test -z "$aix_libpath"; then
14056 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14064 # Warning - without using the other run time loading flags,
14065 # -berok will link without error, but may produce a broken library.
14066 no_undefined_flag=' ${wl}-bernotok'
14067 allow_undefined_flag=' ${wl}-berok'
14068 # Exported symbols can be pulled into shared objects from archives
14069 whole_archive_flag_spec='$convenience'
14070 archive_cmds_need_lc=yes
14071 # This is similar to how AIX traditionally builds its shared libraries.
14072 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'
14080 # see comment about AmigaOS4 .so support
14081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082 archive_expsym_cmds=''
14085 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)'
14086 hardcode_libdir_flag_spec='-L$libdir'
14087 hardcode_minus_L=yes
14093 export_dynamic_flag_spec=-rdynamic
14096 cygwin* | mingw* | pw32* | cegcc*)
14097 # When not using gcc, we currently assume that we are using
14098 # Microsoft Visual C++.
14099 # hardcode_libdir_flag_spec is actually meaningless, as there is
14100 # no search path for DLLs.
14101 hardcode_libdir_flag_spec=' '
14102 allow_undefined_flag=unsupported
14103 # Tell ltmain to make .lib files, not .a files.
14105 # Tell ltmain to make .dll files, not .so files.
14107 # FIXME: Setting linknames here is a bad hack.
14108 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14109 # The linker will automatically build a .lib file if we build a DLL.
14110 old_archive_from_new_cmds='true'
14111 # FIXME: Should let the user specify the lib program.
14112 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14113 fix_srcfile_path='`cygpath -w "$srcfile"`'
14114 enable_shared_with_static_runtimes=yes
14117 darwin* | rhapsody*)
14120 archive_cmds_need_lc=no
14122 hardcode_automatic=yes
14123 hardcode_shlibpath_var=unsupported
14124 whole_archive_flag_spec=''
14125 link_all_deplibs=yes
14126 allow_undefined_flag="$_lt_dar_allow_undefined"
14127 case $cc_basename in
14128 ifort*) _lt_dar_can_shared=yes ;;
14129 *) _lt_dar_can_shared=$GCC ;;
14131 if test "$_lt_dar_can_shared" = "yes"; then
14132 output_verbose_link_cmd=echo
14133 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14134 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14135 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}"
14136 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}"
14145 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14146 hardcode_libdir_flag_spec='-L$libdir'
14147 hardcode_shlibpath_var=no
14154 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14155 # support. Future versions do this automatically, but an explicit c++rt0.o
14156 # does not break anything, and helps significantly (at the cost of a little
14159 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14160 hardcode_libdir_flag_spec='-R$libdir'
14161 hardcode_direct=yes
14162 hardcode_shlibpath_var=no
14165 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14168 hardcode_direct=yes
14169 hardcode_minus_L=yes
14170 hardcode_shlibpath_var=no
14173 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14174 freebsd* | dragonfly*)
14175 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14176 hardcode_libdir_flag_spec='-R$libdir'
14177 hardcode_direct=yes
14178 hardcode_shlibpath_var=no
14182 if test "$GCC" = yes; then
14183 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'
14185 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'
14187 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14188 hardcode_libdir_separator=:
14189 hardcode_direct=yes
14191 # hardcode_minus_L: Not really in the search PATH,
14192 # but as the default location of the library.
14193 hardcode_minus_L=yes
14194 export_dynamic_flag_spec='${wl}-E'
14198 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14199 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14201 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14203 if test "$with_gnu_ld" = no; then
14204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14205 hardcode_libdir_flag_spec_ld='+b $libdir'
14206 hardcode_libdir_separator=:
14207 hardcode_direct=yes
14208 hardcode_direct_absolute=yes
14209 export_dynamic_flag_spec='${wl}-E'
14210 # hardcode_minus_L: Not really in the search PATH,
14211 # but as the default location of the library.
14212 hardcode_minus_L=yes
14217 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14220 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14223 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14226 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14232 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14235 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14238 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14242 if test "$with_gnu_ld" = no; then
14243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14244 hardcode_libdir_separator=:
14249 hardcode_shlibpath_var=no
14252 hardcode_direct=yes
14253 hardcode_direct_absolute=yes
14254 export_dynamic_flag_spec='${wl}-E'
14256 # hardcode_minus_L: Not really in the search PATH,
14257 # but as the default location of the library.
14258 hardcode_minus_L=yes
14264 irix5* | irix6* | nonstopux*)
14265 if test "$GCC" = yes; then
14266 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'
14267 # Try to use the -exported_symbol ld option, if it does not
14268 # work, assume that -exports_file does not work either and
14269 # implicitly export all symbols.
14270 save_LDFLAGS="$LDFLAGS"
14271 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14276 if ac_fn_c_try_link "$LINENO"; then :
14277 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'
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 LDFLAGS="$save_LDFLAGS"
14284 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'
14285 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'
14287 archive_cmds_need_lc='no'
14288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14289 hardcode_libdir_separator=:
14291 link_all_deplibs=yes
14295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14298 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14300 hardcode_libdir_flag_spec='-R$libdir'
14301 hardcode_direct=yes
14302 hardcode_shlibpath_var=no
14306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14307 hardcode_direct=yes
14308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14309 hardcode_libdir_separator=:
14310 hardcode_shlibpath_var=no
14317 if test -f /usr/libexec/ld.so; then
14318 hardcode_direct=yes
14319 hardcode_shlibpath_var=no
14320 hardcode_direct_absolute=yes
14321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14325 export_dynamic_flag_spec='${wl}-E'
14328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14330 hardcode_libdir_flag_spec='-R$libdir'
14333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14344 hardcode_libdir_flag_spec='-L$libdir'
14345 hardcode_minus_L=yes
14346 allow_undefined_flag=unsupported
14347 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'
14348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14352 if test "$GCC" = yes; then
14353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14354 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'
14356 allow_undefined_flag=' -expect_unresolved \*'
14357 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'
14359 archive_cmds_need_lc='no'
14360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14361 hardcode_libdir_separator=:
14364 osf4* | osf5*) # as osf3* with the addition of -msym flag
14365 if test "$GCC" = yes; then
14366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14367 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'
14368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14370 allow_undefined_flag=' -expect_unresolved \*'
14371 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'
14372 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~
14373 $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'
14375 # Both c and cxx compiler support -rpath directly
14376 hardcode_libdir_flag_spec='-rpath $libdir'
14378 archive_cmds_need_lc='no'
14379 hardcode_libdir_separator=:
14383 no_undefined_flag=' -z defs'
14384 if test "$GCC" = yes; then
14386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14390 case `$CC -V 2>&1` in
14393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14405 hardcode_libdir_flag_spec='-R$libdir'
14406 hardcode_shlibpath_var=no
14408 solaris2.[0-5] | solaris2.[0-5].*) ;;
14410 # The compiler driver will combine and reorder linker options,
14411 # but understands `-z linker_flag'. GCC discards it without `$wl',
14412 # but is careful enough not to reorder.
14413 # Supported since Solaris 2.6 (maybe 2.5.1?)
14414 if test "$GCC" = yes; then
14415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14421 link_all_deplibs=yes
14425 if test "x$host_vendor" = xsequent; then
14426 # Use $CC to link under sequent, because it throws in some extra .o
14427 # files that make .init and .fini sections work.
14428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14432 hardcode_libdir_flag_spec='-L$libdir'
14433 hardcode_direct=yes
14434 hardcode_minus_L=yes
14435 hardcode_shlibpath_var=no
14439 case $host_vendor in
14441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14442 hardcode_direct=yes # is this really true???
14445 ## LD is ld it makes a PLAMLIB
14446 ## CC just makes a GrossModule.
14447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14448 reload_cmds='$CC -r -o $output$reload_objs'
14452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14456 runpath_var='LD_RUN_PATH'
14457 hardcode_shlibpath_var=no
14461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462 hardcode_shlibpath_var=no
14463 export_dynamic_flag_spec='-Bexport'
14467 if test -d /usr/nec; then
14468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_shlibpath_var=no
14470 runpath_var=LD_RUN_PATH
14471 hardcode_runpath_var=yes
14476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14477 no_undefined_flag='${wl}-z,text'
14478 archive_cmds_need_lc=no
14479 hardcode_shlibpath_var=no
14480 runpath_var='LD_RUN_PATH'
14482 if test "$GCC" = yes; then
14483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 sysv5* | sco3.2v5* | sco5v6*)
14492 # Note: We can NOT use -z defs as we might desire, because we do not
14493 # link with -lc, and that would cause any symbols used from libc to
14494 # always be unresolved, which means just about no library would
14495 # ever link correctly. If we're not using GNU ld we use -z text
14496 # though, which does catch some bad symbols but isn't as heavy-handed
14498 no_undefined_flag='${wl}-z,text'
14499 allow_undefined_flag='${wl}-z,nodefs'
14500 archive_cmds_need_lc=no
14501 hardcode_shlibpath_var=no
14502 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14503 hardcode_libdir_separator=':'
14504 link_all_deplibs=yes
14505 export_dynamic_flag_spec='${wl}-Bexport'
14506 runpath_var='LD_RUN_PATH'
14508 if test "$GCC" = yes; then
14509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14519 hardcode_libdir_flag_spec='-L$libdir'
14520 hardcode_shlibpath_var=no
14528 if test x$host_vendor = xsni; then
14530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14531 export_dynamic_flag_spec='${wl}-Blargedynsym'
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14538 $as_echo "$ld_shlibs" >&6; }
14539 test "$ld_shlibs" = no && can_build_shared=no
14541 with_gnu_ld=$with_gnu_ld
14558 # Do we need to explicitly link libc?
14560 case "x$archive_cmds_need_lc" in
14562 # Assume -lc should be added
14563 archive_cmds_need_lc=yes
14565 if test "$enable_shared" = yes && test "$GCC" = yes; then
14566 case $archive_cmds in
14568 # FIXME: we may have to deal with multi-command sequences.
14571 # Test whether the compiler implicitly links with -lc since on some
14572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14573 # to ld, don't add -lc before -lgcc.
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14580 (eval $ac_compile) 2>&5
14582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583 test $ac_status = 0; } 2>conftest.err; then
14586 libobjs=conftest.$ac_objext
14588 wl=$lt_prog_compiler_wl
14589 pic_flag=$lt_prog_compiler_pic
14595 lt_save_allow_undefined_flag=$allow_undefined_flag
14596 allow_undefined_flag=
14597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14598 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14601 test $ac_status = 0; }
14603 archive_cmds_need_lc=no
14605 archive_cmds_need_lc=yes
14607 allow_undefined_flag=$lt_save_allow_undefined_flag
14609 cat conftest.err 1>&5
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14613 $as_echo "$archive_cmds_need_lc" >&6; }
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14777 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14779 if test "$GCC" = yes; then
14781 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14782 *) lt_awk_arg="/^libraries:/" ;;
14784 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14785 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14786 # if the path contains ";" then we assume it to be the separator
14787 # otherwise default to the standard path separator (i.e. ":") - it is
14788 # assumed that no part of a normal pathname contains ";" but that should
14789 # okay in the real world where ";" in dirpaths is itself problematic.
14790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14792 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14794 # Ok, now we have the path, separated by spaces, we can step through it
14795 # and add multilib dir if necessary.
14796 lt_tmp_lt_search_path_spec=
14797 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14798 for lt_sys_path in $lt_search_path_spec; do
14799 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14802 test -d "$lt_sys_path" && \
14803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14806 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14807 BEGIN {RS=" "; FS="/|\n";} {
14810 for (lt_i = NF; lt_i > 0; lt_i--) {
14811 if ($lt_i != "" && $lt_i != ".") {
14812 if ($lt_i == "..") {
14815 if (lt_count == 0) {
14816 lt_foo="/" $lt_i lt_foo;
14823 if (lt_foo != "") { lt_freq[lt_foo]++; }
14824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14826 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14828 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14830 library_names_spec=
14831 libname_spec='lib$name'
14835 postuninstall_cmds=
14839 shlibpath_overrides_runpath=unknown
14841 dynamic_linker="$host_os ld.so"
14842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14843 need_lib_prefix=unknown
14844 hardcode_into_libs=no
14846 # when you set need_version to no, make sure it does not cause -set_version
14847 # flags to be left without arguments
14848 need_version=unknown
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14854 shlibpath_var=LIBPATH
14856 # AIX 3 has no versioning support, so we append a major version to the name.
14857 soname_spec='${libname}${release}${shared_ext}$major'
14864 hardcode_into_libs=yes
14865 if test "$host_cpu" = ia64; then
14866 # AIX 5 supports IA64
14867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14868 shlibpath_var=LD_LIBRARY_PATH
14870 # With GCC up to 2.95.x, collect2 would create an import file
14871 # for dependence libraries. The import file would start with
14872 # the line `#! .'. This would cause the generated library to
14873 # depend on `.', always an invalid library. This was fixed in
14874 # development snapshots of GCC prior to 3.0.
14876 aix4 | aix4.[01] | aix4.[01].*)
14877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14879 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14882 can_build_shared=no
14886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14887 # soname into executable. Probably we can add versioning support to
14888 # collect2, so additional links can be useful in future.
14889 if test "$aix_use_runtimelinking" = yes; then
14890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14891 # instead of lib<name>.a to let people know that these are not
14892 # typical AIX shared libraries.
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 # We preserve .a as extension for shared libraries through AIX4.2
14896 # and later when we are not doing run time linking.
14897 library_names_spec='${libname}${release}.a $libname.a'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LIBPATH
14907 # Since July 2007 AmigaOS4 officially supports .so libraries.
14908 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14912 library_names_spec='$libname.ixlibrary $libname.a'
14913 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14914 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'
14920 library_names_spec='${libname}${shared_ext}'
14921 dynamic_linker="$host_os ld.so"
14922 shlibpath_var=LIBRARY_PATH
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14934 # the default ld.so.conf also contains /usr/contrib/lib and
14935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14936 # libtool to hard-code these into programs
14939 cygwin* | mingw* | pw32* | cegcc*)
14940 version_type=windows
14945 case $GCC,$host_os in
14946 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14947 library_names_spec='$libname.dll.a'
14948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14949 postinstall_cmds='base_file=`basename \${file}`~
14950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14951 dldir=$destdir/`dirname \$dlpath`~
14952 test -d \$dldir || mkdir -p \$dldir~
14953 $install_prog $dir/$dlname \$dldir/$dlname~
14954 chmod a+x \$dldir/$dlname~
14955 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14956 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14958 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14959 dlpath=$dir/\$dldll~
14961 shlibpath_overrides_runpath=yes
14965 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14966 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14967 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14970 # MinGW DLLs use traditional 'lib' prefix
14971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14972 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14973 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14974 # It is most probably a Windows format PATH printed by
14975 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14976 # path with ; separators, and with drive letters. We can handle the
14977 # drive letters (cygwin fileutils understands them), so leave them,
14978 # especially as we might pass files found there to a mingw objdump,
14979 # which wouldn't understand a cygwinified path. Ahh.
14980 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14986 # pw32 DLLs use 'pw' prefix rather than 'lib'
14987 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14993 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14996 dynamic_linker='Win32 ld.exe'
14997 # FIXME: first we should search . and the directory the executable is in
15001 darwin* | rhapsody*)
15002 dynamic_linker="$host_os dyld"
15003 version_type=darwin
15006 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15007 soname_spec='${libname}${release}${major}$shared_ext'
15008 shlibpath_overrides_runpath=yes
15009 shlibpath_var=DYLD_LIBRARY_PATH
15010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15012 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15013 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LD_LIBRARY_PATH
15029 freebsd* | dragonfly*)
15030 # DragonFly does not have aout. When/if they implement a new
15031 # versioning mechanism, adjust this.
15032 if test -x /usr/bin/objformat; then
15033 objformat=`/usr/bin/objformat`
15036 freebsd[123]*) objformat=aout ;;
15037 *) objformat=elf ;;
15040 version_type=freebsd-$objformat
15041 case $version_type in
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15052 shlibpath_var=LD_LIBRARY_PATH
15055 shlibpath_overrides_runpath=yes
15057 freebsd3.[01]* | freebsdelf3.[01]*)
15058 shlibpath_overrides_runpath=yes
15059 hardcode_into_libs=yes
15061 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15062 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15063 shlibpath_overrides_runpath=no
15064 hardcode_into_libs=yes
15066 *) # from 4.6 on, and DragonFly
15067 shlibpath_overrides_runpath=yes
15068 hardcode_into_libs=yes
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15078 soname_spec='${libname}${release}${shared_ext}$major'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 hardcode_into_libs=yes
15083 hpux9* | hpux10* | hpux11*)
15084 # Give a soname corresponding to the major version so that dld.sl refuses to
15085 # link against other versions.
15092 hardcode_into_libs=yes
15093 dynamic_linker="$host_os dld.so"
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 if test "X$HPUX_IA64_MODE" = X32; then
15099 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15101 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15107 hardcode_into_libs=yes
15108 dynamic_linker="$host_os dld.sl"
15109 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112 soname_spec='${libname}${release}${shared_ext}$major'
15113 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15118 dynamic_linker="$host_os dld.sl"
15119 shlibpath_var=SHLIB_PATH
15120 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15125 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15126 postinstall_cmds='chmod 555 $lib'
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 shlibpath_overrides_runpath=no
15138 hardcode_into_libs=yes
15141 irix5* | irix6* | nonstopux*)
15143 nonstopux*) version_type=nonstopux ;;
15145 if test "$lt_cv_prog_gnu_ld" = yes; then
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15156 irix5* | nonstopux*)
15157 libsuff= shlibsuff=
15160 case $LD in # libtool.m4 will add one of these switches to LD
15161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15162 libsuff= shlibsuff= libmagic=32-bit;;
15163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15164 libsuff=32 shlibsuff=N32 libmagic=N32;;
15165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15166 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15167 *) libsuff= shlibsuff= libmagic=never-match;;
15171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15172 shlibpath_overrides_runpath=no
15173 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15174 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15175 hardcode_into_libs=yes
15178 # No shared lib support for Linux oldld, aout, or coff.
15179 linux*oldld* | linux*aout* | linux*coff*)
15183 # This must be Linux ELF.
15184 linux* | k*bsd*-gnu)
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15191 shlibpath_var=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath=no
15193 # Some binutils ld are patched to set DT_RUNPATH
15194 save_LDFLAGS=$LDFLAGS
15195 save_libdir=$libdir
15196 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15197 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15209 if ac_fn_c_try_link "$LINENO"; then :
15210 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15211 shlibpath_overrides_runpath=yes
15214 rm -f core conftest.err conftest.$ac_objext \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LDFLAGS=$save_LDFLAGS
15217 libdir=$save_libdir
15219 # This implies no fast_install, which is unacceptable.
15220 # Some rework will be needed to allow for fast_install
15221 # before this can be enabled.
15222 hardcode_into_libs=yes
15224 # Add ABI-specific directories to the system library path.
15225 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15227 # Append ld.so.conf contents to the search path
15228 if test -f /etc/ld.so.conf; then
15229 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' ' '`
15230 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15233 # We used to test for /lib/ld.so.1 and disable shared libraries on
15234 # powerpc, because MkLinux only supported shared libraries with the
15235 # GNU dynamic linker. Since this was broken with cross compilers,
15236 # most powerpc-linux boxes support dynamic linking these days and
15237 # people can always --disable-shared, the test was removed, and we
15238 # assume the GNU/Linux dynamic linker is in use.
15239 dynamic_linker='GNU/Linux ld.so'
15246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15249 dynamic_linker='NetBSD (a.out) ld.so'
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 dynamic_linker='NetBSD ld.elf_so'
15255 shlibpath_var=LD_LIBRARY_PATH
15256 shlibpath_overrides_runpath=yes
15257 hardcode_into_libs=yes
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=yes
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 shlibpath_overrides_runpath=no
15275 hardcode_into_libs=yes
15276 dynamic_linker='ldqnx.so'
15281 sys_lib_dlsearch_path_spec="/usr/lib"
15283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15286 *) need_version=no ;;
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15290 shlibpath_var=LD_LIBRARY_PATH
15291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15293 openbsd2.[89] | openbsd2.[89].*)
15294 shlibpath_overrides_runpath=no
15297 shlibpath_overrides_runpath=yes
15301 shlibpath_overrides_runpath=yes
15306 libname_spec='$name'
15309 library_names_spec='$libname${shared_ext} $libname.a'
15310 dynamic_linker='OS/2 ld.exe'
15311 shlibpath_var=LIBPATH
15314 osf3* | osf4* | osf5*)
15318 soname_spec='${libname}${release}${shared_ext}$major'
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15320 shlibpath_var=LD_LIBRARY_PATH
15321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 shlibpath_var=LD_LIBRARY_PATH
15336 shlibpath_overrides_runpath=yes
15337 hardcode_into_libs=yes
15338 # ldd complains unless libraries are executable
15339 postinstall_cmds='chmod +x $lib'
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=yes
15348 if test "$with_gnu_ld" = yes; then
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 case $host_vendor in
15361 shlibpath_overrides_runpath=no
15363 runpath_var=LD_RUN_PATH
15371 shlibpath_overrides_runpath=no
15372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15378 if test -d /usr/nec ;then
15380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15381 soname_spec='$libname${shared_ext}.$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15386 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15387 version_type=freebsd-elf
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 if test "$with_gnu_ld" = yes; then
15396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15405 sys_lib_dlsearch_path_spec='/usr/lib'
15409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 shlibpath_var=LD_LIBRARY_PATH
15415 shlibpath_overrides_runpath=no
15416 hardcode_into_libs=yes
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15431 $as_echo "$dynamic_linker" >&6; }
15432 test "$dynamic_linker" = no && can_build_shared=no
15434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15435 if test "$GCC" = yes; then
15436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15439 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15442 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15533 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15535 if test -n "$hardcode_libdir_flag_spec" ||
15536 test -n "$runpath_var" ||
15537 test "X$hardcode_automatic" = "Xyes" ; then
15539 # We can hardcode non-existent directories.
15540 if test "$hardcode_direct" != no &&
15541 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15542 # have to relink, otherwise we might link with an installed library
15543 # when we should be linking with a yet-to-be-installed one
15544 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15545 test "$hardcode_minus_L" != no; then
15546 # Linking always hardcodes the temporary library directory.
15547 hardcode_action=relink
15549 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15550 hardcode_action=immediate
15553 # We cannot hardcode anything, or else we can only hardcode existing
15555 hardcode_action=unsupported
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15558 $as_echo "$hardcode_action" >&6; }
15560 if test "$hardcode_action" = relink ||
15561 test "$inherit_rpath" = yes; then
15562 # Fast installation is not supported
15563 enable_fast_install=no
15564 elif test "$shlibpath_overrides_runpath" = yes ||
15565 test "$enable_shared" = no; then
15566 # Fast installation is not necessary
15567 enable_fast_install=needless
15575 if test "x$enable_dlopen" != xyes; then
15576 enable_dlopen=unknown
15577 enable_dlopen_self=unknown
15578 enable_dlopen_self_static=unknown
15585 lt_cv_dlopen="load_add_on"
15587 lt_cv_dlopen_self=yes
15590 mingw* | pw32* | cegcc*)
15591 lt_cv_dlopen="LoadLibrary"
15596 lt_cv_dlopen="dlopen"
15601 # if libdl is installed we need to link against it
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15604 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15605 $as_echo_n "(cached) " >&6
15607 ac_check_lib_save_LIBS=$LIBS
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15612 /* Override any GCC internal prototype to avoid an error.
15613 Use char because int might match the return type of a GCC
15614 builtin and then its argument prototype would still apply. */
15627 if ac_fn_c_try_link "$LINENO"; then :
15628 ac_cv_lib_dl_dlopen=yes
15630 ac_cv_lib_dl_dlopen=no
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_check_lib_save_LIBS
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15638 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15639 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15642 lt_cv_dlopen="dyld"
15644 lt_cv_dlopen_self=yes
15651 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15652 if test "x$ac_cv_func_shl_load" = x""yes; then :
15653 lt_cv_dlopen="shl_load"
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15656 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15658 $as_echo_n "(cached) " >&6
15660 ac_check_lib_save_LIBS=$LIBS
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15675 return shl_load ();
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 ac_cv_lib_dld_shl_load=yes
15683 ac_cv_lib_dld_shl_load=no
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15690 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15691 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15692 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15694 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15695 if test "x$ac_cv_func_dlopen" = x""yes; then :
15696 lt_cv_dlopen="dlopen"
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15700 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15703 ac_check_lib_save_LIBS=$LIBS
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15723 if ac_fn_c_try_link "$LINENO"; then :
15724 ac_cv_lib_dl_dlopen=yes
15726 ac_cv_lib_dl_dlopen=no
15728 rm -f core conftest.err conftest.$ac_objext \
15729 conftest$ac_exeext conftest.$ac_ext
15730 LIBS=$ac_check_lib_save_LIBS
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15733 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15734 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15735 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15738 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15739 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15742 ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-lsvld $LIBS"
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15747 /* Override any GCC internal prototype to avoid an error.
15748 Use char because int might match the return type of a GCC
15749 builtin and then its argument prototype would still apply. */
15762 if ac_fn_c_try_link "$LINENO"; then :
15763 ac_cv_lib_svld_dlopen=yes
15765 ac_cv_lib_svld_dlopen=no
15767 rm -f core conftest.err conftest.$ac_objext \
15768 conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15772 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15773 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15774 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15777 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15778 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15779 $as_echo_n "(cached) " >&6
15781 ac_check_lib_save_LIBS=$LIBS
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15786 /* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply. */
15796 return dld_link ();
15801 if ac_fn_c_try_link "$LINENO"; then :
15802 ac_cv_lib_dld_dld_link=yes
15804 ac_cv_lib_dld_dld_link=no
15806 rm -f core conftest.err conftest.$ac_objext \
15807 conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15811 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15812 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15813 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15834 if test "x$lt_cv_dlopen" != xno; then
15840 case $lt_cv_dlopen in
15842 save_CPPFLAGS="$CPPFLAGS"
15843 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15845 save_LDFLAGS="$LDFLAGS"
15846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15849 LIBS="$lt_cv_dlopen_libs $LIBS"
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15852 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15853 if test "${lt_cv_dlopen_self+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15856 if test "$cross_compiling" = yes; then :
15857 lt_cv_dlopen_self=cross
15859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15860 lt_status=$lt_dlunknown
15861 cat > conftest.$ac_ext <<_LT_EOF
15862 #line 15862 "configure"
15863 #include "confdefs.h"
15872 # define LT_DLGLOBAL RTLD_GLOBAL
15875 # define LT_DLGLOBAL DL_GLOBAL
15877 # define LT_DLGLOBAL 0
15881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15882 find out it does not work in some platform. */
15883 #ifndef LT_DLLAZY_OR_NOW
15885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15888 # define LT_DLLAZY_OR_NOW DL_LAZY
15891 # define LT_DLLAZY_OR_NOW RTLD_NOW
15894 # define LT_DLLAZY_OR_NOW DL_NOW
15896 # define LT_DLLAZY_OR_NOW 0
15903 void fnord() { int i=42;}
15906 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15907 int status = $lt_dlunknown;
15911 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15912 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15913 /* dlclose (self); */
15921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15922 (eval $ac_link) 2>&5
15924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15925 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15926 (./conftest; exit; ) >&5 2>/dev/null
15928 case x$lt_status in
15929 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15930 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15931 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15934 # compilation failed
15935 lt_cv_dlopen_self=no
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15943 $as_echo "$lt_cv_dlopen_self" >&6; }
15945 if test "x$lt_cv_dlopen_self" = xyes; then
15946 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15948 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15949 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15950 $as_echo_n "(cached) " >&6
15952 if test "$cross_compiling" = yes; then :
15953 lt_cv_dlopen_self_static=cross
15955 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15956 lt_status=$lt_dlunknown
15957 cat > conftest.$ac_ext <<_LT_EOF
15958 #line 15958 "configure"
15959 #include "confdefs.h"
15968 # define LT_DLGLOBAL RTLD_GLOBAL
15971 # define LT_DLGLOBAL DL_GLOBAL
15973 # define LT_DLGLOBAL 0
15977 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15978 find out it does not work in some platform. */
15979 #ifndef LT_DLLAZY_OR_NOW
15981 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15984 # define LT_DLLAZY_OR_NOW DL_LAZY
15987 # define LT_DLLAZY_OR_NOW RTLD_NOW
15990 # define LT_DLLAZY_OR_NOW DL_NOW
15992 # define LT_DLLAZY_OR_NOW 0
15999 void fnord() { int i=42;}
16002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16003 int status = $lt_dlunknown;
16007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16008 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16009 /* dlclose (self); */
16017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16018 (eval $ac_link) 2>&5
16020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16021 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16022 (./conftest; exit; ) >&5 2>/dev/null
16024 case x$lt_status in
16025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16030 # compilation failed
16031 lt_cv_dlopen_self_static=no
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16039 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16042 CPPFLAGS="$save_CPPFLAGS"
16043 LDFLAGS="$save_LDFLAGS"
16048 case $lt_cv_dlopen_self in
16049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16050 *) enable_dlopen_self=unknown ;;
16053 case $lt_cv_dlopen_self_static in
16054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16055 *) enable_dlopen_self_static=unknown ;;
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16078 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16079 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16081 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16083 $as_echo "yes" >&6; }
16085 # FIXME - insert some real tests, host_os isn't really good enough
16088 if test -n "$STRIP" ; then
16089 striplib="$STRIP -x"
16090 old_striplib="$STRIP -S"
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16092 $as_echo "yes" >&6; }
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16116 # Report which library types will actually be built
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16118 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16120 $as_echo "$can_build_shared" >&6; }
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16123 $as_echo_n "checking whether to build shared libraries... " >&6; }
16124 test "$can_build_shared" = "no" && enable_shared=no
16126 # On AIX, shared libraries and static libraries use the same namespace, and
16127 # are all built from PIC.
16130 test "$enable_shared" = yes && enable_static=no
16131 if test -n "$RANLIB"; then
16132 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16133 postinstall_cmds='$RANLIB $lib'
16138 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16139 test "$enable_shared" = yes && enable_static=no
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16144 $as_echo "$enable_shared" >&6; }
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16147 $as_echo_n "checking whether to build static libraries... " >&6; }
16148 # Make sure either enable_shared or enable_static is yes.
16149 test "$enable_shared" = yes || enable_static=yes
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16151 $as_echo "$enable_static" >&6; }
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16167 ac_cpp='$CXXCPP $CPPFLAGS'
16168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16172 archive_cmds_need_lc_CXX=no
16173 allow_undefined_flag_CXX=
16174 always_export_symbols_CXX=no
16175 archive_expsym_cmds_CXX=
16176 compiler_needs_object_CXX=no
16177 export_dynamic_flag_spec_CXX=
16178 hardcode_direct_CXX=no
16179 hardcode_direct_absolute_CXX=no
16180 hardcode_libdir_flag_spec_CXX=
16181 hardcode_libdir_flag_spec_ld_CXX=
16182 hardcode_libdir_separator_CXX=
16183 hardcode_minus_L_CXX=no
16184 hardcode_shlibpath_var_CXX=unsupported
16185 hardcode_automatic_CXX=no
16186 inherit_rpath_CXX=no
16188 module_expsym_cmds_CXX=
16189 link_all_deplibs_CXX=unknown
16190 old_archive_cmds_CXX=$old_archive_cmds
16191 no_undefined_flag_CXX=
16192 whole_archive_flag_spec_CXX=
16193 enable_shared_with_static_runtimes_CXX=no
16195 # Source file extension for C++ test sources.
16198 # Object file extension for compiled C++ test sources.
16202 # No sense in running all these tests if we already determined that
16203 # the CXX compiler isn't working. Some variables (like enable_shared)
16204 # are currently assumed to apply to all compilers on this platform,
16205 # and will be corrupted by setting them based on a non-working compiler.
16206 if test "$_lt_caught_CXX_error" != yes; then
16207 # Code to be used in simple compile tests
16208 lt_simple_compile_test_code="int some_variable = 0;"
16210 # Code to be used in simple link tests
16211 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16213 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16220 # If no C compiler was specified, use CC.
16223 # If no C compiler flags were specified, use CFLAGS.
16224 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16226 # Allow CC to be a program name with arguments.
16230 # save warnings/boilerplate of simple test code
16231 ac_outfile=conftest.$ac_objext
16232 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16233 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16234 _lt_compiler_boilerplate=`cat conftest.err`
16237 ac_outfile=conftest.$ac_objext
16238 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16239 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16240 _lt_linker_boilerplate=`cat conftest.err`
16244 # Allow CC to be a program name with arguments.
16249 lt_save_with_gnu_ld=$with_gnu_ld
16250 lt_save_path_LD=$lt_cv_path_LD
16251 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16252 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16254 $as_unset lt_cv_prog_gnu_ld
16256 if test -n "${lt_cv_path_LDCXX+set}"; then
16257 lt_cv_path_LD=$lt_cv_path_LDCXX
16259 $as_unset lt_cv_path_LD
16261 test -z "${LDCXX+set}" || LD=$LDCXX
16265 for cc_temp in $compiler""; do
16267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16273 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16276 if test -n "$compiler"; then
16277 # We don't want -fno-exception when compiling C++ code, so set the
16278 # no_builtin_flag separately
16279 if test "$GXX" = yes; then
16280 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16282 lt_prog_compiler_no_builtin_flag_CXX=
16285 if test "$GXX" = yes; then
16286 # Set up default GNU C++ configuration
16290 # Check whether --with-gnu-ld was given.
16291 if test "${with_gnu_ld+set}" = set; then :
16292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16298 if test "$GCC" = yes; then
16299 # Check if gcc -print-prog-name=ld gives a path.
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16301 $as_echo_n "checking for ld used by $CC... " >&6; }
16304 # gcc leaves a trailing carriage return which upsets mingw
16305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16310 # Accept absolute paths.
16312 re_direlt='/[^/][^/]*/\.\./'
16313 # Canonicalize the pathname of ld
16314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16318 test -z "$LD" && LD="$ac_prog"
16321 # If it fails, then pretend we aren't using GCC.
16325 # If it is relative, then search for the first ld in PATH.
16326 with_gnu_ld=unknown
16329 elif test "$with_gnu_ld" = yes; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16331 $as_echo_n "checking for GNU ld... " >&6; }
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16334 $as_echo_n "checking for non-GNU ld... " >&6; }
16336 if test "${lt_cv_path_LD+set}" = set; then :
16337 $as_echo_n "(cached) " >&6
16339 if test -z "$LD"; then
16340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16341 for ac_dir in $PATH; do
16343 test -z "$ac_dir" && ac_dir=.
16344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16345 lt_cv_path_LD="$ac_dir/$ac_prog"
16346 # Check to see if the program is GNU ld. I'd rather use --version,
16347 # but apparently some variants of GNU ld only accept -v.
16348 # Break only if it was the GNU/non-GNU ld that we prefer.
16349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16350 *GNU* | *'with BFD'*)
16351 test "$with_gnu_ld" != no && break
16354 test "$with_gnu_ld" != yes && break
16361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16365 LD="$lt_cv_path_LD"
16366 if test -n "$LD"; then
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16368 $as_echo "$LD" >&6; }
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16371 $as_echo "no" >&6; }
16373 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16377 $as_echo_n "(cached) " >&6
16379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16380 case `$LD -v 2>&1 </dev/null` in
16381 *GNU* | *'with BFD'*)
16382 lt_cv_prog_gnu_ld=yes
16385 lt_cv_prog_gnu_ld=no
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16391 with_gnu_ld=$lt_cv_prog_gnu_ld
16399 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16400 # archiving commands below assume that GNU ld is being used.
16401 if test "$with_gnu_ld" = yes; then
16402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16403 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'
16405 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16406 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16408 # If archive_cmds runs LD, not CC, wlarc should be empty
16409 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16410 # investigate it a little bit more. (MM)
16413 # ancient GNU ld didn't support --whole-archive et. al.
16414 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16415 $GREP 'no-whole-archive' > /dev/null; then
16416 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16418 whole_archive_flag_spec_CXX=
16424 # A generic and very simple default shared library creation
16425 # command for GNU C++ for the case where it uses the native
16426 # linker, instead of GNU ld. If possible, this setting should
16427 # overridden to take advantage of the native linker features on
16428 # the platform it is being used on.
16429 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16432 # Commands to make compiler produce verbose output that lists
16433 # what "hidden" libraries, object files and flags are used when
16434 # linking a shared library.
16435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16443 # PORTME: fill in a description of your system's C++ link characteristics
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16445 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16449 # FIXME: insert proper C++ library support
16453 if test "$host_cpu" = ia64; then
16454 # On IA64, the linker does run time linking by default, so we don't
16455 # have to do anything special.
16456 aix_use_runtimelinking=no
16457 exp_sym_flag='-Bexport'
16460 aix_use_runtimelinking=no
16462 # Test if we are trying to use run time linking or normal
16463 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16464 # need to do runtime linking.
16465 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16466 for ld_flag in $LDFLAGS; do
16469 aix_use_runtimelinking=yes
16477 exp_sym_flag='-bexport'
16478 no_entry_flag='-bnoentry'
16481 # When large executables or shared objects are built, AIX ld can
16482 # have problems creating the table of contents. If linking a library
16483 # or program results in "error TOC overflow" add -mminimal-toc to
16484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16487 archive_cmds_CXX=''
16488 hardcode_direct_CXX=yes
16489 hardcode_direct_absolute_CXX=yes
16490 hardcode_libdir_separator_CXX=':'
16491 link_all_deplibs_CXX=yes
16492 file_list_spec_CXX='${wl}-f,'
16494 if test "$GXX" = yes; then
16495 case $host_os in aix4.[012]|aix4.[012].*)
16496 # We only want to do this on AIX 4.2 and lower, the check
16497 # below for broken collect2 doesn't work under 4.3+
16498 collect2name=`${CC} -print-prog-name=collect2`
16499 if test -f "$collect2name" &&
16500 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16502 # We have reworked collect2
16505 # We have old collect2
16506 hardcode_direct_CXX=unsupported
16507 # It fails to find uninstalled libraries when the uninstalled
16508 # path is not listed in the libpath. Setting hardcode_minus_L
16509 # to unsupported forces relinking
16510 hardcode_minus_L_CXX=yes
16511 hardcode_libdir_flag_spec_CXX='-L$libdir'
16512 hardcode_libdir_separator_CXX=
16515 shared_flag='-shared'
16516 if test "$aix_use_runtimelinking" = yes; then
16517 shared_flag="$shared_flag "'${wl}-G'
16521 if test "$host_cpu" = ia64; then
16522 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16523 # chokes on -Wl,-G. The following line is correct:
16526 if test "$aix_use_runtimelinking" = yes; then
16527 shared_flag='${wl}-G'
16529 shared_flag='${wl}-bM:SRE'
16534 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16535 # It seems that -bexpall does not export symbols beginning with
16536 # underscore (_), so it is better to generate a list of symbols to
16538 always_export_symbols_CXX=yes
16539 if test "$aix_use_runtimelinking" = yes; then
16540 # Warning - without using the other runtime loading flags (-brtl),
16541 # -berok will link without error, but may produce a broken library.
16542 allow_undefined_flag_CXX='-berok'
16543 # Determine the default libpath from the value encoded in an empty
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16556 if ac_fn_cxx_try_link "$LINENO"; then :
16558 lt_aix_libpath_sed='
16559 /Import File Strings/,/^$/ {
16565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16566 # Check for a 64-bit object if we didn't find anything.
16567 if test -z "$aix_libpath"; then
16568 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16575 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16577 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"
16579 if test "$host_cpu" = ia64; then
16580 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16581 allow_undefined_flag_CXX="-z nodefs"
16582 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"
16584 # Determine the default libpath from the value encoded in an
16585 # empty executable.
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16597 if ac_fn_cxx_try_link "$LINENO"; then :
16599 lt_aix_libpath_sed='
16600 /Import File Strings/,/^$/ {
16606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16607 # Check for a 64-bit object if we didn't find anything.
16608 if test -z "$aix_libpath"; then
16609 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16612 rm -f core conftest.err conftest.$ac_objext \
16613 conftest$ac_exeext conftest.$ac_ext
16614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16616 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16617 # Warning - without using the other run time loading flags,
16618 # -berok will link without error, but may produce a broken library.
16619 no_undefined_flag_CXX=' ${wl}-bernotok'
16620 allow_undefined_flag_CXX=' ${wl}-berok'
16621 # Exported symbols can be pulled into shared objects from archives
16622 whole_archive_flag_spec_CXX='$convenience'
16623 archive_cmds_need_lc_CXX=yes
16624 # This is similar to how AIX traditionally builds its shared
16626 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'
16632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16633 allow_undefined_flag_CXX=unsupported
16634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16635 # support --undefined. This deserves some investigation. FIXME
16636 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643 case $cc_basename in
16645 # FIXME: insert proper C++ library support
16651 cygwin* | mingw* | pw32* | cegcc*)
16652 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16653 # as there is no search path for DLLs.
16654 hardcode_libdir_flag_spec_CXX='-L$libdir'
16655 allow_undefined_flag_CXX=unsupported
16656 always_export_symbols_CXX=no
16657 enable_shared_with_static_runtimes_CXX=yes
16659 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16660 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'
16661 # If the export-symbols file already is a .def file (1st line
16662 # is EXPORTS), use it as is; otherwise, prepend...
16663 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16664 cp $export_symbols $output_objdir/$soname.def;
16666 echo EXPORTS > $output_objdir/$soname.def;
16667 cat $export_symbols >> $output_objdir/$soname.def;
16669 $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'
16674 darwin* | rhapsody*)
16677 archive_cmds_need_lc_CXX=no
16678 hardcode_direct_CXX=no
16679 hardcode_automatic_CXX=yes
16680 hardcode_shlibpath_var_CXX=unsupported
16681 whole_archive_flag_spec_CXX=''
16682 link_all_deplibs_CXX=yes
16683 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16684 case $cc_basename in
16685 ifort*) _lt_dar_can_shared=yes ;;
16686 *) _lt_dar_can_shared=$GCC ;;
16688 if test "$_lt_dar_can_shared" = "yes"; then
16689 output_verbose_link_cmd=echo
16690 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}"
16691 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16692 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}"
16693 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}"
16694 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16695 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}"
16696 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}"
16706 case $cc_basename in
16708 # FIXME: insert proper C++ library support
16712 # Green Hills C++ Compiler
16713 # FIXME: insert proper C++ library support
16717 # FIXME: insert proper C++ library support
16724 # C++ shared libraries reported to be fairly broken before
16730 archive_cmds_need_lc_CXX=no
16733 freebsd* | dragonfly*)
16734 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16743 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16744 hardcode_libdir_separator_CXX=:
16745 export_dynamic_flag_spec_CXX='${wl}-E'
16746 hardcode_direct_CXX=yes
16747 hardcode_minus_L_CXX=yes # Not in the search PATH,
16748 # but as the default
16749 # location of the library.
16751 case $cc_basename in
16753 # FIXME: insert proper C++ library support
16757 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'
16758 # Commands to make compiler produce verbose output that lists
16759 # what "hidden" libraries, object files and flags are used when
16760 # linking a shared library.
16762 # There doesn't appear to be a way to prevent this compiler from
16763 # explicitly linking system object files so we need to strip them
16764 # from the output so that they don't get included in the library
16766 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'
16769 if test "$GXX" = yes; then
16770 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'
16772 # FIXME: insert proper C++ library support
16780 if test $with_gnu_ld = no; then
16781 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16782 hardcode_libdir_separator_CXX=:
16788 export_dynamic_flag_spec_CXX='${wl}-E'
16794 hardcode_direct_CXX=no
16795 hardcode_shlibpath_var_CXX=no
16798 hardcode_direct_CXX=yes
16799 hardcode_direct_absolute_CXX=yes
16800 hardcode_minus_L_CXX=yes # Not in the search PATH,
16801 # but as the default
16802 # location of the library.
16806 case $cc_basename in
16808 # FIXME: insert proper C++ library support
16814 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16823 # Commands to make compiler produce verbose output that lists
16824 # what "hidden" libraries, object files and flags are used when
16825 # linking a shared library.
16827 # There doesn't appear to be a way to prevent this compiler from
16828 # explicitly linking system object files so we need to strip them
16829 # from the output so that they don't get included in the library
16831 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'
16834 if test "$GXX" = yes; then
16835 if test $with_gnu_ld = no; then
16838 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16844 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'
16849 # FIXME: insert proper C++ library support
16857 hardcode_direct_CXX=no
16858 hardcode_shlibpath_var_CXX=no
16859 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16860 export_dynamic_flag_spec_CXX='${wl}-E'
16861 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16862 # Instead, shared libraries are loaded at an image base (0x10000000 by
16863 # default) and relocated if they conflict, which is a slow very memory
16864 # consuming and fragmenting process. To avoid this, we pick a random,
16865 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16866 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16867 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'
16868 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'
16871 case $cc_basename in
16874 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'
16876 # Archives containing C++ object files must be created using
16877 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16878 # necessary to make sure instantiated templates are included
16880 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16883 if test "$GXX" = yes; then
16884 if test "$with_gnu_ld" = no; then
16885 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'
16887 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'
16890 link_all_deplibs_CXX=yes
16893 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16894 hardcode_libdir_separator_CXX=:
16895 inherit_rpath_CXX=yes
16898 linux* | k*bsd*-gnu)
16899 case $cc_basename in
16901 # Kuck and Associates, Inc. (KAI) C++ Compiler
16903 # KCC will only create a shared library if the output file
16904 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16905 # to its proper name (with version) after linking.
16906 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'
16907 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'
16908 # Commands to make compiler produce verbose output that lists
16909 # what "hidden" libraries, object files and flags are used when
16910 # linking a shared library.
16912 # There doesn't appear to be a way to prevent this compiler from
16913 # explicitly linking system object files so we need to strip them
16914 # from the output so that they don't get included in the library
16916 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'
16918 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16919 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16921 # Archives containing C++ object files must be created using
16922 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16923 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16928 # version 8.0 and above of icpc choke on multiply defined symbols
16929 # if we add $predep_objects and $postdep_objects, however 7.1 and
16930 # earlier do not add the objects themselves.
16931 case `$CC -V 2>&1` in
16933 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16934 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'
16936 *) # Version 8.0 or newer
16939 ia64*) tmp_idyn=' -i_dynamic';;
16941 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16942 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'
16945 archive_cmds_need_lc_CXX=no
16946 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16948 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16951 # Portland Group C++ compiler
16953 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16954 prelink_cmds_CXX='tpldir=Template.dir~
16956 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16957 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16958 old_archive_cmds_CXX='tpldir=Template.dir~
16960 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16961 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16963 archive_cmds_CXX='tpldir=Template.dir~
16965 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16966 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16967 archive_expsym_cmds_CXX='tpldir=Template.dir~
16969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16970 $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'
16972 *) # Version 6 will use weak symbols
16973 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16974 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'
16978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16980 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'
16984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16985 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'
16987 runpath_var=LD_RUN_PATH
16988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16989 hardcode_libdir_separator_CXX=:
16991 # Commands to make compiler produce verbose output that lists
16992 # what "hidden" libraries, object files and flags are used when
16993 # linking a shared library.
16995 # There doesn't appear to be a way to prevent this compiler from
16996 # explicitly linking system object files so we need to strip them
16997 # from the output so that they don't get included in the library
16999 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'
17002 # IBM XL 8.0 on PPC, with GNU ld
17003 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17005 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17006 if test "x$supports_anon_versioning" = xyes; then
17007 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17009 echo "local: *; };" >> $output_objdir/$libname.ver~
17010 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17014 case `$CC -V 2>&1 | sed 5q` in
17017 no_undefined_flag_CXX=' -zdefs'
17018 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17019 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'
17020 hardcode_libdir_flag_spec_CXX='-R$libdir'
17021 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'
17022 compiler_needs_object_CXX=yes
17024 # Not sure whether something based on
17025 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17027 output_verbose_link_cmd='echo'
17029 # Archives containing C++ object files must be created using
17030 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17031 # necessary to make sure instantiated templates are included
17033 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17041 # FIXME: insert proper C++ library support
17046 # FIXME: insert proper C++ library support
17051 case $cc_basename in
17053 # FIXME: insert proper C++ library support
17057 # FIXME: insert proper C++ library support
17064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17065 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17067 hardcode_libdir_flag_spec_CXX='-R$libdir'
17068 hardcode_direct_CXX=yes
17069 hardcode_shlibpath_var_CXX=no
17071 # Workaround some broken pre-1.5 toolchains
17072 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17080 # C++ shared libraries are fairly broken
17085 if test -f /usr/libexec/ld.so; then
17086 hardcode_direct_CXX=yes
17087 hardcode_shlibpath_var_CXX=no
17088 hardcode_direct_absolute_CXX=yes
17089 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17090 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17092 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17093 export_dynamic_flag_spec_CXX='${wl}-E'
17094 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17096 output_verbose_link_cmd=echo
17102 osf3* | osf4* | osf5*)
17103 case $cc_basename in
17105 # Kuck and Associates, Inc. (KAI) C++ Compiler
17107 # KCC will only create a shared library if the output file
17108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17109 # to its proper name (with version) after linking.
17110 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'
17112 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17113 hardcode_libdir_separator_CXX=:
17115 # Archives containing C++ object files must be created using
17116 # the KAI C++ compiler.
17118 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17119 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17123 # Rational C++ 2.4.1
17124 # FIXME: insert proper C++ library support
17130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17131 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'
17132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17135 allow_undefined_flag_CXX=' -expect_unresolved \*'
17136 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'
17137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17138 echo "-hidden">> $lib.exp~
17139 $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~
17141 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17145 hardcode_libdir_separator_CXX=:
17147 # Commands to make compiler produce verbose output that lists
17148 # what "hidden" libraries, object files and flags are used when
17149 # linking a shared library.
17151 # There doesn't appear to be a way to prevent this compiler from
17152 # explicitly linking system object files so we need to strip them
17153 # from the output so that they don't get included in the library
17155 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'
17158 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17162 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'
17165 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'
17169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17170 hardcode_libdir_separator_CXX=:
17172 # Commands to make compiler produce verbose output that lists
17173 # what "hidden" libraries, object files and flags are used when
17174 # linking a shared library.
17175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17178 # FIXME: insert proper C++ library support
17186 # FIXME: insert proper C++ library support
17191 case $cc_basename in
17194 # FIXME: insert proper C++ library support
17199 # FIXME: insert proper C++ library support
17203 # FIXME: insert proper C++ library support
17210 case $cc_basename in
17212 # Sun C++ 4.2, 5.x and Centerline C++
17213 archive_cmds_need_lc_CXX=yes
17214 no_undefined_flag_CXX=' -zdefs'
17215 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17216 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17217 $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'
17219 hardcode_libdir_flag_spec_CXX='-R$libdir'
17220 hardcode_shlibpath_var_CXX=no
17222 solaris2.[0-5] | solaris2.[0-5].*) ;;
17224 # The compiler driver will combine and reorder linker options,
17225 # but understands `-z linker_flag'.
17226 # Supported since Solaris 2.6 (maybe 2.5.1?)
17227 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17230 link_all_deplibs_CXX=yes
17232 output_verbose_link_cmd='echo'
17234 # Archives containing C++ object files must be created using
17235 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17236 # necessary to make sure instantiated templates are included
17238 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17241 # Green Hills C++ Compiler
17242 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17244 # The C++ compiler must be used to create the archive.
17245 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17248 # GNU C++ compiler with Solaris linker
17249 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17250 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17251 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17252 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17254 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17256 # Commands to make compiler produce verbose output that lists
17257 # what "hidden" libraries, object files and flags are used when
17258 # linking a shared library.
17259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17261 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17263 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17264 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17267 # Commands to make compiler produce verbose output that lists
17268 # what "hidden" libraries, object files and flags are used when
17269 # linking a shared library.
17270 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17273 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17275 solaris2.[0-5] | solaris2.[0-5].*) ;;
17277 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17286 no_undefined_flag_CXX='${wl}-z,text'
17287 archive_cmds_need_lc_CXX=no
17288 hardcode_shlibpath_var_CXX=no
17289 runpath_var='LD_RUN_PATH'
17291 case $cc_basename in
17293 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17294 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 sysv5* | sco3.2v5* | sco5v6*)
17304 # Note: We can NOT use -z defs as we might desire, because we do not
17305 # link with -lc, and that would cause any symbols used from libc to
17306 # always be unresolved, which means just about no library would
17307 # ever link correctly. If we're not using GNU ld we use -z text
17308 # though, which does catch some bad symbols but isn't as heavy-handed
17310 no_undefined_flag_CXX='${wl}-z,text'
17311 allow_undefined_flag_CXX='${wl}-z,nodefs'
17312 archive_cmds_need_lc_CXX=no
17313 hardcode_shlibpath_var_CXX=no
17314 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17315 hardcode_libdir_separator_CXX=':'
17316 link_all_deplibs_CXX=yes
17317 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17318 runpath_var='LD_RUN_PATH'
17320 case $cc_basename in
17322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17333 case $cc_basename in
17335 # NonStop-UX NCC 3.20
17336 # FIXME: insert proper C++ library support
17340 # FIXME: insert proper C++ library support
17347 # FIXME: insert proper C++ library support
17352 # FIXME: insert proper C++ library support
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17358 $as_echo "$ld_shlibs_CXX" >&6; }
17359 test "$ld_shlibs_CXX" = no && can_build_shared=no
17365 ## There is no encapsulation within the following macros, do not change
17366 ## the running order or otherwise move them around unless you know exactly
17367 ## what you are doing...
17368 # Dependencies to place before and after the object being linked:
17369 predep_objects_CXX=
17370 postdep_objects_CXX=
17373 compiler_lib_search_path_CXX=
17375 cat > conftest.$ac_ext <<_LT_EOF
17379 Foo (void) { a = 0; }
17385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17386 (eval $ac_compile) 2>&5
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; then
17390 # Parse the compiler output and extract the necessary
17391 # objects, libraries and library flags.
17393 # Sentinel used to keep track of whether or not we are before
17394 # the conftest object file.
17395 pre_test_object_deps_done=no
17397 for p in `eval "$output_verbose_link_cmd"`; do
17401 # Some compilers place space between "-{L,R}" and the path.
17402 # Remove the space.
17403 if test $p = "-L" ||
17404 test $p = "-R"; then
17411 if test "$pre_test_object_deps_done" = no; then
17414 # Internal compiler library paths should come after those
17415 # provided the user. The postdeps already come after the
17416 # user supplied libs so there is no need to process them.
17417 if test -z "$compiler_lib_search_path_CXX"; then
17418 compiler_lib_search_path_CXX="${prev}${p}"
17420 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17423 # The "-l" case would never come before the object being
17424 # linked, so don't bother handling this case.
17427 if test -z "$postdeps_CXX"; then
17428 postdeps_CXX="${prev}${p}"
17430 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17436 # This assumes that the test object file only shows up
17437 # once in the compiler output.
17438 if test "$p" = "conftest.$objext"; then
17439 pre_test_object_deps_done=yes
17443 if test "$pre_test_object_deps_done" = no; then
17444 if test -z "$predep_objects_CXX"; then
17445 predep_objects_CXX="$p"
17447 predep_objects_CXX="$predep_objects_CXX $p"
17450 if test -z "$postdep_objects_CXX"; then
17451 postdep_objects_CXX="$p"
17453 postdep_objects_CXX="$postdep_objects_CXX $p"
17458 *) ;; # Ignore the rest.
17466 echo "libtool.m4: error: problem compiling CXX test program"
17469 $RM -f confest.$objext
17471 # PORTME: override above test on systems where it is broken
17474 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17475 # hack all around it, let's just trust "g++" to DTRT.
17476 predep_objects_CXX=
17477 postdep_objects_CXX=
17482 case `$CC -V 2>&1 | sed 5q` in
17486 # The more standards-conforming stlport4 library is
17487 # incompatible with the Cstd library. Avoid specifying
17488 # it if it's in CXXFLAGS. Ignore libCrun as
17489 # -library=stlport4 depends on it.
17490 case " $CXX $CXXFLAGS " in
17491 *" -library=stlport4 "*)
17492 solaris_use_stlport4=yes
17496 if test "$solaris_use_stlport4" != yes; then
17497 postdeps_CXX='-library=Cstd -library=Crun'
17504 case $cc_basename in
17506 # The more standards-conforming stlport4 library is
17507 # incompatible with the Cstd library. Avoid specifying
17508 # it if it's in CXXFLAGS. Ignore libCrun as
17509 # -library=stlport4 depends on it.
17510 case " $CXX $CXXFLAGS " in
17511 *" -library=stlport4 "*)
17512 solaris_use_stlport4=yes
17516 # Adding this requires a known-good setup of shared libraries for
17517 # Sun compiler versions before 5.6, else PIC objects from an old
17518 # archive will be linked into the output, leading to subtle bugs.
17519 if test "$solaris_use_stlport4" != yes; then
17520 postdeps_CXX='-library=Cstd -library=Crun'
17528 case " $postdeps_CXX " in
17529 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17531 compiler_lib_search_dirs_CXX=
17532 if test -n "${compiler_lib_search_path_CXX}"; then
17533 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17566 lt_prog_compiler_wl_CXX=
17567 lt_prog_compiler_pic_CXX=
17568 lt_prog_compiler_static_CXX=
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17571 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17573 # C++ specific cases for pic, static, wl, etc.
17574 if test "$GXX" = yes; then
17575 lt_prog_compiler_wl_CXX='-Wl,'
17576 lt_prog_compiler_static_CXX='-static'
17580 # All AIX code is PIC.
17581 if test "$host_cpu" = ia64; then
17582 # AIX 5 now supports IA64 processor
17583 lt_prog_compiler_static_CXX='-Bstatic'
17590 # see comment about AmigaOS4 .so support
17591 lt_prog_compiler_pic_CXX='-fPIC'
17594 # FIXME: we need at least 68020 code to build shared libraries, but
17595 # adding the `-m68020' flag to GCC prevents building anything better,
17597 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17602 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17603 # PIC is the default for these OSes.
17605 mingw* | cygwin* | os2* | pw32* | cegcc*)
17606 # This hack is so that the source file can tell whether it is being
17607 # built for inclusion in a dll (and should export symbols for example).
17608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17609 # (--disable-auto-import) libraries
17610 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17612 darwin* | rhapsody*)
17613 # PIC is the default on this platform
17614 # Common symbols not allowed in MH_DYLIB files
17615 lt_prog_compiler_pic_CXX='-fno-common'
17618 # DJGPP does not support shared libraries at all
17619 lt_prog_compiler_pic_CXX=
17622 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17623 # Instead, we relocate shared libraries at runtime.
17626 if test -d /usr/nec; then
17627 lt_prog_compiler_pic_CXX=-Kconform_pic
17631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17633 # sets the default TLS model and affects inlining.
17638 lt_prog_compiler_pic_CXX='-fPIC'
17643 # QNX uses GNU C++, but need to define -shared option too, otherwise
17644 # it will coredump.
17645 lt_prog_compiler_pic_CXX='-fPIC -shared'
17648 lt_prog_compiler_pic_CXX='-fPIC'
17654 # All AIX code is PIC.
17655 if test "$host_cpu" = ia64; then
17656 # AIX 5 now supports IA64 processor
17657 lt_prog_compiler_static_CXX='-Bstatic'
17659 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17663 case $cc_basename in
17665 # Green Hills C++ Compiler
17666 # _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"
17671 case $cc_basename in
17673 lt_prog_compiler_pic_CXX='-KPIC'
17676 # Green Hills C++ Compiler
17677 lt_prog_compiler_pic_CXX='-pic'
17683 freebsd* | dragonfly*)
17684 # FreeBSD uses GNU C++
17686 hpux9* | hpux10* | hpux11*)
17687 case $cc_basename in
17689 lt_prog_compiler_wl_CXX='-Wl,'
17690 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17691 if test "$host_cpu" != ia64; then
17692 lt_prog_compiler_pic_CXX='+Z'
17696 lt_prog_compiler_wl_CXX='-Wl,'
17697 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17703 lt_prog_compiler_pic_CXX='+Z'
17712 # This is c89, which is MS Visual C++ (no shared libs)
17713 # Anyone wants to do a port?
17715 irix5* | irix6* | nonstopux*)
17716 case $cc_basename in
17718 lt_prog_compiler_wl_CXX='-Wl,'
17719 lt_prog_compiler_static_CXX='-non_shared'
17720 # CC pic flag -KPIC is the default.
17726 linux* | k*bsd*-gnu)
17727 case $cc_basename in
17730 lt_prog_compiler_wl_CXX='--backend -Wl,'
17731 lt_prog_compiler_pic_CXX='-fPIC'
17734 # old Intel C++ for x86_64 which still supported -KPIC.
17735 lt_prog_compiler_wl_CXX='-Wl,'
17736 lt_prog_compiler_pic_CXX='-KPIC'
17737 lt_prog_compiler_static_CXX='-static'
17740 # Intel C++, used to be incompatible with GCC.
17741 # ICC 10 doesn't accept -KPIC any more.
17742 lt_prog_compiler_wl_CXX='-Wl,'
17743 lt_prog_compiler_pic_CXX='-fPIC'
17744 lt_prog_compiler_static_CXX='-static'
17747 # Portland Group C++ compiler
17748 lt_prog_compiler_wl_CXX='-Wl,'
17749 lt_prog_compiler_pic_CXX='-fpic'
17750 lt_prog_compiler_static_CXX='-Bstatic'
17754 # Make sure the PIC flag is empty. It appears that all Alpha
17755 # Linux and Compaq Tru64 Unix objects are PIC.
17756 lt_prog_compiler_pic_CXX=
17757 lt_prog_compiler_static_CXX='-non_shared'
17760 # IBM XL 8.0 on PPC
17761 lt_prog_compiler_wl_CXX='-Wl,'
17762 lt_prog_compiler_pic_CXX='-qpic'
17763 lt_prog_compiler_static_CXX='-qstaticlink'
17766 case `$CC -V 2>&1 | sed 5q` in
17769 lt_prog_compiler_pic_CXX='-KPIC'
17770 lt_prog_compiler_static_CXX='-Bstatic'
17771 lt_prog_compiler_wl_CXX='-Qoption ld '
17782 case $cc_basename in
17784 lt_prog_compiler_pic_CXX='-W c,exportall'
17793 # QNX uses GNU C++, but need to define -shared option too, otherwise
17794 # it will coredump.
17795 lt_prog_compiler_pic_CXX='-fPIC -shared'
17797 osf3* | osf4* | osf5*)
17798 case $cc_basename in
17800 lt_prog_compiler_wl_CXX='--backend -Wl,'
17803 # Rational C++ 2.4.1
17804 lt_prog_compiler_pic_CXX='-pic'
17807 # Digital/Compaq C++
17808 lt_prog_compiler_wl_CXX='-Wl,'
17809 # Make sure the PIC flag is empty. It appears that all Alpha
17810 # Linux and Compaq Tru64 Unix objects are PIC.
17811 lt_prog_compiler_pic_CXX=
17812 lt_prog_compiler_static_CXX='-non_shared'
17821 case $cc_basename in
17823 # Sun C++ 4.2, 5.x and Centerline C++
17824 lt_prog_compiler_pic_CXX='-KPIC'
17825 lt_prog_compiler_static_CXX='-Bstatic'
17826 lt_prog_compiler_wl_CXX='-Qoption ld '
17829 # Green Hills C++ Compiler
17830 lt_prog_compiler_pic_CXX='-PIC'
17837 case $cc_basename in
17840 lt_prog_compiler_pic_CXX='-pic'
17841 lt_prog_compiler_static_CXX='-Bstatic'
17845 lt_prog_compiler_pic_CXX='-pic'
17851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17852 case $cc_basename in
17854 lt_prog_compiler_wl_CXX='-Wl,'
17855 lt_prog_compiler_pic_CXX='-KPIC'
17856 lt_prog_compiler_static_CXX='-Bstatic'
17861 case $cc_basename in
17863 # NonStop-UX NCC 3.20
17864 lt_prog_compiler_pic_CXX='-KPIC'
17873 lt_prog_compiler_can_build_shared_CXX=no
17879 # For platforms which do not support PIC, -DPIC is meaningless:
17881 lt_prog_compiler_pic_CXX=
17884 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17888 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17893 # Check to make sure the PIC flag actually works.
17895 if test -n "$lt_prog_compiler_pic_CXX"; then
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17897 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17898 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17899 $as_echo_n "(cached) " >&6
17901 lt_cv_prog_compiler_pic_works_CXX=no
17902 ac_outfile=conftest.$ac_objext
17903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17904 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17905 # Insert the option either (1) after the last *FLAGS variable, or
17906 # (2) before a word containing "conftest.", or (3) at the end.
17907 # Note that $ac_compile itself does not contain backslashes and begins
17908 # with a dollar sign (not a hyphen), so the echo should work correctly.
17909 # The option is referenced via a variable to avoid confusing sed.
17910 lt_compile=`echo "$ac_compile" | $SED \
17911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17913 -e 's:$: $lt_compiler_flag:'`
17914 (eval echo "\"\$as_me:17914: $lt_compile\"" >&5)
17915 (eval "$lt_compile" 2>conftest.err)
17917 cat conftest.err >&5
17918 echo "$as_me:17918: \$? = $ac_status" >&5
17919 if (exit $ac_status) && test -s "$ac_outfile"; then
17920 # The compiler can only warn and ignore the option if not recognized
17921 # So say no if there are warnings other than the usual output.
17922 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17925 lt_cv_prog_compiler_pic_works_CXX=yes
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17932 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17934 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17935 case $lt_prog_compiler_pic_CXX in
17937 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17940 lt_prog_compiler_pic_CXX=
17941 lt_prog_compiler_can_build_shared_CXX=no
17949 # Check to make sure the static flag actually works.
17951 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17953 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17954 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17955 $as_echo_n "(cached) " >&6
17957 lt_cv_prog_compiler_static_works_CXX=no
17958 save_LDFLAGS="$LDFLAGS"
17959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17960 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17962 # The linker can only warn and ignore the option if not recognized
17963 # So say no if there are warnings
17964 if test -s conftest.err; then
17965 # Append any errors to the config.log.
17966 cat conftest.err 1>&5
17967 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17969 if diff conftest.exp conftest.er2 >/dev/null; then
17970 lt_cv_prog_compiler_static_works_CXX=yes
17973 lt_cv_prog_compiler_static_works_CXX=yes
17977 LDFLAGS="$save_LDFLAGS"
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17981 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17983 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17986 lt_prog_compiler_static_CXX=
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17993 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17994 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17995 $as_echo_n "(cached) " >&6
17997 lt_cv_prog_compiler_c_o_CXX=no
17998 $RM -r conftest 2>/dev/null
18002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18004 lt_compiler_flag="-o out/conftest2.$ac_objext"
18005 # Insert the option either (1) after the last *FLAGS variable, or
18006 # (2) before a word containing "conftest.", or (3) at the end.
18007 # Note that $ac_compile itself does not contain backslashes and begins
18008 # with a dollar sign (not a hyphen), so the echo should work correctly.
18009 lt_compile=`echo "$ac_compile" | $SED \
18010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18012 -e 's:$: $lt_compiler_flag:'`
18013 (eval echo "\"\$as_me:18013: $lt_compile\"" >&5)
18014 (eval "$lt_compile" 2>out/conftest.err)
18016 cat out/conftest.err >&5
18017 echo "$as_me:18017: \$? = $ac_status" >&5
18018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18020 # The compiler can only warn and ignore the option if not recognized
18021 # So say no if there are warnings
18022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18025 lt_cv_prog_compiler_c_o_CXX=yes
18030 # SGI C++ compiler will create directory out/ii_files/ for
18031 # template instantiation
18032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18033 $RM out/* && rmdir out
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18040 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18045 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18046 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18047 $as_echo_n "(cached) " >&6
18049 lt_cv_prog_compiler_c_o_CXX=no
18050 $RM -r conftest 2>/dev/null
18054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18056 lt_compiler_flag="-o out/conftest2.$ac_objext"
18057 # Insert the option either (1) after the last *FLAGS variable, or
18058 # (2) before a word containing "conftest.", or (3) at the end.
18059 # Note that $ac_compile itself does not contain backslashes and begins
18060 # with a dollar sign (not a hyphen), so the echo should work correctly.
18061 lt_compile=`echo "$ac_compile" | $SED \
18062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18064 -e 's:$: $lt_compiler_flag:'`
18065 (eval echo "\"\$as_me:18065: $lt_compile\"" >&5)
18066 (eval "$lt_compile" 2>out/conftest.err)
18068 cat out/conftest.err >&5
18069 echo "$as_me:18069: \$? = $ac_status" >&5
18070 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18072 # The compiler can only warn and ignore the option if not recognized
18073 # So say no if there are warnings
18074 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18077 lt_cv_prog_compiler_c_o_CXX=yes
18082 # SGI C++ compiler will create directory out/ii_files/ for
18083 # template instantiation
18084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18085 $RM out/* && rmdir out
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18092 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18097 hard_links="nottested"
18098 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18099 # do not overwrite the value of need_locks provided by the user
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18101 $as_echo_n "checking if we can lock with hard links... " >&6; }
18104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18106 ln conftest.a conftest.b 2>&5 || hard_links=no
18107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18109 $as_echo "$hard_links" >&6; }
18110 if test "$hard_links" = no; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18112 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18122 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18127 # If we're using GNU nm, then we don't want the "-C" option.
18128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18130 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'
18132 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'
18136 export_symbols_cmds_CXX="$ltdll_cmds"
18138 cygwin* | mingw* | cegcc*)
18139 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'
18142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18145 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18148 $as_echo "$ld_shlibs_CXX" >&6; }
18149 test "$ld_shlibs_CXX" = no && can_build_shared=no
18151 with_gnu_ld_CXX=$with_gnu_ld
18159 # Do we need to explicitly link libc?
18161 case "x$archive_cmds_need_lc_CXX" in
18163 # Assume -lc should be added
18164 archive_cmds_need_lc_CXX=yes
18166 if test "$enable_shared" = yes && test "$GCC" = yes; then
18167 case $archive_cmds_CXX in
18169 # FIXME: we may have to deal with multi-command sequences.
18172 # Test whether the compiler implicitly links with -lc since on some
18173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18174 # to ld, don't add -lc before -lgcc.
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18181 (eval $ac_compile) 2>&5
18183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18184 test $ac_status = 0; } 2>conftest.err; then
18187 libobjs=conftest.$ac_objext
18189 wl=$lt_prog_compiler_wl_CXX
18190 pic_flag=$lt_prog_compiler_pic_CXX
18196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18197 allow_undefined_flag_CXX=
18198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18199 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18202 test $ac_status = 0; }
18204 archive_cmds_need_lc_CXX=no
18206 archive_cmds_need_lc_CXX=yes
18208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18210 cat conftest.err 1>&5
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18214 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18285 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18287 library_names_spec=
18288 libname_spec='lib$name'
18292 postuninstall_cmds=
18296 shlibpath_overrides_runpath=unknown
18298 dynamic_linker="$host_os ld.so"
18299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18300 need_lib_prefix=unknown
18301 hardcode_into_libs=no
18303 # when you set need_version to no, make sure it does not cause -set_version
18304 # flags to be left without arguments
18305 need_version=unknown
18310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18311 shlibpath_var=LIBPATH
18313 # AIX 3 has no versioning support, so we append a major version to the name.
18314 soname_spec='${libname}${release}${shared_ext}$major'
18321 hardcode_into_libs=yes
18322 if test "$host_cpu" = ia64; then
18323 # AIX 5 supports IA64
18324 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18325 shlibpath_var=LD_LIBRARY_PATH
18327 # With GCC up to 2.95.x, collect2 would create an import file
18328 # for dependence libraries. The import file would start with
18329 # the line `#! .'. This would cause the generated library to
18330 # depend on `.', always an invalid library. This was fixed in
18331 # development snapshots of GCC prior to 3.0.
18333 aix4 | aix4.[01] | aix4.[01].*)
18334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18336 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18339 can_build_shared=no
18343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18344 # soname into executable. Probably we can add versioning support to
18345 # collect2, so additional links can be useful in future.
18346 if test "$aix_use_runtimelinking" = yes; then
18347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18348 # instead of lib<name>.a to let people know that these are not
18349 # typical AIX shared libraries.
18350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18352 # We preserve .a as extension for shared libraries through AIX4.2
18353 # and later when we are not doing run time linking.
18354 library_names_spec='${libname}${release}.a $libname.a'
18355 soname_spec='${libname}${release}${shared_ext}$major'
18357 shlibpath_var=LIBPATH
18364 # Since July 2007 AmigaOS4 officially supports .so libraries.
18365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369 library_names_spec='$libname.ixlibrary $libname.a'
18370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18371 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'
18377 library_names_spec='${libname}${shared_ext}'
18378 dynamic_linker="$host_os ld.so"
18379 shlibpath_var=LIBRARY_PATH
18385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18386 soname_spec='${libname}${release}${shared_ext}$major'
18387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18388 shlibpath_var=LD_LIBRARY_PATH
18389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18391 # the default ld.so.conf also contains /usr/contrib/lib and
18392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18393 # libtool to hard-code these into programs
18396 cygwin* | mingw* | pw32* | cegcc*)
18397 version_type=windows
18402 case $GCC,$host_os in
18403 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18404 library_names_spec='$libname.dll.a'
18405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18406 postinstall_cmds='base_file=`basename \${file}`~
18407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18408 dldir=$destdir/`dirname \$dlpath`~
18409 test -d \$dldir || mkdir -p \$dldir~
18410 $install_prog $dir/$dlname \$dldir/$dlname~
18411 chmod a+x \$dldir/$dlname~
18412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18416 dlpath=$dir/\$dldll~
18418 shlibpath_overrides_runpath=yes
18422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18424 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18427 # MinGW DLLs use traditional 'lib' prefix
18428 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18429 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18430 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18431 # It is most probably a Windows format PATH printed by
18432 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18433 # path with ; separators, and with drive letters. We can handle the
18434 # drive letters (cygwin fileutils understands them), so leave them,
18435 # especially as we might pass files found there to a mingw objdump,
18436 # which wouldn't understand a cygwinified path. Ahh.
18437 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18443 # pw32 DLLs use 'pw' prefix rather than 'lib'
18444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18453 dynamic_linker='Win32 ld.exe'
18454 # FIXME: first we should search . and the directory the executable is in
18458 darwin* | rhapsody*)
18459 dynamic_linker="$host_os dyld"
18460 version_type=darwin
18463 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18464 soname_spec='${libname}${release}${major}$shared_ext'
18465 shlibpath_overrides_runpath=yes
18466 shlibpath_var=DYLD_LIBRARY_PATH
18467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18477 soname_spec='${libname}${release}${shared_ext}$major'
18478 shlibpath_var=LD_LIBRARY_PATH
18485 freebsd* | dragonfly*)
18486 # DragonFly does not have aout. When/if they implement a new
18487 # versioning mechanism, adjust this.
18488 if test -x /usr/bin/objformat; then
18489 objformat=`/usr/bin/objformat`
18492 freebsd[123]*) objformat=aout ;;
18493 *) objformat=elf ;;
18496 version_type=freebsd-$objformat
18497 case $version_type in
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18508 shlibpath_var=LD_LIBRARY_PATH
18511 shlibpath_overrides_runpath=yes
18513 freebsd3.[01]* | freebsdelf3.[01]*)
18514 shlibpath_overrides_runpath=yes
18515 hardcode_into_libs=yes
18517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18519 shlibpath_overrides_runpath=no
18520 hardcode_into_libs=yes
18522 *) # from 4.6 on, and DragonFly
18523 shlibpath_overrides_runpath=yes
18524 hardcode_into_libs=yes
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 hardcode_into_libs=yes
18539 hpux9* | hpux10* | hpux11*)
18540 # Give a soname corresponding to the major version so that dld.sl refuses to
18541 # link against other versions.
18548 hardcode_into_libs=yes
18549 dynamic_linker="$host_os dld.so"
18550 shlibpath_var=LD_LIBRARY_PATH
18551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 if test "X$HPUX_IA64_MODE" = X32; then
18555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18563 hardcode_into_libs=yes
18564 dynamic_linker="$host_os dld.sl"
18565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18574 dynamic_linker="$host_os dld.sl"
18575 shlibpath_var=SHLIB_PATH
18576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18578 soname_spec='${libname}${release}${shared_ext}$major'
18581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18582 postinstall_cmds='chmod 555 $lib'
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18592 shlibpath_var=LD_LIBRARY_PATH
18593 shlibpath_overrides_runpath=no
18594 hardcode_into_libs=yes
18597 irix5* | irix6* | nonstopux*)
18599 nonstopux*) version_type=nonstopux ;;
18601 if test "$lt_cv_prog_gnu_ld" = yes; then
18609 soname_spec='${libname}${release}${shared_ext}$major'
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18612 irix5* | nonstopux*)
18613 libsuff= shlibsuff=
18616 case $LD in # libtool.m4 will add one of these switches to LD
18617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18618 libsuff= shlibsuff= libmagic=32-bit;;
18619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18620 libsuff=32 shlibsuff=N32 libmagic=N32;;
18621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18622 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18623 *) libsuff= shlibsuff= libmagic=never-match;;
18627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18628 shlibpath_overrides_runpath=no
18629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18631 hardcode_into_libs=yes
18634 # No shared lib support for Linux oldld, aout, or coff.
18635 linux*oldld* | linux*aout* | linux*coff*)
18639 # This must be Linux ELF.
18640 linux* | k*bsd*-gnu)
18644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18645 soname_spec='${libname}${release}${shared_ext}$major'
18646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18647 shlibpath_var=LD_LIBRARY_PATH
18648 shlibpath_overrides_runpath=no
18649 # Some binutils ld are patched to set DT_RUNPATH
18650 save_LDFLAGS=$LDFLAGS
18651 save_libdir=$libdir
18652 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18653 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18665 if ac_fn_cxx_try_link "$LINENO"; then :
18666 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18667 shlibpath_overrides_runpath=yes
18670 rm -f core conftest.err conftest.$ac_objext \
18671 conftest$ac_exeext conftest.$ac_ext
18672 LDFLAGS=$save_LDFLAGS
18673 libdir=$save_libdir
18675 # This implies no fast_install, which is unacceptable.
18676 # Some rework will be needed to allow for fast_install
18677 # before this can be enabled.
18678 hardcode_into_libs=yes
18680 # Add ABI-specific directories to the system library path.
18681 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18683 # Append ld.so.conf contents to the search path
18684 if test -f /etc/ld.so.conf; then
18685 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' ' '`
18686 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18689 # We used to test for /lib/ld.so.1 and disable shared libraries on
18690 # powerpc, because MkLinux only supported shared libraries with the
18691 # GNU dynamic linker. Since this was broken with cross compilers,
18692 # most powerpc-linux boxes support dynamic linking these days and
18693 # people can always --disable-shared, the test was removed, and we
18694 # assume the GNU/Linux dynamic linker is in use.
18695 dynamic_linker='GNU/Linux ld.so'
18702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18705 dynamic_linker='NetBSD (a.out) ld.so'
18707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18708 soname_spec='${libname}${release}${shared_ext}$major'
18709 dynamic_linker='NetBSD ld.elf_so'
18711 shlibpath_var=LD_LIBRARY_PATH
18712 shlibpath_overrides_runpath=yes
18713 hardcode_into_libs=yes
18718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18719 shlibpath_var=LD_LIBRARY_PATH
18720 shlibpath_overrides_runpath=yes
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 shlibpath_var=LD_LIBRARY_PATH
18730 shlibpath_overrides_runpath=no
18731 hardcode_into_libs=yes
18732 dynamic_linker='ldqnx.so'
18737 sys_lib_dlsearch_path_spec="/usr/lib"
18739 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18741 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18742 *) need_version=no ;;
18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18749 openbsd2.[89] | openbsd2.[89].*)
18750 shlibpath_overrides_runpath=no
18753 shlibpath_overrides_runpath=yes
18757 shlibpath_overrides_runpath=yes
18762 libname_spec='$name'
18765 library_names_spec='$libname${shared_ext} $libname.a'
18766 dynamic_linker='OS/2 ld.exe'
18767 shlibpath_var=LIBPATH
18770 osf3* | osf4* | osf5*)
18774 soname_spec='${libname}${release}${shared_ext}$major'
18775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776 shlibpath_var=LD_LIBRARY_PATH
18777 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18778 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 shlibpath_var=LD_LIBRARY_PATH
18792 shlibpath_overrides_runpath=yes
18793 hardcode_into_libs=yes
18794 # ldd complains unless libraries are executable
18795 postinstall_cmds='chmod +x $lib'
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18801 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 shlibpath_overrides_runpath=yes
18804 if test "$with_gnu_ld" = yes; then
18812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813 soname_spec='${libname}${release}${shared_ext}$major'
18814 shlibpath_var=LD_LIBRARY_PATH
18815 case $host_vendor in
18817 shlibpath_overrides_runpath=no
18819 runpath_var=LD_RUN_PATH
18827 shlibpath_overrides_runpath=no
18828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18834 if test -d /usr/nec ;then
18836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837 soname_spec='$libname${shared_ext}.$major'
18838 shlibpath_var=LD_LIBRARY_PATH
18842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843 version_type=freebsd-elf
18846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847 soname_spec='${libname}${release}${shared_ext}$major'
18848 shlibpath_var=LD_LIBRARY_PATH
18849 shlibpath_overrides_runpath=yes
18850 hardcode_into_libs=yes
18851 if test "$with_gnu_ld" = yes; then
18852 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18854 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18861 sys_lib_dlsearch_path_spec='/usr/lib'
18865 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18870 shlibpath_var=LD_LIBRARY_PATH
18871 shlibpath_overrides_runpath=no
18872 hardcode_into_libs=yes
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18878 soname_spec='${libname}${release}${shared_ext}$major'
18879 shlibpath_var=LD_LIBRARY_PATH
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18887 $as_echo "$dynamic_linker" >&6; }
18888 test "$dynamic_linker" = no && can_build_shared=no
18890 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18891 if test "$GCC" = yes; then
18892 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18895 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18896 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18898 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18899 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18938 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18939 hardcode_action_CXX=
18940 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18941 test -n "$runpath_var_CXX" ||
18942 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18944 # We can hardcode non-existent directories.
18945 if test "$hardcode_direct_CXX" != no &&
18946 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18947 # have to relink, otherwise we might link with an installed library
18948 # when we should be linking with a yet-to-be-installed one
18949 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18950 test "$hardcode_minus_L_CXX" != no; then
18951 # Linking always hardcodes the temporary library directory.
18952 hardcode_action_CXX=relink
18954 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18955 hardcode_action_CXX=immediate
18958 # We cannot hardcode anything, or else we can only hardcode existing
18960 hardcode_action_CXX=unsupported
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18963 $as_echo "$hardcode_action_CXX" >&6; }
18965 if test "$hardcode_action_CXX" = relink ||
18966 test "$inherit_rpath_CXX" = yes; then
18967 # Fast installation is not supported
18968 enable_fast_install=no
18969 elif test "$shlibpath_overrides_runpath" = yes ||
18970 test "$enable_shared" = no; then
18971 # Fast installation is not necessary
18972 enable_fast_install=needless
18981 fi # test -n "$compiler"
18987 with_gnu_ld=$lt_save_with_gnu_ld
18988 lt_cv_path_LDCXX=$lt_cv_path_LD
18989 lt_cv_path_LD=$lt_save_path_LD
18990 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18991 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18992 fi # test "$_lt_caught_CXX_error" != yes
18995 ac_cpp='$CPP $CPPFLAGS'
18996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19012 ac_config_commands="$ac_config_commands libtool"
19017 # Only expand once:
19023 # Configure libltdl
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19033 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19034 if test "${libltdl_cv_shlibext+set}" = set; then :
19035 $as_echo_n "(cached) " >&6
19039 eval libltdl_cv_shlibext=$shrext_cmds
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19043 $as_echo "$libltdl_cv_shlibext" >&6; }
19044 if test -n "$libltdl_cv_shlibext"; then
19046 cat >>confdefs.h <<_ACEOF
19047 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19053 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19054 if test "${lt_cv_module_path_var+set}" = set; then :
19055 $as_echo_n "(cached) " >&6
19057 lt_cv_module_path_var="$shlibpath_var"
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19060 $as_echo "$lt_cv_module_path_var" >&6; }
19061 if test -n "$lt_cv_module_path_var"; then
19063 cat >>confdefs.h <<_ACEOF
19064 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19070 $as_echo_n "checking for the default library search path... " >&6; }
19071 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19072 $as_echo_n "(cached) " >&6
19074 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19077 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19078 if test -n "$lt_cv_sys_dlsearch_path"; then
19080 for dir in $lt_cv_sys_dlsearch_path; do
19081 if test -z "$sys_dlsearch_path"; then
19082 sys_dlsearch_path="$dir"
19084 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19088 cat >>confdefs.h <<_ACEOF
19089 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19099 ac_cpp='$CPP $CPPFLAGS'
19100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19107 $as_echo_n "checking for library containing dlopen... " >&6; }
19108 if test "${ac_cv_search_dlopen+set}" = set; then :
19109 $as_echo_n "(cached) " >&6
19111 ac_func_search_save_LIBS=$LIBS
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19130 for ac_lib in '' dl; do
19131 if test -z "$ac_lib"; then
19132 ac_res="none required"
19135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19137 if ac_fn_c_try_link "$LINENO"; then :
19138 ac_cv_search_dlopen=$ac_res
19140 rm -f core conftest.err conftest.$ac_objext \
19142 if test "${ac_cv_search_dlopen+set}" = set; then :
19146 if test "${ac_cv_search_dlopen+set}" = set; then :
19149 ac_cv_search_dlopen=no
19151 rm conftest.$ac_ext
19152 LIBS=$ac_func_search_save_LIBS
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19155 $as_echo "$ac_cv_search_dlopen" >&6; }
19156 ac_res=$ac_cv_search_dlopen
19157 if test "$ac_res" != no; then :
19158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19160 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19162 if test "$ac_cv_search_dlopen" != "none required" ; then
19163 LIBADD_DLOPEN="-ldl"
19165 libltdl_cv_lib_dl_dlopen="yes"
19166 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h. */
19171 # include <dlfcn.h>
19182 if ac_fn_c_try_link "$LINENO"; then :
19184 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19186 libltdl_cv_func_dlopen="yes"
19187 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19190 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19191 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19192 $as_echo_n "(cached) " >&6
19194 ac_check_lib_save_LIBS=$LIBS
19195 LIBS="-lsvld $LIBS"
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19199 /* Override any GCC internal prototype to avoid an error.
19200 Use char because int might match the return type of a GCC
19201 builtin and then its argument prototype would still apply. */
19214 if ac_fn_c_try_link "$LINENO"; then :
19215 ac_cv_lib_svld_dlopen=yes
19217 ac_cv_lib_svld_dlopen=no
19219 rm -f core conftest.err conftest.$ac_objext \
19220 conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19224 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19225 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19227 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19229 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19238 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19240 lt_save_LIBS="$LIBS"
19241 LIBS="$LIBS $LIBADD_DLOPEN"
19242 for ac_func in dlerror
19244 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19245 if test "x$ac_cv_func_dlerror" = x""yes; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define HAVE_DLERROR 1
19253 LIBS="$lt_save_LIBS"
19258 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19259 if test "x$ac_cv_func_shl_load" = x""yes; then :
19261 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19263 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19266 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19267 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19268 $as_echo_n "(cached) " >&6
19270 ac_check_lib_save_LIBS=$LIBS
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19285 return shl_load ();
19290 if ac_fn_c_try_link "$LINENO"; then :
19291 ac_cv_lib_dld_shl_load=yes
19293 ac_cv_lib_dld_shl_load=no
19295 rm -f core conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19300 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19301 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19303 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19305 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19306 LIBADD_SHL_LOAD="-ldld"
19315 # We only want this for pre-Mac OS X 10.4.
19316 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19317 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19319 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19321 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19326 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19328 cygwin* | mingw* | os2* | pw32*)
19329 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19331 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19337 cat >>confdefs.h <<_ACEOF
19338 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19341 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19346 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19347 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19348 $as_echo_n "(cached) " >&6
19350 ac_check_lib_save_LIBS=$LIBS
19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19353 /* end confdefs.h. */
19355 /* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19365 return dld_link ();
19370 if ac_fn_c_try_link "$LINENO"; then :
19371 ac_cv_lib_dld_dld_link=yes
19373 ac_cv_lib_dld_dld_link=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19380 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19381 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19383 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19385 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19392 if test -n "$LT_DLLOADERS"
19394 for lt_loader in $LT_DLLOADERS; do
19395 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19398 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19403 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19407 ac_cpp='$CPP $CPPFLAGS'
19408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19414 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19415 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19416 $as_echo_n "(cached) " >&6
19418 lt_cv_sys_symbol_underscore=no
19419 cat > conftest.$ac_ext <<_LT_EOF
19420 void nm_test_func(){}
19421 int main(){nm_test_func;return 0;}
19423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19424 (eval $ac_compile) 2>&5
19426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19427 test $ac_status = 0; }; then
19428 # Now try to grab the symbols.
19429 ac_nlist=conftest.nm
19430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19434 test $ac_status = 0; } && test -s "$ac_nlist"; then
19435 # See whether the symbols have a leading underscore.
19436 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19437 lt_cv_sys_symbol_underscore=yes
19439 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19442 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19446 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19449 echo "configure: failed program was:" >&5
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19456 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19457 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19460 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19461 if test x"$libltdl_cv_func_dlopen" = xyes ||
19462 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19464 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19465 if test "${libltdl_cv_need_uscore+set}" = set; then :
19466 $as_echo_n "(cached) " >&6
19468 libltdl_cv_need_uscore=unknown
19470 LIBS="$LIBS $LIBADD_DLOPEN"
19471 if test "$cross_compiling" = yes; then :
19472 libltdl_cv_need_uscore=cross
19474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19475 lt_status=$lt_dlunknown
19476 cat > conftest.$ac_ext <<_LT_EOF
19477 #line 19477 "configure"
19478 #include "confdefs.h"
19487 # define LT_DLGLOBAL RTLD_GLOBAL
19490 # define LT_DLGLOBAL DL_GLOBAL
19492 # define LT_DLGLOBAL 0
19496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19497 find out it does not work in some platform. */
19498 #ifndef LT_DLLAZY_OR_NOW
19500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19503 # define LT_DLLAZY_OR_NOW DL_LAZY
19506 # define LT_DLLAZY_OR_NOW RTLD_NOW
19509 # define LT_DLLAZY_OR_NOW DL_NOW
19511 # define LT_DLLAZY_OR_NOW 0
19518 void fnord() { int i=42;}
19521 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19522 int status = $lt_dlunknown;
19526 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19527 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19528 /* dlclose (self); */
19536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19537 (eval $ac_link) 2>&5
19539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19540 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19541 (./conftest; exit; ) >&5 2>/dev/null
19543 case x$lt_status in
19544 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19545 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19546 x$lt_dlunknown|x*) ;;
19549 # compilation failed
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19559 $as_echo "$libltdl_cv_need_uscore" >&6; }
19563 if test x"$libltdl_cv_need_uscore" = xyes; then
19565 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19570 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19571 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19574 # PORTME does your system automatically load deplibs for dlopen?
19575 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19576 # For now, we just catch OSes we know something about -- in the
19577 # future, we'll try test this programmatically.
19578 lt_cv_sys_dlopen_deplibs=unknown
19580 aix3*|aix4.1.*|aix4.2.*)
19581 # Unknown whether this is true for these versions of AIX, but
19582 # we want this `case' here to explicitly catch those versions.
19583 lt_cv_sys_dlopen_deplibs=unknown
19586 lt_cv_sys_dlopen_deplibs=yes
19591 lt_cv_sys_dlopen_deplibs=no
19596 # Assuming the user has installed a libdl from somewhere, this is true
19597 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19598 lt_cv_sys_dlopen_deplibs=yes
19600 freebsd* | dragonfly*)
19601 lt_cv_sys_dlopen_deplibs=yes
19603 gnu* | linux* | k*bsd*-gnu)
19604 # GNU and its variants, using gnu ld.so (Glibc)
19605 lt_cv_sys_dlopen_deplibs=yes
19608 lt_cv_sys_dlopen_deplibs=yes
19611 lt_cv_sys_dlopen_deplibs=yes
19613 irix[12345]*|irix6.[01]*)
19614 # Catch all versions of IRIX before 6.2, and indicate that we don't
19615 # know how it worked for any of those versions.
19616 lt_cv_sys_dlopen_deplibs=unknown
19619 # The case above catches anything before 6.2, and it's known that
19620 # at 6.2 and later dlopen does load deplibs.
19621 lt_cv_sys_dlopen_deplibs=yes
19624 lt_cv_sys_dlopen_deplibs=yes
19627 lt_cv_sys_dlopen_deplibs=yes
19630 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19631 # it did *not* use an RPATH in a shared library to find objects the
19632 # library depends on, so we explicitly say `no'.
19633 lt_cv_sys_dlopen_deplibs=no
19635 osf5.0|osf5.0a|osf5.1)
19636 # dlopen *does* load deplibs and with the right loader patch applied
19637 # it even uses RPATH in a shared library to search for shared objects
19638 # that the library depends on, but there's no easy way to know if that
19639 # patch is installed. Since this is the case, all we can really
19640 # say is unknown -- it depends on the patch being installed. If
19641 # it is, this changes to `yes'. Without it, it would be `no'.
19642 lt_cv_sys_dlopen_deplibs=unknown
19645 # the two cases above should catch all versions of osf <= 5.1. Read
19646 # the comments above for what we know about them.
19647 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19648 # is used to find them so we can finally say `yes'.
19649 lt_cv_sys_dlopen_deplibs=yes
19652 lt_cv_sys_dlopen_deplibs=yes
19655 lt_cv_sys_dlopen_deplibs=yes
19657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19658 libltdl_cv_sys_dlopen_deplibs=yes
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19664 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19665 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19667 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19673 for ac_header in argz.h
19675 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19677 if test "x$ac_cv_header_argz_h" = x""yes; then :
19678 cat >>confdefs.h <<_ACEOF
19679 #define HAVE_ARGZ_H 1
19687 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19691 if test "x$ac_cv_type_error_t" = x""yes; then :
19693 cat >>confdefs.h <<_ACEOF
19694 #define HAVE_ERROR_T 1
19700 $as_echo "#define error_t int" >>confdefs.h
19703 $as_echo "#define __error_t_defined 1" >>confdefs.h
19709 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19710 argz_next argz_stringify
19712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19714 eval as_val=\$$as_ac_var
19715 if test "x$as_val" = x""yes; then :
19716 cat >>confdefs.h <<_ACEOF
19717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19723 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19729 if test -z "$ARGZ_H"; then :
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19731 $as_echo_n "checking if argz actually works... " >&6; }
19732 if test "${lt_cv_sys_argz_works+set}" = set; then :
19733 $as_echo_n "(cached) " >&6
19735 case $host_os in #(
19737 lt_cv_sys_argz_works=no
19738 if test "$cross_compiling" != no; then
19739 lt_cv_sys_argz_works="guessing no"
19741 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19744 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19749 if test "$lt_os_major" -gt 1 \
19750 || { test "$lt_os_major" -eq 1 \
19751 && { test "$lt_os_minor" -gt 5 \
19752 || { test "$lt_os_minor" -eq 5 \
19753 && test "$lt_os_micro" -gt 24; }; }; }; then
19754 lt_cv_sys_argz_works=yes
19758 *) lt_cv_sys_argz_works=yes ;;
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19762 $as_echo "$lt_cv_sys_argz_works" >&6; }
19763 if test $lt_cv_sys_argz_works = yes; then :
19765 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19771 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19779 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19780 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19781 $as_echo_n "(cached) " >&6
19783 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19784 libltdl_cv_preloaded_symbols=yes
19786 libltdl_cv_preloaded_symbols=no
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19791 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19792 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19794 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19810 # Check whether --with-included_ltdl was given.
19811 if test "${with_included_ltdl+set}" = set; then :
19812 withval=$with_included_ltdl;
19816 if test "x$with_included_ltdl" != xyes; then
19817 # We are not being forced to use the included libltdl sources, so
19818 # decide whether there is a useful installed version we can use.
19819 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19822 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19823 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19826 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19828 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19829 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lltdl $LIBS"
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19843 char lt_dladvise_preload ();
19847 return lt_dladvise_preload ();
19852 if ac_fn_c_try_link "$LINENO"; then :
19853 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19855 ac_cv_lib_ltdl_lt_dladvise_preload=no
19857 rm -f core conftest.err conftest.$ac_objext \
19858 conftest$ac_exeext conftest.$ac_ext
19859 LIBS=$ac_check_lib_save_LIBS
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19862 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19863 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19864 with_included_ltdl=no
19866 with_included_ltdl=yes
19870 with_included_ltdl=yes
19874 with_included_ltdl=yes
19883 # Check whether --with-ltdl_include was given.
19884 if test "${with_ltdl_include+set}" = set; then :
19885 withval=$with_ltdl_include;
19889 if test -n "$with_ltdl_include"; then
19890 if test -f "$with_ltdl_include/ltdl.h"; then :
19892 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19895 with_ltdl_include=no
19899 # Check whether --with-ltdl_lib was given.
19900 if test "${with_ltdl_lib+set}" = set; then :
19901 withval=$with_ltdl_lib;
19905 if test -n "$with_ltdl_lib"; then
19906 if test -f "$with_ltdl_lib/libltdl.la"; then :
19908 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19914 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19916 case $enable_ltdl_convenience in
19917 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19918 "") enable_ltdl_convenience=yes
19919 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19921 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19923 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19929 # For backwards non-gettext consistent compatibility...
19930 INCLTDL="$LTDLINCL"
19935 # If the included ltdl is not to be used, then use the
19936 # preinstalled libltdl we found.
19938 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19945 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19947 *) with_included_ltdl=no
19948 LIBLTDL="-L$with_ltdl_lib -lltdl"
19950 LTDLINCL="-I$with_ltdl_include"
19953 INCLTDL="$LTDLINCL"
19955 # Report our decision...
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19957 $as_echo_n "checking where to find libltdl headers... " >&6; }
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19959 $as_echo "$LTDLINCL" >&6; }
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19961 $as_echo_n "checking where to find libltdl library... " >&6; }
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19963 $as_echo "$LIBLTDL" >&6; }
19967 # Check whether --enable-ltdl-install was given.
19968 if test "${enable_ltdl_install+set}" = set; then :
19969 enableval=$enable_ltdl_install;
19973 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19975 *) enable_ltdl_convenience=yes ;;
19978 if test x"${enable_ltdl_install-no}" != xno; then
19980 INSTALL_LTDL_FALSE='#'
19982 INSTALL_LTDL_TRUE='#'
19983 INSTALL_LTDL_FALSE=
19986 if test x"${enable_ltdl_convenience-no}" != xno; then
19987 CONVENIENCE_LTDL_TRUE=
19988 CONVENIENCE_LTDL_FALSE='#'
19990 CONVENIENCE_LTDL_TRUE='#'
19991 CONVENIENCE_LTDL_FALSE=
20000 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20001 # the user used. This is so that ltdl.h can pick up the parent projects
20002 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20003 # definitions required by ltdl.c.
20004 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20008 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20013 eval as_val=\$$as_ac_Header
20014 if test "x$as_val" = x""yes; then :
20015 cat >>confdefs.h <<_ACEOF
20016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20024 for ac_func in closedir opendir readdir
20026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20027 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20028 eval as_val=\$$as_ac_var
20029 if test "x$as_val" = x""yes; then :
20030 cat >>confdefs.h <<_ACEOF
20031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20037 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20042 for ac_func in strlcat strlcpy
20044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20046 eval as_val=\$$as_ac_var
20047 if test "x$as_val" = x""yes; then :
20048 cat >>confdefs.h <<_ACEOF
20049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20055 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20062 cat >>confdefs.h <<_ACEOF
20063 #define LT_LIBEXT "$libext"
20068 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20077 # Only expand once:
20081 # Check to see if building shared libraries
20082 libtool_build_shared_libs='no'
20083 if test "$enable_shared" = 'yes'; then
20084 libtool_build_shared_libs='yes'
20087 # Check to see if building static libraries
20088 libtool_build_static_libs='no'
20089 if test "$enable_static" = 'yes'; then
20090 libtool_build_static_libs='yes'
20093 if test "${libtool_build_shared_libs}" = 'yes'; then
20094 WITH_SHARED_LIBS_TRUE=
20095 WITH_SHARED_LIBS_FALSE='#'
20097 WITH_SHARED_LIBS_TRUE='#'
20098 WITH_SHARED_LIBS_FALSE=
20102 # Enable support for building loadable modules
20105 # Check whether --with-modules was given.
20106 if test "${with_modules+set}" = set; then :
20107 withval=$with_modules; with_modules=$withval
20113 # Only allow building loadable modules if we are building shared libraries
20114 if test "$with_modules" != 'no' ; then
20115 if test "$libtool_build_shared_libs" = 'no'; then
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20117 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20121 if test "$with_modules" != 'no'; then
20123 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20126 if test "$with_modules" != 'no'; then
20128 WITH_MODULES_FALSE='#'
20130 WITH_MODULES_TRUE='#'
20131 WITH_MODULES_FALSE=
20135 # Enable building/use of libltdl if we are building shared libraries regardless
20136 # of whether modules are built or not.
20138 if test "$libtool_build_shared_libs" != 'no'; then
20142 if test "$with_ltdl" != 'no'; then
20144 WITH_LTDL_FALSE='#'
20150 if test "$with_ltdl" != 'no'; then
20152 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20156 if test X"$enable_shared" = Xyes; then
20157 DLLDFLAGS=-export-dynamic
20162 # Enable build using delegate libraries built in subdirectories rather than installed
20163 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
20164 # Check whether --enable-delegate-build was given.
20165 if test "${enable_delegate_build+set}" = set; then :
20166 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20168 enable_delegate_build='no'
20172 # Check whether --enable-deprecated was given.
20173 if test "${enable_deprecated+set}" = set; then :
20174 enableval=$enable_deprecated; enable_deprecated=$enableval
20176 enable_deprecated='no'
20180 if test "$enable_deprecated" = 'yes'; then
20182 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20188 # Build a version of ImageMagick which operates uninstalled.
20189 # Used to build distributions located via MAGICK_HOME / executable path
20190 # Check whether --enable-installed was given.
20191 if test "${enable_installed+set}" = set; then :
20192 enableval=$enable_installed; enable_installed=$enableval
20194 enable_installed='yes'
20198 if test "$enable_installed" = 'yes'; then
20200 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20206 # Permit enciphering and deciphering image pixels.
20207 # Check whether --enable-cipher was given.
20208 if test "${enable_cipher+set}" = set; then :
20209 enableval=$enable_cipher; enable_cipher=$enableval
20211 enable_cipher='yes'
20215 if test "$enable_cipher" = 'yes'; then
20217 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20221 # Build an embeddable version of ImageMagick.
20222 # Check whether --enable-embeddable was given.
20223 if test "${enable_embeddable+set}" = set; then :
20224 enableval=$enable_embeddable; enable_embeddable=$enableval
20226 enable_embeddable='no'
20230 if test "$enable_embeddable" = 'yes'; then
20232 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20236 # Build a high dynamic range version of ImageMagick.
20237 # Check whether --enable-hdri was given.
20238 if test "${enable_hdri+set}" = set; then :
20239 enableval=$enable_hdri; enable_hdri=$enableval
20246 if test "$enable_hdri" = 'yes'; then
20249 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20253 # Build a version of ImageMagick with assert statements.
20254 # Check whether --enable-assert was given.
20255 if test "${enable_assert+set}" = set; then :
20256 enableval=$enable_assert; enable_assert=$enableval
20258 enable_assert='yes'
20262 if test "$enable_assert" = 'no'; then
20264 $as_echo "#define NDEBUG 1" >>confdefs.h
20268 # Add configure option --enable-maintainer-mode which enables dependency
20269 # checking and generation useful to package maintainers. This is made an
20270 # option to avoid confusing end users.
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20273 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20274 # Check whether --enable-maintainer-mode was given.
20275 if test "${enable_maintainer_mode+set}" = set; then :
20276 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20278 USE_MAINTAINER_MODE=no
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20282 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20283 if test $USE_MAINTAINER_MODE = yes; then
20284 MAINTAINER_MODE_TRUE=
20285 MAINTAINER_MODE_FALSE='#'
20287 MAINTAINER_MODE_TRUE='#'
20288 MAINTAINER_MODE_FALSE=
20291 MAINT=$MAINTAINER_MODE_TRUE
20296 # Enable ccmalloc memory debugging support
20297 # Check whether --enable-ccmalloc was given.
20298 if test "${enable_ccmalloc+set}" = set; then :
20299 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20301 enable_ccmalloc='no'
20305 # Enable Electric Fence memory debugging support
20306 # Check whether --enable-efence was given.
20307 if test "${enable_efence+set}" = set; then :
20308 enableval=$enable_efence; enable_efence=$enableval
20314 # Enable prof-based profiling support
20315 # Check whether --enable-prof was given.
20316 if test "${enable_prof+set}" = set; then :
20317 enableval=$enable_prof; enable_prof=$enableval
20323 # Enable gprof-based profiling support
20324 # Check whether --enable-gprof was given.
20325 if test "${enable_gprof+set}" = set; then :
20326 enableval=$enable_gprof; enable_gprof=$enableval
20332 # Enable gcov-based profiling support
20333 # Check whether --enable-gcov was given.
20334 if test "${enable_gcov+set}" = set; then :
20335 enableval=$enable_gcov; enable_gcov=$enableval
20341 enable_profiling='no'
20342 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20343 enable_profiling='yes'
20344 if test "$libtool_build_shared_libs" = 'yes'; then
20345 echo "Warning: Can not profile code using shared libraries"
20349 # Magick API method prefix
20351 # Check whether --with-method-prefix was given.
20352 if test "${with_method_prefix+set}" = set; then :
20353 withval=$with_method_prefix; with_method_prefix=$enableval
20355 with_method_prefix=''
20359 if test "$with_method_prefix" != ''; then
20361 cat >>confdefs.h <<_ACEOF
20362 #define NAMESPACE_PREFIX $with_method_prefix
20367 # Number of bits in a Quantum
20369 # Check whether --with-quantum-depth was given.
20370 if test "${with_quantum_depth+set}" = set; then :
20371 withval=$with_quantum_depth; with_quantum_depth=$withval
20373 with_quantum_depth=16
20377 if test "$with_quantum_depth" != '8'; then
20378 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20381 case "${with_quantum_depth}" in
20386 * ) { as_fn_set_status 16
20387 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
20389 QUANTUM_DEPTH="$with_quantum_depth"
20391 cat >>confdefs.h <<_ACEOF
20392 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20396 # Set pixel cache threshold
20398 # Check whether --with-cache was given.
20399 if test "${with_cache+set}" = set; then :
20400 withval=$with_cache; with_cache=$withval
20406 if test "$with_cache" != ''; then
20408 cat >>confdefs.h <<_ACEOF
20409 #define PixelCacheThreshold $with_cache
20412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20415 # Disable/Enable support for full delegate paths
20417 # Check whether --with-frozenpaths was given.
20418 if test "${with_frozenpaths+set}" = set; then :
20419 withval=$with_frozenpaths; with_frozenpaths=$withval
20421 with_frozenpaths='no'
20425 # Enable build/install of Magick++
20427 # Check whether --with-magick-plus-plus was given.
20428 if test "${with_magick_plus_plus+set}" = set; then :
20429 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20431 with_magick_plus_plus='yes'
20435 # Disable build/install of PerlMagick.
20437 # Check whether --with-perl was given.
20438 if test "${with_perl+set}" = set; then :
20439 withval=$with_perl; with_perl=$withval
20445 # Options to pass when configuring PerlMagick
20447 # Check whether --with-perl-options was given.
20448 if test "${with_perl_options+set}" = set; then :
20449 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20454 # Enable umem, object-caching memory allocation library.
20456 # Check whether --with-umem was given.
20457 if test "${with_umem+set}" = set; then :
20458 withval=$with_umem; with_umem=$withval
20463 if test "$with_umem" != 'yes' ; then
20464 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20468 # Specify path to shared libstdc++ if not in normal location
20471 # Check whether --with-libstdc was given.
20472 if test "${with_libstdc+set}" = set; then :
20473 withval=$with_libstdc; with_libstdc=$withval
20479 if test "$with_libstdc" != ''; then
20480 if test -d "$with_libstdc"; then
20481 LIBSTDCLDFLAGS="-L$with_libstdc"
20486 # Does gcc required -traditional?
20487 if test $ac_cv_c_compiler_gnu = yes; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20489 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20490 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20491 $as_echo_n "(cached) " >&6
20493 ac_pattern="Autoconf.*'x'"
20494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20495 /* end confdefs.h. */
20499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20500 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20501 ac_cv_prog_gcc_traditional=yes
20503 ac_cv_prog_gcc_traditional=no
20508 if test $ac_cv_prog_gcc_traditional = no; then
20509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20510 /* end confdefs.h. */
20511 #include <termio.h>
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20516 ac_cv_prog_gcc_traditional=yes
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20523 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20524 if test $ac_cv_prog_gcc_traditional = yes; then
20525 CC="$CC -traditional"
20532 # Set defines required to build DLLs and modules using MinGW
20535 # These options are set for multi-thread DLL module build
20536 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20538 # executable/Magick++: _DLL _MAGICKMOD_
20539 MODULE_EXTRA_CPPFLAGS=''
20540 LIBRARY_EXTRA_CPPFLAGS=''
20541 if test "${native_win32_build}" = 'yes'; then
20542 if test "${libtool_build_shared_libs}" = 'yes'; then
20543 CPPFLAGS="$CPPFLAGS -D_DLL"
20544 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20545 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20546 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20547 if test "$with_modules" = 'yes'; then
20548 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20550 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20553 CPPFLAGS="$CPPFLAGS -D_LIB"
20554 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20555 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20557 if test "$with_threads" = 'yes'; then
20558 CPPFLAGS="$CPPFLAGS -D_MT"
20559 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20560 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20566 # Check standard headers
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20568 $as_echo_n "checking for ANSI C header files... " >&6; }
20569 if test "${ac_cv_header_stdc+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20573 /* end confdefs.h. */
20574 #include <stdlib.h>
20575 #include <stdarg.h>
20576 #include <string.h>
20587 if ac_fn_c_try_compile "$LINENO"; then :
20588 ac_cv_header_stdc=yes
20590 ac_cv_header_stdc=no
20592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 if test $ac_cv_header_stdc = yes; then
20595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20597 /* end confdefs.h. */
20598 #include <string.h>
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602 $EGREP "memchr" >/dev/null 2>&1; then :
20605 ac_cv_header_stdc=no
20611 if test $ac_cv_header_stdc = yes; then
20612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20614 /* end confdefs.h. */
20615 #include <stdlib.h>
20618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20619 $EGREP "free" >/dev/null 2>&1; then :
20622 ac_cv_header_stdc=no
20628 if test $ac_cv_header_stdc = yes; then
20629 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20630 if test "$cross_compiling" = yes; then :
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20636 #include <stdlib.h>
20637 #if ((' ' & 0x0FF) == 0x020)
20638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20641 # define ISLOWER(c) \
20642 (('a' <= (c) && (c) <= 'i') \
20643 || ('j' <= (c) && (c) <= 'r') \
20644 || ('s' <= (c) && (c) <= 'z'))
20645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20653 for (i = 0; i < 256; i++)
20654 if (XOR (islower (i), ISLOWER (i))
20655 || toupper (i) != TOUPPER (i))
20660 if ac_fn_c_try_run "$LINENO"; then :
20663 ac_cv_header_stdc=no
20665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20666 conftest.$ac_objext conftest.beam conftest.$ac_ext
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20672 $as_echo "$ac_cv_header_stdc" >&6; }
20673 if test $ac_cv_header_stdc = yes; then
20675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20679 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20681 header files. Compilation cannot proceed. Please install the ANSI C
20682 headers and rerun this script." >&5
20683 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20684 header files. Compilation cannot proceed. Please install the ANSI C
20685 headers and rerun this script." >&2;};
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20689 $as_echo_n "checking whether to enable assertions... " >&6; }
20690 # Check whether --enable-assert was given.
20691 if test "${enable_assert+set}" = set; then :
20692 enableval=$enable_assert; ac_enable_assert=$enableval
20693 if test "x$enableval" = xno; then :
20695 $as_echo "#define NDEBUG 1" >>confdefs.h
20697 elif test "x$enableval" != xyes; then :
20698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20699 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20700 ac_enable_assert=yes
20703 ac_enable_assert=yes
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20707 $as_echo "$ac_enable_assert" >&6; }
20709 ac_header_dirent=no
20710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20711 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20713 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20715 $as_echo_n "(cached) " >&6
20717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h. */
20719 #include <sys/types.h>
20731 if ac_fn_c_try_compile "$LINENO"; then :
20732 eval "$as_ac_Header=yes"
20734 eval "$as_ac_Header=no"
20736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20738 eval ac_res=\$$as_ac_Header
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20740 $as_echo "$ac_res" >&6; }
20741 eval as_val=\$$as_ac_Header
20742 if test "x$as_val" = x""yes; then :
20743 cat >>confdefs.h <<_ACEOF
20744 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20747 ac_header_dirent=$ac_hdr; break
20751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20752 if test $ac_header_dirent = dirent.h; then
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20754 $as_echo_n "checking for library containing opendir... " >&6; }
20755 if test "${ac_cv_search_opendir+set}" = set; then :
20756 $as_echo_n "(cached) " >&6
20758 ac_func_search_save_LIBS=$LIBS
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20762 /* Override any GCC internal prototype to avoid an error.
20763 Use char because int might match the return type of a GCC
20764 builtin and then its argument prototype would still apply. */
20777 for ac_lib in '' dir; do
20778 if test -z "$ac_lib"; then
20779 ac_res="none required"
20782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20784 if ac_fn_c_try_link "$LINENO"; then :
20785 ac_cv_search_opendir=$ac_res
20787 rm -f core conftest.err conftest.$ac_objext \
20789 if test "${ac_cv_search_opendir+set}" = set; then :
20793 if test "${ac_cv_search_opendir+set}" = set; then :
20796 ac_cv_search_opendir=no
20798 rm conftest.$ac_ext
20799 LIBS=$ac_func_search_save_LIBS
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20802 $as_echo "$ac_cv_search_opendir" >&6; }
20803 ac_res=$ac_cv_search_opendir
20804 if test "$ac_res" != no; then :
20805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20811 $as_echo_n "checking for library containing opendir... " >&6; }
20812 if test "${ac_cv_search_opendir+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20815 ac_func_search_save_LIBS=$LIBS
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20819 /* Override any GCC internal prototype to avoid an error.
20820 Use char because int might match the return type of a GCC
20821 builtin and then its argument prototype would still apply. */
20834 for ac_lib in '' x; do
20835 if test -z "$ac_lib"; then
20836 ac_res="none required"
20839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20841 if ac_fn_c_try_link "$LINENO"; then :
20842 ac_cv_search_opendir=$ac_res
20844 rm -f core conftest.err conftest.$ac_objext \
20846 if test "${ac_cv_search_opendir+set}" = set; then :
20850 if test "${ac_cv_search_opendir+set}" = set; then :
20853 ac_cv_search_opendir=no
20855 rm conftest.$ac_ext
20856 LIBS=$ac_func_search_save_LIBS
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20859 $as_echo "$ac_cv_search_opendir" >&6; }
20860 ac_res=$ac_cv_search_opendir
20861 if test "$ac_res" != no; then :
20862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20869 # Check additional headers
20870 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
20872 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20873 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20874 eval as_val=\$$as_ac_Header
20875 if test "x$as_val" = x""yes; then :
20876 cat >>confdefs.h <<_ACEOF
20877 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20887 # Checks for typedefs, structures, and compiler characteristics.
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20892 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20893 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20894 $as_echo_n "(cached) " >&6
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20899 #include <stdbool.h>
20901 "error: bool is not defined"
20904 "error: false is not defined"
20907 "error: false is not 0"
20910 "error: true is not defined"
20913 "error: true is not 1"
20915 #ifndef __bool_true_false_are_defined
20916 "error: __bool_true_false_are_defined is not defined"
20919 struct s { _Bool s: 1; _Bool t; } s;
20921 char a[true == 1 ? 1 : -1];
20922 char b[false == 0 ? 1 : -1];
20923 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20924 char d[(bool) 0.5 == true ? 1 : -1];
20926 char f[(_Bool) 0.0 == false ? 1 : -1];
20928 char h[sizeof (_Bool)];
20929 char i[sizeof s.t];
20930 enum { j = false, k = true, l = false * true, m = true * 256 };
20931 /* The following fails for
20932 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20934 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20935 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20936 # if defined __xlc__ || defined __GNUC__
20937 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20938 reported by James Lemley on 2005-10-05; see
20939 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20940 This test is not quite right, since xlc is allowed to
20941 reject this program, as the initializer for xlcbug is
20942 not one of the forms that C requires support for.
20943 However, doing the test right would require a runtime
20944 test, and that would make cross-compilation harder.
20945 Let us hope that IBM fixes the xlc bug, and also adds
20946 support for this kind of constant expression. In the
20947 meantime, this test will reject xlc, which is OK, since
20948 our stdbool.h substitute should suffice. We also test
20949 this with GCC, where it should work, to detect more
20950 quickly whether someone messes up the test in the
20952 char digs[] = "0123456789";
20953 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20955 /* Catch a bug in an HP-UX C compiler. See
20956 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20957 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20968 /* Refer to every declared value, to avoid compiler optimizations. */
20969 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20970 + !m + !n + !o + !p + !q + !pq);
20976 if ac_fn_c_try_compile "$LINENO"; then :
20977 ac_cv_header_stdbool_h=yes
20979 ac_cv_header_stdbool_h=no
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20984 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20985 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20986 if test "x$ac_cv_type__Bool" = x""yes; then :
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE__BOOL 1
20995 if test $ac_cv_header_stdbool_h = yes; then
20997 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21002 $as_echo_n "checking for working volatile... " >&6; }
21003 if test "${ac_cv_c_volatile+set}" = set; then :
21004 $as_echo_n "(cached) " >&6
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21014 int * volatile y = (int *) 0;
21020 if ac_fn_c_try_compile "$LINENO"; then :
21021 ac_cv_c_volatile=yes
21023 ac_cv_c_volatile=no
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21028 $as_echo "$ac_cv_c_volatile" >&6; }
21029 if test $ac_cv_c_volatile = no; then
21031 $as_echo "#define volatile /**/" >>confdefs.h
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21036 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21037 if test "${ac_cv_c_stringize+set}" = set; then :
21038 $as_echo_n "(cached) " >&6
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21044 char *s = x(teststring);
21046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21047 $EGREP "#teststring" >/dev/null 2>&1; then :
21048 ac_cv_c_stringize=no
21050 ac_cv_c_stringize=yes
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21056 $as_echo "$ac_cv_c_stringize" >&6; }
21057 if test $ac_cv_c_stringize = yes; then
21059 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21064 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21065 if test "${ac_cv_header_stat_broken+set}" = set; then :
21066 $as_echo_n "(cached) " >&6
21068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h. */
21070 #include <sys/types.h>
21071 #include <sys/stat.h>
21073 #if defined S_ISBLK && defined S_IFDIR
21074 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21077 #if defined S_ISBLK && defined S_IFCHR
21078 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21081 #if defined S_ISLNK && defined S_IFREG
21082 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21085 #if defined S_ISSOCK && defined S_IFREG
21086 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21090 if ac_fn_c_try_compile "$LINENO"; then :
21091 ac_cv_header_stat_broken=no
21093 ac_cv_header_stat_broken=yes
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21098 $as_echo "$ac_cv_header_stat_broken" >&6; }
21099 if test $ac_cv_header_stat_broken = yes; then
21101 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21106 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21107 if test "${ac_cv_header_time+set}" = set; then :
21108 $as_echo_n "(cached) " >&6
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21112 #include <sys/types.h>
21113 #include <sys/time.h>
21119 if ((struct tm *) 0)
21125 if ac_fn_c_try_compile "$LINENO"; then :
21126 ac_cv_header_time=yes
21128 ac_cv_header_time=no
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21133 $as_echo "$ac_cv_header_time" >&6; }
21134 if test $ac_cv_header_time = yes; then
21136 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21141 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21142 if test "${ac_cv_struct_tm+set}" = set; then :
21143 $as_echo_n "(cached) " >&6
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147 #include <sys/types.h>
21154 int *p = &tm.tm_sec;
21160 if ac_fn_c_try_compile "$LINENO"; then :
21161 ac_cv_struct_tm=time.h
21163 ac_cv_struct_tm=sys/time.h
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21168 $as_echo "$ac_cv_struct_tm" >&6; }
21169 if test $ac_cv_struct_tm = sys/time.h; then
21171 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21175 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21176 #include <$ac_cv_struct_tm>
21179 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21181 cat >>confdefs.h <<_ACEOF
21182 #define HAVE_STRUCT_TM_TM_ZONE 1
21188 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21190 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21193 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21195 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_DECL_TZNAME $ac_have_decl
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21206 $as_echo_n "checking for tzname... " >&6; }
21207 if test "${ac_cv_var_tzname+set}" = set; then :
21208 $as_echo_n "(cached) " >&6
21210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21211 /* end confdefs.h. */
21213 #if !HAVE_DECL_TZNAME
21214 extern char *tzname[];
21220 return tzname[0][0];
21225 if ac_fn_c_try_link "$LINENO"; then :
21226 ac_cv_var_tzname=yes
21228 ac_cv_var_tzname=no
21230 rm -f core conftest.err conftest.$ac_objext \
21231 conftest$ac_exeext conftest.$ac_ext
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21234 $as_echo "$ac_cv_var_tzname" >&6; }
21235 if test $ac_cv_var_tzname = yes; then
21237 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21243 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21244 if test "${ac_cv_sys_interpreter+set}" = set; then :
21245 $as_echo_n "(cached) " >&6
21251 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21252 if test $? -ne 69; then
21253 ac_cv_sys_interpreter=yes
21255 ac_cv_sys_interpreter=no
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21260 $as_echo "$ac_cv_sys_interpreter" >&6; }
21261 interpval=$ac_cv_sys_interpreter
21264 # If the C compiler supports the keyword inline, do nothing. Otherwise
21265 # define inline to __inline__ or __inline if it accepts one of those,
21266 # otherwise define inline to be empty.
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21268 $as_echo_n "checking for inline... " >&6; }
21269 if test "${ac_cv_c_inline+set}" = set; then :
21270 $as_echo_n "(cached) " >&6
21273 for ac_kw in inline __inline__ __inline; do
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h. */
21276 #ifndef __cplusplus
21278 static $ac_kw foo_t static_foo () {return 0; }
21279 $ac_kw foo_t foo () {return 0; }
21283 if ac_fn_c_try_compile "$LINENO"; then :
21284 ac_cv_c_inline=$ac_kw
21286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 test "$ac_cv_c_inline" != no && break
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21292 $as_echo "$ac_cv_c_inline" >&6; }
21294 case $ac_cv_c_inline in
21297 case $ac_cv_c_inline in
21299 *) ac_val=$ac_cv_c_inline;;
21301 cat >>confdefs.h <<_ACEOF
21302 #ifndef __cplusplus
21303 #define inline $ac_val
21310 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21311 # define restrict to __restrict__ or __restrict if it accepts one of those,
21312 # otherwise define restrict to be empty.
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21314 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21315 if test "${ac_cv_c_restrict+set}" = set; then :
21316 $as_echo_n "(cached) " >&6
21318 ac_cv_c_restrict=no
21319 # The order here caters to the fact that C++ does not require restrict.
21320 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322 /* end confdefs.h. */
21323 typedef int * int_ptr;
21324 int foo (int_ptr $ac_kw ip) {
21331 int * $ac_kw t = s;
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339 ac_cv_c_restrict=$ac_kw
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 test "$ac_cv_c_restrict" != no && break
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21347 $as_echo "$ac_cv_c_restrict" >&6; }
21349 case $ac_cv_c_restrict in
21351 no) $as_echo "#define restrict /**/" >>confdefs.h
21353 *) cat >>confdefs.h <<_ACEOF
21354 #define restrict $ac_cv_c_restrict
21360 # If words are stored with the most significant byte first (like
21361 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21363 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21364 if test "${ac_cv_c_bigendian+set}" = set; then :
21365 $as_echo_n "(cached) " >&6
21367 ac_cv_c_bigendian=unknown
21368 # See if we're dealing with a universal compiler.
21369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21370 /* end confdefs.h. */
21371 #ifndef __APPLE_CC__
21372 not a universal capable compiler
21377 if ac_fn_c_try_compile "$LINENO"; then :
21379 # Check for potential -arch flags. It is not universal unless
21380 # there are at least two -arch flags with different values.
21383 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21384 if test -n "$ac_prev"; then
21386 i?86 | x86_64 | ppc | ppc64)
21387 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21390 ac_cv_c_bigendian=universal
21396 elif test "x$ac_word" = "x-arch"; then
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 if test $ac_cv_c_bigendian = unknown; then
21403 # See if sys/param.h defines the BYTE_ORDER macro.
21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h. */
21406 #include <sys/types.h>
21407 #include <sys/param.h>
21412 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21413 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21415 bogus endian macros
21422 if ac_fn_c_try_compile "$LINENO"; then :
21423 # It does; now see whether it defined to BIG_ENDIAN or not.
21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <sys/types.h>
21427 #include <sys/param.h>
21432 #if BYTE_ORDER != BIG_ENDIAN
21440 if ac_fn_c_try_compile "$LINENO"; then :
21441 ac_cv_c_bigendian=yes
21443 ac_cv_c_bigendian=no
21445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 if test $ac_cv_c_bigendian = unknown; then
21450 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21453 #include <limits.h>
21458 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21459 bogus endian macros
21466 if ac_fn_c_try_compile "$LINENO"; then :
21467 # It does; now see whether it defined to _BIG_ENDIAN or not.
21468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21469 /* end confdefs.h. */
21470 #include <limits.h>
21475 #ifndef _BIG_ENDIAN
21483 if ac_fn_c_try_compile "$LINENO"; then :
21484 ac_cv_c_bigendian=yes
21486 ac_cv_c_bigendian=no
21488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21492 if test $ac_cv_c_bigendian = unknown; then
21493 # Compile a test program.
21494 if test "$cross_compiling" = yes; then :
21495 # Try to guess by grepping values from an object file.
21496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21497 /* end confdefs.h. */
21498 short int ascii_mm[] =
21499 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21500 short int ascii_ii[] =
21501 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21502 int use_ascii (int i) {
21503 return ascii_mm[i] + ascii_ii[i];
21505 short int ebcdic_ii[] =
21506 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21507 short int ebcdic_mm[] =
21508 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21509 int use_ebcdic (int i) {
21510 return ebcdic_mm[i] + ebcdic_ii[i];
21517 return use_ascii (foo) == use_ebcdic (foo);
21522 if ac_fn_c_try_compile "$LINENO"; then :
21523 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21524 ac_cv_c_bigendian=yes
21526 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21527 if test "$ac_cv_c_bigendian" = unknown; then
21528 ac_cv_c_bigendian=no
21530 # finding both strings is unlikely to happen, but who knows?
21531 ac_cv_c_bigendian=unknown
21535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h. */
21539 $ac_includes_default
21544 /* Are we little or big endian? From Harbison&Steele. */
21548 char c[sizeof (long int)];
21551 return u.c[sizeof (long int) - 1] == 1;
21557 if ac_fn_c_try_run "$LINENO"; then :
21558 ac_cv_c_bigendian=no
21560 ac_cv_c_bigendian=yes
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563 conftest.$ac_objext conftest.beam conftest.$ac_ext
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21569 $as_echo "$ac_cv_c_bigendian" >&6; }
21570 case $ac_cv_c_bigendian in #(
21572 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21578 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21582 as_fn_error "unknown endianness
21583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21587 # Define mode_t to a suitable type, if standard headers do not define it.
21588 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21589 if test "x$ac_cv_type_mode_t" = x""yes; then :
21593 cat >>confdefs.h <<_ACEOF
21600 # Define off_t to a suitable type, if standard headers do not define it.
21601 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21602 if test "x$ac_cv_type_off_t" = x""yes; then :
21606 cat >>confdefs.h <<_ACEOF
21607 #define off_t long int
21613 # Define pid_t to a suitable type, if standard headers do not define it.
21614 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21615 if test "x$ac_cv_type_pid_t" = x""yes; then :
21619 cat >>confdefs.h <<_ACEOF
21626 # Define size_t to a suitable type, if standard headers do not define it.
21627 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21628 if test "x$ac_cv_type_size_t" = x""yes; then :
21632 cat >>confdefs.h <<_ACEOF
21633 #define size_t unsigned int
21639 # Define ssize_t to a suitable type, if standard headers do not define it.
21640 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21641 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21645 cat >>confdefs.h <<_ACEOF
21646 #define ssize_t int
21652 # If the C compiler supports a working long double type with more range
21653 # or precision than the double type, define HAVE_LONG_DOUBLE.
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21656 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21657 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21663 long double const a[] =
21665 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21666 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21671 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21672 + (x ? f (x) : 'c'));
21678 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21679 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21680 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21681 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21682 && (int) LDBL_EPSILON == 0
21690 if ac_fn_c_try_compile "$LINENO"; then :
21691 ac_cv_type_long_double_wider=yes
21693 ac_cv_type_long_double_wider=no
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21698 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21699 if test $ac_cv_type_long_double_wider = yes; then
21701 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21706 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21707 # C compiler predefines it.
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21709 $as_echo_n "checking whether char is unsigned... " >&6; }
21710 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21711 $as_echo_n "(cached) " >&6
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21715 $ac_includes_default
21719 static int test_array [1 - 2 * !(((char) -1) < 0)];
21726 if ac_fn_c_try_compile "$LINENO"; then :
21727 ac_cv_c_char_unsigned=no
21729 ac_cv_c_char_unsigned=yes
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21734 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21735 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21736 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21741 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21742 # The cast to long int works around a bug in the HP C Compiler
21743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21745 # This bug is HP SR number 8606223364.
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21747 $as_echo_n "checking size of signed short... " >&6; }
21748 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21749 $as_echo_n "(cached) " >&6
21751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21754 if test "$ac_cv_type_signed_short" = yes; then
21755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21757 { as_fn_set_status 77
21758 as_fn_error "cannot compute sizeof (signed short)
21759 See \`config.log' for more details." "$LINENO" 5; }; }
21761 ac_cv_sizeof_signed_short=0
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21767 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21771 cat >>confdefs.h <<_ACEOF
21772 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21777 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21778 # The cast to long int works around a bug in the HP C Compiler
21779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781 # This bug is HP SR number 8606223364.
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21783 $as_echo_n "checking size of unsigned short... " >&6; }
21784 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21790 if test "$ac_cv_type_unsigned_short" = yes; then
21791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21793 { as_fn_set_status 77
21794 as_fn_error "cannot compute sizeof (unsigned short)
21795 See \`config.log' for more details." "$LINENO" 5; }; }
21797 ac_cv_sizeof_unsigned_short=0
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21803 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21807 cat >>confdefs.h <<_ACEOF
21808 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21813 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21814 # The cast to long int works around a bug in the HP C Compiler
21815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817 # This bug is HP SR number 8606223364.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21819 $as_echo_n "checking size of signed int... " >&6; }
21820 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
21823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21826 if test "$ac_cv_type_signed_int" = yes; then
21827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21829 { as_fn_set_status 77
21830 as_fn_error "cannot compute sizeof (signed int)
21831 See \`config.log' for more details." "$LINENO" 5; }; }
21833 ac_cv_sizeof_signed_int=0
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21839 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21843 cat >>confdefs.h <<_ACEOF
21844 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21849 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21850 # The cast to long int works around a bug in the HP C Compiler
21851 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21852 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21853 # This bug is HP SR number 8606223364.
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21855 $as_echo_n "checking size of unsigned int... " >&6; }
21856 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21862 if test "$ac_cv_type_unsigned_int" = yes; then
21863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21865 { as_fn_set_status 77
21866 as_fn_error "cannot compute sizeof (unsigned int)
21867 See \`config.log' for more details." "$LINENO" 5; }; }
21869 ac_cv_sizeof_unsigned_int=0
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21875 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21879 cat >>confdefs.h <<_ACEOF
21880 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21885 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21886 # The cast to long int works around a bug in the HP C Compiler
21887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21889 # This bug is HP SR number 8606223364.
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21891 $as_echo_n "checking size of signed long... " >&6; }
21892 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21893 $as_echo_n "(cached) " >&6
21895 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21898 if test "$ac_cv_type_signed_long" = yes; then
21899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21901 { as_fn_set_status 77
21902 as_fn_error "cannot compute sizeof (signed long)
21903 See \`config.log' for more details." "$LINENO" 5; }; }
21905 ac_cv_sizeof_signed_long=0
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21911 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21915 cat >>confdefs.h <<_ACEOF
21916 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21921 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21922 # The cast to long int works around a bug in the HP C Compiler
21923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21925 # This bug is HP SR number 8606223364.
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21927 $as_echo_n "checking size of unsigned long... " >&6; }
21928 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21929 $as_echo_n "(cached) " >&6
21931 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21934 if test "$ac_cv_type_unsigned_long" = yes; then
21935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21937 { as_fn_set_status 77
21938 as_fn_error "cannot compute sizeof (unsigned long)
21939 See \`config.log' for more details." "$LINENO" 5; }; }
21941 ac_cv_sizeof_unsigned_long=0
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21947 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21951 cat >>confdefs.h <<_ACEOF
21952 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21957 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21958 # 'signed long long' is not supported then the value defined is zero.
21959 # The cast to long int works around a bug in the HP C Compiler
21960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21962 # This bug is HP SR number 8606223364.
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21964 $as_echo_n "checking size of signed long long... " >&6; }
21965 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21966 $as_echo_n "(cached) " >&6
21968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21971 if test "$ac_cv_type_signed_long_long" = yes; then
21972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21974 { as_fn_set_status 77
21975 as_fn_error "cannot compute sizeof (signed long long)
21976 See \`config.log' for more details." "$LINENO" 5; }; }
21978 ac_cv_sizeof_signed_long_long=0
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21984 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21988 cat >>confdefs.h <<_ACEOF
21989 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21994 # Obtain size of a 'unsigned long long' and define as
21995 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21996 # supported then the value defined is zero.
21997 # The cast to long int works around a bug in the HP C Compiler
21998 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21999 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22000 # This bug is HP SR number 8606223364.
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22002 $as_echo_n "checking size of unsigned long long... " >&6; }
22003 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
22004 $as_echo_n "(cached) " >&6
22006 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
22009 if test "$ac_cv_type_unsigned_long_long" = yes; then
22010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22012 { as_fn_set_status 77
22013 as_fn_error "cannot compute sizeof (unsigned long long)
22014 See \`config.log' for more details." "$LINENO" 5; }; }
22016 ac_cv_sizeof_unsigned_long_long=0
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22022 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22026 cat >>confdefs.h <<_ACEOF
22027 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22032 # Obtain size of off_t and define as SIZEOF_OFF_T
22033 # The cast to long int works around a bug in the HP C Compiler
22034 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22035 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22036 # This bug is HP SR number 8606223364.
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22038 $as_echo_n "checking size of off_t... " >&6; }
22039 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22040 $as_echo_n "(cached) " >&6
22042 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
22045 if test "$ac_cv_type_off_t" = yes; then
22046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22048 { as_fn_set_status 77
22049 as_fn_error "cannot compute sizeof (off_t)
22050 See \`config.log' for more details." "$LINENO" 5; }; }
22052 ac_cv_sizeof_off_t=0
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22058 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22062 cat >>confdefs.h <<_ACEOF
22063 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22068 # Obtain size of size_t and define as SIZEOF_SIZE_T
22069 # The cast to long int works around a bug in the HP C Compiler
22070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22072 # This bug is HP SR number 8606223364.
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22074 $as_echo_n "checking size of size_t... " >&6; }
22075 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22076 $as_echo_n "(cached) " >&6
22078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22081 if test "$ac_cv_type_size_t" = yes; then
22082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22084 { as_fn_set_status 77
22085 as_fn_error "cannot compute sizeof (size_t)
22086 See \`config.log' for more details." "$LINENO" 5; }; }
22088 ac_cv_sizeof_size_t=0
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22094 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22098 cat >>confdefs.h <<_ACEOF
22099 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22104 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22105 # The cast to long int works around a bug in the HP C Compiler
22106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22108 # This bug is HP SR number 8606223364.
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22110 $as_echo_n "checking size of ssize_t... " >&6; }
22111 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22112 $as_echo_n "(cached) " >&6
22114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22117 if test "$ac_cv_type_ssize_t" = yes; then
22118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22120 { as_fn_set_status 77
22121 as_fn_error "cannot compute sizeof (ssize_t)
22122 See \`config.log' for more details." "$LINENO" 5; }; }
22124 ac_cv_sizeof_ssize_t=0
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22130 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22134 cat >>confdefs.h <<_ACEOF
22135 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22140 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22141 # The cast to long int works around a bug in the HP C Compiler
22142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22144 # This bug is HP SR number 8606223364.
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22146 $as_echo_n "checking size of unsigned int*... " >&6; }
22147 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
22148 $as_echo_n "(cached) " >&6
22150 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
22153 if test "$ac_cv_type_unsigned_intp" = yes; then
22154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22156 { as_fn_set_status 77
22157 as_fn_error "cannot compute sizeof (unsigned int*)
22158 See \`config.log' for more details." "$LINENO" 5; }; }
22160 ac_cv_sizeof_unsigned_intp=0
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22166 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22170 cat >>confdefs.h <<_ACEOF
22171 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22177 # Compute sized types for current CPU and compiler options.
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22181 $as_echo_n "checking for signed 8-bit type... " >&6; }
22182 INT8_T='signed char'
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22184 $as_echo "$INT8_T" >&6; }
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22188 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22189 UINT8_T='unsigned char'
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22191 $as_echo "$UINT8_T" >&6; }
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22195 $as_echo_n "checking for signed 16-bit type... " >&6; }
22196 INT16_T='signed short'
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22198 $as_echo "$INT16_T" >&6; }
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22202 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22203 UINT16_T='unsigned short'
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22205 $as_echo "$UINT16_T" >&6; }
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22209 $as_echo_n "checking for signed 32-bit type... " >&6; }
22211 if test $ac_cv_sizeof_signed_int -eq 4; then
22212 INT32_T='signed int'
22213 elif test $ac_cv_sizeof_signed_long -eq 4; then
22214 INT32_T='signed long'
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22217 $as_echo "$INT32_T" >&6; }
22220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22221 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22223 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22224 UINT32_T='unsigned int'
22225 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22226 UINT32_T='unsigned long'
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22229 $as_echo "$UINT32_T" >&6; }
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22233 $as_echo_n "checking for signed 64-bit type... " >&6; }
22235 if test $ac_cv_sizeof_signed_long -eq 8; then
22236 INT64_T='signed long'
22237 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22238 INT64_T='signed long long'
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22241 $as_echo "$INT64_T" >&6; }
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22245 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22247 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22248 UINT64_T='unsigned long'
22249 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22250 UINT64_T='unsigned long long'
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22253 $as_echo "$UINT64_T" >&6; }
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22257 $as_echo_n "checking for unsigned maximum type... " >&6; }
22259 if test "$UINT64_T" != 'none'; then
22260 UINTMAX_T=$UINT64_T
22261 elif test "$UINT32_T" != 'none'; then
22262 UINTMAX_T=$UINT32_T
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22265 $as_echo "$UINTMAX_T" >&6; }
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22269 $as_echo_n "checking for pointer difference type... " >&6; }
22271 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22272 UINTPTR_T='unsigned long'
22273 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22274 UINTPTR_T='unsigned long long'
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22277 $as_echo "$UINTPTR_T" >&6; }
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22281 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h. */
22288 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22293 if ac_fn_c_try_compile "$LINENO"; then :
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22295 $as_echo "yes" >&6; }
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22300 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302 /* end confdefs.h. */
22307 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22312 if ac_fn_c_try_compile "$LINENO"; then :
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22314 $as_echo "yes" >&6; }
22316 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22320 $as_echo "no" >&6; }
22322 $as_echo "#define __func__ __FILE__" >>confdefs.h
22325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22331 # Check for functions
22334 for ac_header in stdlib.h unistd.h
22336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22337 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22338 eval as_val=\$$as_ac_Header
22339 if test "x$as_val" = x""yes; then :
22340 cat >>confdefs.h <<_ACEOF
22341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22348 for ac_func in getpagesize
22350 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22351 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22352 cat >>confdefs.h <<_ACEOF
22353 #define HAVE_GETPAGESIZE 1
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22360 $as_echo_n "checking for working mmap file i/o... " >&6; }
22361 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22364 if test "$cross_compiling" = yes; then :
22365 magick_cv_func_mmap_fileio=no
22367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22368 /* end confdefs.h. */
22369 $ac_includes_default
22370 /* malloc might have been renamed as rpl_malloc. */
22374 This test is derived from GNU Autoconf's similar macro.
22375 The purpose of this test is to verify that files may be memory
22376 mapped, and that memory mapping and file I/O are coherent.
22378 The test creates a test file, memory maps the file, updates
22379 the file using the memory map, and then reads the file using
22380 file I/O to verify that the file contains the updates.
22384 #include <sys/mman.h>
22386 #if !STDC_HEADERS && !HAVE_STDLIB_H
22390 /* This mess was copied from the GNU getpagesize.h. */
22391 #if !HAVE_GETPAGESIZE
22392 /* Assume that all systems that can run configure have sys/param.h. */
22393 # if !HAVE_SYS_PARAM_H
22394 # define HAVE_SYS_PARAM_H 1
22397 # ifdef _SC_PAGESIZE
22398 # define getpagesize() sysconf(_SC_PAGESIZE)
22399 # else /* no _SC_PAGESIZE */
22400 # if HAVE_SYS_PARAM_H
22401 # include <sys/param.h>
22402 # ifdef EXEC_PAGESIZE
22403 # define getpagesize() EXEC_PAGESIZE
22404 # else /* no EXEC_PAGESIZE */
22406 # define getpagesize() NBPG * CLSIZE
22409 # endif /* no CLSIZE */
22410 # else /* no NBPG */
22412 # define getpagesize() NBPC
22413 # else /* no NBPC */
22415 # define getpagesize() PAGESIZE
22416 # endif /* PAGESIZE */
22417 # endif /* no NBPC */
22418 # endif /* no NBPG */
22419 # endif /* no EXEC_PAGESIZE */
22420 # else /* no HAVE_SYS_PARAM_H */
22421 # define getpagesize() 8192 /* punt totally */
22422 # endif /* no HAVE_SYS_PARAM_H */
22423 # endif /* no _SC_PAGESIZE */
22425 #endif /* no HAVE_GETPAGESIZE */
22430 char *data, *data2, *data3;
22434 pagesize = getpagesize ();
22436 /* First, make a file with some known garbage in it. */
22437 data = (char *) malloc (pagesize);
22440 for (i = 0; i < pagesize; ++i)
22441 *(data + i) = rand ();
22443 fd = creat ("conftest.mmap", 0600);
22446 if (write (fd, data, pagesize) != pagesize)
22450 /* Mmap the file as read/write/shared and verify that we see the
22452 fd = open ("conftest.mmap", O_RDWR);
22455 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22458 for (i = 0; i < pagesize; ++i)
22459 if (*(data + i) != *(data2 + i))
22462 /* Finally, make sure that changes to the mapped area
22463 percolate back to the file as seen by read(). */
22464 for (i = 0; i < pagesize; ++i)
22465 *(data2 + i) = *(data2 + i) + 1;
22466 data3 = (char *) malloc (pagesize);
22469 if (read (fd, data3, pagesize) != pagesize)
22471 for (i = 0; i < pagesize; ++i)
22472 if (*(data2 + i) != *(data3 + i))
22478 if ac_fn_c_try_run "$LINENO"; then :
22479 magick_cv_func_mmap_fileio=yes
22481 magick_cv_func_mmap_fileio=no
22483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22484 conftest.$ac_objext conftest.beam conftest.$ac_ext
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22489 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22490 if test $magick_cv_func_mmap_fileio = yes; then
22492 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22495 rm -f conftest.mmap
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22498 $as_echo_n "checking whether closedir returns void... " >&6; }
22499 if test "${ac_cv_func_closedir_void+set}" = set; then :
22500 $as_echo_n "(cached) " >&6
22502 if test "$cross_compiling" = yes; then :
22503 ac_cv_func_closedir_void=yes
22505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h. */
22507 $ac_includes_default
22508 #include <$ac_header_dirent>
22509 #ifndef __cplusplus
22516 return closedir (opendir (".")) != 0;
22521 if ac_fn_c_try_run "$LINENO"; then :
22522 ac_cv_func_closedir_void=no
22524 ac_cv_func_closedir_void=yes
22526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22527 conftest.$ac_objext conftest.beam conftest.$ac_ext
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22532 $as_echo "$ac_cv_func_closedir_void" >&6; }
22533 if test $ac_cv_func_closedir_void = yes; then
22535 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22542 for ac_header in $ac_header_list
22544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22547 eval as_val=\$$as_ac_Header
22548 if test "x$as_val" = x""yes; then :
22549 cat >>confdefs.h <<_ACEOF
22550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22564 for ac_func in getpagesize
22566 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22567 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_GETPAGESIZE 1
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22576 $as_echo_n "checking for working mmap... " >&6; }
22577 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22580 if test "$cross_compiling" = yes; then :
22581 ac_cv_func_mmap_fixed_mapped=no
22583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 /* malloc might have been renamed as rpl_malloc. */
22589 /* Thanks to Mike Haertel and Jim Avera for this test.
22590 Here is a matrix of mmap possibilities:
22591 mmap private not fixed
22592 mmap private fixed at somewhere currently unmapped
22593 mmap private fixed at somewhere already mapped
22594 mmap shared not fixed
22595 mmap shared fixed at somewhere currently unmapped
22596 mmap shared fixed at somewhere already mapped
22597 For private mappings, we should verify that changes cannot be read()
22598 back from the file, nor mmap's back from the file at a different
22599 address. (There have been systems where private was not correctly
22600 implemented like the infamous i386 svr4.0, and systems where the
22601 VM page cache was not coherent with the file system buffer cache
22602 like early versions of FreeBSD and possibly contemporary NetBSD.)
22603 For shared mappings, we should conversely verify that changes get
22604 propagated back to all the places they're supposed to be.
22606 Grep wants private fixed already mapped.
22607 The main things grep needs to know about mmap are:
22608 * does it exist and is it safe to write into the mmap'd area
22609 * how to use it (BSD variants) */
22612 #include <sys/mman.h>
22614 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22618 /* This mess was copied from the GNU getpagesize.h. */
22619 #ifndef HAVE_GETPAGESIZE
22620 # ifdef _SC_PAGESIZE
22621 # define getpagesize() sysconf(_SC_PAGESIZE)
22622 # else /* no _SC_PAGESIZE */
22623 # ifdef HAVE_SYS_PARAM_H
22624 # include <sys/param.h>
22625 # ifdef EXEC_PAGESIZE
22626 # define getpagesize() EXEC_PAGESIZE
22627 # else /* no EXEC_PAGESIZE */
22629 # define getpagesize() NBPG * CLSIZE
22632 # endif /* no CLSIZE */
22633 # else /* no NBPG */
22635 # define getpagesize() NBPC
22636 # else /* no NBPC */
22638 # define getpagesize() PAGESIZE
22639 # endif /* PAGESIZE */
22640 # endif /* no NBPC */
22641 # endif /* no NBPG */
22642 # endif /* no EXEC_PAGESIZE */
22643 # else /* no HAVE_SYS_PARAM_H */
22644 # define getpagesize() 8192 /* punt totally */
22645 # endif /* no HAVE_SYS_PARAM_H */
22646 # endif /* no _SC_PAGESIZE */
22648 #endif /* no HAVE_GETPAGESIZE */
22653 char *data, *data2, *data3;
22654 const char *cdata2;
22658 pagesize = getpagesize ();
22660 /* First, make a file with some known garbage in it. */
22661 data = (char *) malloc (pagesize);
22664 for (i = 0; i < pagesize; ++i)
22665 *(data + i) = rand ();
22667 fd = creat ("conftest.mmap", 0600);
22670 if (write (fd, data, pagesize) != pagesize)
22674 /* Next, check that the tail of a page is zero-filled. File must have
22675 non-zero length, otherwise we risk SIGBUS for entire page. */
22676 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22680 if (write (fd2, cdata2, 1) != 1)
22682 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22683 if (data2 == MAP_FAILED)
22685 for (i = 0; i < pagesize; ++i)
22689 if (munmap (data2, pagesize))
22692 /* Next, try to mmap the file at a fixed address which already has
22693 something else allocated at it. If we can, also make sure that
22694 we see the same garbage. */
22695 fd = open ("conftest.mmap", O_RDWR);
22698 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22699 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22701 for (i = 0; i < pagesize; ++i)
22702 if (*(data + i) != *(data2 + i))
22705 /* Finally, make sure that changes to the mapped area do not
22706 percolate back to the file as seen by read(). (This is a bug on
22707 some variants of i386 svr4.0.) */
22708 for (i = 0; i < pagesize; ++i)
22709 *(data2 + i) = *(data2 + i) + 1;
22710 data3 = (char *) malloc (pagesize);
22713 if (read (fd, data3, pagesize) != pagesize)
22715 for (i = 0; i < pagesize; ++i)
22716 if (*(data + i) != *(data3 + i))
22722 if ac_fn_c_try_run "$LINENO"; then :
22723 ac_cv_func_mmap_fixed_mapped=yes
22725 ac_cv_func_mmap_fixed_mapped=no
22727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22728 conftest.$ac_objext conftest.beam conftest.$ac_ext
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22733 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22734 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22736 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22739 rm -f conftest.mmap conftest.txt
22741 for ac_header in vfork.h
22743 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22744 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22745 cat >>confdefs.h <<_ACEOF
22746 #define HAVE_VFORK_H 1
22753 for ac_func in fork vfork
22755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22757 eval as_val=\$$as_ac_var
22758 if test "x$as_val" = x""yes; then :
22759 cat >>confdefs.h <<_ACEOF
22760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22766 if test "x$ac_cv_func_fork" = xyes; then
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22768 $as_echo_n "checking for working fork... " >&6; }
22769 if test "${ac_cv_func_fork_works+set}" = set; then :
22770 $as_echo_n "(cached) " >&6
22772 if test "$cross_compiling" = yes; then :
22773 ac_cv_func_fork_works=cross
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h. */
22777 $ac_includes_default
22782 /* By Ruediger Kuhlmann. */
22783 return fork () < 0;
22789 if ac_fn_c_try_run "$LINENO"; then :
22790 ac_cv_func_fork_works=yes
22792 ac_cv_func_fork_works=no
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22795 conftest.$ac_objext conftest.beam conftest.$ac_ext
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22800 $as_echo "$ac_cv_func_fork_works" >&6; }
22803 ac_cv_func_fork_works=$ac_cv_func_fork
22805 if test "x$ac_cv_func_fork_works" = xcross; then
22807 *-*-amigaos* | *-*-msdosdjgpp*)
22808 # Override, as these systems have only a dummy fork() stub
22809 ac_cv_func_fork_works=no
22812 ac_cv_func_fork_works=yes
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22816 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22818 ac_cv_func_vfork_works=$ac_cv_func_vfork
22819 if test "x$ac_cv_func_vfork" = xyes; then
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22821 $as_echo_n "checking for working vfork... " >&6; }
22822 if test "${ac_cv_func_vfork_works+set}" = set; then :
22823 $as_echo_n "(cached) " >&6
22825 if test "$cross_compiling" = yes; then :
22826 ac_cv_func_vfork_works=cross
22828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h. */
22830 /* Thanks to Paul Eggert for this test. */
22831 $ac_includes_default
22832 #include <sys/wait.h>
22833 #ifdef HAVE_VFORK_H
22834 # include <vfork.h>
22836 /* On some sparc systems, changes by the child to local and incoming
22837 argument registers are propagated back to the parent. The compiler
22838 is told about this with #include <vfork.h>, but some compilers
22839 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22840 static variable whose address is put into a register that is
22841 clobbered by the vfork. */
22844 sparc_address_test (int arg)
22846 sparc_address_test (arg) int arg;
22849 static pid_t child;
22867 pid_t parent = getpid ();
22870 sparc_address_test (0);
22875 /* Here is another test for sparc vfork register problems. This
22876 test uses lots of local variables, at least as many local
22877 variables as main has allocated so far including compiler
22878 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22879 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22880 reuse the register of parent for one of the local variables,
22881 since it will think that parent can't possibly be used any more
22882 in this routine. Assigning to the local variable will thus
22883 munge parent in the parent process. */
22885 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22886 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22887 /* Convince the compiler that p..p7 are live; otherwise, it might
22888 use the same hardware register for all 8 local variables. */
22889 if (p != p1 || p != p2 || p != p3 || p != p4
22890 || p != p5 || p != p6 || p != p7)
22893 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22894 from child file descriptors. If the child closes a descriptor
22895 before it execs or exits, this munges the parent's descriptor
22896 as well. Test for this by closing stdout in the child. */
22897 _exit(close(fileno(stdout)) != 0);
22902 while (wait(&status) != child)
22905 /* Was there some problem with vforking? */
22908 /* Did the child fail? (This shouldn't happen.) */
22911 /* Did the vfork/compiler bug occur? */
22912 || parent != getpid()
22914 /* Did the file descriptor bug occur? */
22915 || fstat(fileno(stdout), &st) != 0
22920 if ac_fn_c_try_run "$LINENO"; then :
22921 ac_cv_func_vfork_works=yes
22923 ac_cv_func_vfork_works=no
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926 conftest.$ac_objext conftest.beam conftest.$ac_ext
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22931 $as_echo "$ac_cv_func_vfork_works" >&6; }
22934 if test "x$ac_cv_func_fork_works" = xcross; then
22935 ac_cv_func_vfork_works=$ac_cv_func_vfork
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22937 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22940 if test "x$ac_cv_func_vfork_works" = xyes; then
22942 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22946 $as_echo "#define vfork fork" >>confdefs.h
22949 if test "x$ac_cv_func_fork_works" = xyes; then
22951 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22956 $as_echo_n "checking for working memcmp... " >&6; }
22957 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22960 if test "$cross_compiling" = yes; then :
22961 ac_cv_func_memcmp_working=no
22963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22964 /* end confdefs.h. */
22965 $ac_includes_default
22970 /* Some versions of memcmp are not 8-bit clean. */
22971 char c0 = '\100', c1 = '\200', c2 = '\201';
22972 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22975 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22976 or more and with at least one buffer not starting on a 4-byte boundary.
22977 William Lewis provided this test program. */
22982 for (i = 0; i < 4; i++)
22986 strcpy (a, "--------01111111");
22987 strcpy (b, "--------10000000");
22988 if (memcmp (a, b, 16) >= 0)
22998 if ac_fn_c_try_run "$LINENO"; then :
22999 ac_cv_func_memcmp_working=yes
23001 ac_cv_func_memcmp_working=no
23003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23004 conftest.$ac_objext conftest.beam conftest.$ac_ext
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23009 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23010 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23011 *" memcmp.$ac_objext "* ) ;;
23012 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23017 for ac_header in sys/select.h sys/socket.h
23019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23020 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23021 eval as_val=\$$as_ac_Header
23022 if test "x$as_val" = x""yes; then :
23023 cat >>confdefs.h <<_ACEOF
23024 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23032 $as_echo_n "checking types of arguments for select... " >&6; }
23033 if test "${ac_cv_func_select_args+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23036 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23037 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23038 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040 /* end confdefs.h. */
23041 $ac_includes_default
23042 #ifdef HAVE_SYS_SELECT_H
23043 # include <sys/select.h>
23045 #ifdef HAVE_SYS_SOCKET_H
23046 # include <sys/socket.h>
23052 extern int select ($ac_arg1,
23053 $ac_arg234, $ac_arg234, $ac_arg234,
23059 if ac_fn_c_try_compile "$LINENO"; then :
23060 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 # Provide a safe default value.
23067 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23071 $as_echo "$ac_cv_func_select_args" >&6; }
23072 ac_save_IFS=$IFS; IFS=','
23073 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23077 cat >>confdefs.h <<_ACEOF
23078 #define SELECT_TYPE_ARG1 $1
23082 cat >>confdefs.h <<_ACEOF
23083 #define SELECT_TYPE_ARG234 ($2)
23087 cat >>confdefs.h <<_ACEOF
23088 #define SELECT_TYPE_ARG5 ($3)
23093 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
23094 $as_echo_n "(cached) " >&6
23096 ac_cv_func_setvbuf_reversed=no
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23101 $as_echo_n "checking return type of signal handlers... " >&6; }
23102 if test "${ac_cv_type_signal+set}" = set; then :
23103 $as_echo_n "(cached) " >&6
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h. */
23107 #include <sys/types.h>
23108 #include <signal.h>
23113 return *(signal (0, 0)) (0) == 1;
23118 if ac_fn_c_try_compile "$LINENO"; then :
23119 ac_cv_type_signal=int
23121 ac_cv_type_signal=void
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23126 $as_echo "$ac_cv_type_signal" >&6; }
23128 cat >>confdefs.h <<_ACEOF
23129 #define RETSIGTYPE $ac_cv_type_signal
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23134 $as_echo_n "checking for working strtod... " >&6; }
23135 if test "${ac_cv_func_strtod+set}" = set; then :
23136 $as_echo_n "(cached) " >&6
23138 if test "$cross_compiling" = yes; then :
23139 ac_cv_func_strtod=no
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h. */
23144 $ac_includes_default
23152 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23153 char *string = " +69";
23156 value = strtod (string, &term);
23157 if (value != 69 || term != (string + 4))
23162 /* Under Solaris 2.4, strtod returns the wrong value for the
23163 terminating character under some conditions. */
23164 char *string = "NaN";
23166 strtod (string, &term);
23167 if (term != string && *(term - 1) == 0)
23174 if ac_fn_c_try_run "$LINENO"; then :
23175 ac_cv_func_strtod=yes
23177 ac_cv_func_strtod=no
23179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23180 conftest.$ac_objext conftest.beam conftest.$ac_ext
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23185 $as_echo "$ac_cv_func_strtod" >&6; }
23186 if test $ac_cv_func_strtod = no; then
23187 case " $LIBOBJS " in
23188 *" strtod.$ac_objext "* ) ;;
23189 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23193 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23194 if test "x$ac_cv_func_pow" = x""yes; then :
23198 if test $ac_cv_func_pow = no; then
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23200 $as_echo_n "checking for pow in -lm... " >&6; }
23201 if test "${ac_cv_lib_m_pow+set}" = set; then :
23202 $as_echo_n "(cached) " >&6
23204 ac_check_lib_save_LIBS=$LIBS
23206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23207 /* end confdefs.h. */
23209 /* Override any GCC internal prototype to avoid an error.
23210 Use char because int might match the return type of a GCC
23211 builtin and then its argument prototype would still apply. */
23224 if ac_fn_c_try_link "$LINENO"; then :
23225 ac_cv_lib_m_pow=yes
23229 rm -f core conftest.err conftest.$ac_objext \
23230 conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_lib_save_LIBS
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23234 $as_echo "$ac_cv_lib_m_pow" >&6; }
23235 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23239 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23246 for ac_func in vprintf
23248 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23249 if test "x$ac_cv_func_vprintf" = x""yes; then :
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_VPRINTF 1
23254 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23255 if test "x$ac_cv_func__doprnt" = x""yes; then :
23257 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23267 # Find math library
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23271 $as_echo_n "checking for sqrt in -lm... " >&6; }
23272 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23273 $as_echo_n "(cached) " >&6
23275 ac_check_lib_save_LIBS=$LIBS
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23280 /* Override any GCC internal prototype to avoid an error.
23281 Use char because int might match the return type of a GCC
23282 builtin and then its argument prototype would still apply. */
23295 if ac_fn_c_try_link "$LINENO"; then :
23296 ac_cv_lib_m_sqrt=yes
23298 ac_cv_lib_m_sqrt=no
23300 rm -f core conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
23302 LIBS=$ac_check_lib_save_LIBS
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23305 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23306 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23310 LIBS="$MATH_LIBS $LIBS"
23313 for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23317 eval as_val=\$$as_ac_var
23318 if test "x$as_val" = x""yes; then :
23319 cat >>confdefs.h <<_ACEOF
23320 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23328 # Check for clock_gettime().
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23331 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23332 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23333 $as_echo_n "(cached) " >&6
23335 ac_func_search_save_LIBS=$LIBS
23336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23337 /* end confdefs.h. */
23339 /* Override any GCC internal prototype to avoid an error.
23340 Use char because int might match the return type of a GCC
23341 builtin and then its argument prototype would still apply. */
23345 char clock_gettime ();
23349 return clock_gettime ();
23354 for ac_lib in '' rt; do
23355 if test -z "$ac_lib"; then
23356 ac_res="none required"
23359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23361 if ac_fn_c_try_link "$LINENO"; then :
23362 ac_cv_search_clock_gettime=$ac_res
23364 rm -f core conftest.err conftest.$ac_objext \
23366 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23370 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23373 ac_cv_search_clock_gettime=no
23375 rm conftest.$ac_ext
23376 LIBS=$ac_func_search_save_LIBS
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23379 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23380 ac_res=$ac_cv_search_clock_gettime
23381 if test "$ac_res" != no; then :
23382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23385 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23388 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23390 /* end confdefs.h. */
23395 clockid_t clockType = CLOCK_REALTIME;
23400 if ac_fn_c_try_compile "$LINENO"; then :
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23403 $as_echo "yes" >&6; }
23405 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23417 for ac_func in gettimeofday ftime
23419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23421 eval as_val=\$$as_ac_var
23422 if test "x$as_val" = x""yes; then :
23423 cat >>confdefs.h <<_ACEOF
23424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23437 # Check for function prototypes
23441 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23442 #include <unistd.h>
23444 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23450 cat >>confdefs.h <<_ACEOF
23451 #define HAVE_DECL_PREAD $ac_have_decl
23453 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23454 #include <unistd.h>
23456 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23462 cat >>confdefs.h <<_ACEOF
23463 #define HAVE_DECL_PWRITE $ac_have_decl
23467 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23468 #include <strings.h>
23470 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23476 cat >>confdefs.h <<_ACEOF
23477 #define HAVE_DECL_STRLCPY $ac_have_decl
23481 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23483 #include <stdarg.h>
23485 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23498 # C++ Support Tests (For Magick++)
23501 have_magick_plus_plus='no'
23502 if test "$with_magick_plus_plus" = 'yes'; then
23506 ac_cpp='$CXXCPP $CPPFLAGS'
23507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23512 # Full set of headers used...
23513 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23514 # functional iomanip iosfwd iostream iterator list string strstream utility
23516 ac_cpp='$CXXCPP $CPPFLAGS'
23517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23522 ac_cpp='$CXXCPP $CPPFLAGS'
23523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23526 if test -z "$CXX"; then
23527 if test -n "$CCC"; then
23530 if test -n "$ac_tool_prefix"; then
23531 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23536 $as_echo_n "checking for $ac_word... " >&6; }
23537 if test "${ac_cv_prog_CXX+set}" = set; then :
23538 $as_echo_n "(cached) " >&6
23540 if test -n "$CXX"; then
23541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23544 for as_dir in $PATH
23547 test -z "$as_dir" && as_dir=.
23548 for ac_exec_ext in '' $ac_executable_extensions; do
23549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23560 CXX=$ac_cv_prog_CXX
23561 if test -n "$CXX"; then
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23563 $as_echo "$CXX" >&6; }
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23566 $as_echo "no" >&6; }
23570 test -n "$CXX" && break
23573 if test -z "$CXX"; then
23575 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23577 # Extract the first word of "$ac_prog", so it can be a program name with args.
23578 set dummy $ac_prog; ac_word=$2
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23580 $as_echo_n "checking for $ac_word... " >&6; }
23581 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23582 $as_echo_n "(cached) " >&6
23584 if test -n "$ac_ct_CXX"; then
23585 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23588 for as_dir in $PATH
23591 test -z "$as_dir" && as_dir=.
23592 for ac_exec_ext in '' $ac_executable_extensions; do
23593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23594 ac_cv_prog_ac_ct_CXX="$ac_prog"
23595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23604 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23605 if test -n "$ac_ct_CXX"; then
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23607 $as_echo "$ac_ct_CXX" >&6; }
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23610 $as_echo "no" >&6; }
23614 test -n "$ac_ct_CXX" && break
23617 if test "x$ac_ct_CXX" = x; then
23620 case $cross_compiling:$ac_tool_warned in
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23624 ac_tool_warned=yes ;;
23632 # Provide some information about the compiler.
23633 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23636 for ac_option in --version -v -V -qversion; do
23637 { { ac_try="$ac_compiler $ac_option >&5"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23643 $as_echo "$ac_try_echo"; } >&5
23644 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23646 if test -s conftest.err; then
23648 ... rest of stderr output deleted ...
23649 10q' conftest.err >conftest.er1
23650 cat conftest.er1 >&5
23652 rm -f conftest.er1 conftest.err
23653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23654 test $ac_status = 0; }
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23658 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23659 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23660 $as_echo_n "(cached) " >&6
23662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23663 /* end confdefs.h. */
23676 if ac_fn_cxx_try_compile "$LINENO"; then :
23677 ac_compiler_gnu=yes
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23686 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23687 if test $ac_compiler_gnu = yes; then
23692 ac_test_CXXFLAGS=${CXXFLAGS+set}
23693 ac_save_CXXFLAGS=$CXXFLAGS
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23695 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23696 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23697 $as_echo_n "(cached) " >&6
23699 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23700 ac_cxx_werror_flag=yes
23701 ac_cv_prog_cxx_g=no
23703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23704 /* end confdefs.h. */
23714 if ac_fn_cxx_try_compile "$LINENO"; then :
23715 ac_cv_prog_cxx_g=yes
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23729 if ac_fn_cxx_try_compile "$LINENO"; then :
23732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23735 /* end confdefs.h. */
23745 if ac_fn_cxx_try_compile "$LINENO"; then :
23746 ac_cv_prog_cxx_g=yes
23748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23756 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23757 if test "$ac_test_CXXFLAGS" = set; then
23758 CXXFLAGS=$ac_save_CXXFLAGS
23759 elif test $ac_cv_prog_cxx_g = yes; then
23760 if test "$GXX" = yes; then
23766 if test "$GXX" = yes; then
23773 ac_cpp='$CXXCPP $CPPFLAGS'
23774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23778 depcc="$CXX" am_compiler_list=
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23781 $as_echo_n "checking dependency style of $depcc... " >&6; }
23782 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23783 $as_echo_n "(cached) " >&6
23785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23786 # We make a subdir and do the tests there. Otherwise we can end up
23787 # making bogus files that we don't know about and never remove. For
23788 # instance it was reported that on HP-UX the gcc test will end up
23789 # making a dummy file named `D' -- because `-MD' means `put the output
23792 # Copy depcomp to subdir because otherwise we won't find it if we're
23793 # using a relative directory.
23794 cp "$am_depcomp" conftest.dir
23796 # We will build objects and dependencies in a subdirectory because
23797 # it helps to detect inapplicable dependency modes. For instance
23798 # both Tru64's cc and ICC support -MD to output dependencies as a
23799 # side effect of compilation, but ICC will put the dependencies in
23800 # the current directory while Tru64 will put them in the object
23804 am_cv_CXX_dependencies_compiler_type=none
23805 if test "$am_compiler_list" = ""; then
23806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23808 am__universal=false
23809 case " $depcc " in #(
23810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23813 for depmode in $am_compiler_list; do
23814 # Setup a source with many dependencies, because some compilers
23815 # like to wrap large dependency lists on column 80 (with \), and
23816 # we should not choose a depcomp mode which is confused by this.
23818 # We need to recreate these files for each test, as the compiler may
23819 # overwrite some of them when testing with obscure command lines.
23820 # This happens at least with the AIX C compiler.
23822 for i in 1 2 3 4 5 6; do
23823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23825 # Solaris 8's {/usr,}/bin/sh.
23826 touch sub/conftst$i.h
23828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23831 # mode. It turns out that the SunPro C++ compiler does not properly
23832 # handle `-M -o', and we need to detect this. Also, some Intel
23833 # versions had trouble with output in subdirs
23834 am__obj=sub/conftest.${OBJEXT-o}
23835 am__minus_obj="-o $am__obj"
23838 # This depmode causes a compiler race in universal mode.
23839 test "$am__universal" = false || continue
23842 # after this tag, mechanisms are not by side-effect, so they'll
23843 # only be used when explicitly requested
23844 if test "x$enable_dependency_tracking" = xyes; then
23850 msvisualcpp | msvcmsys)
23851 # This compiler won't grok `-c -o', but also, the minuso test has
23852 # not run yet. These depmodes are late enough in the game, and
23853 # so weak that their functioning should not be impacted.
23854 am__obj=conftest.${OBJEXT-o}
23859 if depmode=$depmode \
23860 source=sub/conftest.c object=$am__obj \
23861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23863 >/dev/null 2>conftest.err &&
23864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23868 # icc doesn't choke on unknown options, it will just issue warnings
23869 # or remarks (even with -Werror). So we grep stderr for any message
23870 # that says an option was ignored or not supported.
23871 # When given -MP, icc 7.0 and 7.1 complain thusly:
23872 # icc: Command line warning: ignoring option '-M'; no argument required
23873 # The diagnosis changed in icc 8.0:
23874 # icc: Command line remark: option '-MP' not supported
23875 if (grep 'ignoring option' conftest.err ||
23876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23877 am_cv_CXX_dependencies_compiler_type=$depmode
23884 rm -rf conftest.dir
23886 am_cv_CXX_dependencies_compiler_type=none
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23891 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23892 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23895 test "x$enable_dependency_tracking" != xno \
23896 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23897 am__fastdepCXX_TRUE=
23898 am__fastdepCXX_FALSE='#'
23900 am__fastdepCXX_TRUE='#'
23901 am__fastdepCXX_FALSE=
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23906 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23907 if test "${ax_cv_cxx_bool+set}" = set; then :
23908 $as_echo_n "(cached) " >&6
23912 ac_cpp='$CXXCPP $CPPFLAGS'
23913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23918 /* end confdefs.h. */
23920 int f(int x){return 1;}
23921 int f(char x){return 1;}
23922 int f(bool x){return 1;}
23927 bool b = true; return f(b);
23932 if ac_fn_cxx_try_compile "$LINENO"; then :
23937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23939 ac_cpp='$CXXCPP $CPPFLAGS'
23940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23947 $as_echo "$ax_cv_cxx_bool" >&6; }
23948 if test "$ax_cv_cxx_bool" = yes; then
23950 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23955 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23956 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23961 ac_cpp='$CXXCPP $CPPFLAGS'
23962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967 /* end confdefs.h. */
23968 namespace Outer { namespace Inner { int i = 0; }}
23972 using namespace Outer::Inner; return i;
23977 if ac_fn_cxx_try_compile "$LINENO"; then :
23978 ax_cv_cxx_namespaces=yes
23980 ax_cv_cxx_namespaces=no
23982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23984 ac_cpp='$CXXCPP $CPPFLAGS'
23985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23992 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23993 if test "$ax_cv_cxx_namespaces" = yes; then
23995 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24001 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24002 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24003 $as_echo_n "(cached) " >&6
24007 ac_cpp='$CXXCPP $CPPFLAGS'
24008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h. */
24014 #include <iostream>
24015 std::istream& is = std::cin;
24024 if ac_fn_cxx_try_compile "$LINENO"; then :
24025 ax_cv_cxx_have_std_namespace=yes
24027 ax_cv_cxx_have_std_namespace=no
24029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24031 ac_cpp='$CXXCPP $CPPFLAGS'
24032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24039 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24040 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24042 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24047 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24048 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24054 ac_cpp='$CXXCPP $CPPFLAGS'
24055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24060 /* end confdefs.h. */
24061 #include <iostream>
24065 #ifdef HAVE_NAMESPACES
24066 using namespace std;
24076 if ac_fn_cxx_try_compile "$LINENO"; then :
24077 ac_cv_cxx_have_std_libs=yes
24079 ac_cv_cxx_have_std_libs=no
24081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 ac_cpp='$CXXCPP $CPPFLAGS'
24084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24091 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24092 if test "$ac_cv_cxx_have_std_libs" = yes; then
24094 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24099 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24100 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24101 $as_echo_n "(cached) " >&6
24105 ac_cpp='$CXXCPP $CPPFLAGS'
24106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24111 /* end confdefs.h. */
24112 const wchar_t* s=L"wide string";
24114 if ac_fn_cxx_try_compile "$LINENO"; then :
24115 ac_cv_cxx_have_lstring=yes
24117 ac_cv_cxx_have_lstring=no
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 ac_cpp='$CXXCPP $CPPFLAGS'
24122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24129 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
24130 if test "$ac_cv_cxx_have_lstring" = yes; then
24132 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24138 # Check whether --enable-openmp was given.
24139 if test "${enable_openmp+set}" = set; then :
24140 enableval=$enable_openmp;
24143 if test "$enable_openmp" != no; then
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24145 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24146 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24150 /* end confdefs.h. */
24156 int main () { return omp_get_num_threads (); }
24159 if ac_fn_cxx_try_link "$LINENO"; then :
24160 ac_cv_prog_cxx_openmp='none needed'
24162 ac_cv_prog_cxx_openmp='unsupported'
24163 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24164 ac_save_CXXFLAGS=$CXXFLAGS
24165 CXXFLAGS="$CXXFLAGS $ac_option"
24166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24167 /* end confdefs.h. */
24173 int main () { return omp_get_num_threads (); }
24176 if ac_fn_cxx_try_link "$LINENO"; then :
24177 ac_cv_prog_cxx_openmp=$ac_option
24179 rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
24181 CXXFLAGS=$ac_save_CXXFLAGS
24182 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24187 rm -f core conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24191 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24192 case $ac_cv_prog_cxx_openmp in #(
24193 "none needed" | unsupported)
24196 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24202 ac_cpp='$CPP $CPPFLAGS'
24203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24209 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24211 test $ax_cv_cxx_bool = 'yes' && \
24212 test $ac_cv_cxx_have_lstring = 'yes' && \
24213 test $ax_cv_cxx_namespaces = 'yes' && \
24214 test $ac_cv_cxx_have_std_libs = 'yes' && \
24215 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24216 have_magick_plus_plus='yes'
24218 have_magick_plus_plus='no (failed tests)'
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24221 $as_echo "$have_magick_plus_plus" >&6; }
24224 if test "$have_magick_plus_plus" = 'yes'; then
24225 WITH_MAGICK_PLUS_PLUS_TRUE=
24226 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24228 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24229 WITH_MAGICK_PLUS_PLUS_FALSE=
24233 # Only check for delegate libraries in subdirectories if requested.
24234 if test "$enable_delegate_build" != 'no'; then
24235 # Check for delegate sub-directories and add -I & -L options as required.
24236 # This presumes that delegates are installed as detailed in the ImageMagick
24237 # README. If delegates are installed in a standard location where the
24238 # compiler will automatically find them then these options should not be
24242 # Most delegates have includes in the same directory as the library, but not all...
24245 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24246 if test -d "$builddir/$dir"; then
24247 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24249 if test -d "$srcdirfull/$dir"; then
24250 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24256 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24257 if test -d "$builddir/$dir/.libs"; then
24258 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24260 if test -d "$srcdirfull/$dir/.libs"; then
24261 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24264 if test -d "$builddir/$dir"; then
24265 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24267 if test -d "$srcdirfull/$dir"; then
24268 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24274 # Assume that delegate headers reside under same directory as ImageMagick
24275 # installation prefix.
24276 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24279 # Find the X11 RGB database
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24282 $as_echo_n "checking for X11 configure files... " >&6; }
24283 if test "${im_cv_x_configure+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24286 # Look for the header file in a standard set of common directories.
24287 # Check X11 before X11Rn because it is often a symlink to the current release.
24296 /usr/XFree86/lib/X11 \
24304 /usr/local/X11/lib \
24305 /usr/local/X11R4/lib \
24306 /usr/local/X11R5/lib \
24307 /usr/local/X11R6/lib \
24309 /usr/local/lib/X11 \
24310 /usr/local/lib/X11R4 \
24311 /usr/local/lib/X11R5 \
24312 /usr/local/lib/X11R6 \
24313 /usr/local/lib/X11R7 \
24314 /usr/local/x11r5/lib \
24315 /usr/lpp/Xamples/lib \
24317 /usr/openwin/share/lib \
24318 /usr/unsupported/lib \
24321 if test -f "$ac_dir/X11/rgb.txt"; then
24322 im_cv_x_configure="$ac_dir/X11/"
24324 elif test -f "$ac_dir/rgb.txt"; then
24325 im_cv_x_configure="$ac_dir/"
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24332 $as_echo "$im_cv_x_configure" >&6; }
24333 X11_CONFIGURE_PATH="$im_cv_x_configure"
24334 case "${build_os}" in
24336 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24340 cat >>confdefs.h <<_ACEOF
24341 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24346 # Find OpenMP library
24349 if test "$enable_openmp" != 'no'; then
24350 if test "${GCC}" = "yes"; then
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24352 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24353 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24356 ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lgomp $LIBS"
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24361 /* Override any GCC internal prototype to avoid an error.
24362 Use char because int might match the return type of a GCC
24363 builtin and then its argument prototype would still apply. */
24367 char GOMP_parallel_start ();
24371 return GOMP_parallel_start ();
24376 if ac_fn_c_try_link "$LINENO"; then :
24377 ac_cv_lib_gomp_GOMP_parallel_start=yes
24379 ac_cv_lib_gomp_GOMP_parallel_start=no
24381 rm -f core conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
24383 LIBS=$ac_check_lib_save_LIBS
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24386 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24387 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24393 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24394 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24395 $as_echo_n "(cached) " >&6
24397 ac_check_lib_save_LIBS=$LIBS
24398 LIBS="-lmtsk $LIBS"
24399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24400 /* end confdefs.h. */
24402 /* Override any GCC internal prototype to avoid an error.
24403 Use char because int might match the return type of a GCC
24404 builtin and then its argument prototype would still apply. */
24408 char sunw_mp_register_warn ();
24412 return sunw_mp_register_warn ();
24417 if ac_fn_c_try_link "$LINENO"; then :
24418 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24420 ac_cv_lib_mtsk_sunw_mp_register_warn=no
24422 rm -f core conftest.err conftest.$ac_objext \
24423 conftest$ac_exeext conftest.$ac_ext
24424 LIBS=$ac_check_lib_save_LIBS
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24427 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24428 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24433 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24434 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24437 ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-lxlsmp $LIBS"
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h. */
24442 /* Override any GCC internal prototype to avoid an error.
24443 Use char because int might match the return type of a GCC
24444 builtin and then its argument prototype would still apply. */
24448 char _xlsmpFlush ();
24452 return _xlsmpFlush ();
24457 if ac_fn_c_try_link "$LINENO"; then :
24458 ac_cv_lib_xlsmp__xlsmpFlush=yes
24460 ac_cv_lib_xlsmp__xlsmpFlush=no
24462 rm -f core conftest.err conftest.$ac_objext \
24463 conftest$ac_exeext conftest.$ac_ext
24464 LIBS=$ac_check_lib_save_LIBS
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24467 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24468 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24469 GOMP_LIBS="-lxlsmp"
24472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24473 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24474 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24475 $as_echo_n "(cached) " >&6
24477 ac_check_lib_save_LIBS=$LIBS
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h. */
24482 /* Override any GCC internal prototype to avoid an error.
24483 Use char because int might match the return type of a GCC
24484 builtin and then its argument prototype would still apply. */
24488 char mp_destroy ();
24492 return mp_destroy ();
24497 if ac_fn_c_try_link "$LINENO"; then :
24498 ac_cv_lib_mp_mp_destroy=yes
24500 ac_cv_lib_mp_mp_destroy=no
24502 rm -f core conftest.err conftest.$ac_objext \
24503 conftest$ac_exeext conftest.$ac_ext
24504 LIBS=$ac_check_lib_save_LIBS
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24507 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24508 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24511 # SGI IRIX 6.5 MIPSpro C/C++
24513 LIBS="$GOMP_LIBS $LIBS"
24518 # Find Posix threads library
24521 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24523 if test "x$PTHREAD_LIBS" = "x"; then
24524 case "${host_cpu}-${host_os}" in
24530 ac_cpp='$CPP $CPPFLAGS'
24531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24535 magick_pthread_lib_ok=no
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24542 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24544 /* end confdefs.h. */
24545 #include <pthread.h>
24550 pthread_join(th, 0);
24551 pthread_attr_init(0);
24552 pthread_cleanup_push(0, 0);
24553 pthread_create(0,0,0,0);
24554 pthread_cleanup_pop(0);
24559 if ac_fn_c_try_link "$LINENO"; then :
24560 magick_pthread_lib_ok=yes
24562 rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
24565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24566 $as_echo "${magick_pthread_lib_ok}" >&6; }
24567 if test "$magick_pthread_lib_ok" = yes
24579 ac_cpp='$CPP $CPPFLAGS'
24580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24588 for lib in pthread pthreads; do
24589 if test "x$PTHREAD_LIBS" = "x"; then
24594 ac_cpp='$CPP $CPPFLAGS'
24595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24599 magick_pthread_lib_ok=no
24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24606 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24608 /* end confdefs.h. */
24609 #include <pthread.h>
24614 pthread_join(th, 0);
24615 pthread_attr_init(0);
24616 pthread_cleanup_push(0, 0);
24617 pthread_create(0,0,0,0);
24618 pthread_cleanup_pop(0);
24623 if ac_fn_c_try_link "$LINENO"; then :
24624 magick_pthread_lib_ok=yes
24626 rm -f core conftest.err conftest.$ac_objext \
24627 conftest$ac_exeext conftest.$ac_ext
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24630 $as_echo "${magick_pthread_lib_ok}" >&6; }
24631 if test "$magick_pthread_lib_ok" = yes
24633 PTHREAD_LIBS=-l$lib
24643 ac_cpp='$CPP $CPPFLAGS'
24644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24652 THREAD_LIBS="$PTHREAD_LIBS"
24653 LIBS="$LIBS $THREAD_LIBS"
24662 if test "$with_umem" != 'no'; then
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24664 $as_echo_n "checking for UMEM support ... " >&6; }
24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24669 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24670 if test "x$ac_cv_header_umem_h" = x""yes; then :
24671 passed=`expr $passed + 1`
24673 failed=`expr $failed + 1`
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24678 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24679 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24680 $as_echo_n "(cached) " >&6
24682 ac_check_lib_save_LIBS=$LIBS
24683 LIBS="-lumem $LIBS"
24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24685 /* end confdefs.h. */
24687 /* Override any GCC internal prototype to avoid an error.
24688 Use char because int might match the return type of a GCC
24689 builtin and then its argument prototype would still apply. */
24693 char umem_alloc ();
24697 return umem_alloc ();
24702 if ac_fn_c_try_link "$LINENO"; then :
24703 ac_cv_lib_umem_umem_alloc=yes
24705 ac_cv_lib_umem_umem_alloc=no
24707 rm -f core conftest.err conftest.$ac_objext \
24708 conftest$ac_exeext conftest.$ac_ext
24709 LIBS=$ac_check_lib_save_LIBS
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24712 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24713 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24714 passed=`expr $passed + 1`
24716 failed=`expr $failed + 1`
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24720 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24721 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24722 $as_echo_n "(cached) " >&6
24724 ac_check_lib_save_LIBS=$LIBS
24725 LIBS="-lumem $LIBS"
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24729 /* Override any GCC internal prototype to avoid an error.
24730 Use char because int might match the return type of a GCC
24731 builtin and then its argument prototype would still apply. */
24739 return umem_free ();
24744 if ac_fn_c_try_link "$LINENO"; then :
24745 ac_cv_lib_umem_umem_free=yes
24747 ac_cv_lib_umem_umem_free=no
24749 rm -f core conftest.err conftest.$ac_objext \
24750 conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24754 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24755 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24756 passed=`expr $passed + 1`
24758 failed=`expr $failed + 1`
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24762 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24763 if test $passed -gt 0; then
24764 if test $failed -gt 0; then
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24766 $as_echo "no -- some components failed test" >&6; }
24767 have_umem='no (failed tests)'
24770 LIBS="$UMEM_LIBS $LIBS"
24772 $as_echo "#define HasUMEM 1" >>confdefs.h
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24775 $as_echo "yes" >&6; }
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780 $as_echo "no" >&6; }
24783 if test "$have_umem" = 'yes'; then
24794 # Add support for ccmalloc memory debugging library if requested
24798 if test "$enable_ccmalloc" = 'yes'; then
24799 # Extract the first word of "ccmalloc", so it can be a program name with args.
24800 set dummy ccmalloc; ac_word=$2
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24802 $as_echo_n "checking for $ac_word... " >&6; }
24803 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24804 $as_echo_n "(cached) " >&6
24806 case $CCMALLOCDelegate in
24808 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24812 for as_dir in $PATH
24815 test -z "$as_dir" && as_dir=.
24816 for ac_exec_ext in '' $ac_executable_extensions; do
24817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24818 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24829 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24830 if test -n "$CCMALLOCDelegate"; then
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24832 $as_echo "$CCMALLOCDelegate" >&6; }
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24835 $as_echo "no" >&6; }
24839 if test -n "$CCMALLOCDelegate"; then
24840 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24842 # Assume that gcc is used with ccmalloc.
24843 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24845 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24846 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24849 ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lccmalloc -ldl $LIBS"
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24854 /* Override any GCC internal prototype to avoid an error.
24855 Use char because int might match the return type of a GCC
24856 builtin and then its argument prototype would still apply. */
24860 char ccmalloc_malloc ();
24864 return ccmalloc_malloc ();
24869 if ac_fn_c_try_link "$LINENO"; then :
24870 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24872 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24874 rm -f core conftest.err conftest.$ac_objext \
24875 conftest$ac_exeext conftest.$ac_ext
24876 LIBS=$ac_check_lib_save_LIBS
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24879 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24880 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24881 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24884 if test -n "$CCMALLOC_LIBS"; then
24886 LIBS="$LIBS $CCMALLOC_LIBS"
24887 have_ccmalloc='yes'
24895 # Add support for efence memory debugging library if requested
24897 if test "$enable_efence" = 'yes'; then
24898 EFENCE_LIBS='-lefence'
24899 LIBS="$EFENCE_LIBS $LIBS"
24908 # Check whether --with-bzlib was given.
24909 if test "${with_bzlib+set}" = set; then :
24910 withval=$with_bzlib; with_bzlib=$withval
24916 if test "$with_bzlib" != 'yes'; then
24917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24921 if test "$with_bzlib" != 'no'; then
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24924 $as_echo "-------------------------------------------------------------" >&6; }
24925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24926 $as_echo_n "checking for BZLIB... " >&6; }
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24932 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24933 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24934 passed=`expr $passed + 1`
24936 failed=`expr $failed + 1`
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24941 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24942 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24945 ac_check_lib_save_LIBS=$LIBS
24947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h. */
24950 /* Override any GCC internal prototype to avoid an error.
24951 Use char because int might match the return type of a GCC
24952 builtin and then its argument prototype would still apply. */
24956 char BZ2_bzDecompress ();
24960 return BZ2_bzDecompress ();
24965 if ac_fn_c_try_link "$LINENO"; then :
24966 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24968 ac_cv_lib_bz2_BZ2_bzDecompress=no
24970 rm -f core conftest.err conftest.$ac_objext \
24971 conftest$ac_exeext conftest.$ac_ext
24972 LIBS=$ac_check_lib_save_LIBS
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24975 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24976 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24977 found_libbz=`expr $found_libbz + 1`
24980 if test "$native_win32_build" = 'yes'; then
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24982 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24983 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24986 ac_check_lib_save_LIBS=$LIBS
24988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24989 /* end confdefs.h. */
24991 /* Override any GCC internal prototype to avoid an error.
24992 Use char because int might match the return type of a GCC
24993 builtin and then its argument prototype would still apply. */
24997 char _imp__BZ2_decompress ();
25001 return _imp__BZ2_decompress ();
25006 if ac_fn_c_try_link "$LINENO"; then :
25007 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25009 ac_cv_lib_bz2__imp__BZ2_decompress=no
25011 rm -f core conftest.err conftest.$ac_objext \
25012 conftest$ac_exeext conftest.$ac_ext
25013 LIBS=$ac_check_lib_save_LIBS
25015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25016 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25017 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
25018 found_libbz=`expr $found_libbz + 1`
25022 if test $found_libbz -gt 0; then
25023 passed=`expr $passed + 1`
25025 failed=`expr $failed + 1`
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25028 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25029 if test $passed -gt 0; then
25030 if test $failed -gt 0; then
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25032 $as_echo "no -- some components failed test" >&6; }
25033 have_bzlib='no (failed tests)'
25036 LIBS="$BZLIB_LIBS $LIBS"
25038 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25041 $as_echo "yes" >&6; }
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25049 if test "$have_bzlib" = 'yes'; then
25050 BZLIB_DELEGATE_TRUE=
25051 BZLIB_DELEGATE_FALSE='#'
25053 BZLIB_DELEGATE_TRUE='#'
25054 BZLIB_DELEGATE_FALSE=
25060 # Find the X11 include and library directories.
25066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25067 $as_echo_n "checking for X... " >&6; }
25070 # Check whether --with-x was given.
25071 if test "${with_x+set}" = set; then :
25075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25076 if test "x$with_x" = xno; then
25077 # The user explicitly disabled X.
25080 case $x_includes,$x_libraries in #(
25081 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25082 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
25083 $as_echo_n "(cached) " >&6
25085 # One or both of the vars are not set, and there is no cached value.
25086 ac_x_includes=no ac_x_libraries=no
25087 rm -f -r conftest.dir
25088 if mkdir conftest.dir; then
25090 cat >Imakefile <<'_ACEOF'
25092 @echo incroot='${INCROOT}'
25094 @echo usrlibdir='${USRLIBDIR}'
25096 @echo libdir='${LIBDIR}'
25098 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25100 for ac_var in incroot usrlibdir libdir; do
25101 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25103 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25104 for ac_extension in a so sl dylib la dll; do
25105 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25106 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25107 ac_im_usrlibdir=$ac_im_libdir; break
25110 # Screen out bogus values from the imake configuration. They are
25111 # bogus both because they are the default anyway, and because
25112 # using them would break gcc on systems where it needs fixed includes.
25113 case $ac_im_incroot in
25114 /usr/include) ac_x_includes= ;;
25115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25117 case $ac_im_usrlibdir in
25118 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25123 rm -f -r conftest.dir
25126 # Standard set of common directories for X headers.
25127 # Check X11 before X11Rn because it is often a symlink to the current release.
25141 /usr/local/X11/include
25142 /usr/local/X11R7/include
25143 /usr/local/X11R6/include
25144 /usr/local/X11R5/include
25145 /usr/local/X11R4/include
25147 /usr/local/include/X11
25148 /usr/local/include/X11R7
25149 /usr/local/include/X11R6
25150 /usr/local/include/X11R5
25151 /usr/local/include/X11R4
25155 /usr/XFree86/include/X11
25159 /usr/unsupported/include
25160 /usr/athena/include
25161 /usr/local/x11r5/include
25162 /usr/lpp/Xamples/include
25164 /usr/openwin/include
25165 /usr/openwin/share/include'
25167 if test "$ac_x_includes" = no; then
25168 # Guess where to find include files, by looking for Xlib.h.
25169 # First, try using that file with no special directory specified.
25170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h. */
25172 #include <X11/Xlib.h>
25174 if ac_fn_c_try_cpp "$LINENO"; then :
25175 # We can compile using X headers with no special include directory.
25178 for ac_dir in $ac_x_header_dirs; do
25179 if test -r "$ac_dir/X11/Xlib.h"; then
25180 ac_x_includes=$ac_dir
25185 rm -f conftest.err conftest.$ac_ext
25186 fi # $ac_x_includes = no
25188 if test "$ac_x_libraries" = no; then
25189 # Check for the libraries.
25190 # See if we find them without any special options.
25191 # Don't add to $LIBS permanently.
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25196 #include <X11/Xlib.h>
25205 if ac_fn_c_try_link "$LINENO"; then :
25207 # We can link X programs with no special library path.
25211 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25213 # Don't even attempt the hair of trying to link an X program!
25214 for ac_extension in a so sl dylib la dll; do
25215 if test -r "$ac_dir/libX11.$ac_extension"; then
25216 ac_x_libraries=$ac_dir
25222 rm -f core conftest.err conftest.$ac_objext \
25223 conftest$ac_exeext conftest.$ac_ext
25224 fi # $ac_x_libraries = no
25226 case $ac_x_includes,$ac_x_libraries in #(
25227 no,* | *,no | *\'*)
25228 # Didn't find X, or a directory has "'" in its name.
25229 ac_cv_have_x="have_x=no";; #(
25231 # Record where we found X for the cache.
25232 ac_cv_have_x="have_x=yes\
25233 ac_x_includes='$ac_x_includes'\
25234 ac_x_libraries='$ac_x_libraries'"
25240 eval "$ac_cv_have_x"
25243 if test "$have_x" != yes; then
25244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25245 $as_echo "$have_x" >&6; }
25248 # If each of the values was on the command line, it overrides each guess.
25249 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25250 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25251 # Update the cache value to reflect the command line values.
25252 ac_cv_have_x="have_x=yes\
25253 ac_x_includes='$x_includes'\
25254 ac_x_libraries='$x_libraries'"
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25256 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25259 if test "$no_x" = yes; then
25260 # Not all programs may use this symbol, but it does not hurt to define it.
25262 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25264 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25266 if test -n "$x_includes"; then
25267 X_CFLAGS="$X_CFLAGS -I$x_includes"
25270 # It would also be nice to do this for all -L options, not just this one.
25271 if test -n "$x_libraries"; then
25272 X_LIBS="$X_LIBS -L$x_libraries"
25273 # For Solaris; some versions of Sun CC require a space after -R and
25274 # others require no space. Words are not sufficient . . . .
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25276 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25277 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25278 ac_xsave_c_werror_flag=$ac_c_werror_flag
25279 ac_c_werror_flag=yes
25280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25281 /* end confdefs.h. */
25291 if ac_fn_c_try_link "$LINENO"; then :
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25293 $as_echo "no" >&6; }
25294 X_LIBS="$X_LIBS -R$x_libraries"
25296 LIBS="$ac_xsave_LIBS -R $x_libraries"
25297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25298 /* end confdefs.h. */
25308 if ac_fn_c_try_link "$LINENO"; then :
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25310 $as_echo "yes" >&6; }
25311 X_LIBS="$X_LIBS -R $x_libraries"
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25314 $as_echo "neither works" >&6; }
25316 rm -f core conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
25319 rm -f core conftest.err conftest.$ac_objext \
25320 conftest$ac_exeext conftest.$ac_ext
25321 ac_c_werror_flag=$ac_xsave_c_werror_flag
25322 LIBS=$ac_xsave_LIBS
25325 # Check for system-dependent libraries X programs must link with.
25326 # Do this before checking for the system-independent R6 libraries
25327 # (-lICE), since we may need -lsocket or whatever for X linking.
25329 if test "$ISC" = yes; then
25330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25332 # Martyn Johnson says this is needed for Ultrix, if the X
25333 # libraries were built with DECnet support. And Karl Berry says
25334 # the Alpha needs dnet_stub (dnet does not exist).
25335 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337 /* end confdefs.h. */
25339 /* Override any GCC internal prototype to avoid an error.
25340 Use char because int might match the return type of a GCC
25341 builtin and then its argument prototype would still apply. */
25345 char XOpenDisplay ();
25349 return XOpenDisplay ();
25354 if ac_fn_c_try_link "$LINENO"; then :
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25358 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25359 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25360 $as_echo_n "(cached) " >&6
25362 ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-ldnet $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h. */
25367 /* Override any GCC internal prototype to avoid an error.
25368 Use char because int might match the return type of a GCC
25369 builtin and then its argument prototype would still apply. */
25377 return dnet_ntoa ();
25382 if ac_fn_c_try_link "$LINENO"; then :
25383 ac_cv_lib_dnet_dnet_ntoa=yes
25385 ac_cv_lib_dnet_dnet_ntoa=no
25387 rm -f core conftest.err conftest.$ac_objext \
25388 conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25392 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25393 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25394 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25397 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25399 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25400 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25401 $as_echo_n "(cached) " >&6
25403 ac_check_lib_save_LIBS=$LIBS
25404 LIBS="-ldnet_stub $LIBS"
25405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25406 /* end confdefs.h. */
25408 /* Override any GCC internal prototype to avoid an error.
25409 Use char because int might match the return type of a GCC
25410 builtin and then its argument prototype would still apply. */
25418 return dnet_ntoa ();
25423 if ac_fn_c_try_link "$LINENO"; then :
25424 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25426 ac_cv_lib_dnet_stub_dnet_ntoa=no
25428 rm -f core conftest.err conftest.$ac_objext \
25429 conftest$ac_exeext conftest.$ac_ext
25430 LIBS=$ac_check_lib_save_LIBS
25432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25433 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25434 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25435 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25440 rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
25442 LIBS="$ac_xsave_LIBS"
25444 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25445 # to get the SysV transport functions.
25446 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25448 # The nsl library prevents programs from opening the X display
25449 # on Irix 5.2, according to T.E. Dickey.
25450 # The functions gethostbyname, getservbyname, and inet_addr are
25451 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25452 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25453 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25457 if test $ac_cv_func_gethostbyname = no; then
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25459 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25460 if test "${ac_cv_lib_nsl_gethostbyname+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 gethostbyname ();
25478 return gethostbyname ();
25483 if ac_fn_c_try_link "$LINENO"; then :
25484 ac_cv_lib_nsl_gethostbyname=yes
25486 ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
25493 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25494 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25495 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25498 if test $ac_cv_lib_nsl_gethostbyname = no; then
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25500 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25501 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25502 $as_echo_n "(cached) " >&6
25504 ac_check_lib_save_LIBS=$LIBS
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507 /* end confdefs.h. */
25509 /* Override any GCC internal prototype to avoid an error.
25510 Use char because int might match the return type of a GCC
25511 builtin and then its argument prototype would still apply. */
25515 char gethostbyname ();
25519 return gethostbyname ();
25524 if ac_fn_c_try_link "$LINENO"; then :
25525 ac_cv_lib_bsd_gethostbyname=yes
25527 ac_cv_lib_bsd_gethostbyname=no
25529 rm -f core conftest.err conftest.$ac_objext \
25530 conftest$ac_exeext conftest.$ac_ext
25531 LIBS=$ac_check_lib_save_LIBS
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25534 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25535 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25543 # socket/setsockopt and other routines are undefined under SCO ODT
25544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25545 # on later versions), says Simon Leinen: it contains gethostby*
25546 # variants that don't use the name server (or something). -lsocket
25547 # must be given before -lnsl if both are needed. We assume that
25548 # if connect needs -lnsl, so does gethostbyname.
25549 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25550 if test "x$ac_cv_func_connect" = x""yes; then :
25554 if test $ac_cv_func_connect = no; then
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25556 $as_echo_n "checking for connect in -lsocket... " >&6; }
25557 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 ac_check_lib_save_LIBS=$LIBS
25561 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25563 /* end confdefs.h. */
25565 /* Override any GCC internal prototype to avoid an error.
25566 Use char because int might match the return type of a GCC
25567 builtin and then its argument prototype would still apply. */
25580 if ac_fn_c_try_link "$LINENO"; then :
25581 ac_cv_lib_socket_connect=yes
25583 ac_cv_lib_socket_connect=no
25585 rm -f core conftest.err conftest.$ac_objext \
25586 conftest$ac_exeext conftest.$ac_ext
25587 LIBS=$ac_check_lib_save_LIBS
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25590 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25591 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25592 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25597 # Guillermo Gomez says -lposix is necessary on A/UX.
25598 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25599 if test "x$ac_cv_func_remove" = x""yes; then :
25603 if test $ac_cv_func_remove = no; then
25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25605 $as_echo_n "checking for remove in -lposix... " >&6; }
25606 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25607 $as_echo_n "(cached) " >&6
25609 ac_check_lib_save_LIBS=$LIBS
25610 LIBS="-lposix $LIBS"
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25614 /* Override any GCC internal prototype to avoid an error.
25615 Use char because int might match the return type of a GCC
25616 builtin and then its argument prototype would still apply. */
25629 if ac_fn_c_try_link "$LINENO"; then :
25630 ac_cv_lib_posix_remove=yes
25632 ac_cv_lib_posix_remove=no
25634 rm -f core conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
25636 LIBS=$ac_check_lib_save_LIBS
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25639 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25640 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25646 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25647 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25648 if test "x$ac_cv_func_shmat" = x""yes; then :
25652 if test $ac_cv_func_shmat = no; then
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25654 $as_echo_n "checking for shmat in -lipc... " >&6; }
25655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25658 ac_check_lib_save_LIBS=$LIBS
25660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25661 /* end confdefs.h. */
25663 /* Override any GCC internal prototype to avoid an error.
25664 Use char because int might match the return type of a GCC
25665 builtin and then its argument prototype would still apply. */
25678 if ac_fn_c_try_link "$LINENO"; then :
25679 ac_cv_lib_ipc_shmat=yes
25681 ac_cv_lib_ipc_shmat=no
25683 rm -f core conftest.err conftest.$ac_objext \
25684 conftest$ac_exeext conftest.$ac_ext
25685 LIBS=$ac_check_lib_save_LIBS
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25688 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25689 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25696 # Check for libraries that X11R6 Xt/Xaw programs need.
25697 ac_save_LDFLAGS=$LDFLAGS
25698 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25699 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25700 # check for ICE first), but we must link in the order -lSM -lICE or
25701 # we get undefined symbols. So assume we have SM if we have ICE.
25702 # These have to be linked with before -lX11, unlike the other
25703 # libraries we check for below, so use a different variable.
25704 # John Interrante, Karl Berry
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25706 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25707 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25708 $as_echo_n "(cached) " >&6
25710 ac_check_lib_save_LIBS=$LIBS
25711 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25713 /* end confdefs.h. */
25715 /* Override any GCC internal prototype to avoid an error.
25716 Use char because int might match the return type of a GCC
25717 builtin and then its argument prototype would still apply. */
25721 char IceConnectionNumber ();
25725 return IceConnectionNumber ();
25730 if ac_fn_c_try_link "$LINENO"; then :
25731 ac_cv_lib_ICE_IceConnectionNumber=yes
25733 ac_cv_lib_ICE_IceConnectionNumber=no
25735 rm -f core conftest.err conftest.$ac_objext \
25736 conftest$ac_exeext conftest.$ac_ext
25737 LIBS=$ac_check_lib_save_LIBS
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25740 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25741 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25742 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25745 LDFLAGS=$ac_save_LDFLAGS
25749 if test "$no_x" != 'yes'; then
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25751 $as_echo "-------------------------------------------------------------" >&6; }
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25753 $as_echo_n "checking for X11... " >&6; }
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25756 LDFLAGS="$LDFLAGS $X_LIBS"
25757 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25758 LIBS="$X11_LIBS $LIBS"
25759 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25762 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25765 # Check for X11 shared memory extension
25767 # shmctl is required to support the shared memory extension
25768 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25769 if test "x$ac_cv_func_shmctl" = x""yes; then :
25773 if test "$have_shmctl" != 'yes'; then
25775 LIBS="$LIBS -lcygipc"
25776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25777 /* end confdefs.h. */
25779 /* Override any GCC internal prototype to avoid an error.
25780 Use char because int might match the return type of a GCC
25781 builtin and then its argument prototype would still apply. */
25794 if ac_fn_c_try_link "$LINENO"; then :
25795 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25797 rm -f core conftest.err conftest.$ac_objext \
25798 conftest$ac_exeext conftest.$ac_ext
25802 if test "$have_shmctl" = 'yes'; then
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25804 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25805 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25806 $as_echo_n "(cached) " >&6
25808 ac_check_lib_save_LIBS=$LIBS
25809 LIBS="-lXext $LIBS"
25810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25811 /* end confdefs.h. */
25813 /* Override any GCC internal prototype to avoid an error.
25814 Use char because int might match the return type of a GCC
25815 builtin and then its argument prototype would still apply. */
25819 char XShmAttach ();
25823 return XShmAttach ();
25828 if ac_fn_c_try_link "$LINENO"; then :
25829 ac_cv_lib_Xext_XShmAttach=yes
25831 ac_cv_lib_Xext_XShmAttach=no
25833 rm -f core conftest.err conftest.$ac_objext \
25834 conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25838 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25839 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25840 XEXT_LIBS='-lXext' ;
25841 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25848 # Check for X11 shape extension
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25851 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25852 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25853 $as_echo_n "(cached) " >&6
25855 ac_check_lib_save_LIBS=$LIBS
25856 LIBS="-lXext $LIBS"
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25860 /* Override any GCC internal prototype to avoid an error.
25861 Use char because int might match the return type of a GCC
25862 builtin and then its argument prototype would still apply. */
25866 char XShapeCombineMask ();
25870 return XShapeCombineMask ();
25875 if ac_fn_c_try_link "$LINENO"; then :
25876 ac_cv_lib_Xext_XShapeCombineMask=yes
25878 ac_cv_lib_Xext_XShapeCombineMask=no
25880 rm -f core conftest.err conftest.$ac_objext \
25881 conftest$ac_exeext conftest.$ac_ext
25882 LIBS=$ac_check_lib_save_LIBS
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25885 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25886 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25887 XEXT_LIBS='-lXext' ;
25888 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25893 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25894 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25895 $as_echo_n "(cached) " >&6
25897 ac_check_lib_save_LIBS=$LIBS
25899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h. */
25902 /* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25908 char XtSetEventDispatcher ();
25912 return XtSetEventDispatcher ();
25917 if ac_fn_c_try_link "$LINENO"; then :
25918 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25920 ac_cv_lib_Xt_XtSetEventDispatcher=no
25922 rm -f core conftest.err conftest.$ac_objext \
25923 conftest$ac_exeext conftest.$ac_ext
25924 LIBS=$ac_check_lib_save_LIBS
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25927 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25928 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25932 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25934 if test "$no_x" != 'yes'; then
25939 if test "$have_x" = 'yes'; then
25941 X11_DELEGATE_FALSE='#'
25943 X11_DELEGATE_TRUE='#'
25944 X11_DELEGATE_FALSE=
25955 # Check whether --with-zlib was given.
25956 if test "${with_zlib+set}" = set; then :
25957 withval=$with_zlib; with_zlib=$withval
25963 if test "$with_zlib" != 'yes'; then
25964 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25969 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25971 $as_echo "-------------------------------------------------------------" >&6; }
25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25973 $as_echo_n "checking for ZLIB... " >&6; }
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25979 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25980 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25981 passed=`expr $passed + 1`
25983 failed=`expr $failed + 1`
25987 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25988 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25989 passed=`expr $passed + 1`
25991 failed=`expr $failed + 1`
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25996 $as_echo_n "checking for compress in -lz... " >&6; }
25997 if test "${ac_cv_lib_z_compress+set}" = set; then :
25998 $as_echo_n "(cached) " >&6
26000 ac_check_lib_save_LIBS=$LIBS
26002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26003 /* end confdefs.h. */
26005 /* Override any GCC internal prototype to avoid an error.
26006 Use char because int might match the return type of a GCC
26007 builtin and then its argument prototype would still apply. */
26015 return compress ();
26020 if ac_fn_c_try_link "$LINENO"; then :
26021 ac_cv_lib_z_compress=yes
26023 ac_cv_lib_z_compress=no
26025 rm -f core conftest.err conftest.$ac_objext \
26026 conftest$ac_exeext conftest.$ac_ext
26027 LIBS=$ac_check_lib_save_LIBS
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26030 $as_echo "$ac_cv_lib_z_compress" >&6; }
26031 if test "x$ac_cv_lib_z_compress" = x""yes; then :
26032 passed=`expr $passed + 1`
26034 failed=`expr $failed + 1`
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26038 $as_echo_n "checking for uncompress in -lz... " >&6; }
26039 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
26040 $as_echo_n "(cached) " >&6
26042 ac_check_lib_save_LIBS=$LIBS
26044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26045 /* end confdefs.h. */
26047 /* Override any GCC internal prototype to avoid an error.
26048 Use char because int might match the return type of a GCC
26049 builtin and then its argument prototype would still apply. */
26053 char uncompress ();
26057 return uncompress ();
26062 if ac_fn_c_try_link "$LINENO"; then :
26063 ac_cv_lib_z_uncompress=yes
26065 ac_cv_lib_z_uncompress=no
26067 rm -f core conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
26069 LIBS=$ac_check_lib_save_LIBS
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26072 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26073 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
26074 passed=`expr $passed + 1`
26076 failed=`expr $failed + 1`
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26080 $as_echo_n "checking for deflate in -lz... " >&6; }
26081 if test "${ac_cv_lib_z_deflate+set}" = set; then :
26082 $as_echo_n "(cached) " >&6
26084 ac_check_lib_save_LIBS=$LIBS
26086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26087 /* end confdefs.h. */
26089 /* Override any GCC internal prototype to avoid an error.
26090 Use char because int might match the return type of a GCC
26091 builtin and then its argument prototype would still apply. */
26104 if ac_fn_c_try_link "$LINENO"; then :
26105 ac_cv_lib_z_deflate=yes
26107 ac_cv_lib_z_deflate=no
26109 rm -f core conftest.err conftest.$ac_objext \
26110 conftest$ac_exeext conftest.$ac_ext
26111 LIBS=$ac_check_lib_save_LIBS
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26114 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26115 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
26116 passed=`expr $passed + 1`
26118 failed=`expr $failed + 1`
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26122 $as_echo_n "checking for inflate in -lz... " >&6; }
26123 if test "${ac_cv_lib_z_inflate+set}" = set; then :
26124 $as_echo_n "(cached) " >&6
26126 ac_check_lib_save_LIBS=$LIBS
26128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h. */
26131 /* Override any GCC internal prototype to avoid an error.
26132 Use char because int might match the return type of a GCC
26133 builtin and then its argument prototype would still apply. */
26146 if ac_fn_c_try_link "$LINENO"; then :
26147 ac_cv_lib_z_inflate=yes
26149 ac_cv_lib_z_inflate=no
26151 rm -f core conftest.err conftest.$ac_objext \
26152 conftest$ac_exeext conftest.$ac_ext
26153 LIBS=$ac_check_lib_save_LIBS
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26156 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26157 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
26158 passed=`expr $passed + 1`
26160 failed=`expr $failed + 1`
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26164 $as_echo_n "checking for gzseek in -lz... " >&6; }
26165 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
26166 $as_echo_n "(cached) " >&6
26168 ac_check_lib_save_LIBS=$LIBS
26170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h. */
26173 /* Override any GCC internal prototype to avoid an error.
26174 Use char because int might match the return type of a GCC
26175 builtin and then its argument prototype would still apply. */
26188 if ac_fn_c_try_link "$LINENO"; then :
26189 ac_cv_lib_z_gzseek=yes
26191 ac_cv_lib_z_gzseek=no
26193 rm -f core conftest.err conftest.$ac_objext \
26194 conftest$ac_exeext conftest.$ac_ext
26195 LIBS=$ac_check_lib_save_LIBS
26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26198 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26199 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26200 passed=`expr $passed + 1`
26202 failed=`expr $failed + 1`
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26206 $as_echo_n "checking for gztell in -lz... " >&6; }
26207 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26208 $as_echo_n "(cached) " >&6
26210 ac_check_lib_save_LIBS=$LIBS
26212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26213 /* end confdefs.h. */
26215 /* Override any GCC internal prototype to avoid an error.
26216 Use char because int might match the return type of a GCC
26217 builtin and then its argument prototype would still apply. */
26230 if ac_fn_c_try_link "$LINENO"; then :
26231 ac_cv_lib_z_gztell=yes
26233 ac_cv_lib_z_gztell=no
26235 rm -f core conftest.err conftest.$ac_objext \
26236 conftest$ac_exeext conftest.$ac_ext
26237 LIBS=$ac_check_lib_save_LIBS
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26240 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26241 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26242 passed=`expr $passed + 1`
26244 failed=`expr $failed + 1`
26247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26248 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26249 if test $passed -gt 0; then
26250 if test $failed -gt 0; then
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26252 $as_echo "no -- some components failed test" >&6; }
26253 have_zlib='no (failed tests)'
26256 LIBS="$ZLIB_LIBS $LIBS"
26258 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26261 $as_echo "yes" >&6; }
26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26266 $as_echo "no" >&6; }
26269 if test "$have_zlib" = 'yes'; then
26270 ZLIB_DELEGATE_TRUE=
26271 ZLIB_DELEGATE_FALSE='#'
26273 ZLIB_DELEGATE_TRUE='#'
26274 ZLIB_DELEGATE_FALSE=
26280 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26283 if test "$enable_profiling" = 'yes'; then
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26287 $as_echo_n "(cached) " >&6
26289 ac_check_lib_save_LIBS=$LIBS
26291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26292 /* end confdefs.h. */
26294 /* Override any GCC internal prototype to avoid an error.
26295 Use char because int might match the return type of a GCC
26296 builtin and then its argument prototype would still apply. */
26309 if ac_fn_c_try_link "$LINENO"; then :
26310 ac_cv_lib_dl_dlopen=yes
26312 ac_cv_lib_dl_dlopen=no
26314 rm -f core conftest.err conftest.$ac_objext \
26315 conftest$ac_exeext conftest.$ac_ext
26316 LIBS=$ac_check_lib_save_LIBS
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26320 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26324 LIBS="$LIB_DL $LIBS"
26330 # Check for Autotrace delegate library.
26333 # Check whether --with-autotrace was given.
26334 if test "${with_autotrace+set}" = set; then :
26335 withval=$with_autotrace; with_autotrace=$withval
26337 with_autotrace='no'
26341 if test "$with_autotrace" != 'yes'; then
26342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26345 have_autotrace='no'
26346 AUTOTRACE_CFLAGS=""
26349 if test "x$with_autotrace" = "xyes"; then
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26351 $as_echo "-------------------------------------------------------------" >&6; }
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26355 $as_echo_n "checking for AUTOTRACE... " >&6; }
26357 if test -n "$AUTOTRACE_CFLAGS"; then
26358 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26359 elif test -n "$PKG_CONFIG"; then
26360 if test -n "$PKG_CONFIG" && \
26361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26362 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26365 test $ac_status = 0; }; then
26366 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26373 if test -n "$AUTOTRACE_LIBS"; then
26374 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26375 elif test -n "$PKG_CONFIG"; then
26376 if test -n "$PKG_CONFIG" && \
26377 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26378 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26381 test $ac_status = 0; }; then
26382 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26392 if test $pkg_failed = yes; then
26394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26395 _pkg_short_errors_supported=yes
26397 _pkg_short_errors_supported=no
26399 if test $_pkg_short_errors_supported = yes; then
26400 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26402 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26404 # Put the nasty error message in config.log where it belongs
26405 echo "$AUTOTRACE_PKG_ERRORS" >&5
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26408 $as_echo "no" >&6; }
26410 elif test $pkg_failed = untried; then
26413 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26414 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26423 if test "$have_autotrace" = 'yes'; then
26426 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26428 if test "$with_modules" = 'no'; then
26429 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26433 if test "$have_autotrace" = 'yes'; then
26434 AUTOTRACE_DELEGATE_TRUE=
26435 AUTOTRACE_DELEGATE_FALSE='#'
26437 AUTOTRACE_DELEGATE_TRUE='#'
26438 AUTOTRACE_DELEGATE_FALSE=
26446 # Check for Display Postscript delegate library.
26449 # Check whether --with-dps was given.
26450 if test "${with_dps+set}" = set; then :
26451 withval=$with_dps; with_dps=$withval
26457 if test "$with_dps" != 'yes'; then
26458 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26463 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26465 $as_echo "-------------------------------------------------------------" >&6; }
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26467 $as_echo_n "checking for DPS... " >&6; }
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26472 PERSIST_CPPFLAGS="$CPPFLAGS"
26473 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26474 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26475 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26476 passed=`expr $passed + 1`
26478 failed=`expr $failed + 1`
26483 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26484 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26485 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26486 # ImageMagick itself doesn't use -lXt.
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26490 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26491 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26492 $as_echo_n "(cached) " >&6
26494 ac_check_lib_save_LIBS=$LIBS
26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h. */
26499 /* Override any GCC internal prototype to avoid an error.
26500 Use char because int might match the return type of a GCC
26501 builtin and then its argument prototype would still apply. */
26505 char DPSInitialize ();
26509 return DPSInitialize ();
26514 if ac_fn_c_try_link "$LINENO"; then :
26515 ac_cv_lib_dps_DPSInitialize=yes
26517 ac_cv_lib_dps_DPSInitialize=no
26519 rm -f core conftest.err conftest.$ac_objext \
26520 conftest$ac_exeext conftest.$ac_ext
26521 LIBS=$ac_check_lib_save_LIBS
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26524 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26525 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26531 if test "$have_libdps" != 'yes'; then
26532 # Unset cache variable so we can try again.
26533 unset ac_cv_lib_dps_DPSInitialize
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26535 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26536 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26537 $as_echo_n "(cached) " >&6
26539 ac_check_lib_save_LIBS=$LIBS
26540 LIBS="-ldps -lXt $LIBS"
26541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26542 /* end confdefs.h. */
26544 /* Override any GCC internal prototype to avoid an error.
26545 Use char because int might match the return type of a GCC
26546 builtin and then its argument prototype would still apply. */
26550 char DPSInitialize ();
26554 return DPSInitialize ();
26559 if ac_fn_c_try_link "$LINENO"; then :
26560 ac_cv_lib_dps_DPSInitialize=yes
26562 ac_cv_lib_dps_DPSInitialize=no
26564 rm -f core conftest.err conftest.$ac_objext \
26565 conftest$ac_exeext conftest.$ac_ext
26566 LIBS=$ac_check_lib_save_LIBS
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26569 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26570 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26576 if test "$have_libdps" = 'yes'; then
26580 if test "$have_libdps" = 'yes'; then
26581 passed=`expr $passed + 1`
26583 failed=`expr $failed + 1`
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26586 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26587 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26588 $as_echo_n "(cached) " >&6
26590 ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26595 /* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26601 char XDPSPixelsPerPoint ();
26605 return XDPSPixelsPerPoint ();
26610 if ac_fn_c_try_link "$LINENO"; then :
26611 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26613 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26615 rm -f core conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
26617 LIBS=$ac_check_lib_save_LIBS
26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26620 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26621 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26622 passed=`expr $passed + 1`
26624 failed=`expr $failed + 1`
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26628 $as_echo_n "checking if DPS package is complete... " >&6; }
26629 if test $passed -gt 0; then
26630 if test $failed -gt 0; then
26631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26632 $as_echo "no -- some components failed test" >&6; }
26633 have_dps='no (failed tests)'
26634 CPPFLAGS="$PERSIST_CPPFLAGS"
26636 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26637 LIBS="$DPS_LIBS $LIBS"
26639 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26642 $as_echo "yes" >&6; }
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26647 $as_echo "no" >&6; }
26648 CPPFLAGS=$PERSIST_CPPFLAGS
26651 if test "$have_dps" = 'yes'; then
26653 DPS_DELEGATE_FALSE='#'
26655 DPS_DELEGATE_TRUE='#'
26656 DPS_DELEGATE_FALSE=
26663 # Check for DJVU delegate library.
26666 # Check whether --with-djvu was given.
26667 if test "${with_djvu+set}" = set; then :
26668 withval=$with_djvu; with_djvu=$withval
26674 if test "$with_djvu" != 'yes'; then
26675 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26680 if test "$with_djvu" != 'no'; then
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26682 $as_echo "-------------------------------------------------------------" >&6; }
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26684 $as_echo_n "checking for DJVU... " >&6; }
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26689 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26690 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26691 passed=`expr $passed + 1`
26693 failed=`expr $failed + 1`
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26698 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26699 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26700 $as_echo_n "(cached) " >&6
26702 ac_check_lib_save_LIBS=$LIBS
26703 LIBS="-ldjvulibre $LIBS"
26704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26705 /* end confdefs.h. */
26707 /* Override any GCC internal prototype to avoid an error.
26708 Use char because int might match the return type of a GCC
26709 builtin and then its argument prototype would still apply. */
26713 char ddjvu_context_create ();
26717 return ddjvu_context_create ();
26722 if ac_fn_c_try_link "$LINENO"; then :
26723 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26725 ac_cv_lib_djvulibre_ddjvu_context_create=no
26727 rm -f core conftest.err conftest.$ac_objext \
26728 conftest$ac_exeext conftest.$ac_ext
26729 LIBS=$ac_check_lib_save_LIBS
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26732 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26733 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26734 passed=`expr $passed + 1`
26736 failed=`expr $failed + 1`
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26740 $as_echo_n "checking if DJVU package is complete... " >&6; }
26741 if test $passed -gt 0; then
26742 if test $failed -gt 0; then
26743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26744 $as_echo "no -- some components failed test" >&6; }
26745 have_djvu='no (failed tests)'
26747 DJVU_LIBS='-ldjvulibre'
26748 LIBS="$DJVU_LIBS $LIBS"
26750 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26753 $as_echo "yes" >&6; }
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26758 $as_echo "no" >&6; }
26761 if test "$have_djvu" = 'yes'; then
26762 DJVU_DELEGATE_TRUE=
26763 DJVU_DELEGATE_FALSE='#'
26765 DJVU_DELEGATE_TRUE='#'
26766 DJVU_DELEGATE_FALSE=
26773 # Set DejaVu font directory.
26776 # Check whether --with-dejavu-font-dir was given.
26777 if test "${with_dejavu_font_dir+set}" = set; then :
26778 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26780 with_dejavu_font_dir='default'
26784 if test "$with_dejavu_font_dir" != 'default'; then
26785 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26790 # Check for FFTW delegate library.
26793 # Check whether --with-fftw was given.
26794 if test "${with_fftw+set}" = set; then :
26795 withval=$with_fftw; with_fftw=$withval
26801 if test "$with_fftw" != 'yes'; then
26802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26807 if test "$with_fftw" != 'no'; then
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26809 $as_echo "-------------------------------------------------------------" >&6; }
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26811 $as_echo_n "checking for FFTW... " >&6; }
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26816 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26817 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26818 passed=`expr $passed + 1`
26820 failed=`expr $failed + 1`
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26825 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26826 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26829 ac_check_lib_save_LIBS=$LIBS
26830 LIBS="-lfftw3 $LIBS"
26831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26832 /* end confdefs.h. */
26834 /* Override any GCC internal prototype to avoid an error.
26835 Use char because int might match the return type of a GCC
26836 builtin and then its argument prototype would still apply. */
26840 char fftw_execute ();
26844 return fftw_execute ();
26849 if ac_fn_c_try_link "$LINENO"; then :
26850 ac_cv_lib_fftw3_fftw_execute=yes
26852 ac_cv_lib_fftw3_fftw_execute=no
26854 rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
26856 LIBS=$ac_check_lib_save_LIBS
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26859 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26860 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26861 passed=`expr $passed + 1`
26863 failed=`expr $failed + 1`
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26867 $as_echo_n "checking if FFTW package is complete... " >&6; }
26868 if test $passed -gt 0; then
26869 if test $failed -gt 0; then
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26871 $as_echo "no -- some components failed test" >&6; }
26872 have_fftw='no (failed tests)'
26874 FFTW_LIBS='-lfftw3'
26875 LIBS="$FFTW_LIBS $LIBS"
26877 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26880 $as_echo "yes" >&6; }
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885 $as_echo "no" >&6; }
26888 if test "$have_fftw" = 'yes'; then
26889 FFTW_DELEGATE_TRUE=
26890 FFTW_DELEGATE_FALSE='#'
26892 FFTW_DELEGATE_TRUE='#'
26893 FFTW_DELEGATE_FALSE=
26900 # Check for FlashPIX delegate library.
26903 # Check whether --with-fpx was given.
26904 if test "${with_fpx+set}" = set; then :
26905 withval=$with_fpx; with_fpx=$withval
26911 if test "$with_fpx" != 'yes'; then
26912 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26917 if test "$with_fpx" != 'no'; then
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26919 $as_echo "-------------------------------------------------------------" >&6; }
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26921 $as_echo_n "checking for FlashPIX... " >&6; }
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26927 ac_cpp='$CXXCPP $CPPFLAGS'
26928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26933 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26934 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26935 passed=`expr $passed + 1`
26937 failed=`expr $failed + 1`
26941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26942 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26943 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26944 $as_echo_n "(cached) " >&6
26946 ac_check_lib_save_LIBS=$LIBS
26948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26949 /* end confdefs.h. */
26951 /* Override any GCC internal prototype to avoid an error.
26952 Use char because int might match the return type of a GCC
26953 builtin and then its argument prototype would still apply. */
26957 char FPX_OpenImageByFilename ();
26961 return FPX_OpenImageByFilename ();
26966 if ac_fn_cxx_try_link "$LINENO"; then :
26967 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26969 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26971 rm -f core conftest.err conftest.$ac_objext \
26972 conftest$ac_exeext conftest.$ac_ext
26973 LIBS=$ac_check_lib_save_LIBS
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26976 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26977 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26978 passed=`expr $passed + 1`
26980 failed=`expr $failed + 1`
26984 ac_cpp='$CPP $CPPFLAGS'
26985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26990 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26991 if test $passed -gt 0; then
26992 if test $failed -gt 0; then
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26994 $as_echo "no -- some components failed test" >&6; }
26995 have_fpx='no (failed tests)'
26999 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27002 $as_echo "yes" >&6; }
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27011 if test "$have_fpx" = 'yes'; then
27013 FPX_DELEGATE_FALSE='#'
27015 FPX_DELEGATE_TRUE='#'
27016 FPX_DELEGATE_FALSE=
27023 # Check for fontconfig delegate library.
27026 # Check whether --with-fontconfig was given.
27027 if test "${with_fontconfig+set}" = set; then :
27028 withval=$with_fontconfig; with_fontconfig=$withval
27030 with_fontconfig=$have_x
27034 if test "$with_fontconfig" != 'yes'; then
27035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27038 have_fontconfig='no'
27039 FONTCONFIG_CFLAGS=""
27042 if test "x$with_fontconfig" = "xyes"; then
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27044 $as_echo "-------------------------------------------------------------" >&6; }
27047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27048 $as_echo_n "checking for FONTCONFIG... " >&6; }
27050 if test -n "$FONTCONFIG_CFLAGS"; then
27051 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27052 elif test -n "$PKG_CONFIG"; then
27053 if test -n "$PKG_CONFIG" && \
27054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27055 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27058 test $ac_status = 0; }; then
27059 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27066 if test -n "$FONTCONFIG_LIBS"; then
27067 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27068 elif test -n "$PKG_CONFIG"; then
27069 if test -n "$PKG_CONFIG" && \
27070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27071 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27074 test $ac_status = 0; }; then
27075 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27085 if test $pkg_failed = yes; then
27087 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27088 _pkg_short_errors_supported=yes
27090 _pkg_short_errors_supported=no
27092 if test $_pkg_short_errors_supported = yes; then
27093 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27095 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27097 # Put the nasty error message in config.log where it belongs
27098 echo "$FONTCONFIG_PKG_ERRORS" >&5
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27101 $as_echo "no" >&6; }
27103 elif test $pkg_failed = untried; then
27106 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27107 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27109 $as_echo "yes" >&6; }
27110 have_fontconfig=yes
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27116 if test "$have_fontconfig" = 'yes'; then
27118 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27120 if test "$with_modules" = 'no'; then
27121 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27125 if test "$have_fontconfig" = 'yes'; then
27126 FONTCONFIG_DELEGATE_TRUE=
27127 FONTCONFIG_DELEGATE_FALSE='#'
27129 FONTCONFIG_DELEGATE_TRUE='#'
27130 FONTCONFIG_DELEGATE_FALSE=
27138 # Check for freetype delegate library.
27141 # Check whether --with-freetype was given.
27142 if test "${with_freetype+set}" = set; then :
27143 withval=$with_freetype; with_freetype=$withval
27145 with_freetype='yes'
27150 if test "$with_freetype" != 'yes'; then
27151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27156 if test "$with_freetype" != 'no'; then
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27158 $as_echo "-------------------------------------------------------------" >&6; }
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27160 $as_echo_n "checking for FreeType 2.0... " >&6; }
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27165 PERSIST_LIBS="$LIBS"
27166 PERSIST_CPPFLAGS="$CPPFLAGS"
27167 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27171 for ac_prog in freetype-config
27173 # Extract the first word of "$ac_prog", so it can be a program name with args.
27174 set dummy $ac_prog; ac_word=$2
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27176 $as_echo_n "checking for $ac_word... " >&6; }
27177 if test "${ac_cv_prog_freetype_config+set}" = set; then :
27178 $as_echo_n "(cached) " >&6
27180 if test -n "$freetype_config"; then
27181 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27184 for as_dir in $PATH
27187 test -z "$as_dir" && as_dir=.
27188 for ac_exec_ext in '' $ac_executable_extensions; do
27189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27190 ac_cv_prog_freetype_config="$ac_prog"
27191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27200 freetype_config=$ac_cv_prog_freetype_config
27201 if test -n "$freetype_config"; then
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27203 $as_echo "$freetype_config" >&6; }
27205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27206 $as_echo "no" >&6; }
27210 test -n "$freetype_config" && break
27212 if test -n "$freetype_config"; then
27213 freetype_cflags=`$freetype_config --cflags`
27214 freetype_libs=`$freetype_config --libs`
27215 LIBS="$LIBS $freetype_libs"
27216 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27220 if test "$FREETYPE_LIBS" = ''; then
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27222 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27223 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27224 $as_echo_n "(cached) " >&6
27226 ac_check_lib_save_LIBS=$LIBS
27227 LIBS="-lfreetype $LIBS"
27228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27229 /* end confdefs.h. */
27231 /* Override any GCC internal prototype to avoid an error.
27232 Use char because int might match the return type of a GCC
27233 builtin and then its argument prototype would still apply. */
27237 char FT_Init_FreeType ();
27241 return FT_Init_FreeType ();
27246 if ac_fn_c_try_link "$LINENO"; then :
27247 ac_cv_lib_freetype_FT_Init_FreeType=yes
27249 ac_cv_lib_freetype_FT_Init_FreeType=no
27251 rm -f core conftest.err conftest.$ac_objext \
27252 conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27256 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27257 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27258 FREETYPE_LIBS='-lfreetype'
27261 if test "$FREETYPE_LIBS" != ''; then
27262 passed=`expr $passed + 1`
27264 failed=`expr $failed + 1`
27265 LIBS="$PERSIST_LIBS"
27269 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27270 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27271 FT2BUILD_H='#include <ft2build.h>'
27277 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27279 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27280 have_freetype_h='yes'
27282 have_freetype_h='no'
27286 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27287 passed=`expr $passed + 1`
27289 failed=`expr $failed + 1`
27290 CPPFLAGS="$PERSIST_CPPFLAGS"
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27294 $as_echo_n "checking if FreeType package is complete... " >&6; }
27295 if test $passed -gt 0; then
27296 if test $failed -gt 0; then
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27299 $as_echo "no -- some components failed test" >&6; }
27300 have_freetype='no (failed tests)'
27302 LIBS="$FREETYPE_LIBS $LIBS"
27304 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27306 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27308 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27312 $as_echo "yes" >&6; }
27313 have_freetype='yes'
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27317 $as_echo "no" >&6; }
27320 if test "$have_freetype" = 'yes'; then
27321 FREETYPE_DELEGATE_TRUE=
27322 FREETYPE_DELEGATE_FALSE='#'
27324 FREETYPE_DELEGATE_TRUE='#'
27325 FREETYPE_DELEGATE_FALSE=
27333 # Check for Ghostscript library or framework.
27335 # Test for iapi.h & test for gsapi_new_instance in -lgs
27336 # or -framework Ghostscript
27339 # Check whether --with-gslib was given.
27340 if test "${with_gslib+set}" = set; then :
27341 withval=$with_gslib; with_gslib=$withval
27347 gslib_framework='no'
27348 if test "$with_gslib" != 'yes'; then
27349 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27354 if test "$with_gslib" != 'no'; then
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27356 $as_echo "-------------------------------------------------------------" >&6; }
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27358 $as_echo_n "checking for Ghostscript... " >&6; }
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27364 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27365 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27366 passed=`expr $passed + 1`
27368 failed=`expr $failed + 1`
27372 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27373 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27374 passed=`expr $passed + 1`
27376 failed=`expr $failed + 1`
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27381 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27382 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27383 $as_echo_n "(cached) " >&6
27385 ac_check_framework_save_LIBS=$LIBS
27386 LIBS="-framework Ghostscript $LIBS"
27387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27388 /* end confdefs.h. */
27390 /* Override any GCC internal prototype to avoid an error.
27391 Use char because int might match the return type of a GCC
27392 builtin and then its argument prototype would still apply. */
27396 char gsapi_new_instance ();
27400 return gsapi_new_instance ();
27405 if ac_fn_c_try_link "$LINENO"; then :
27406 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27408 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27410 rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27412 LIBS=$ac_check_framework_save_LIBS
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27415 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27416 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27417 framework=`expr $framework + 1`
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27420 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27421 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27422 $as_echo_n "(cached) " >&6
27424 ac_check_lib_save_LIBS=$LIBS
27426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27427 /* end confdefs.h. */
27429 /* Override any GCC internal prototype to avoid an error.
27430 Use char because int might match the return type of a GCC
27431 builtin and then its argument prototype would still apply. */
27435 char gsapi_new_instance ();
27439 return gsapi_new_instance ();
27444 if ac_fn_c_try_link "$LINENO"; then :
27445 ac_cv_lib_gs_gsapi_new_instance=yes
27447 ac_cv_lib_gs_gsapi_new_instance=no
27449 rm -f core conftest.err conftest.$ac_objext \
27450 conftest$ac_exeext conftest.$ac_ext
27451 LIBS=$ac_check_lib_save_LIBS
27453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27454 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27455 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27456 passed=`expr $passed + 1`
27458 failed=`expr $failed + 1`
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27463 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27464 if test $passed -gt 0; then
27465 if test $failed -gt 0; then
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27467 $as_echo "no -- some components failed test" >&6; }
27468 have_gslib='no (failed tests)'
27470 if test $framework -gt 0; then
27471 GS_LIBS='-framework Ghostscript'
27472 gslib_framework='yes'
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27474 $as_echo "yes, using framework." >&6; }
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27477 $as_echo "yes, using library." >&6; }
27480 LIBS="$GS_LIBS $LIBS"
27482 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27488 $as_echo "no" >&6; }
27491 if test "$have_gslib" = 'yes'; then
27493 GS_DELEGATE_FALSE='#'
27495 GS_DELEGATE_TRUE='#'
27501 # Set default font search path
27503 # Check whether --with-fontpath was given.
27504 if test "${with_fontpath+set}" = set; then :
27505 withval=$with_fontpath; with_fontpath=$withval
27511 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27515 cat >>confdefs.h <<_ACEOF
27516 #define MAGICK_FONT_PATH "$with_fontpath"
27520 if test "$with_fontpath=" != ''; then
27521 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27524 # Set Ghostscript font directory
27526 # Check whether --with-gs-font-dir was given.
27527 if test "${with_gs_font_dir+set}" = set; then :
27528 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27530 with_gs_font_dir='default'
27534 if test "$with_gs_font_dir" != 'default'; then
27535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27540 # Check for GVC delegate library.
27543 # Check whether --with-gvc was given.
27544 if test "${with_gvc+set}" = set; then :
27545 withval=$with_gvc; with_gvc=$withval
27551 if test "$with_gvc" != 'yes'; then
27552 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27556 if test "x$with_gvc" = "xyes"; then
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27558 $as_echo "-------------------------------------------------------------" >&6; }
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27562 $as_echo_n "checking for GVC... " >&6; }
27564 if test -n "$GVC_CFLAGS"; then
27565 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27566 elif test -n "$PKG_CONFIG"; then
27567 if test -n "$PKG_CONFIG" && \
27568 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27569 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27572 test $ac_status = 0; }; then
27573 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27580 if test -n "$GVC_LIBS"; then
27581 pkg_cv_GVC_LIBS="$GVC_LIBS"
27582 elif test -n "$PKG_CONFIG"; then
27583 if test -n "$PKG_CONFIG" && \
27584 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27585 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27588 test $ac_status = 0; }; then
27589 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27599 if test $pkg_failed = yes; then
27601 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27602 _pkg_short_errors_supported=yes
27604 _pkg_short_errors_supported=no
27606 if test $_pkg_short_errors_supported = yes; then
27607 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27609 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27611 # Put the nasty error message in config.log where it belongs
27612 echo "$GVC_PKG_ERRORS" >&5
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27615 $as_echo "no" >&6; }
27617 elif test $pkg_failed = untried; then
27620 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27621 GVC_LIBS=$pkg_cv_GVC_LIBS
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27623 $as_echo "yes" >&6; }
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27630 if test "$have_gvc" = 'yes'; then
27632 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27634 if test "$with_modules" = 'no'; then
27635 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27639 if test "$have_gvc" = 'yes'; then
27641 GVC_DELEGATE_FALSE='#'
27643 GVC_DELEGATE_TRUE='#'
27644 GVC_DELEGATE_FALSE=
27652 # Check for JBIG delegate library.
27656 # Check whether --with-jbig was given.
27657 if test "${with_jbig+set}" = set; then :
27658 withval=$with_jbig; with_jbig=$withval
27666 if test "$with_jbig" != 'no'; then
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27668 $as_echo "-------------------------------------------------------------" >&6; }
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27670 $as_echo_n "checking for JBIG... " >&6; }
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27675 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27676 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27677 passed=`expr $passed + 1`
27679 failed=`expr $failed + 1`
27683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27684 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27685 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27686 $as_echo_n "(cached) " >&6
27688 ac_check_lib_save_LIBS=$LIBS
27689 LIBS="-ljbig $LIBS"
27690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27691 /* end confdefs.h. */
27693 /* Override any GCC internal prototype to avoid an error.
27694 Use char because int might match the return type of a GCC
27695 builtin and then its argument prototype would still apply. */
27699 char jbg_dec_init ();
27703 return jbg_dec_init ();
27708 if ac_fn_c_try_link "$LINENO"; then :
27709 ac_cv_lib_jbig_jbg_dec_init=yes
27711 ac_cv_lib_jbig_jbg_dec_init=no
27713 rm -f core conftest.err conftest.$ac_objext \
27714 conftest$ac_exeext conftest.$ac_ext
27715 LIBS=$ac_check_lib_save_LIBS
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27718 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27719 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27720 passed=`expr $passed + 1`
27722 failed=`expr $failed + 1`
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27726 $as_echo_n "checking if JBIG package is complete... " >&6; }
27727 if test $passed -gt 0; then
27728 if test $failed -gt 0; then
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27730 $as_echo "no -- some components failed test" >&6; }
27731 have_jbig='no (failed tests)'
27734 LIBS="$JBIG_LIBS $LIBS"
27736 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27739 $as_echo "yes" >&6; }
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27744 $as_echo "no" >&6; }
27747 if test "$have_jbig" = 'yes'; then
27748 JBIG_DELEGATE_TRUE=
27749 JBIG_DELEGATE_FALSE='#'
27751 JBIG_DELEGATE_TRUE='#'
27752 JBIG_DELEGATE_FALSE=
27759 # Check for JPEG delegate library.
27762 # Check whether --with-jpeg was given.
27763 if test "${with_jpeg+set}" = set; then :
27764 withval=$with_jpeg; with_jpeg=$withval
27770 if test "$with_jpeg" != 'yes'; then
27771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27776 if test "$with_jpeg" != 'no'; then
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27778 $as_echo "-------------------------------------------------------------" >&6; }
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27780 $as_echo_n "checking for JPEG... " >&6; }
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27785 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27786 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27787 passed=`expr $passed + 1`
27789 failed=`expr $failed + 1`
27793 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27794 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27795 passed=`expr $passed + 1`
27797 failed=`expr $failed + 1`
27801 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27802 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27803 passed=`expr $passed + 1`
27805 failed=`expr $failed + 1`
27809 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27810 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27811 passed=`expr $passed + 1`
27813 failed=`expr $failed + 1`
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27818 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27819 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27820 $as_echo_n "(cached) " >&6
27822 ac_check_lib_save_LIBS=$LIBS
27823 LIBS="-ljpeg $LIBS"
27824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27825 /* end confdefs.h. */
27827 /* Override any GCC internal prototype to avoid an error.
27828 Use char because int might match the return type of a GCC
27829 builtin and then its argument prototype would still apply. */
27833 char jpeg_read_header ();
27837 return jpeg_read_header ();
27842 if ac_fn_c_try_link "$LINENO"; then :
27843 ac_cv_lib_jpeg_jpeg_read_header=yes
27845 ac_cv_lib_jpeg_jpeg_read_header=no
27847 rm -f core conftest.err conftest.$ac_objext \
27848 conftest$ac_exeext conftest.$ac_ext
27849 LIBS=$ac_check_lib_save_LIBS
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27852 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27853 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27854 passed=`expr $passed + 1`
27856 failed=`expr $failed + 1`
27860 # Test for compatible JPEG library
27861 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27863 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27864 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27865 $as_echo_n "(cached) " >&6
27867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27868 /* end confdefs.h. */
27870 #include <stdlib.h>
27871 #include <jpeglib.h>
27877 #if JPEG_LIB_VERSION < 62
27878 #error IJG JPEG library must be version 6b or newer!
27886 if ac_fn_c_try_compile "$LINENO"; then :
27887 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27889 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27894 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27897 $as_echo_n "checking if JPEG package is complete... " >&6; }
27898 if test $passed -gt 0; then
27899 if test $failed -gt 0; then
27900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27901 $as_echo "no -- some components failed test" >&6; }
27902 have_jpeg='no (failed tests)'
27905 LIBS="$JPEG_LIBS $LIBS"
27907 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27910 $as_echo "yes" >&6; }
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915 $as_echo "no" >&6; }
27918 if test "$have_jpeg" = 'yes'; then
27919 JPEG_DELEGATE_TRUE=
27920 JPEG_DELEGATE_FALSE='#'
27922 JPEG_DELEGATE_TRUE='#'
27923 JPEG_DELEGATE_FALSE=
27930 # Check for JPEG Version 2 delegate library.
27933 # Check whether --with-jp2 was given.
27934 if test "${with_jp2+set}" = set; then :
27935 withval=$with_jp2; with_jp2=$withval
27941 if test "$with_jp2" != 'yes'; then
27942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27947 if test "$with_jp2" != 'no'; then
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27949 $as_echo "-------------------------------------------------------------" >&6; }
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27951 $as_echo_n "checking for JPEG Version 2... " >&6; }
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27956 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27957 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27958 passed=`expr $passed + 1`
27960 failed=`expr $failed + 1`
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27965 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27966 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27967 $as_echo_n "(cached) " >&6
27969 ac_check_lib_save_LIBS=$LIBS
27970 LIBS="-ljasper $LIBS"
27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972 /* end confdefs.h. */
27974 /* Override any GCC internal prototype to avoid an error.
27975 Use char because int might match the return type of a GCC
27976 builtin and then its argument prototype would still apply. */
27980 char jas_stream_fopen ();
27984 return jas_stream_fopen ();
27989 if ac_fn_c_try_link "$LINENO"; then :
27990 ac_cv_lib_jasper_jas_stream_fopen=yes
27992 ac_cv_lib_jasper_jas_stream_fopen=no
27994 rm -f core conftest.err conftest.$ac_objext \
27995 conftest$ac_exeext conftest.$ac_ext
27996 LIBS=$ac_check_lib_save_LIBS
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27999 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28000 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
28001 passed=`expr $passed + 1`
28003 failed=`expr $failed + 1`
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28007 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28008 if test $passed -gt 0; then
28009 if test $failed -gt 0; then
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28011 $as_echo "no -- some components failed test" >&6; }
28012 have_jp2='no (failed tests)'
28014 JP2_LIBS='-ljasper'
28015 LIBS="$JP2_LIBS $LIBS"
28017 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28020 $as_echo "yes" >&6; }
28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28025 $as_echo "no" >&6; }
28028 if test "$have_jp2" = 'yes'; then
28030 JP2_DELEGATE_FALSE='#'
28032 JP2_DELEGATE_TRUE='#'
28033 JP2_DELEGATE_FALSE=
28040 # Check for LCMS delegate library.
28044 # Check whether --with-lcms was given.
28045 if test "${with_lcms+set}" = set; then :
28046 withval=$with_lcms; with_lcms=$withval
28051 if test "$with_lcms" != 'yes' ; then
28052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28057 # Check whether --with-lcms2 was given.
28058 if test "${with_lcms2+set}" = set; then :
28059 withval=$with_lcms2; with_lcms2=$withval
28064 if test "$with_lcms2" != 'yes' ; then
28065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28070 if test "$with_lcms2" != 'no'; then
28071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28072 $as_echo "-------------------------------------------------------------" >&6; }
28073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28074 $as_echo_n "checking for LCMS v2... " >&6; }
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28079 have_lcms_header='no'
28081 # Check for <lcms2.h>
28082 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28083 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28084 have_lcms_header='yes'
28088 if test "$have_lcms_header" = 'yes'; then
28090 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28092 passed=`expr $passed + 1`
28095 # Check for <lcms2/lcms2.h)
28096 if test "$have_lcms_header" != 'yes'; then
28097 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28098 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
28099 have_lcms_header='yes'
28103 if test "$have_lcms_header" = 'yes'; then
28104 passed=`expr $passed + 1`
28106 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28111 # Failed to find lcms header?
28112 if test "$have_lcms_header" != 'yes'; then
28113 failed=`expr $failed + 1`
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28117 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28118 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
28119 $as_echo_n "(cached) " >&6
28121 ac_check_lib_save_LIBS=$LIBS
28122 LIBS="-llcms2 $LIBS"
28123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28124 /* end confdefs.h. */
28126 /* Override any GCC internal prototype to avoid an error.
28127 Use char because int might match the return type of a GCC
28128 builtin and then its argument prototype would still apply. */
28132 char cmsSetLogErrorHandler ();
28136 return cmsSetLogErrorHandler ();
28141 if ac_fn_c_try_link "$LINENO"; then :
28142 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28144 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28146 rm -f core conftest.err conftest.$ac_objext \
28147 conftest$ac_exeext conftest.$ac_ext
28148 LIBS=$ac_check_lib_save_LIBS
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28151 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28152 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
28153 passed=`expr $passed + 1`
28155 failed=`expr $failed + 1`
28158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28159 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28160 if test $passed -gt 0; then
28161 if test $failed -gt 0; then
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28163 $as_echo "no -- some components failed test" >&6; }
28164 have_lcms2='no (failed tests)'
28166 LCMS_LIBS='-llcms2'
28167 LIBS="$LCMS_LIBS $LIBS"
28168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28169 $as_echo "yes" >&6; }
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28174 $as_echo "no" >&6; }
28179 # Check for LCMS v1 (1.11 or later)
28181 if test $have_lcms2 = 'yes'; then
28186 if test "$with_lcms" != 'no'; then
28187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28188 $as_echo "-------------------------------------------------------------" >&6; }
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28190 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28195 have_lcms_header='no'
28197 # Check for <lcms.h>
28198 if test "$have_lcms_header" != 'yes'; then
28199 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28200 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28201 have_lcms_header='yes'
28205 if test "$have_lcms_header" = 'yes'; then
28206 passed=`expr $passed + 1`
28208 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28213 # Check for <lcms/lcms.h>
28214 if test "$have_lcms_header" != 'yes'; then
28215 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28216 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28217 have_lcms_header='yes'
28221 if test "$have_lcms_header" = 'yes'; then
28222 passed=`expr $passed + 1`
28224 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28229 # Failed to find lcms header?
28230 if test "$have_lcms_header" != 'yes'; then
28231 failed=`expr $failed + 1`
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28235 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28236 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28237 $as_echo_n "(cached) " >&6
28239 ac_check_lib_save_LIBS=$LIBS
28240 LIBS="-llcms $LIBS"
28241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242 /* end confdefs.h. */
28244 /* Override any GCC internal prototype to avoid an error.
28245 Use char because int might match the return type of a GCC
28246 builtin and then its argument prototype would still apply. */
28250 char cmsSetErrorHandler ();
28254 return cmsSetErrorHandler ();
28259 if ac_fn_c_try_link "$LINENO"; then :
28260 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28262 ac_cv_lib_lcms_cmsSetErrorHandler=no
28264 rm -f core conftest.err conftest.$ac_objext \
28265 conftest$ac_exeext conftest.$ac_ext
28266 LIBS=$ac_check_lib_save_LIBS
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28269 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28270 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28271 passed=`expr $passed + 1`
28273 failed=`expr $failed + 1`
28276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28277 $as_echo_n "checking if LCMS package is complete... " >&6; }
28278 if test $passed -gt 0; then
28279 if test $failed -gt 0; then
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28281 $as_echo "no -- some components failed test" >&6; }
28282 have_lcms='no (failed tests)'
28285 LIBS="$LCMS_LIBS $LIBS"
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28287 $as_echo "yes" >&6; }
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28292 $as_echo "no" >&6; }
28296 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28297 LCMS_DELEGATE_TRUE=
28298 LCMS_DELEGATE_FALSE='#'
28300 LCMS_DELEGATE_TRUE='#'
28301 LCMS_DELEGATE_FALSE=
28304 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28306 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28314 # Check for the LQR (Liquid Rescale) delegate library.
28317 # Check whether --with-lqr was given.
28318 if test "${with_lqr+set}" = set; then :
28319 withval=$with_lqr; with_lqr=$withval
28325 if test "$with_lqr" != 'yes'; then
28326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28333 if test "x$with_lqr" = "xyes"; then
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28335 $as_echo "-------------------------------------------------------------" >&6; }
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28339 $as_echo_n "checking for LQR... " >&6; }
28341 if test -n "$LQR_CFLAGS"; then
28342 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28343 elif test -n "$PKG_CONFIG"; then
28344 if test -n "$PKG_CONFIG" && \
28345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28346 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28349 test $ac_status = 0; }; then
28350 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28357 if test -n "$LQR_LIBS"; then
28358 pkg_cv_LQR_LIBS="$LQR_LIBS"
28359 elif test -n "$PKG_CONFIG"; then
28360 if test -n "$PKG_CONFIG" && \
28361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28362 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28365 test $ac_status = 0; }; then
28366 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28376 if test $pkg_failed = yes; then
28378 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28379 _pkg_short_errors_supported=yes
28381 _pkg_short_errors_supported=no
28383 if test $_pkg_short_errors_supported = yes; then
28384 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28386 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28388 # Put the nasty error message in config.log where it belongs
28389 echo "$LQR_PKG_ERRORS" >&5
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28392 $as_echo "no" >&6; }
28394 elif test $pkg_failed = untried; then
28397 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28398 LQR_LIBS=$pkg_cv_LQR_LIBS
28399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28400 $as_echo "yes" >&6; }
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28407 if test "$have_lqr" = 'yes'; then
28409 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28411 CFLAGS="$LQR_CFLAGS $CFLAGS"
28414 if test "$have_lqr" = 'yes'; then
28416 LQR_DELEGATE_FALSE='#'
28418 LQR_DELEGATE_TRUE='#'
28419 LQR_DELEGATE_FALSE=
28427 # Check for the OpenEXR delegate library.
28430 # Check whether --with-openexr was given.
28431 if test "${with_openexr+set}" = set; then :
28432 withval=$with_openexr; with_openexr=$withval
28438 if test "$with_openexr" != 'yes'; then
28439 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28446 if test "x$with_openexr" = "xyes"; then
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28448 $as_echo "-------------------------------------------------------------" >&6; }
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28452 $as_echo_n "checking for OPENEXR... " >&6; }
28454 if test -n "$OPENEXR_CFLAGS"; then
28455 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28456 elif test -n "$PKG_CONFIG"; then
28457 if test -n "$PKG_CONFIG" && \
28458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28459 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28462 test $ac_status = 0; }; then
28463 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28470 if test -n "$OPENEXR_LIBS"; then
28471 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28472 elif test -n "$PKG_CONFIG"; then
28473 if test -n "$PKG_CONFIG" && \
28474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28475 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28478 test $ac_status = 0; }; then
28479 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28489 if test $pkg_failed = yes; then
28491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28492 _pkg_short_errors_supported=yes
28494 _pkg_short_errors_supported=no
28496 if test $_pkg_short_errors_supported = yes; then
28497 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28499 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28501 # Put the nasty error message in config.log where it belongs
28502 echo "$OPENEXR_PKG_ERRORS" >&5
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28507 elif test $pkg_failed = untried; then
28510 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28511 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28513 $as_echo "yes" >&6; }
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28520 if test "$have_openexr" = 'yes'; then
28522 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28524 if test "$with_modules" = 'no'; then
28525 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28529 if test "$have_openexr" = 'yes'; then
28530 OPENEXR_DELEGATE_TRUE=
28531 OPENEXR_DELEGATE_FALSE='#'
28533 OPENEXR_DELEGATE_TRUE='#'
28534 OPENEXR_DELEGATE_FALSE=
28542 # Check for PNG delegate library.
28545 # Check whether --with-png was given.
28546 if test "${with_png+set}" = set; then :
28547 withval=$with_png; with_png=$withval
28553 if test "$with_png" != 'yes'; then
28554 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28559 if test "$with_png" != 'no'; then
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28561 $as_echo "-------------------------------------------------------------" >&6; }
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28563 $as_echo_n "checking for PNG... " >&6; }
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28568 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28569 if test "x$ac_cv_header_png_h" = x""yes; then :
28570 passed=`expr $passed + 1`
28572 failed=`expr $failed + 1`
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28577 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28578 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28579 $as_echo_n "(cached) " >&6
28581 ac_check_lib_save_LIBS=$LIBS
28583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28584 /* end confdefs.h. */
28586 /* Override any GCC internal prototype to avoid an error.
28587 Use char because int might match the return type of a GCC
28588 builtin and then its argument prototype would still apply. */
28592 char png_get_io_ptr ();
28596 return png_get_io_ptr ();
28601 if ac_fn_c_try_link "$LINENO"; then :
28602 ac_cv_lib_png_png_get_io_ptr=yes
28604 ac_cv_lib_png_png_get_io_ptr=no
28606 rm -f core conftest.err conftest.$ac_objext \
28607 conftest$ac_exeext conftest.$ac_ext
28608 LIBS=$ac_check_lib_save_LIBS
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28611 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28612 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28613 passed=`expr $passed + 1`
28615 failed=`expr $failed + 1`
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28619 $as_echo_n "checking if PNG package is complete... " >&6; }
28620 if test $passed -gt 0; then
28621 if test $failed -gt 0; then
28622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28623 $as_echo "no -- some components failed test" >&6; }
28624 have_png='no (failed tests)'
28627 LIBS="$PNG_LIBS $LIBS"
28629 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28632 $as_echo "yes" >&6; }
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28637 $as_echo "no" >&6; }
28640 if test "$have_png" = 'yes'; then
28642 PNG_DELEGATE_FALSE='#'
28644 PNG_DELEGATE_TRUE='#'
28645 PNG_DELEGATE_FALSE=
28652 # Check for RSVG delegate library.
28655 # Check whether --with-rsvg was given.
28656 if test "${with_rsvg+set}" = set; then :
28657 withval=$with_rsvg; with_rsvg=$withval
28663 if test "$with_rsvg" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28672 if test "x$with_rsvg" = "xyes"; then
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28674 $as_echo "-------------------------------------------------------------" >&6; }
28677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28678 $as_echo_n "checking for RSVG... " >&6; }
28680 if test -n "$RSVG_CFLAGS"; then
28681 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28682 elif test -n "$PKG_CONFIG"; then
28683 if test -n "$PKG_CONFIG" && \
28684 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28685 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28688 test $ac_status = 0; }; then
28689 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28696 if test -n "$RSVG_LIBS"; then
28697 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28698 elif test -n "$PKG_CONFIG"; then
28699 if test -n "$PKG_CONFIG" && \
28700 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28701 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28704 test $ac_status = 0; }; then
28705 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28715 if test $pkg_failed = yes; then
28717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28718 _pkg_short_errors_supported=yes
28720 _pkg_short_errors_supported=no
28722 if test $_pkg_short_errors_supported = yes; then
28723 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28725 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28727 # Put the nasty error message in config.log where it belongs
28728 echo "$RSVG_PKG_ERRORS" >&5
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28731 $as_echo "no" >&6; }
28733 elif test $pkg_failed = untried; then
28736 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28737 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28739 $as_echo "yes" >&6; }
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28747 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28749 if test -n "$CAIRO_SVG_CFLAGS"; then
28750 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28751 elif test -n "$PKG_CONFIG"; then
28752 if test -n "$PKG_CONFIG" && \
28753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28754 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28757 test $ac_status = 0; }; then
28758 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28765 if test -n "$CAIRO_SVG_LIBS"; then
28766 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28767 elif test -n "$PKG_CONFIG"; then
28768 if test -n "$PKG_CONFIG" && \
28769 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28770 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28773 test $ac_status = 0; }; then
28774 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28784 if test $pkg_failed = yes; then
28786 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28787 _pkg_short_errors_supported=yes
28789 _pkg_short_errors_supported=no
28791 if test $_pkg_short_errors_supported = yes; then
28792 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28794 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28796 # Put the nasty error message in config.log where it belongs
28797 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28800 $as_echo "no" >&6; }
28802 elif test $pkg_failed = untried; then
28805 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28806 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28808 $as_echo "yes" >&6; }
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28815 if test "$have_rsvg" = 'yes'; then
28817 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28819 if test "$with_modules" = 'no'; then
28820 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28824 if test "$have_cairo" = 'yes'; then
28826 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28828 if test "$with_modules" = 'no'; then
28829 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28833 if test "$have_rsvg" = 'yes'; then
28834 RSVG_DELEGATE_TRUE=
28835 RSVG_DELEGATE_FALSE='#'
28837 RSVG_DELEGATE_TRUE='#'
28838 RSVG_DELEGATE_FALSE=
28841 if test "$have_cairo" = 'yes'; then
28842 CAIRO_DELEGATE_TRUE=
28843 CAIRO_DELEGATE_FALSE='#'
28845 CAIRO_DELEGATE_TRUE='#'
28846 CAIRO_DELEGATE_FALSE=
28854 # Check for TIFF delegate library.
28857 # Check whether --with-tiff was given.
28858 if test "${with_tiff+set}" = set; then :
28859 withval=$with_tiff; with_tiff=$withval
28865 if test "$with_tiff" != 'yes'; then
28866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28871 if test "$with_tiff" != 'no'; then
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28873 $as_echo "-------------------------------------------------------------" >&6; }
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28875 $as_echo_n "checking for TIFF... " >&6; }
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28880 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28881 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28882 passed=`expr $passed + 1`
28884 failed=`expr $failed + 1`
28888 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28889 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28890 passed=`expr $passed + 1`
28892 failed=`expr $failed + 1`
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28897 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28898 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28899 $as_echo_n "(cached) " >&6
28901 ac_check_lib_save_LIBS=$LIBS
28902 LIBS="-ltiff $LIBS"
28903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904 /* end confdefs.h. */
28906 /* Override any GCC internal prototype to avoid an error.
28907 Use char because int might match the return type of a GCC
28908 builtin and then its argument prototype would still apply. */
28916 return TIFFOpen ();
28921 if ac_fn_c_try_link "$LINENO"; then :
28922 ac_cv_lib_tiff_TIFFOpen=yes
28924 ac_cv_lib_tiff_TIFFOpen=no
28926 rm -f core conftest.err conftest.$ac_objext \
28927 conftest$ac_exeext conftest.$ac_ext
28928 LIBS=$ac_check_lib_save_LIBS
28930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28931 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28932 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28933 passed=`expr $passed + 1`
28935 failed=`expr $failed + 1`
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28939 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28940 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28941 $as_echo_n "(cached) " >&6
28943 ac_check_lib_save_LIBS=$LIBS
28944 LIBS="-ltiff $LIBS"
28945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28946 /* end confdefs.h. */
28948 /* Override any GCC internal prototype to avoid an error.
28949 Use char because int might match the return type of a GCC
28950 builtin and then its argument prototype would still apply. */
28954 char TIFFClientOpen ();
28958 return TIFFClientOpen ();
28963 if ac_fn_c_try_link "$LINENO"; then :
28964 ac_cv_lib_tiff_TIFFClientOpen=yes
28966 ac_cv_lib_tiff_TIFFClientOpen=no
28968 rm -f core conftest.err conftest.$ac_objext \
28969 conftest$ac_exeext conftest.$ac_ext
28970 LIBS=$ac_check_lib_save_LIBS
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28973 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28974 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28975 passed=`expr $passed + 1`
28977 failed=`expr $failed + 1`
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28981 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28982 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28983 $as_echo_n "(cached) " >&6
28985 ac_check_lib_save_LIBS=$LIBS
28986 LIBS="-ltiff $LIBS"
28987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28988 /* end confdefs.h. */
28990 /* Override any GCC internal prototype to avoid an error.
28991 Use char because int might match the return type of a GCC
28992 builtin and then its argument prototype would still apply. */
28996 char TIFFIsByteSwapped ();
29000 return TIFFIsByteSwapped ();
29005 if ac_fn_c_try_link "$LINENO"; then :
29006 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29008 ac_cv_lib_tiff_TIFFIsByteSwapped=no
29010 rm -f core conftest.err conftest.$ac_objext \
29011 conftest$ac_exeext conftest.$ac_ext
29012 LIBS=$ac_check_lib_save_LIBS
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29015 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29016 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
29017 passed=`expr $passed + 1`
29019 failed=`expr $failed + 1`
29022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29023 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29024 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
29025 $as_echo_n "(cached) " >&6
29027 ac_check_lib_save_LIBS=$LIBS
29028 LIBS="-ltiff $LIBS"
29029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29030 /* end confdefs.h. */
29032 /* Override any GCC internal prototype to avoid an error.
29033 Use char because int might match the return type of a GCC
29034 builtin and then its argument prototype would still apply. */
29038 char TIFFReadRGBATile ();
29042 return TIFFReadRGBATile ();
29047 if ac_fn_c_try_link "$LINENO"; then :
29048 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29050 ac_cv_lib_tiff_TIFFReadRGBATile=no
29052 rm -f core conftest.err conftest.$ac_objext \
29053 conftest$ac_exeext conftest.$ac_ext
29054 LIBS=$ac_check_lib_save_LIBS
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29057 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29058 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29059 passed=`expr $passed + 1`
29061 failed=`expr $failed + 1`
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29065 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29066 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29067 $as_echo_n "(cached) " >&6
29069 ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-ltiff $LIBS"
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h. */
29074 /* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29080 char TIFFReadRGBAStrip ();
29084 return TIFFReadRGBAStrip ();
29089 if ac_fn_c_try_link "$LINENO"; then :
29090 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29092 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29094 rm -f core conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29099 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29100 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29101 passed=`expr $passed + 1`
29103 failed=`expr $failed + 1`
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29107 $as_echo_n "checking if TIFF package is complete... " >&6; }
29108 if test $passed -gt 0; then
29109 if test $failed -gt 0; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29111 $as_echo "no -- some components failed test" >&6; }
29112 have_tiff='no (failed tests)'
29115 LIBS="$TIFF_LIBS $LIBS"
29117 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29122 for ac_header in tiffconf.h
29124 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29125 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29126 cat >>confdefs.h <<_ACEOF
29127 #define HAVE_TIFFCONF_H 1
29134 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29135 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29136 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29138 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29140 eval as_val=\$$as_ac_var
29141 if test "x$as_val" = x""yes; then :
29142 cat >>confdefs.h <<_ACEOF
29143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29152 $as_echo "no" >&6; }
29155 if test "$have_tiff" = 'yes'; then
29156 TIFF_DELEGATE_TRUE=
29157 TIFF_DELEGATE_FALSE='#'
29159 TIFF_DELEGATE_TRUE='#'
29160 TIFF_DELEGATE_FALSE=
29167 # Set Windows font directory.
29170 # Check whether --with-windows-font-dir was given.
29171 if test "${with_windows_font_dir+set}" = set; then :
29172 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29174 with_windows_font_dir=''
29177 if test "$with_windows_font_dir" != '' ; then
29178 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29183 # Check for WMF delegate library.
29186 # Check whether --with-wmf was given.
29187 if test "${with_wmf+set}" = set; then :
29188 withval=$with_wmf; with_wmf=$withval
29194 if test "$with_wmf" != 'yes'; then
29195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29200 if test "$with_wmf" != 'no'; then
29201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29202 $as_echo "-------------------------------------------------------------" >&6; }
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29204 $as_echo_n "checking for WMF... " >&6; }
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29209 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29210 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29211 passed=`expr $passed + 1`
29213 failed=`expr $failed + 1`
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29218 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29219 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29220 $as_echo_n "(cached) " >&6
29222 ac_check_lib_save_LIBS=$LIBS
29223 LIBS="-lwmf "-lwmflite" $LIBS"
29224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29225 /* end confdefs.h. */
29227 /* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29233 char wmf_eps_function ();
29237 return wmf_eps_function ();
29242 if ac_fn_c_try_link "$LINENO"; then :
29243 ac_cv_lib_wmf_wmf_eps_function=yes
29245 ac_cv_lib_wmf_wmf_eps_function=no
29247 rm -f core conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249 LIBS=$ac_check_lib_save_LIBS
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29252 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29253 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29254 passed=`expr $passed + 1`
29256 failed=`expr $failed + 1`
29259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29260 $as_echo_n "checking if WMF package is complete... " >&6; }
29261 if test $passed -gt 0; then
29262 if test $failed -gt 0; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29264 $as_echo "no -- some components failed test" >&6; }
29265 have_wmf='no (failed tests)'
29267 WMF_LIBS='-lwmf -lwmflite'
29268 LIBS="$WMF_LIBS $LIBS"
29270 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29273 $as_echo "yes" >&6; }
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29281 if test "$have_wmf" = 'yes'; then
29283 WMF_DELEGATE_FALSE='#'
29285 WMF_DELEGATE_TRUE='#'
29286 WMF_DELEGATE_FALSE=
29295 # Check for XML delegate library.
29298 # Check whether --with-xml was given.
29299 if test "${with_xml+set}" = set; then :
29300 withval=$with_xml; with_xml=$withval
29306 if test "$with_xml" != 'yes' ; then
29307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29312 if test "$with_xml" != 'no'; then
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29314 $as_echo "-------------------------------------------------------------" >&6; }
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29316 $as_echo_n "checking for XML... " >&6; }
29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29319 PERSIST_LDFLAGS=$LDFLAGS
29320 PERSIST_CPPFLAGS=$CPPFLAGS
29322 for ac_prog in xml2-config
29324 # Extract the first word of "$ac_prog", so it can be a program name with args.
29325 set dummy $ac_prog; ac_word=$2
29326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29327 $as_echo_n "checking for $ac_word... " >&6; }
29328 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29329 $as_echo_n "(cached) " >&6
29331 if test -n "$xml2_config"; then
29332 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29335 for as_dir in $PATH
29338 test -z "$as_dir" && as_dir=.
29339 for ac_exec_ext in '' $ac_executable_extensions; do
29340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29341 ac_cv_prog_xml2_config="$ac_prog"
29342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29351 xml2_config=$ac_cv_prog_xml2_config
29352 if test -n "$xml2_config"; then
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29354 $as_echo "$xml2_config" >&6; }
29356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29357 $as_echo "no" >&6; }
29361 test -n "$xml2_config" && break
29363 if test -n "$xml2_config"; then
29364 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29365 # the shared library installed under /usr/lib, whereas the package
29366 # installs itself under $prefix/libxml and $prefix/lib.
29367 xml2_prefix=`xml2-config --prefix`
29368 if test -d "${xml2_prefix}/include/libxml2"; then
29369 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29371 if test "${xml2_prefix}" != '/usr'; then
29372 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29377 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29378 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29379 passed=`expr $passed + 1`
29381 failed=`expr $failed + 1`
29385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29386 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29387 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29388 $as_echo_n "(cached) " >&6
29390 ac_check_lib_save_LIBS=$LIBS
29391 LIBS="-lxml2 $LIBS"
29392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29393 /* end confdefs.h. */
29395 /* Override any GCC internal prototype to avoid an error.
29396 Use char because int might match the return type of a GCC
29397 builtin and then its argument prototype would still apply. */
29401 char xmlParseExternalEntity ();
29405 return xmlParseExternalEntity ();
29410 if ac_fn_c_try_link "$LINENO"; then :
29411 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29413 ac_cv_lib_xml2_xmlParseExternalEntity=no
29415 rm -f core conftest.err conftest.$ac_objext \
29416 conftest$ac_exeext conftest.$ac_ext
29417 LIBS=$ac_check_lib_save_LIBS
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29420 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29421 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29422 passed=`expr $passed + 1`
29424 failed=`expr $failed + 1`
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29428 $as_echo_n "checking if XML package is complete... " >&6; }
29429 if test $passed -gt 0; then
29430 if test $failed -gt 0; then
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29432 $as_echo "no -- some components failed test" >&6; }
29433 have_xml='no (failed tests)'
29434 LDFLAGS="$PERSIST_LDFLAGS"
29435 CPPFLAGS="$PERSIST_CPPFLAGS"
29438 LIBS="$XML_LIBS $LIBS"
29440 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29443 $as_echo "yes" >&6; }
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29448 $as_echo "no" >&6; }
29451 if test "$have_xml" = 'yes'; then
29453 XML_DELEGATE_FALSE='#'
29455 XML_DELEGATE_TRUE='#'
29456 XML_DELEGATE_FALSE=
29462 # Substitute compiler name to build/link PerlMagick
29467 # Configure install Paths
29470 # Subdirectory under lib to place ImageMagick lib files
29471 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29473 cat >>confdefs.h <<_ACEOF
29474 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29478 # Path to ImageMagick bin directory
29479 EXECUTABLE_PATH="${BIN_DIR}"
29480 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29481 case "${build_os}" in
29483 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29487 cat >>confdefs.h <<_ACEOF
29488 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29493 # Path to ImageMagick lib
29494 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29495 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29496 case "${build_os}" in
29498 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29502 cat >>confdefs.h <<_ACEOF
29503 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29508 # Subdirectory under lib to place ImageMagick configuration files
29509 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29511 cat >>confdefs.h <<_ACEOF
29512 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29515 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29516 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29517 case "${build_os}" in
29519 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29523 cat >>confdefs.h <<_ACEOF
29524 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29530 # Subdirectory under lib to place ImageMagick coder module files
29531 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29533 cat >>confdefs.h <<_ACEOF
29534 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29537 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29538 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29539 case "${build_os}" in
29541 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29545 cat >>confdefs.h <<_ACEOF
29546 #define CODER_PATH "$DEFINE_CODER_PATH"
29552 # Subdirectory under lib to place ImageMagick filter module files
29553 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29555 cat >>confdefs.h <<_ACEOF
29556 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29559 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29560 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29561 case "${build_os}" in
29563 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29567 cat >>confdefs.h <<_ACEOF
29568 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29574 # Path to ImageMagick documentation files
29575 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29576 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29577 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29578 case "${build_os}" in
29580 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29584 cat >>confdefs.h <<_ACEOF
29585 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29591 # Path to ImageMagick share files
29592 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29593 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29594 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29595 case "${build_os}" in
29597 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29601 cat >>confdefs.h <<_ACEOF
29602 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29607 # Subdirectory under share to place ImageMagick configuration files
29608 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29610 cat >>confdefs.h <<_ACEOF
29611 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29614 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29615 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29616 case "${build_os}" in
29618 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29622 cat >>confdefs.h <<_ACEOF
29623 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29629 # program_transform_name is formed for use in a Makefile, so create a
29630 # modified version for use in a shell script.
29631 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29633 # Default delegate definitions
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29635 $as_echo "-------------------------------------------------------------" >&6; }
29636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29637 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29640 AutotraceDecodeDelegateDefault='autotrace'
29641 AVIDecodeDelegateDefault='mplayer'
29642 BlenderDecodeDelegateDefault='blender'
29643 BZIPDelegateDefault='bzip2'
29644 BrowseDelegateDefault='xdg-open'
29645 CGMDecodeDelegateDefault='ralcgm'
29646 CatDelegateDefault='cat'
29647 DNGDecodeDelegateDefault='ufraw-batch'
29648 GVCDecodeDelegateDefault='dot'
29649 DVIDecodeDelegateDefault='dvips'
29650 EchoDelegateDefault='echo'
29651 EditorDelegateDefault='xterm'
29652 FIGDecodeDelegateDefault='fig2dev'
29653 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29654 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29655 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29656 GnuplotDecodeDelegateDefault='gnuplot'
29657 HDRDecodeDelegateDefault='ra_pfm'
29658 HPGLDecodeDelegateDefault='hp2xx'
29659 HTMLDecodeDelegateDefault='html2ps'
29660 ILBMDecodeDelegateDefault='ilbmtoppm'
29661 ILBMEncodeDelegateDefault='ppmtoilbm'
29662 LPDelegateDefault='lp'
29663 LPRDelegateDefault='lpr'
29664 LZWDecodeDelegateDefault='uncompress'
29665 LZWEncodeDelegateDefault='compress'
29666 LaunchDelegateDefault='gimp'
29667 MANDelegateDefault='groff'
29668 MPEGDecodeDelegateDefault='ffmpeg'
29669 MPEGEncodeDelegateDefault='ffmpeg'
29670 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29671 MVDelegateDefault='mv'
29672 PCLDelegateDefault='pcl6'
29673 PGPDecodeDelegateDefault='pgpv'
29674 POVDelegateDefault='povray'
29675 if test "$native_win32_build" = 'yes'; then
29676 PSDelegateDefault='gswin32c'
29677 elif test "$gslib_framework" = 'yes'; then
29678 PSDelegateDefault='gsc'
29680 PSDelegateDefault='gs'
29682 RLEEncodeDelegateDefault='rawtorle'
29683 RMDelegateDefault='rm'
29684 RSVGDecodeDelegateDefault='rsvg'
29685 SCANDecodeDelegateDefault='scanimage'
29686 TXTDelegateDefault='enscript'
29687 WMFDecodeDelegateDefault='wmf2eps'
29688 WWWDecodeDelegateDefault='curl'
29689 XPSDelegateDefault='gxps'
29690 ZipDelegateDefault='gzip'
29692 # Search for delegates
29693 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29694 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29696 $as_echo_n "checking for $ac_word... " >&6; }
29697 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29698 $as_echo_n "(cached) " >&6
29700 case $AutotraceDecodeDelegate in
29702 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29706 for as_dir in $PATH
29709 test -z "$as_dir" && as_dir=.
29710 for ac_exec_ext in '' $ac_executable_extensions; do
29711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29712 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29720 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29724 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29725 if test -n "$AutotraceDecodeDelegate"; then
29726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29727 $as_echo "$AutotraceDecodeDelegate" >&6; }
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29730 $as_echo "no" >&6; }
29734 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29735 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29737 $as_echo_n "checking for $ac_word... " >&6; }
29738 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29739 $as_echo_n "(cached) " >&6
29741 case $AVIDecodeDelegate in
29743 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29747 for as_dir in $PATH
29750 test -z "$as_dir" && as_dir=.
29751 for ac_exec_ext in '' $ac_executable_extensions; do
29752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29753 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29761 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29765 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29766 if test -n "$AVIDecodeDelegate"; then
29767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29768 $as_echo "$AVIDecodeDelegate" >&6; }
29770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29771 $as_echo "no" >&6; }
29775 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29776 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29778 $as_echo_n "checking for $ac_word... " >&6; }
29779 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29780 $as_echo_n "(cached) " >&6
29782 case $BlenderDecodeDelegate in
29784 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29788 for as_dir in $PATH
29791 test -z "$as_dir" && as_dir=.
29792 for ac_exec_ext in '' $ac_executable_extensions; do
29793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29794 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29802 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29806 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29807 if test -n "$BlenderDecodeDelegate"; then
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29809 $as_echo "$BlenderDecodeDelegate" >&6; }
29811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29812 $as_echo "no" >&6; }
29816 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29817 set dummy "$BZIPDelegateDefault"; ac_word=$2
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29819 $as_echo_n "checking for $ac_word... " >&6; }
29820 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29821 $as_echo_n "(cached) " >&6
29823 case $BZIPDelegate in
29825 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29829 for as_dir in $PATH
29832 test -z "$as_dir" && as_dir=.
29833 for ac_exec_ext in '' $ac_executable_extensions; do
29834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29835 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29843 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29847 BZIPDelegate=$ac_cv_path_BZIPDelegate
29848 if test -n "$BZIPDelegate"; then
29849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29850 $as_echo "$BZIPDelegate" >&6; }
29852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29853 $as_echo "no" >&6; }
29857 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29858 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29860 $as_echo_n "checking for $ac_word... " >&6; }
29861 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29862 $as_echo_n "(cached) " >&6
29864 case $BrowseDelegate in
29866 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29870 for as_dir in $PATH
29873 test -z "$as_dir" && as_dir=.
29874 for ac_exec_ext in '' $ac_executable_extensions; do
29875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29876 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29884 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29888 BrowseDelegate=$ac_cv_path_BrowseDelegate
29889 if test -n "$BrowseDelegate"; then
29890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29891 $as_echo "$BrowseDelegate" >&6; }
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29898 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29899 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29901 $as_echo_n "checking for $ac_word... " >&6; }
29902 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29903 $as_echo_n "(cached) " >&6
29905 case $CGMDecodeDelegate in
29907 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29911 for as_dir in $PATH
29914 test -z "$as_dir" && as_dir=.
29915 for ac_exec_ext in '' $ac_executable_extensions; do
29916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29917 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29925 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29929 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29930 if test -n "$CGMDecodeDelegate"; then
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29932 $as_echo "$CGMDecodeDelegate" >&6; }
29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29935 $as_echo "no" >&6; }
29939 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29940 set dummy "$CatDelegateDefault"; ac_word=$2
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29942 $as_echo_n "checking for $ac_word... " >&6; }
29943 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29944 $as_echo_n "(cached) " >&6
29946 case $CatDelegate in
29948 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29952 for as_dir in $PATH
29955 test -z "$as_dir" && as_dir=.
29956 for ac_exec_ext in '' $ac_executable_extensions; do
29957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29958 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29966 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29970 CatDelegate=$ac_cv_path_CatDelegate
29971 if test -n "$CatDelegate"; then
29972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29973 $as_echo "$CatDelegate" >&6; }
29975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29976 $as_echo "no" >&6; }
29980 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29981 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29983 $as_echo_n "checking for $ac_word... " >&6; }
29984 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29985 $as_echo_n "(cached) " >&6
29987 case $DNGDecodeDelegate in
29989 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29993 for as_dir in $PATH
29996 test -z "$as_dir" && as_dir=.
29997 for ac_exec_ext in '' $ac_executable_extensions; do
29998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29999 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30007 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30011 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30012 if test -n "$DNGDecodeDelegate"; then
30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30014 $as_echo "$DNGDecodeDelegate" >&6; }
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30017 $as_echo "no" >&6; }
30021 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30022 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30024 $as_echo_n "checking for $ac_word... " >&6; }
30025 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
30026 $as_echo_n "(cached) " >&6
30028 case $GVCDecodeDelegate in
30030 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30034 for as_dir in $PATH
30037 test -z "$as_dir" && as_dir=.
30038 for ac_exec_ext in '' $ac_executable_extensions; do
30039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30040 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30048 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30052 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30053 if test -n "$GVCDecodeDelegate"; then
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30055 $as_echo "$GVCDecodeDelegate" >&6; }
30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30058 $as_echo "no" >&6; }
30062 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30063 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30065 $as_echo_n "checking for $ac_word... " >&6; }
30066 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
30067 $as_echo_n "(cached) " >&6
30069 case $DVIDecodeDelegate in
30071 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30075 for as_dir in $PATH
30078 test -z "$as_dir" && as_dir=.
30079 for ac_exec_ext in '' $ac_executable_extensions; do
30080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30081 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30089 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30093 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30094 if test -n "$DVIDecodeDelegate"; then
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30096 $as_echo "$DVIDecodeDelegate" >&6; }
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30099 $as_echo "no" >&6; }
30103 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30104 set dummy "$EchoDelegateDefault"; ac_word=$2
30105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30106 $as_echo_n "checking for $ac_word... " >&6; }
30107 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30108 $as_echo_n "(cached) " >&6
30110 case $EchoDelegate in
30112 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30116 for as_dir in $PATH
30119 test -z "$as_dir" && as_dir=.
30120 for ac_exec_ext in '' $ac_executable_extensions; do
30121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30122 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30130 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30134 EchoDelegate=$ac_cv_path_EchoDelegate
30135 if test -n "$EchoDelegate"; then
30136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30137 $as_echo "$EchoDelegate" >&6; }
30139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30140 $as_echo "no" >&6; }
30144 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30145 set dummy "$EditorDelegateDefault"; ac_word=$2
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30147 $as_echo_n "checking for $ac_word... " >&6; }
30148 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30149 $as_echo_n "(cached) " >&6
30151 case $EditorDelegate in
30153 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30157 for as_dir in $PATH
30160 test -z "$as_dir" && as_dir=.
30161 for ac_exec_ext in '' $ac_executable_extensions; do
30162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30163 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30171 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30175 EditorDelegate=$ac_cv_path_EditorDelegate
30176 if test -n "$EditorDelegate"; then
30177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30178 $as_echo "$EditorDelegate" >&6; }
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30181 $as_echo "no" >&6; }
30185 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30186 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30188 $as_echo_n "checking for $ac_word... " >&6; }
30189 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30190 $as_echo_n "(cached) " >&6
30192 case $FIGDecodeDelegate in
30194 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30198 for as_dir in $PATH
30201 test -z "$as_dir" && as_dir=.
30202 for ac_exec_ext in '' $ac_executable_extensions; do
30203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30204 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30212 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30216 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30217 if test -n "$FIGDecodeDelegate"; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30219 $as_echo "$FIGDecodeDelegate" >&6; }
30221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30222 $as_echo "no" >&6; }
30226 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30227 set dummy "$ConvertDelegateDefault"; ac_word=$2
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30229 $as_echo_n "checking for $ac_word... " >&6; }
30230 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30231 $as_echo_n "(cached) " >&6
30233 case $ConvertDelegate in
30235 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30239 for as_dir in $PATH
30242 test -z "$as_dir" && as_dir=.
30243 for ac_exec_ext in '' $ac_executable_extensions; do
30244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30245 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30253 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30257 ConvertDelegate=$ac_cv_path_ConvertDelegate
30258 if test -n "$ConvertDelegate"; then
30259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30260 $as_echo "$ConvertDelegate" >&6; }
30262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30263 $as_echo "no" >&6; }
30267 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30268 set dummy "$DisplayDelegateDefault"; ac_word=$2
30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30270 $as_echo_n "checking for $ac_word... " >&6; }
30271 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30272 $as_echo_n "(cached) " >&6
30274 case $DisplayDelegate in
30276 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30280 for as_dir in $PATH
30283 test -z "$as_dir" && as_dir=.
30284 for ac_exec_ext in '' $ac_executable_extensions; do
30285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30286 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30294 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30298 DisplayDelegate=$ac_cv_path_DisplayDelegate
30299 if test -n "$DisplayDelegate"; then
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30301 $as_echo "$DisplayDelegate" >&6; }
30303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30304 $as_echo "no" >&6; }
30308 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30309 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30311 $as_echo_n "checking for $ac_word... " >&6; }
30312 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30313 $as_echo_n "(cached) " >&6
30315 case $MogrifyDelegate in
30317 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30321 for as_dir in $PATH
30324 test -z "$as_dir" && as_dir=.
30325 for ac_exec_ext in '' $ac_executable_extensions; do
30326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30327 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30335 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30339 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30340 if test -n "$MogrifyDelegate"; then
30341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30342 $as_echo "$MogrifyDelegate" >&6; }
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345 $as_echo "no" >&6; }
30349 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30350 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30352 $as_echo_n "checking for $ac_word... " >&6; }
30353 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30354 $as_echo_n "(cached) " >&6
30356 case $GnuplotDecodeDelegate in
30358 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30362 for as_dir in $PATH
30365 test -z "$as_dir" && as_dir=.
30366 for ac_exec_ext in '' $ac_executable_extensions; do
30367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30368 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30376 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30380 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30381 if test -n "$GnuplotDecodeDelegate"; then
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30383 $as_echo "$GnuplotDecodeDelegate" >&6; }
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30386 $as_echo "no" >&6; }
30390 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30391 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30393 $as_echo_n "checking for $ac_word... " >&6; }
30394 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30395 $as_echo_n "(cached) " >&6
30397 case $HDRDecodeDelegate in
30399 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30403 for as_dir in $PATH
30406 test -z "$as_dir" && as_dir=.
30407 for ac_exec_ext in '' $ac_executable_extensions; do
30408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30409 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30417 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30421 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30422 if test -n "$HDRDecodeDelegate"; then
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30424 $as_echo "$HDRDecodeDelegate" >&6; }
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30427 $as_echo "no" >&6; }
30431 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30432 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30434 $as_echo_n "checking for $ac_word... " >&6; }
30435 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30436 $as_echo_n "(cached) " >&6
30438 case $HPGLDecodeDelegate in
30440 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30444 for as_dir in $PATH
30447 test -z "$as_dir" && as_dir=.
30448 for ac_exec_ext in '' $ac_executable_extensions; do
30449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30450 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30458 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30462 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30463 if test -n "$HPGLDecodeDelegate"; then
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30465 $as_echo "$HPGLDecodeDelegate" >&6; }
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30468 $as_echo "no" >&6; }
30472 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30473 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30475 $as_echo_n "checking for $ac_word... " >&6; }
30476 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30477 $as_echo_n "(cached) " >&6
30479 case $HTMLDecodeDelegate in
30481 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30485 for as_dir in $PATH
30488 test -z "$as_dir" && as_dir=.
30489 for ac_exec_ext in '' $ac_executable_extensions; do
30490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30491 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30499 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30503 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30504 if test -n "$HTMLDecodeDelegate"; then
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30506 $as_echo "$HTMLDecodeDelegate" >&6; }
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30509 $as_echo "no" >&6; }
30513 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30514 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30516 $as_echo_n "checking for $ac_word... " >&6; }
30517 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30518 $as_echo_n "(cached) " >&6
30520 case $ILBMDecodeDelegate in
30522 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30526 for as_dir in $PATH
30529 test -z "$as_dir" && as_dir=.
30530 for ac_exec_ext in '' $ac_executable_extensions; do
30531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30532 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30540 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30544 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30545 if test -n "$ILBMDecodeDelegate"; then
30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30547 $as_echo "$ILBMDecodeDelegate" >&6; }
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30550 $as_echo "no" >&6; }
30554 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30555 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30557 $as_echo_n "checking for $ac_word... " >&6; }
30558 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30559 $as_echo_n "(cached) " >&6
30561 case $ILBMEncodeDelegate in
30563 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30567 for as_dir in $PATH
30570 test -z "$as_dir" && as_dir=.
30571 for ac_exec_ext in '' $ac_executable_extensions; do
30572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30573 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30581 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30585 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30586 if test -n "$ILBMEncodeDelegate"; then
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30588 $as_echo "$ILBMEncodeDelegate" >&6; }
30590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30591 $as_echo "no" >&6; }
30595 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30596 set dummy "$LPDelegateDefault"; ac_word=$2
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30598 $as_echo_n "checking for $ac_word... " >&6; }
30599 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30600 $as_echo_n "(cached) " >&6
30602 case $LPDelegate in
30604 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30608 for as_dir in $PATH
30611 test -z "$as_dir" && as_dir=.
30612 for ac_exec_ext in '' $ac_executable_extensions; do
30613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30614 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30622 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30626 LPDelegate=$ac_cv_path_LPDelegate
30627 if test -n "$LPDelegate"; then
30628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30629 $as_echo "$LPDelegate" >&6; }
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30632 $as_echo "no" >&6; }
30636 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30637 set dummy "$LPRDelegateDefault"; ac_word=$2
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30639 $as_echo_n "checking for $ac_word... " >&6; }
30640 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30641 $as_echo_n "(cached) " >&6
30643 case $LPRDelegate in
30645 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30649 for as_dir in $PATH
30652 test -z "$as_dir" && as_dir=.
30653 for ac_exec_ext in '' $ac_executable_extensions; do
30654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30655 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30663 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30667 LPRDelegate=$ac_cv_path_LPRDelegate
30668 if test -n "$LPRDelegate"; then
30669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30670 $as_echo "$LPRDelegate" >&6; }
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30673 $as_echo "no" >&6; }
30677 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30678 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30680 $as_echo_n "checking for $ac_word... " >&6; }
30681 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30682 $as_echo_n "(cached) " >&6
30684 case $LZWDecodeDelegate in
30686 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30690 for as_dir in $PATH
30693 test -z "$as_dir" && as_dir=.
30694 for ac_exec_ext in '' $ac_executable_extensions; do
30695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30696 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30704 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30708 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30709 if test -n "$LZWDecodeDelegate"; then
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30711 $as_echo "$LZWDecodeDelegate" >&6; }
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30714 $as_echo "no" >&6; }
30718 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30719 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30721 $as_echo_n "checking for $ac_word... " >&6; }
30722 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30723 $as_echo_n "(cached) " >&6
30725 case $LZWEncodeDelegate in
30727 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30731 for as_dir in $PATH
30734 test -z "$as_dir" && as_dir=.
30735 for ac_exec_ext in '' $ac_executable_extensions; do
30736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30737 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30745 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30749 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30750 if test -n "$LZWEncodeDelegate"; then
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30752 $as_echo "$LZWEncodeDelegate" >&6; }
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755 $as_echo "no" >&6; }
30759 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30760 set dummy "$LaunchDelegateDefault"; ac_word=$2
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30762 $as_echo_n "checking for $ac_word... " >&6; }
30763 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30764 $as_echo_n "(cached) " >&6
30766 case $LaunchDelegate in
30768 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30772 for as_dir in $PATH
30775 test -z "$as_dir" && as_dir=.
30776 for ac_exec_ext in '' $ac_executable_extensions; do
30777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30778 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30786 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30790 LaunchDelegate=$ac_cv_path_LaunchDelegate
30791 if test -n "$LaunchDelegate"; then
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30793 $as_echo "$LaunchDelegate" >&6; }
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30796 $as_echo "no" >&6; }
30800 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30801 set dummy "$MANDelegateDefault"; ac_word=$2
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30803 $as_echo_n "checking for $ac_word... " >&6; }
30804 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30805 $as_echo_n "(cached) " >&6
30807 case $MANDelegate in
30809 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30813 for as_dir in $PATH
30816 test -z "$as_dir" && as_dir=.
30817 for ac_exec_ext in '' $ac_executable_extensions; do
30818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30819 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30827 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30831 MANDelegate=$ac_cv_path_MANDelegate
30832 if test -n "$MANDelegate"; then
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30834 $as_echo "$MANDelegate" >&6; }
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30837 $as_echo "no" >&6; }
30841 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30842 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30844 $as_echo_n "checking for $ac_word... " >&6; }
30845 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30846 $as_echo_n "(cached) " >&6
30848 case $MPEGDecodeDelegate in
30850 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30854 for as_dir in $PATH
30857 test -z "$as_dir" && as_dir=.
30858 for ac_exec_ext in '' $ac_executable_extensions; do
30859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30860 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30868 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30872 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30873 if test -n "$MPEGDecodeDelegate"; then
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30875 $as_echo "$MPEGDecodeDelegate" >&6; }
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30878 $as_echo "no" >&6; }
30882 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30883 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30885 $as_echo_n "checking for $ac_word... " >&6; }
30886 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30887 $as_echo_n "(cached) " >&6
30889 case $MPEGEncodeDelegate in
30891 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30895 for as_dir in $PATH
30898 test -z "$as_dir" && as_dir=.
30899 for ac_exec_ext in '' $ac_executable_extensions; do
30900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30901 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30909 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30913 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30914 if test -n "$MPEGEncodeDelegate"; then
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30916 $as_echo "$MPEGEncodeDelegate" >&6; }
30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30919 $as_echo "no" >&6; }
30923 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30924 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30926 $as_echo_n "checking for $ac_word... " >&6; }
30927 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30928 $as_echo_n "(cached) " >&6
30930 case $MrSIDDecodeDelegate in
30932 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30936 for as_dir in $PATH
30939 test -z "$as_dir" && as_dir=.
30940 for ac_exec_ext in '' $ac_executable_extensions; do
30941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30942 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30950 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30954 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30955 if test -n "$MrSIDDecodeDelegate"; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30957 $as_echo "$MrSIDDecodeDelegate" >&6; }
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960 $as_echo "no" >&6; }
30964 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30965 set dummy "$MVDelegateDefault"; ac_word=$2
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30967 $as_echo_n "checking for $ac_word... " >&6; }
30968 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30969 $as_echo_n "(cached) " >&6
30971 case $MVDelegate in
30973 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30977 for as_dir in $PATH
30980 test -z "$as_dir" && as_dir=.
30981 for ac_exec_ext in '' $ac_executable_extensions; do
30982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30983 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30991 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30995 MVDelegate=$ac_cv_path_MVDelegate
30996 if test -n "$MVDelegate"; then
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30998 $as_echo "$MVDelegate" >&6; }
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31001 $as_echo "no" >&6; }
31005 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31006 set dummy "$PCLDelegateDefault"; ac_word=$2
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31008 $as_echo_n "checking for $ac_word... " >&6; }
31009 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
31010 $as_echo_n "(cached) " >&6
31012 case $PCLDelegate in
31014 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31018 for as_dir in $PATH
31021 test -z "$as_dir" && as_dir=.
31022 for ac_exec_ext in '' $ac_executable_extensions; do
31023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31024 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31032 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31036 PCLDelegate=$ac_cv_path_PCLDelegate
31037 if test -n "$PCLDelegate"; then
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31039 $as_echo "$PCLDelegate" >&6; }
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31042 $as_echo "no" >&6; }
31046 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31047 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31049 $as_echo_n "checking for $ac_word... " >&6; }
31050 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
31051 $as_echo_n "(cached) " >&6
31053 case $PGPDecodeDelegate in
31055 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31059 for as_dir in $PATH
31062 test -z "$as_dir" && as_dir=.
31063 for ac_exec_ext in '' $ac_executable_extensions; do
31064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31065 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31073 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31077 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31078 if test -n "$PGPDecodeDelegate"; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31080 $as_echo "$PGPDecodeDelegate" >&6; }
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31087 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31088 set dummy "$POVDelegateDefault"; ac_word=$2
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31090 $as_echo_n "checking for $ac_word... " >&6; }
31091 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31092 $as_echo_n "(cached) " >&6
31094 case $POVDelegate in
31096 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31100 for as_dir in $PATH
31103 test -z "$as_dir" && as_dir=.
31104 for ac_exec_ext in '' $ac_executable_extensions; do
31105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31106 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31114 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31118 POVDelegate=$ac_cv_path_POVDelegate
31119 if test -n "$POVDelegate"; then
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31121 $as_echo "$POVDelegate" >&6; }
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31124 $as_echo "no" >&6; }
31128 for ac_prog in gsx gsc "$PSDelegateDefault"
31130 # Extract the first word of "$ac_prog", so it can be a program name with args.
31131 set dummy $ac_prog; ac_word=$2
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31133 $as_echo_n "checking for $ac_word... " >&6; }
31134 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31135 $as_echo_n "(cached) " >&6
31137 case $PSDelegate in
31139 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31143 for as_dir in $PATH
31146 test -z "$as_dir" && as_dir=.
31147 for ac_exec_ext in '' $ac_executable_extensions; do
31148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31149 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31160 PSDelegate=$ac_cv_path_PSDelegate
31161 if test -n "$PSDelegate"; then
31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31163 $as_echo "$PSDelegate" >&6; }
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31166 $as_echo "no" >&6; }
31170 test -n "$PSDelegate" && break
31172 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31174 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31175 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31177 $as_echo_n "checking for $ac_word... " >&6; }
31178 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31179 $as_echo_n "(cached) " >&6
31181 case $RLEEncodeDelegate in
31183 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31187 for as_dir in $PATH
31190 test -z "$as_dir" && as_dir=.
31191 for ac_exec_ext in '' $ac_executable_extensions; do
31192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31193 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31201 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31205 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31206 if test -n "$RLEEncodeDelegate"; then
31207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31208 $as_echo "$RLEEncodeDelegate" >&6; }
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31211 $as_echo "no" >&6; }
31215 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31216 set dummy "$RMDelegateDefault"; ac_word=$2
31217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31218 $as_echo_n "checking for $ac_word... " >&6; }
31219 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31220 $as_echo_n "(cached) " >&6
31222 case $RMDelegate in
31224 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31228 for as_dir in $PATH
31231 test -z "$as_dir" && as_dir=.
31232 for ac_exec_ext in '' $ac_executable_extensions; do
31233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31234 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31242 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31246 RMDelegate=$ac_cv_path_RMDelegate
31247 if test -n "$RMDelegate"; then
31248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31249 $as_echo "$RMDelegate" >&6; }
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31252 $as_echo "no" >&6; }
31256 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31257 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31259 $as_echo_n "checking for $ac_word... " >&6; }
31260 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31261 $as_echo_n "(cached) " >&6
31263 case $RSVGDecodeDelegate in
31265 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31269 for as_dir in $PATH
31272 test -z "$as_dir" && as_dir=.
31273 for ac_exec_ext in '' $ac_executable_extensions; do
31274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31275 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31283 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31287 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31288 if test -n "$RSVGDecodeDelegate"; then
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31290 $as_echo "$RSVGDecodeDelegate" >&6; }
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31293 $as_echo "no" >&6; }
31297 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31298 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31300 $as_echo_n "checking for $ac_word... " >&6; }
31301 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31302 $as_echo_n "(cached) " >&6
31304 case $SCANDecodeDelegate in
31306 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31310 for as_dir in $PATH
31313 test -z "$as_dir" && as_dir=.
31314 for ac_exec_ext in '' $ac_executable_extensions; do
31315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31316 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31324 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31328 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31329 if test -n "$SCANDecodeDelegate"; then
31330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31331 $as_echo "$SCANDecodeDelegate" >&6; }
31333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31334 $as_echo "no" >&6; }
31338 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31339 set dummy "$TXTDelegateDefault"; ac_word=$2
31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31341 $as_echo_n "checking for $ac_word... " >&6; }
31342 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31343 $as_echo_n "(cached) " >&6
31345 case $TXTDelegate in
31347 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31351 for as_dir in $PATH
31354 test -z "$as_dir" && as_dir=.
31355 for ac_exec_ext in '' $ac_executable_extensions; do
31356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31357 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31365 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31369 TXTDelegate=$ac_cv_path_TXTDelegate
31370 if test -n "$TXTDelegate"; then
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31372 $as_echo "$TXTDelegate" >&6; }
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 $as_echo "no" >&6; }
31379 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31380 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31382 $as_echo_n "checking for $ac_word... " >&6; }
31383 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31384 $as_echo_n "(cached) " >&6
31386 case $WMFDecodeDelegate in
31388 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31392 for as_dir in $PATH
31395 test -z "$as_dir" && as_dir=.
31396 for ac_exec_ext in '' $ac_executable_extensions; do
31397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31398 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31406 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31410 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31411 if test -n "$WMFDecodeDelegate"; then
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31413 $as_echo "$WMFDecodeDelegate" >&6; }
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31416 $as_echo "no" >&6; }
31420 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31421 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31423 $as_echo_n "checking for $ac_word... " >&6; }
31424 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31425 $as_echo_n "(cached) " >&6
31427 case $WWWDecodeDelegate in
31429 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31433 for as_dir in $PATH
31436 test -z "$as_dir" && as_dir=.
31437 for ac_exec_ext in '' $ac_executable_extensions; do
31438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31439 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31447 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31451 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31452 if test -n "$WWWDecodeDelegate"; then
31453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31454 $as_echo "$WWWDecodeDelegate" >&6; }
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31457 $as_echo "no" >&6; }
31461 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31462 set dummy "$XPSDelegateDefault"; ac_word=$2
31463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31464 $as_echo_n "checking for $ac_word... " >&6; }
31465 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31466 $as_echo_n "(cached) " >&6
31468 case $XPSDelegate in
31470 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31474 for as_dir in $PATH
31477 test -z "$as_dir" && as_dir=.
31478 for ac_exec_ext in '' $ac_executable_extensions; do
31479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31480 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31488 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31492 XPSDelegate=$ac_cv_path_XPSDelegate
31493 if test -n "$XPSDelegate"; then
31494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31495 $as_echo "$XPSDelegate" >&6; }
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31502 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31503 set dummy "$ZipDelegateDefault"; ac_word=$2
31504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31505 $as_echo_n "checking for $ac_word... " >&6; }
31506 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31507 $as_echo_n "(cached) " >&6
31509 case $ZipDelegate in
31511 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31515 for as_dir in $PATH
31518 test -z "$as_dir" && as_dir=.
31519 for ac_exec_ext in '' $ac_executable_extensions; do
31520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31521 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31529 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31533 ZipDelegate=$ac_cv_path_ZipDelegate
31534 if test -n "$ZipDelegate"; then
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31536 $as_echo "$ZipDelegate" >&6; }
31538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31539 $as_echo "no" >&6; }
31544 # Prefer lpr to lp; lp needs options tacked on.
31545 if test "$LPRDelegate" != no; then
31546 PrintDelegate="$LPRDelegate"
31548 PrintDelegate="$LPDelegate -c -s"
31552 # Installed ImageMagick utiltity paths
31553 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31554 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31555 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31557 # Set delegate booleans
31558 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31559 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31560 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31561 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31562 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31563 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31564 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31565 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31566 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31567 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31568 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31569 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31572 # Test for font directories
31574 type_include_files=''
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31578 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31580 if test "${with_dejavu_font_dir}" != 'default'; then
31581 dejavu_font_dir="${with_dejavu_font_dir}/"
31583 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31584 if test -f "${font_dir}DejaVuSerif.ttf"; then
31585 dejavu_font_dir="${font_dir}"
31590 if test "${dejavu_font_dir}x" != 'x'; then
31591 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31593 $as_echo "$dejavu_font_dir" >&6; }
31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31596 $as_echo "not found!" >&6; };
31601 windows_font_dir=''
31602 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31603 windows_font_dir="${with_windows_font_dir}/"
31605 if test "${windows_font_dir}x" != 'x'; then
31606 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31607 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31609 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31610 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31612 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31613 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31616 if test "${windows_font_dir}x" != 'x'; then
31617 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31623 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31624 ghostscript_font_dir=''
31625 if test "${with_gs_font_dir}" != 'default'; then
31626 ghostscript_font_dir="${with_gs_font_dir}/"
31628 if test "${native_win32_build}" = 'yes'; then
31629 # Native Windows Build
31630 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31631 if test -f "${font_dir}a010013l.pfb"; then
31632 ghostscript_font_dir="$font_dir"
31636 if test "${PSDelegate}" != 'gswin32c'; then
31637 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31640 # Linux / Mac OS X / Unix Build
31641 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
31642 if test -f "${font_dir}a010013l.pfb"; then
31643 ghostscript_font_dir="${font_dir}"
31647 if test "${ghostscript_font_dir}x" = 'x'; then
31648 if test "$PSDelegate" != 'gs'; then
31649 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31654 if test "${ghostscript_font_dir}x" != 'x'; then
31655 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31657 $as_echo "$ghostscript_font_dir" >&6; }
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31660 $as_echo "not found!" >&6; };
31663 case "${build_os}" in
31665 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31672 # Handle case where user doesn't want frozen paths
31674 if test "$with_frozenpaths" != 'yes'; then
31675 # Re-set delegate definitions to default (no paths)
31676 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31677 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31678 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31679 BZIPDelegate="$BZIPDelegateDefault"
31680 BrowseDelegate="$BrowseDelegateDefault"
31681 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31682 CatDelegate="$CatDelegateDefault"
31683 ConvertDelegate="$ConvertDelegateDefault"
31684 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31685 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31686 EchoDelegate="$EchoDelegateDefault"
31687 EditorDelegate="$EditorDelegateDefault"
31688 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31689 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31690 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31691 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31692 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31693 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31694 LPDelegate="$LPDelegateDefault"
31695 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31696 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31697 LaunchDelegate="$LaunchDelegateDefault"
31698 MANDelegate="$MANDelegateDefault"
31699 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31700 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31701 MogrifyDelegate="$MogrifyDelegateDefault"
31702 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31703 MVDelegate="$MVDelegateDefault"
31704 PCLDelegate="$PCLDelegateDefault"
31705 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31706 POVDelegate="$POVDelegateDefault"
31707 PSDelegate="$PSDelegateDefault"
31708 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31709 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31710 RMDelegate="$RMDelegateDefault"
31711 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31712 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31713 ShowImageDelegate="$ShowImageDelegateDefault"
31714 TXTDelegate="$TXTDelegateDefault"
31715 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31716 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31717 XPSDelegate="$XPSDelegateDefault"
31718 ZipDelegate="$ZipDelegateDefault"
31721 # Delegate substitutions
31769 for ac_prog in gnutar gtar tar
31771 # Extract the first word of "$ac_prog", so it can be a program name with args.
31772 set dummy $ac_prog; ac_word=$2
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31774 $as_echo_n "checking for $ac_word... " >&6; }
31775 if test "${ac_cv_prog_TAR+set}" = set; then :
31776 $as_echo_n "(cached) " >&6
31778 if test -n "$TAR"; then
31779 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31782 for as_dir in $PATH
31785 test -z "$as_dir" && as_dir=.
31786 for ac_exec_ext in '' $ac_executable_extensions; do
31787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31788 ac_cv_prog_TAR="$ac_prog"
31789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31798 TAR=$ac_cv_prog_TAR
31799 if test -n "$TAR"; then
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31801 $as_echo "$TAR" >&6; }
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31804 $as_echo "no" >&6; }
31808 test -n "$TAR" && break
31811 for ac_prog in perl
31813 # Extract the first word of "$ac_prog", so it can be a program name with args.
31814 set dummy $ac_prog; ac_word=$2
31815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31816 $as_echo_n "checking for $ac_word... " >&6; }
31817 if test "${ac_cv_prog_PERL+set}" = set; then :
31818 $as_echo_n "(cached) " >&6
31820 if test -n "$PERL"; then
31821 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31824 for as_dir in $PATH
31827 test -z "$as_dir" && as_dir=.
31828 for ac_exec_ext in '' $ac_executable_extensions; do
31829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31830 ac_cv_prog_PERL="$ac_prog"
31831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31840 PERL=$ac_cv_prog_PERL
31841 if test -n "$PERL"; then
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31843 $as_echo "$PERL" >&6; }
31845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31846 $as_echo "no" >&6; }
31850 test -n "$PERL" && break
31853 for ac_prog in rpmbuild rpm
31855 # Extract the first word of "$ac_prog", so it can be a program name with args.
31856 set dummy $ac_prog; ac_word=$2
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31858 $as_echo_n "checking for $ac_word... " >&6; }
31859 if test "${ac_cv_prog_RPM+set}" = set; then :
31860 $as_echo_n "(cached) " >&6
31862 if test -n "$RPM"; then
31863 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31866 for as_dir in $PATH
31869 test -z "$as_dir" && as_dir=.
31870 for ac_exec_ext in '' $ac_executable_extensions; do
31871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31872 ac_cv_prog_RPM="$ac_prog"
31873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31882 RPM=$ac_cv_prog_RPM
31883 if test -n "$RPM"; then
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31885 $as_echo "$RPM" >&6; }
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31888 $as_echo "no" >&6; }
31892 test -n "$RPM" && break
31896 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31899 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31902 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31905 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31908 if test "x$RPM" != "x" ; then
31910 RPM_DELEGATE_FALSE='#'
31912 RPM_DELEGATE_TRUE='#'
31913 RPM_DELEGATE_FALSE=
31918 # 7ZIP support (http://p7zip.sourceforge.net/)
31923 # Extract the first word of "$ac_prog", so it can be a program name with args.
31924 set dummy $ac_prog; ac_word=$2
31925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31926 $as_echo_n "checking for $ac_word... " >&6; }
31927 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31928 $as_echo_n "(cached) " >&6
31930 if test -n "$P7ZIP"; then
31931 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31934 for as_dir in $PATH
31937 test -z "$as_dir" && as_dir=.
31938 for ac_exec_ext in '' $ac_executable_extensions; do
31939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31940 ac_cv_prog_P7ZIP="$ac_prog"
31941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31950 P7ZIP=$ac_cv_prog_P7ZIP
31951 if test -n "$P7ZIP"; then
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31953 $as_echo "$P7ZIP" >&6; }
31955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31956 $as_echo "no" >&6; }
31960 test -n "$P7ZIP" && break
31964 if test "x$P7ZIP" != "x" ; then
31965 P7ZIP_DELEGATE_TRUE=
31966 P7ZIP_DELEGATE_FALSE='#'
31968 P7ZIP_DELEGATE_TRUE='#'
31969 P7ZIP_DELEGATE_FALSE=
31974 # ZIP support (http://www.info-zip.org/Zip.html)
31979 # Extract the first word of "$ac_prog", so it can be a program name with args.
31980 set dummy $ac_prog; ac_word=$2
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31982 $as_echo_n "checking for $ac_word... " >&6; }
31983 if test "${ac_cv_prog_ZIP+set}" = set; then :
31984 $as_echo_n "(cached) " >&6
31986 if test -n "$ZIP"; then
31987 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31990 for as_dir in $PATH
31993 test -z "$as_dir" && as_dir=.
31994 for ac_exec_ext in '' $ac_executable_extensions; do
31995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31996 ac_cv_prog_ZIP="$ac_prog"
31997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32006 ZIP=$ac_cv_prog_ZIP
32007 if test -n "$ZIP"; then
32008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32009 $as_echo "$ZIP" >&6; }
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32012 $as_echo "no" >&6; }
32016 test -n "$ZIP" && break
32020 if test "x$ZIP" != "x" ; then
32022 ZIP_DELEGATE_FALSE='#'
32024 ZIP_DELEGATE_TRUE='#'
32025 ZIP_DELEGATE_FALSE=
32030 # GhostPCL related configuration.
32032 PCLColorDevice=ppmraw
32033 PCLCMYKDevice=bmpsep8
32034 PCLMonoDevice=pbmraw
32035 if test -z "$PCLVersion"; then
32036 PCLVersion='unknown'
32038 if test $have_pcl = 'yes'; then
32039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32040 $as_echo "-------------------------------------------------------------" >&6; }
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32042 $as_echo_n "checking for PCL... " >&6; }
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32047 $as_echo_n "checking for pcl color device... " >&6; }
32048 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32051 PCLColorDevice=ppmraw
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32054 $as_echo "$PCLColorDevice" >&6; }
32057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32058 $as_echo_n "checking for pcl CMYK device... " >&6; }
32059 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32062 PCLCMYKDevice=$PCLColorDevice
32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32065 $as_echo "$PCLCMYKDevice" >&6; }
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32069 $as_echo_n "checking for pcl mono device... " >&6; }
32070 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32073 PCLMonoDevice=$PCLColorDevice
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32076 $as_echo "$PCLMonoDevice" >&6; }
32085 # GhostXPS related configuration.
32087 XPSColorDevice=ppmraw
32088 XPSCMYKDevice=bmpsep8
32089 XPSMonoDevice=pbmraw
32090 if test -z "$XPSVersion"; then
32091 XPSVersion='unknown'
32093 if test $have_xps = 'yes'; then
32094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32095 $as_echo "-------------------------------------------------------------" >&6; }
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32097 $as_echo_n "checking for XPS... " >&6; }
32098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32102 $as_echo_n "checking for xps color device... " >&6; }
32103 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32106 XPSColorDevice=ppmraw
32108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32109 $as_echo "$XPSColorDevice" >&6; }
32112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32113 $as_echo_n "checking for xps CMYK device... " >&6; }
32114 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32117 XPSCMYKDevice=$XPSColorDevice
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32120 $as_echo "$XPSCMYKDevice" >&6; }
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32124 $as_echo_n "checking for xps mono device... " >&6; }
32125 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32128 XPSMonoDevice=$XPSColorDevice
32130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32131 $as_echo "$XPSMonoDevice" >&6; }
32140 # Ghostscript related configuration.
32142 if test "$have_png" = 'yes'; then
32143 GSAlphaDevice=pngalpha
32145 GSAlphaDevice=pnmraw
32147 GSColorDevice=pnmraw
32149 GSMonoDevice=pbmraw
32150 GSPDFDevice=pdfwrite
32152 GSEPSDevice=epswrite
32153 GSVersion='unknown'
32154 if test $have_gs = 'yes'; then
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32156 $as_echo "-------------------------------------------------------------" >&6; }
32157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32158 $as_echo_n "checking for Ghostscript... " >&6; }
32159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32162 $as_echo_n "checking for Ghostscript version... " >&6; }
32163 if GSVersion=`$PSDelegate --version`; then
32166 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32169 $as_echo "$GSVersion" >&6; }
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32173 $as_echo_n "checking for gs alpha device... " >&6; }
32174 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32177 GSAlphaDevice=pnmraw
32179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32180 $as_echo "$GSAlphaDevice" >&6; }
32183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32184 $as_echo_n "checking for gs color device... " >&6; }
32185 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32188 GSColorDevice=pnmraw
32190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32191 $as_echo "$GSColorDevice" >&6; }
32194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32195 $as_echo_n "checking for gs CMYK device... " >&6; }
32196 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32199 GSCMYKDevice=bmpsep8
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32202 $as_echo "$GSCMYKDevice" >&6; }
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32206 $as_echo_n "checking for gs mono device... " >&6; }
32207 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32210 GSMonoDevice=$GSColorDevice
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32213 $as_echo "$GSMonoDevice" >&6; }
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32217 $as_echo_n "checking for gs PDF writing device... " >&6; }
32218 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32221 GSPDFDevice=nodevice
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32224 $as_echo "$GSPDFDevice" >&6; }
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32228 $as_echo_n "checking for gs PS writing device... " >&6; }
32229 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32232 GSPSDevice=nodevice
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32235 $as_echo "$GSPSDevice" >&6; }
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32239 $as_echo_n "checking for gs EPS writing device... " >&6; }
32240 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32243 GSEPSDevice=nodevice
32245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32246 $as_echo "$GSEPSDevice" >&6; }
32259 # PerlMagick-related configuration
32262 # Look for PERL if PerlMagick requested
32263 # If name/path of desired PERL interpreter is specified, look for that one first
32265 if test "$with_perl" != 'no'; then
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32267 $as_echo "-------------------------------------------------------------" >&6; }
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32269 $as_echo_n "checking for Perl... " >&6; }
32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32272 if test "$with_perl" != 'yes'; then
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32274 $as_echo_n "checking for perl... " >&6; }
32275 if test "${ac_cv_path_PERL+set}" = set; then :
32276 $as_echo_n "(cached) " >&6
32278 ac_cv_path_PERL="$with_perl"
32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32281 $as_echo "$ac_cv_path_PERL" >&6; };
32282 PERL=$ac_cv_path_PERL
32283 have_perl="$ac_cv_path_PERL"
32285 for ac_prog in perl perl5
32287 # Extract the first word of "$ac_prog", so it can be a program name with args.
32288 set dummy $ac_prog; ac_word=$2
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32290 $as_echo_n "checking for $ac_word... " >&6; }
32291 if test "${ac_cv_path_PERL+set}" = set; then :
32292 $as_echo_n "(cached) " >&6
32296 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32300 for as_dir in $PATH
32303 test -z "$as_dir" && as_dir=.
32304 for ac_exec_ext in '' $ac_executable_extensions; do
32305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32306 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32317 PERL=$ac_cv_path_PERL
32318 if test -n "$PERL"; then
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32320 $as_echo "$PERL" >&6; }
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32323 $as_echo "no" >&6; }
32327 test -n "$PERL" && break
32329 if test "$ac_cv_path_PERL"; then
32330 have_perl="$ac_cv_path_PERL"
32335 if test "$with_perl" != 'yes' ; then
32336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32339 PERL_SUPPORTS_DESTDIR='no'
32341 with_perl_static='no'
32342 with_perl_dynamic='no'
32343 if test "$have_perl" != 'no'; then
32344 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32345 with_perl_static='yes'
32347 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32348 with_perl_dynamic='yes'
32350 # Is PERL's MakeMaker new enough to support DESTDIR?
32355 if test -n "$PERL"; then :
32357 ax_perl_version="5.8.1"
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32360 $as_echo_n "checking for perl version... " >&6; }
32362 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32365 $as_echo "$perl_version" >&6; }
32367 PERL_VERSION=$perl_version
32373 # Used to indicate true or false condition
32374 ax_compare_version=false
32376 # Convert the two version strings to be compared into a format that
32377 # allows a simple string comparison. The end result is that a version
32378 # string of the form 1.12.5-r617 will be converted to the form
32379 # 0001001200050617. In other words, each number is zero padded to four
32380 # digits, and non digits are removed.
32382 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32383 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32384 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32385 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32389 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32390 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32391 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32392 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32396 ax_compare_version=`echo "x$ax_compare_version_A
32397 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32401 if test "$ax_compare_version" = "true" ; then
32404 PERL_SUPPORTS_DESTDIR='yes'
32408 PERL_SUPPORTS_DESTDIR='no'
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32416 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32417 PERL_SUPPORTS_DESTDIR='no'
32422 if test "$have_perl" != 'no'; then
32424 WITH_PERL_FALSE='#'
32430 if test $with_perl_static = 'yes'; then
32431 WITH_PERL_STATIC_TRUE=
32432 WITH_PERL_STATIC_FALSE='#'
32434 WITH_PERL_STATIC_TRUE='#'
32435 WITH_PERL_STATIC_FALSE=
32438 if test $with_perl_dynamic = 'yes'; then
32439 WITH_PERL_DYNAMIC_TRUE=
32440 WITH_PERL_DYNAMIC_FALSE='#'
32442 WITH_PERL_DYNAMIC_TRUE='#'
32443 WITH_PERL_DYNAMIC_FALSE=
32448 # Determine path to pick up MagickCore library from for use with building PerlMagick
32449 MAGICKCORE_PATH="${LIB_DIR}"
32450 if test $with_perl_static = 'yes'; then
32451 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32452 libtool_objdir=$objdir
32454 # Linker search path to library, followed by -lMagickCore
32455 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32459 # Create a simple string containing format names for all delegate libraries
32461 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32462 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32463 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32464 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32465 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32466 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32467 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32468 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32469 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32470 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32471 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32472 if test "$have_jpeg" = 'yes'; then
32473 DELEGATES="$DELEGATES jpeg";
32474 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32476 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32477 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32478 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32479 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32480 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32481 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32482 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32483 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32484 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32485 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32486 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32487 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32488 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32493 # Handle special compiler flags
32496 # Add '-p' if prof source profiling support enabled
32497 if test "$enable_prof" = 'yes'; then
32498 CFLAGS="-p $CFLAGS"
32499 CXXFLAGS="-p $CXXFLAGS"
32500 LDFLAGS="-p $LDFLAGS"
32503 # Add '-pg' if gprof source profiling support enabled
32504 if test "$enable_gprof" = 'yes'; then
32505 CFLAGS="-pg $CFLAGS"
32506 CXXFLAGS="-pg $CXXFLAGS"
32507 LDFLAGS="-pg $LDFLAGS"
32510 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32511 # This is a gcc-specific feature
32512 if test "$enable_gcov" = 'yes'; then
32513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32514 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32515 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32516 $as_echo_n "(cached) " >&6
32518 ac_check_lib_save_LIBS=$LIBS
32519 LIBS="-lgcov $LIBS"
32520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521 /* end confdefs.h. */
32523 /* Override any GCC internal prototype to avoid an error.
32524 Use char because int might match the return type of a GCC
32525 builtin and then its argument prototype would still apply. */
32529 char _gcov_init ();
32533 return _gcov_init ();
32538 if ac_fn_c_try_link "$LINENO"; then :
32539 ac_cv_lib_gcov__gcov_init=yes
32541 ac_cv_lib_gcov__gcov_init=no
32543 rm -f core conftest.err conftest.$ac_objext \
32544 conftest$ac_exeext conftest.$ac_ext
32545 LIBS=$ac_check_lib_save_LIBS
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32548 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32549 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32550 cat >>confdefs.h <<_ACEOF
32551 #define HAVE_LIBGCOV 1
32554 LIBS="-lgcov $LIBS"
32558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32559 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32560 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32561 $as_echo_n "(cached) " >&6
32563 ac_check_lib_save_LIBS=$LIBS
32564 LIBS="-lgcov $LIBS"
32565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32566 /* end confdefs.h. */
32568 /* Override any GCC internal prototype to avoid an error.
32569 Use char because int might match the return type of a GCC
32570 builtin and then its argument prototype would still apply. */
32574 char __gcov_init ();
32578 return __gcov_init ();
32583 if ac_fn_c_try_link "$LINENO"; then :
32584 ac_cv_lib_gcov___gcov_init=yes
32586 ac_cv_lib_gcov___gcov_init=no
32588 rm -f core conftest.err conftest.$ac_objext \
32589 conftest$ac_exeext conftest.$ac_ext
32590 LIBS=$ac_check_lib_save_LIBS
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32593 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32594 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32595 cat >>confdefs.h <<_ACEOF
32596 #define HAVE_LIBGCOV 1
32599 LIBS="-lgcov $LIBS"
32603 case "$target_os" in
32605 OSX_GCOV_LDFLAG="-Wl,-single_module"
32612 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32613 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32614 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32618 # Build library dependency list for libMagickCore
32621 MAGICK_LIBLTDL='' # Libltdl for build
32622 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32623 MAGICK_LTDLDEPS='' # extra libltdl dependencies
32624 if test "$with_ltdl" != 'no'
32626 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32627 MAGICK_API_LIBLTDL='-lltdl'
32629 MAGICK_LIBLTDL=${LIBLTDL}
32630 MAGICK_LTDLDEPS=${LTDLDEPS}
32635 if test "$with_modules" != 'no'; then
32636 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"
32638 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"
32643 # Remove extraneous spaces from output variables (asthetic)
32645 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32646 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32647 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32648 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32650 CC=`echo $CC | sed -e 's/ */ /g'`
32651 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32652 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32653 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32654 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32655 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32656 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32657 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32658 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32659 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32661 # Pass only user-provided LIBS as "global" libraries
32664 #AC_SUBST(CPPFLAGS)
32667 #AC_SUBST(X_PRE_LIBS)
32669 #AC_SUBST(X_EXTRA_LIBS)
32671 MAGICK_CFLAGS=$CFLAGS
32672 MAGICK_CXXFLAGS="$CXXFLAGS"
32673 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32674 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32675 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32676 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32685 # Set configured scripts to executable.
32686 ac_config_commands="$ac_config_commands default"
32688 ac_config_commands="$ac_config_commands MagickCore-config.in"
32690 ac_config_commands="$ac_config_commands Magick-config.in"
32692 ac_config_commands="$ac_config_commands MagickWand-config.in"
32694 ac_config_commands="$ac_config_commands Wand-config.in"
32696 ac_config_commands="$ac_config_commands Magick++-config.in"
32698 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32702 $as_echo "-------------------------------------------------------------" >&6; }
32703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32704 $as_echo "Update ImageMagick configuration" >&6; }
32705 cat >confcache <<\_ACEOF
32706 # This file is a shell script that caches the results of configure
32707 # tests run on this system so they can be shared between configure
32708 # scripts and configure runs, see configure's option --config-cache.
32709 # It is not useful on other systems. If it contains results you don't
32710 # want to keep, you may remove or edit it.
32712 # config.status only pays attention to the cache file if you give it
32713 # the --recheck option to rerun configure.
32715 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32716 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32717 # following values.
32721 # The following way of writing the cache mishandles newlines in values,
32722 # but we know of no workaround that is simple, portable, and efficient.
32723 # So, we kill variables containing newlines.
32724 # Ultrix sh set writes to stderr and can't be redirected directly,
32725 # and sets the high bit in the cache file unless we assign to the vars.
32727 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32728 eval ac_val=\$$ac_var
32732 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32733 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32736 _ | IFS | as_nl) ;; #(
32737 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32738 *) { eval $ac_var=; unset $ac_var;} ;;
32744 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32745 *${as_nl}ac_space=\ *)
32746 # `set' does not quote correctly, so add quotes: double-quote
32747 # substitution turns \\\\ into \\, and sed turns \\ into \.
32750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32753 # `set' quotes correctly as required by POSIX, so do not add quotes.
32754 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32765 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32767 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32768 if test -w "$cache_file"; then
32769 test "x$cache_file" != "x/dev/null" &&
32770 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32771 $as_echo "$as_me: updating cache $cache_file" >&6;}
32772 cat confcache >$cache_file
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32780 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32781 # Let make expand exec_prefix.
32782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32784 DEFS=-DHAVE_CONFIG_H
32788 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32789 # 1. Remove the extension, and $U if already installed.
32790 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32791 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32792 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32793 # will be set to the directory where LIBOBJS objects are built.
32794 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32795 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32797 LIBOBJS=$ac_libobjs
32799 LTLIBOBJS=$ac_ltlibobjs
32802 if test -n "$EXEEXT"; then
32804 am__EXEEXT_FALSE='#'
32806 am__EXEEXT_TRUE='#'
32810 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32811 as_fn_error "conditional \"AMDEP\" was never defined.
32812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32814 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32815 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32818 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32819 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32822 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32823 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32826 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32827 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32830 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32831 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32834 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32835 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32838 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32839 as_fn_error "conditional \"USING_CL\" was never defined.
32840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32842 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32843 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32846 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32847 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32850 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32851 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32854 LT_CONFIG_H=config/config.h
32858 if test -n "$_LT_LIBOBJS"; then
32859 # Remove the extension.
32860 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32861 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32862 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32863 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32866 ltdl_LIBOBJS=$_ltdl_libobjs
32868 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32871 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32872 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32875 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32876 as_fn_error "conditional \"WITH_MODULES\" was never defined.
32877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32879 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32880 as_fn_error "conditional \"WITH_LTDL\" was never defined.
32881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32883 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32884 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32888 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32889 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32892 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32893 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32896 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32897 as_fn_error "conditional \"HasUMEM\" was never defined.
32898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32900 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32901 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32904 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32905 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32908 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32909 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32912 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32913 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32916 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32917 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32920 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32921 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32924 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32925 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32928 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32929 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32932 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32933 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32936 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32937 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32940 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32941 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32944 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32945 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32948 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32949 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32952 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32953 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32956 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32957 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32960 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32961 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32964 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32965 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32968 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32969 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32972 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32973 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32976 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32977 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32980 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32981 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32984 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32985 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32988 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32989 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32992 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32993 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32996 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32997 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33000 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33001 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33004 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33005 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33008 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33009 as_fn_error "conditional \"WITH_PERL\" was never defined.
33010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33012 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33013 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33016 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33017 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33021 : ${CONFIG_STATUS=./config.status}
33023 ac_clean_files_save=$ac_clean_files
33024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33026 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33028 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33030 # Generated by $as_me.
33031 # Run this file to recreate the current configuration.
33032 # Compiler output produced by configure, useful for debugging
33033 # configure, is in config.log if it exists.
33036 ac_cs_recheck=false
33039 SHELL=\${CONFIG_SHELL-$SHELL}
33042 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33043 ## -------------------- ##
33044 ## M4sh Initialization. ##
33045 ## -------------------- ##
33047 # Be more Bourne compatible
33048 DUALCASE=1; export DUALCASE # for MKS sh
33049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33052 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33053 # is contrary to our usage. Disable this feature.
33054 alias -g '${1+"$@"}'='"$@"'
33055 setopt NO_GLOB_SUBST
33057 case `(set -o) 2>/dev/null` in #(
33069 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33070 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33071 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33072 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33073 # Prefer a ksh shell builtin over an external printf program on Solaris,
33074 # but without wasting forks for bash or zsh.
33075 if test -z "$BASH_VERSION$ZSH_VERSION" \
33076 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33077 as_echo='print -r --'
33078 as_echo_n='print -rn --'
33079 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33080 as_echo='printf %s\n'
33081 as_echo_n='printf %s'
33083 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33084 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33085 as_echo_n='/usr/ucb/echo -n'
33087 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33088 as_echo_n_body='eval
33092 expr "X$arg" : "X\\(.*\\)$as_nl";
33093 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33095 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33097 export as_echo_n_body
33098 as_echo_n='sh -c $as_echo_n_body as_echo'
33100 export as_echo_body
33101 as_echo='sh -c $as_echo_body as_echo'
33104 # The user is always right.
33105 if test "${PATH_SEPARATOR+set}" != set; then
33107 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33108 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33115 # We need space, tab and new line, in precisely that order. Quoting is
33116 # there to prevent editors from complaining about space-tab.
33117 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33118 # splitting by setting IFS to empty value.)
33121 # Find who we are. Look in the path if we contain no directory separator.
33123 *[\\/]* ) as_myself=$0 ;;
33124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33125 for as_dir in $PATH
33128 test -z "$as_dir" && as_dir=.
33129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33135 # We did not find ourselves, most probably we were run as `sh COMMAND'
33136 # in which case we are not to be found in the path.
33137 if test "x$as_myself" = x; then
33140 if test ! -f "$as_myself"; then
33141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33145 # Unset variables that we do not need and which cause bugs (e.g. in
33146 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33147 # suppresses any "Segmentation fault" message there. '((' could
33148 # trigger a bug in pdksh 5.2.14.
33149 for as_var in BASH_ENV ENV MAIL MAILPATH
33150 do eval test x\${$as_var+set} = xset \
33151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33164 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33167 # as_fn_error ERROR [LINENO LOG_FD]
33168 # ---------------------------------
33169 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33170 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33171 # script with status $?, using 1 if that was 0.
33174 as_status=$?; test $as_status -eq 0 && as_status=1
33176 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33179 $as_echo "$as_me: error: $1" >&2
33180 as_fn_exit $as_status
33184 # as_fn_set_status STATUS
33185 # -----------------------
33186 # Set $? to STATUS, without forking.
33187 as_fn_set_status ()
33190 } # as_fn_set_status
33192 # as_fn_exit STATUS
33193 # -----------------
33194 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33198 as_fn_set_status $1
33204 # Portably unset VAR.
33207 { eval $1=; unset $1;}
33209 as_unset=as_fn_unset
33210 # as_fn_append VAR VALUE
33211 # ----------------------
33212 # Append the text in VALUE to the end of the definition contained in VAR. Take
33213 # advantage of any shell optimizations that allow amortized linear growth over
33214 # repeated appends, instead of the typical quadratic growth present in naive
33216 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33217 eval 'as_fn_append ()
33228 # as_fn_arith ARG...
33229 # ------------------
33230 # Perform arithmetic evaluation on the ARGs, and store the result in the
33231 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33232 # must be portable across $(()) and expr.
33233 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33234 eval 'as_fn_arith ()
33241 as_val=`expr "$@" || test $? -eq 1`
33246 if expr a : '\(a\)' >/dev/null 2>&1 &&
33247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33253 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33254 as_basename=basename
33259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33265 as_me=`$as_basename -- "$0" ||
33266 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33267 X"$0" : 'X\(//\)$' \| \
33268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33270 sed '/^.*\/\([^/][^/]*\)\/*$/{
33284 # Avoid depending upon Character Ranges.
33285 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33286 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33287 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33288 as_cr_digits='0123456789'
33289 as_cr_alnum=$as_cr_Letters$as_cr_digits
33291 ECHO_C= ECHO_N= ECHO_T=
33292 case `echo -n x` in #(((((
33294 case `echo 'xy\c'` in
33295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33304 rm -f conf$$ conf$$.exe conf$$.file
33305 if test -d conf$$.dir; then
33306 rm -f conf$$.dir/conf$$.file
33309 mkdir conf$$.dir 2>/dev/null
33311 if (echo >conf$$.file) 2>/dev/null; then
33312 if ln -s conf$$.file conf$$ 2>/dev/null; then
33314 # ... but there are two gotchas:
33315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33317 # In both cases, we have to default to `cp -p'.
33318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33320 elif ln conf$$.file conf$$ 2>/dev/null; then
33328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33329 rmdir conf$$.dir 2>/dev/null
33334 # Create "$as_dir" as a directory, including parents if necessary.
33339 -*) as_dir=./$as_dir;;
33341 test -d "$as_dir" || eval $as_mkdir_p || {
33345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33346 *) as_qdir=$as_dir;;
33348 as_dirs="'$as_qdir' $as_dirs"
33349 as_dir=`$as_dirname -- "$as_dir" ||
33350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33351 X"$as_dir" : 'X\(//\)[^/]' \| \
33352 X"$as_dir" : 'X\(//\)$' \| \
33353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33354 $as_echo X"$as_dir" |
33355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33359 /^X\(\/\/\)[^/].*/{
33372 test -d "$as_dir" && break
33374 test -z "$as_dirs" || eval "mkdir $as_dirs"
33375 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33379 if mkdir -p . 2>/dev/null; then
33380 as_mkdir_p='mkdir -p "$as_dir"'
33382 test -d ./-p && rmdir ./-p
33386 if test -x / >/dev/null 2>&1; then
33387 as_test_x='test -x'
33389 if ls -dL / >/dev/null 2>&1; then
33396 if test -d "$1"; then
33402 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33403 ???[sx]*):;;*)false;;esac;fi
33407 as_executable_p=$as_test_x
33409 # Sed expression to map a string onto a valid CPP name.
33410 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33412 # Sed expression to map a string onto a valid variable name.
33413 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33417 ## ----------------------------------- ##
33418 ## Main body of $CONFIG_STATUS script. ##
33419 ## ----------------------------------- ##
33421 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33424 # Save the log message, to keep $0 and so on meaningful, and to
33425 # report actual input values of CONFIG_FILES etc. instead of their
33426 # values after options handling.
33428 This file was extended by ImageMagick $as_me 6.6.2, which was
33429 generated by GNU Autoconf 2.65. Invocation command line was
33431 CONFIG_FILES = $CONFIG_FILES
33432 CONFIG_HEADERS = $CONFIG_HEADERS
33433 CONFIG_LINKS = $CONFIG_LINKS
33434 CONFIG_COMMANDS = $CONFIG_COMMANDS
33437 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33442 case $ac_config_files in *"
33443 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33446 case $ac_config_headers in *"
33447 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33452 # Files that config.status was made for.
33453 config_files="$ac_config_files"
33454 config_headers="$ac_config_headers"
33455 config_commands="$ac_config_commands"
33459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33461 \`$as_me' instantiates files and other configuration actions
33462 from templates according to the current configuration. Unless the files
33463 and actions are specified as TAGs, all are instantiated by default.
33465 Usage: $0 [OPTION]... [TAG]...
33467 -h, --help print this help, then exit
33468 -V, --version print version number and configuration settings, then exit
33469 --config print configuration, then exit
33470 -q, --quiet, --silent
33471 do not print progress messages
33472 -d, --debug don't remove temporary files
33473 --recheck update $as_me by reconfiguring in the same conditions
33474 --file=FILE[:TEMPLATE]
33475 instantiate the configuration file FILE
33476 --header=FILE[:TEMPLATE]
33477 instantiate the configuration header FILE
33479 Configuration files:
33482 Configuration headers:
33485 Configuration commands:
33488 Report bugs to <http://www.imagemagick.org>."
33491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33492 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33494 ImageMagick config.status 6.6.2
33495 configured by $0, generated by GNU Autoconf 2.65,
33496 with options \\"\$ac_cs_config\\"
33498 Copyright (C) 2009 Free Software Foundation, Inc.
33499 This config.status script is free software; the Free Software Foundation
33500 gives unlimited permission to copy, distribute and modify it."
33507 test -n "\$AWK" || AWK=awk
33510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33511 # The default lists apply if the user does not specify any file.
33517 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33529 # Handling of the options.
33530 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33532 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33533 $as_echo "$ac_cs_version"; exit ;;
33534 --config | --confi | --conf | --con | --co | --c )
33535 $as_echo "$ac_cs_config"; exit ;;
33536 --debug | --debu | --deb | --de | --d | -d )
33538 --file | --fil | --fi | --f )
33541 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33543 as_fn_append CONFIG_FILES " '$ac_optarg'"
33544 ac_need_defaults=false;;
33545 --header | --heade | --head | --hea )
33548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33551 ac_need_defaults=false;;
33553 # Conflict between --help and --header
33554 as_fn_error "ambiguous option: \`$1'
33555 Try \`$0 --help' for more information.";;
33556 --help | --hel | -h )
33557 $as_echo "$ac_cs_usage"; exit ;;
33558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33562 # This is an error.
33563 -*) as_fn_error "unrecognized option: \`$1'
33564 Try \`$0 --help' for more information." ;;
33566 *) as_fn_append ac_config_targets " $1"
33567 ac_need_defaults=false ;;
33573 ac_configure_extra_args=
33575 if $ac_cs_silent; then
33577 ac_configure_extra_args="$ac_configure_extra_args --silent"
33581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33582 if \$ac_cs_recheck; then
33583 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33586 CONFIG_SHELL='$SHELL'
33587 export CONFIG_SHELL
33592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33597 ## Running $as_me. ##
33603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33608 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33611 # The HP-UX ksh and POSIX shell print the target directory to stdout
33612 # if CDPATH is set.
33613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33615 sed_quote_subst='$sed_quote_subst'
33616 double_quote_subst='$double_quote_subst'
33617 delay_variable_subst='$delay_variable_subst'
33618 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33619 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33620 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33621 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33622 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33623 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33624 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33625 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33626 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33627 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33628 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33629 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33630 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33631 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33632 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33633 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33634 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33635 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33636 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33637 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33638 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33639 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33640 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33641 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33642 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33643 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33644 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33645 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33646 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33647 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33648 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33649 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33650 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33651 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33652 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33653 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33654 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33655 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33656 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33657 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33658 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33659 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33660 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33661 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33662 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33663 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33664 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"`'
33665 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"`'
33666 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33667 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33668 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33669 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33670 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33671 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33672 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33673 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33674 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33675 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33676 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33677 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33678 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33679 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33680 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33681 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33682 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33683 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33684 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33685 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33686 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33687 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33688 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33689 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33690 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33691 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33692 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33693 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33694 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33695 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33696 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33697 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33698 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33699 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33700 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33701 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33702 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33703 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33704 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33705 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33706 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33707 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33708 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33709 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33710 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33711 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33712 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33713 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33714 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33715 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33716 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33717 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33718 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33719 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33720 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33721 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33722 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33723 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33724 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33725 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33726 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33727 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33728 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33729 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33730 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33731 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33732 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33733 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33734 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33735 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33736 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33737 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33738 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33739 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33740 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33741 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33742 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33743 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33744 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33745 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33746 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33747 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33748 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33749 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33750 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33751 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33752 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33753 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33754 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33755 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33756 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33757 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33758 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33759 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33760 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33761 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33762 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33763 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33764 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33765 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33766 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33767 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33768 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33769 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33770 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33771 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33772 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33773 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33774 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33775 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33776 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33777 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33778 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33779 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33780 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33781 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33782 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33783 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33784 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33785 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33786 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33787 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33788 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33789 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33790 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33793 LTCFLAGS='$LTCFLAGS'
33794 compiler='$compiler_DEFAULT'
33796 # Quote evaled strings.
33807 deplibs_check_method \
33816 lt_cv_sys_global_symbol_pipe \
33817 lt_cv_sys_global_symbol_to_cdecl \
33818 lt_cv_sys_global_symbol_to_c_name_address \
33819 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33822 lt_prog_compiler_no_builtin_flag \
33823 lt_prog_compiler_wl \
33824 lt_prog_compiler_pic \
33825 lt_prog_compiler_static \
33826 lt_cv_prog_compiler_c_o \
33834 export_dynamic_flag_spec \
33835 whole_archive_flag_spec \
33836 compiler_needs_object \
33838 allow_undefined_flag \
33839 no_undefined_flag \
33840 hardcode_libdir_flag_spec \
33841 hardcode_libdir_flag_spec_ld \
33842 hardcode_libdir_separator \
33847 variables_saved_for_relink \
33849 library_names_spec \
33854 compiler_lib_search_dirs \
33859 compiler_lib_search_path \
33862 lt_prog_compiler_no_builtin_flag_CXX \
33863 lt_prog_compiler_wl_CXX \
33864 lt_prog_compiler_pic_CXX \
33865 lt_prog_compiler_static_CXX \
33866 lt_cv_prog_compiler_c_o_CXX \
33867 export_dynamic_flag_spec_CXX \
33868 whole_archive_flag_spec_CXX \
33869 compiler_needs_object_CXX \
33871 allow_undefined_flag_CXX \
33872 no_undefined_flag_CXX \
33873 hardcode_libdir_flag_spec_CXX \
33874 hardcode_libdir_flag_spec_ld_CXX \
33875 hardcode_libdir_separator_CXX \
33876 fix_srcfile_path_CXX \
33877 exclude_expsyms_CXX \
33878 include_expsyms_CXX \
33879 file_list_spec_CXX \
33880 compiler_lib_search_dirs_CXX \
33881 predep_objects_CXX \
33882 postdep_objects_CXX \
33885 compiler_lib_search_path_CXX; do
33886 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33887 *[\\\\\\\`\\"\\\$]*)
33888 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33891 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33896 # Double-quote double-evaled strings.
33897 for var in reload_cmds \
33898 old_postinstall_cmds \
33899 old_postuninstall_cmds \
33901 extract_expsyms_cmds \
33902 old_archive_from_new_cmds \
33903 old_archive_from_expsyms_cmds \
33905 archive_expsym_cmds \
33907 module_expsym_cmds \
33908 export_symbols_cmds \
33911 postuninstall_cmds \
33913 sys_lib_search_path_spec \
33914 sys_lib_dlsearch_path_spec \
33915 old_archive_cmds_CXX \
33916 old_archive_from_new_cmds_CXX \
33917 old_archive_from_expsyms_cmds_CXX \
33919 archive_expsym_cmds_CXX \
33921 module_expsym_cmds_CXX \
33922 export_symbols_cmds_CXX \
33923 prelink_cmds_CXX; do
33924 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33925 *[\\\\\\\`\\"\\\$]*)
33926 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33929 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33934 # Fix-up fallback echo if it was mangled by the above quoting rules.
33936 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33940 ac_aux_dir='$ac_aux_dir'
33941 xsi_shell='$xsi_shell'
33942 lt_shell_append='$lt_shell_append'
33944 # See if we are running on zsh, and set the options which allow our
33945 # commands through without removal of \ escapes INIT.
33946 if test -n "\${ZSH_VERSION+set}" ; then
33947 setopt NO_GLOB_SUBST
33953 TIMESTAMP='$TIMESTAMP'
33964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33966 # Handling of arguments.
33967 for ac_config_target in $ac_config_targets
33969 case $ac_config_target in
33970 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33971 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33972 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33973 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33974 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33975 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33976 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33977 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33978 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33979 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33980 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33981 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33982 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33983 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33984 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33985 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33986 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33987 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33988 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33989 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33991 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33992 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33993 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33994 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33995 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33996 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33997 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33998 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33999 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34000 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34001 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34002 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34003 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34004 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34005 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34006 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34007 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34008 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34009 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34010 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34011 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34012 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34013 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34014 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34015 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34016 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34017 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34018 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34019 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34021 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34026 # If the user did not use the arguments to specify the items to instantiate,
34027 # then the envvar interface is used. Set only those that are not.
34028 # We use the long form for the default assignment because of an extremely
34029 # bizarre bug on SunOS 4.1.3.
34030 if $ac_need_defaults; then
34031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34036 # Have a temporary directory for convenience. Make it in the build tree
34037 # simply because there is no reason against having it here, and in addition,
34038 # creating and moving files from /tmp can sometimes cause problems.
34039 # Hook for its removal unless debugging.
34040 # Note that there is a small window in which the directory will not be cleaned:
34041 # after its creation but before its name has been assigned to `$tmp'.
34045 trap 'exit_status=$?
34046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34048 trap 'as_fn_exit 1' 1 2 13 15
34050 # Create a (secure) tmp directory for tmp files.
34053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34054 test -n "$tmp" && test -d "$tmp"
34057 tmp=./conf$$-$RANDOM
34058 (umask 077 && mkdir "$tmp")
34059 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34061 # Set up the scripts for CONFIG_FILES section.
34062 # No need to generate them if there are no CONFIG_FILES.
34063 # This happens for instance with `./config.status config.h'.
34064 if test -n "$CONFIG_FILES"; then
34067 ac_cr=`echo X | tr X '\015'`
34068 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34069 # But we know of no other shell where ac_cr would be empty at this
34070 # point, so we can use a bashism as a fallback.
34071 if test "x$ac_cr" = x; then
34072 eval ac_cr=\$\'\\r\'
34074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34078 ac_cs_awk_cr=$ac_cr
34081 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34086 echo "cat >conf$$subs.awk <<_ACEOF" &&
34087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34089 } >conf$$subs.sh ||
34090 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34093 for ac_last_try in false false false false false :; do
34094 . ./conf$$subs.sh ||
34095 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34098 if test $ac_delim_n = $ac_delim_num; then
34100 elif $ac_last_try; then
34101 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34106 rm -f conf$$subs.sh
34108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34109 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34113 s/^/S["/; s/!.*/"]=/
34123 s/\(.\{148\}\)..*/\1/
34125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34137 s/\(.\{148\}\)..*/\1/
34139 s/["\\]/\\&/g; s/^/"/; s/$/"/
34143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34148 ' <conf$$subs.awk | sed '
34153 ' >>$CONFIG_STATUS || ac_write_fail=1
34154 rm -f conf$$subs.awk
34155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34157 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34158 for (key in S) S_is_set[key] = 1
34164 nfields = split(line, field, "@")
34166 len = length(field[1])
34167 for (i = 2; i < nfields; i++) {
34169 keylen = length(key)
34170 if (S_is_set[key]) {
34172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34173 len += length(value) + length(field[++i])
34184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34189 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34190 || as_fn_error "could not setup config files machinery" "$LINENO" 5
34193 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34194 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34195 # trailing colons and then remove the whole line if VPATH becomes empty
34196 # (actually we leave an empty line to preserve line numbers).
34197 if test "x$srcdir" = x.; then
34198 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34199 s/:*\$(srcdir):*/:/
34200 s/:*\${srcdir}:*/:/
34202 s/^\([^=]*=[ ]*\):*/\1/
34208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34209 fi # test -n "$CONFIG_FILES"
34211 # Set up the scripts for CONFIG_HEADERS section.
34212 # No need to generate them if there are no CONFIG_HEADERS.
34213 # This happens for instance with `./config.status Makefile'.
34214 if test -n "$CONFIG_HEADERS"; then
34215 cat >"$tmp/defines.awk" <<\_ACAWK ||
34219 # Transform confdefs.h into an awk script `defines.awk', embedded as
34220 # here-document in config.status, that substitutes the proper values into
34221 # config.h.in to produce config.h.
34223 # Create a delimiter string that does not exist in confdefs.h, to ease
34224 # handling of long lines.
34226 for ac_last_try in false false :; do
34227 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34228 if test -z "$ac_t"; then
34230 elif $ac_last_try; then
34231 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34237 # For the awk script, D is an array of macro values keyed by name,
34238 # likewise P contains macro parameters if any. Preserve backslash
34239 # newline sequences.
34241 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34243 s/.\{148\}/&'"$ac_delim"'/g
34246 s/^[ ]*#[ ]*define[ ][ ]*/ /
34253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34259 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34260 D["\1"]=" \3\\\\\\n"\\/p
34262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34267 s/.\{148\}/&'"$ac_delim"'/g
34272 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34275 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34277 ' <confdefs.h | sed '
34278 s/'"$ac_delim"'/"\\\
34279 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34282 for (key in D) D_is_set[key] = 1
34285 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34287 split(line, arg, " ")
34288 if (arg[1] == "#") {
34292 defundef = substr(arg[1], 2)
34295 split(mac1, mac2, "(") #)
34297 prefix = substr(line, 1, index(line, defundef) - 1)
34298 if (D_is_set[macro]) {
34299 # Preserve the white space surrounding the "#".
34300 print prefix "define", macro P[macro] D[macro]
34303 # Replace #undef with comments. This is necessary, for example,
34304 # in the case of _POSIX_SOURCE, which is predefined and required
34305 # on some systems where configure will not decide to define it.
34306 if (defundef == "undef") {
34307 print "/*", prefix defundef, macro, "*/"
34315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34316 as_fn_error "could not setup config headers machinery" "$LINENO" 5
34317 fi # test -n "$CONFIG_HEADERS"
34320 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34325 :[FHLC]) ac_mode=$ac_tag; continue;;
34327 case $ac_mode$ac_tag in
34329 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34330 :[FH]-) ac_tag=-:-;;
34331 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34348 -) ac_f="$tmp/stdin";;
34349 *) # Look for the file first in the build tree, then in the source tree
34350 # (if the path is not absolute). The absolute path cannot be DOS-style,
34351 # because $ac_f cannot contain `:'.
34355 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34357 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34359 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34360 as_fn_append ac_file_inputs " '$ac_f'"
34363 # Let's still pretend it is `configure' which instantiates (i.e., don't
34364 # use $as_me), people would be surprised to read:
34365 # /* config.h. Generated by config.status. */
34366 configure_input='Generated from '`
34367 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34369 if test x"$ac_file" != x-; then
34370 configure_input="$ac_file. $configure_input"
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34372 $as_echo "$as_me: creating $ac_file" >&6;}
34374 # Neutralize special characters interpreted by sed in replacement strings.
34375 case $configure_input in #(
34376 *\&* | *\|* | *\\* )
34377 ac_sed_conf_input=`$as_echo "$configure_input" |
34378 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34379 *) ac_sed_conf_input=$configure_input;;
34383 *:-:* | *:-) cat >"$tmp/stdin" \
34384 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34389 ac_dir=`$as_dirname -- "$ac_file" ||
34390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34391 X"$ac_file" : 'X\(//\)[^/]' \| \
34392 X"$ac_file" : 'X\(//\)$' \| \
34393 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34394 $as_echo X"$ac_file" |
34395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34399 /^X\(\/\/\)[^/].*/{
34412 as_dir="$ac_dir"; as_fn_mkdir_p
34416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34419 # A ".." for each directory in $ac_dir_suffix.
34420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34421 case $ac_top_builddir_sub in
34422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34426 ac_abs_top_builddir=$ac_pwd
34427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34428 # for backward compatibility:
34429 ac_top_builddir=$ac_top_build_prefix
34432 .) # We are building in place.
34434 ac_top_srcdir=$ac_top_builddir_sub
34435 ac_abs_top_srcdir=$ac_pwd ;;
34436 [\\/]* | ?:[\\/]* ) # Absolute name.
34437 ac_srcdir=$srcdir$ac_dir_suffix;
34438 ac_top_srcdir=$srcdir
34439 ac_abs_top_srcdir=$srcdir ;;
34440 *) # Relative name.
34441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34442 ac_top_srcdir=$ac_top_build_prefix$srcdir
34443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34455 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34456 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34458 ac_MKDIR_P=$MKDIR_P
34460 [\\/$]* | ?:[\\/]* ) ;;
34461 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34466 # If the template does not know about datarootdir, expand it.
34467 # FIXME: This hack should be removed a few years after 2.60.
34468 ac_datarootdir_hack=; ac_datarootdir_seen=
34479 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34480 *datarootdir*) ac_datarootdir_seen=yes;;
34481 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34483 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34486 ac_datarootdir_hack='
34487 s&@datadir@&$datadir&g
34488 s&@docdir@&$docdir&g
34489 s&@infodir@&$infodir&g
34490 s&@localedir@&$localedir&g
34491 s&@mandir@&$mandir&g
34492 s&\\\${datarootdir}&$datarootdir&g' ;;
34496 # Neutralize VPATH when `$srcdir' = `.'.
34497 # Shell code in configure.ac might set extrasub.
34498 # FIXME: do we really want to maintain this feature?
34499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34500 ac_sed_extra="$ac_vpsub
34503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34505 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34506 s|@configure_input@|$ac_sed_conf_input|;t t
34507 s&@top_builddir@&$ac_top_builddir_sub&;t t
34508 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34509 s&@srcdir@&$ac_srcdir&;t t
34510 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34511 s&@top_srcdir@&$ac_top_srcdir&;t t
34512 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34513 s&@builddir@&$ac_builddir&;t t
34514 s&@abs_builddir@&$ac_abs_builddir&;t t
34515 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34516 s&@INSTALL@&$ac_INSTALL&;t t
34517 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34518 $ac_datarootdir_hack
34520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34521 || as_fn_error "could not create $ac_file" "$LINENO" 5
34523 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34524 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34525 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34527 which seems to be undefined. Please make sure it is defined." >&5
34528 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34529 which seems to be undefined. Please make sure it is defined." >&2;}
34533 -) cat "$tmp/out" && rm -f "$tmp/out";;
34534 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34536 || as_fn_error "could not create $ac_file" "$LINENO" 5
34542 if test x"$ac_file" != x-; then
34544 $as_echo "/* $configure_input */" \
34545 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34546 } >"$tmp/config.h" \
34547 || as_fn_error "could not create $ac_file" "$LINENO" 5
34548 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34549 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34550 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34553 mv "$tmp/config.h" "$ac_file" \
34554 || as_fn_error "could not create $ac_file" "$LINENO" 5
34557 $as_echo "/* $configure_input */" \
34558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34559 || as_fn_error "could not create -" "$LINENO" 5
34561 # Compute "$ac_file"'s index in $config_headers.
34564 for _am_header in $config_headers :; do
34565 case $_am_header in
34566 $_am_arg | $_am_arg:* )
34569 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34572 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34573 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34574 X"$_am_arg" : 'X\(//\)[^/]' \| \
34575 X"$_am_arg" : 'X\(//\)$' \| \
34576 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34577 $as_echo X"$_am_arg" |
34578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34582 /^X\(\/\/\)[^/].*/{
34594 s/.*/./; q'`/stamp-h$_am_stamp_count
34597 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34598 $as_echo "$as_me: executing $ac_file commands" >&6;}
34603 case $ac_file$ac_mode in
34604 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34605 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34606 ac_prefix_conf_PKG=`echo MagickCore`
34607 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34608 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34609 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34610 if test ".$ac_prefix_conf_INP" = "."; then
34611 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34613 *.h) ac_prefix_conf_INP=$ac_file ;;
34616 test ".$ac_prefix_conf_INP" != "." && break
34619 if test ".$ac_prefix_conf_INP" = "."; then
34620 case "$ac_prefix_conf_OUT" in
34621 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34623 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34625 *) ac_prefix_conf_INP=config.h
34629 if test -z "$ac_prefix_conf_PKG" ; then
34630 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34632 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34633 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34636 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34637 if test -f $ac_prefix_conf_INP ; then
34638 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34639 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34640 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34641 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34642 echo "#endif/" >>conftest.prefix
34643 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34644 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34645 echo "#endif/" >> conftest.prefix
34646 # now executing _script on _DEF input to create _OUT output file
34647 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34648 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34649 echo ' ' >>$tmp/pconfig.h
34650 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34652 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34653 echo ' ' >>$tmp/pconfig.h
34654 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34655 echo "#endif" >>$tmp/pconfig.h
34656 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34658 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34660 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34661 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34663 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34664 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34665 $as_echo X"$ac_prefix_conf_OUT" |
34666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34670 /^X\(\/\/\)[^/].*/{
34683 as_dir="$ac_dir"; as_fn_mkdir_p
34684 rm -f "$ac_prefix_conf_OUT"
34685 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34687 cp conftest.prefix _configs.sed
34689 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34694 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34695 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34696 # are listed without --file. Let's play safe and only enable the eval
34697 # if we detect the quoting.
34698 case $CONFIG_FILES in
34699 *\'*) eval set x "$CONFIG_FILES" ;;
34700 *) set x $CONFIG_FILES ;;
34705 # Strip MF so we end up with the name of the file.
34706 mf=`echo "$mf" | sed -e 's/:.*$//'`
34707 # Check whether this is an Automake generated Makefile or not.
34708 # We used to match only the files named `Makefile.in', but
34709 # some people rename them; so instead we look at the file content.
34710 # Grep'ing the first line is not enough: some people post-process
34711 # each Makefile.in and add a new line on top of each file to say so.
34712 # Grep'ing the whole file is not good either: AIX grep has a line
34713 # limit of 2048, but all sed's we know have understand at least 4000.
34714 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34715 dirpart=`$as_dirname -- "$mf" ||
34716 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34717 X"$mf" : 'X\(//\)[^/]' \| \
34718 X"$mf" : 'X\(//\)$' \| \
34719 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34725 /^X\(\/\/\)[^/].*/{
34741 # Extract the definition of DEPDIR, am__include, and am__quote
34742 # from the Makefile without running `make'.
34743 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34744 test -z "$DEPDIR" && continue
34745 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34746 test -z "am__include" && continue
34747 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34748 # When using ansi2knr, U may be empty or an underscore; expand it
34749 U=`sed -n 's/^U = //p' < "$mf"`
34750 # Find all dependency output files, they are included files with
34751 # $(DEPDIR) in their names. We invoke sed twice because it is the
34752 # simplest approach to changing $(DEPDIR) to its actual value in the
34754 for file in `sed -n "
34755 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34756 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34757 # Make sure the directory exists.
34758 test -f "$dirpart/$file" && continue
34759 fdir=`$as_dirname -- "$file" ||
34760 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34761 X"$file" : 'X\(//\)[^/]' \| \
34762 X"$file" : 'X\(//\)$' \| \
34763 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34764 $as_echo X"$file" |
34765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34769 /^X\(\/\/\)[^/].*/{
34782 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34783 # echo "creating $dirpart/$file"
34784 echo '# dummy' > "$dirpart/$file"
34791 # See if we are running on zsh, and set the options which allow our
34792 # commands through without removal of \ escapes.
34793 if test -n "${ZSH_VERSION+set}" ; then
34794 setopt NO_GLOB_SUBST
34797 cfgfile="${ofile}T"
34798 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34801 cat <<_LT_EOF >> "$cfgfile"
34804 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34805 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34806 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34807 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34809 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34810 # 2006, 2007, 2008 Free Software Foundation, Inc.
34811 # Written by Gordon Matzigkeit, 1996
34813 # This file is part of GNU Libtool.
34815 # GNU Libtool is free software; you can redistribute it and/or
34816 # modify it under the terms of the GNU General Public License as
34817 # published by the Free Software Foundation; either version 2 of
34818 # the License, or (at your option) any later version.
34820 # As a special exception to the GNU General Public License,
34821 # if you distribute this file as part of a program or library that
34822 # is built using GNU Libtool, you may include this file under the
34823 # same distribution terms that you use for the rest of that program.
34825 # GNU Libtool is distributed in the hope that it will be useful,
34826 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34828 # GNU General Public License for more details.
34830 # You should have received a copy of the GNU General Public License
34831 # along with GNU Libtool; see the file COPYING. If not, a copy
34832 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34833 # obtained by writing to the Free Software Foundation, Inc.,
34834 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34837 # The names of the tagged configurations supported by this script.
34838 available_tags="CXX "
34840 # ### BEGIN LIBTOOL CONFIG
34842 # A sed program that does not truncate output.
34845 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34846 Xsed="\$SED -e 1s/^X//"
34848 # A grep program that handles long lines.
34854 # A literal string matcher.
34857 # Which release of libtool.m4 was used?
34858 macro_version=$macro_version
34859 macro_revision=$macro_revision
34861 # Assembler program.
34864 # DLL creation program.
34867 # Object dumper program.
34870 # Whether or not to build shared libraries.
34871 build_libtool_libs=$enable_shared
34873 # Whether or not to build static libraries.
34874 build_old_libs=$enable_static
34876 # What type of objects to build.
34879 # Whether or not to optimize for fast installation.
34880 fast_install=$enable_fast_install
34883 host_alias=$host_alias
34887 # The build system.
34888 build_alias=$build_alias
34892 # A BSD- or MS-compatible name lister.
34895 # Whether we need soft or hard links.
34898 # What is the maximum length of a command?
34899 max_cmd_len=$max_cmd_len
34901 # Object file suffix (normally "o").
34904 # Executable file suffix (normally "").
34907 # whether the shell understands "unset".
34910 # turn spaces into newlines.
34913 # turn newlines into spaces.
34916 # How to create reloadable object files.
34917 reload_flag=$lt_reload_flag
34918 reload_cmds=$lt_reload_cmds
34920 # Method to check whether dependent libraries are shared objects.
34921 deplibs_check_method=$lt_deplibs_check_method
34923 # Command to use when deplibs_check_method == "file_magic".
34924 file_magic_cmd=$lt_file_magic_cmd
34928 AR_FLAGS=$lt_AR_FLAGS
34930 # A symbol stripping program.
34933 # Commands used to install an old-style archive.
34935 old_postinstall_cmds=$lt_old_postinstall_cmds
34936 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34941 # LTCC compiler flags.
34942 LTCFLAGS=$lt_CFLAGS
34944 # Take the output of nm and produce a listing of raw symbols and C names.
34945 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34947 # Transform the output of nm in a proper C declaration.
34948 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34950 # Transform the output of nm in a C name address pair.
34951 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34953 # Transform the output of nm in a C name address pair when lib prefix is needed.
34954 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34956 # The name of the directory that contains temporary libtool files.
34959 # Shell to use when invoking shell scripts.
34962 # An echo program that does not interpret backslashes.
34965 # Used to examine libraries when file_magic_cmd begins with "file".
34966 MAGIC_CMD=$MAGIC_CMD
34968 # Must we lock files when doing compilation?
34969 need_locks=$lt_need_locks
34971 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34972 DSYMUTIL=$lt_DSYMUTIL
34974 # Tool to change global to local symbols on Mac OS X.
34977 # Tool to manipulate fat objects and archives on Mac OS X.
34980 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34983 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34984 OTOOL64=$lt_OTOOL64
34986 # Old archive suffix (normally "a").
34989 # Shared library suffix (normally ".so").
34990 shrext_cmds=$lt_shrext_cmds
34992 # The commands to extract the exported symbol list from a shared archive.
34993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34995 # Variables whose values should be saved in libtool wrapper scripts and
34996 # restored at link time.
34997 variables_saved_for_relink=$lt_variables_saved_for_relink
34999 # Do we need the "lib" prefix for modules?
35000 need_lib_prefix=$need_lib_prefix
35002 # Do we need a version for libraries?
35003 need_version=$need_version
35005 # Library versioning type.
35006 version_type=$version_type
35008 # Shared library runtime path variable.
35009 runpath_var=$runpath_var
35011 # Shared library path variable.
35012 shlibpath_var=$shlibpath_var
35014 # Is shlibpath searched before the hard-coded library search path?
35015 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35017 # Format of library name prefix.
35018 libname_spec=$lt_libname_spec
35020 # List of archive names. First name is the real one, the rest are links.
35021 # The last name is the one that the linker finds with -lNAME
35022 library_names_spec=$lt_library_names_spec
35024 # The coded name of the library, if different from the real name.
35025 soname_spec=$lt_soname_spec
35027 # Command to use after installation of a shared archive.
35028 postinstall_cmds=$lt_postinstall_cmds
35030 # Command to use after uninstallation of a shared archive.
35031 postuninstall_cmds=$lt_postuninstall_cmds
35033 # Commands used to finish a libtool library installation in a directory.
35034 finish_cmds=$lt_finish_cmds
35036 # As "finish_cmds", except a single script fragment to be evaled but
35038 finish_eval=$lt_finish_eval
35040 # Whether we should hardcode library paths into libraries.
35041 hardcode_into_libs=$hardcode_into_libs
35043 # Compile-time system search path for libraries.
35044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35046 # Run-time system search path for libraries.
35047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35049 # Whether dlopen is supported.
35050 dlopen_support=$enable_dlopen
35052 # Whether dlopen of programs is supported.
35053 dlopen_self=$enable_dlopen_self
35055 # Whether dlopen of statically linked programs is supported.
35056 dlopen_self_static=$enable_dlopen_self_static
35058 # Commands to strip libraries.
35059 old_striplib=$lt_old_striplib
35060 striplib=$lt_striplib
35063 # The linker used to build libraries.
35066 # Commands used to build an old-style archive.
35067 old_archive_cmds=$lt_old_archive_cmds
35069 # A language specific compiler.
35072 # Is the compiler the GNU compiler?
35075 # Compiler flag to turn off builtin functions.
35076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35078 # How to pass a linker flag through the compiler.
35079 wl=$lt_lt_prog_compiler_wl
35081 # Additional compiler flags for building library objects.
35082 pic_flag=$lt_lt_prog_compiler_pic
35084 # Compiler flag to prevent dynamic linking.
35085 link_static_flag=$lt_lt_prog_compiler_static
35087 # Does compiler simultaneously support -c and -o options?
35088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35090 # Whether or not to add -lc for building shared libraries.
35091 build_libtool_need_lc=$archive_cmds_need_lc
35093 # Whether or not to disallow shared libs when runtime libs are static.
35094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35096 # Compiler flag to allow reflexive dlopens.
35097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35099 # Compiler flag to generate shared objects directly from archives.
35100 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35102 # Whether the compiler copes with passing no objects directly.
35103 compiler_needs_object=$lt_compiler_needs_object
35105 # Create an old-style archive from a shared archive.
35106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35108 # Create a temporary old-style archive to link instead of a shared archive.
35109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35111 # Commands used to build a shared archive.
35112 archive_cmds=$lt_archive_cmds
35113 archive_expsym_cmds=$lt_archive_expsym_cmds
35115 # Commands used to build a loadable module if different from building
35116 # a shared archive.
35117 module_cmds=$lt_module_cmds
35118 module_expsym_cmds=$lt_module_expsym_cmds
35120 # Whether we are building with GNU ld or not.
35121 with_gnu_ld=$lt_with_gnu_ld
35123 # Flag that allows shared libraries with undefined symbols to be built.
35124 allow_undefined_flag=$lt_allow_undefined_flag
35126 # Flag that enforces no undefined symbols.
35127 no_undefined_flag=$lt_no_undefined_flag
35129 # Flag to hardcode \$libdir into a binary during linking.
35130 # This must work even if \$libdir does not exist
35131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35133 # If ld is used when linking, flag to hardcode \$libdir into a binary
35134 # during linking. This must work even if \$libdir does not exist.
35135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35137 # Whether we need a single "-rpath" flag with a separated argument.
35138 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35140 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35141 # DIR into the resulting binary.
35142 hardcode_direct=$hardcode_direct
35144 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35145 # DIR into the resulting binary and the resulting library dependency is
35146 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35147 # library is relocated.
35148 hardcode_direct_absolute=$hardcode_direct_absolute
35150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35151 # into the resulting binary.
35152 hardcode_minus_L=$hardcode_minus_L
35154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35155 # into the resulting binary.
35156 hardcode_shlibpath_var=$hardcode_shlibpath_var
35158 # Set to "yes" if building a shared library automatically hardcodes DIR
35159 # into the library and all subsequent libraries and executables linked
35161 hardcode_automatic=$hardcode_automatic
35163 # Set to yes if linker adds runtime paths of dependent libraries
35164 # to runtime path list.
35165 inherit_rpath=$inherit_rpath
35167 # Whether libtool must link a program against all its dependency libraries.
35168 link_all_deplibs=$link_all_deplibs
35170 # Fix the shell variable \$srcfile for the compiler.
35171 fix_srcfile_path=$lt_fix_srcfile_path
35173 # Set to "yes" if exported symbols are required.
35174 always_export_symbols=$always_export_symbols
35176 # The commands to list exported symbols.
35177 export_symbols_cmds=$lt_export_symbols_cmds
35179 # Symbols that should not be listed in the preloaded symbols.
35180 exclude_expsyms=$lt_exclude_expsyms
35182 # Symbols that must always be exported.
35183 include_expsyms=$lt_include_expsyms
35185 # Commands necessary for linking programs (against libraries) with templates.
35186 prelink_cmds=$lt_prelink_cmds
35188 # Specify filename containing input files.
35189 file_list_spec=$lt_file_list_spec
35191 # How to hardcode a shared library path into an executable.
35192 hardcode_action=$hardcode_action
35194 # The directories searched by this compiler when creating a shared library.
35195 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35197 # Dependencies to place before and after the objects being linked to
35198 # create a shared library.
35199 predep_objects=$lt_predep_objects
35200 postdep_objects=$lt_postdep_objects
35201 predeps=$lt_predeps
35202 postdeps=$lt_postdeps
35204 # The library search path used internally by the compiler when linking
35205 # a shared library.
35206 compiler_lib_search_path=$lt_compiler_lib_search_path
35208 # ### END LIBTOOL CONFIG
35214 cat <<\_LT_EOF >> "$cfgfile"
35215 # AIX sometimes has problems with the GCC collect2 program. For some
35216 # reason, if we set the COLLECT_NAMES environment variable, the problems
35217 # vanish in a puff of smoke.
35218 if test "X${COLLECT_NAMES+set}" != Xset; then
35220 export COLLECT_NAMES
35227 ltmain="$ac_aux_dir/ltmain.sh"
35230 # We use sed instead of cat because bash on DJGPP gets confused if
35231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35232 # text mode, it properly converts lines to CR/LF. This bash problem
35233 # is reportedly fixed, but why not run on old versions too?
35234 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35235 || (rm -f "$cfgfile"; exit 1)
35239 cat << \_LT_EOF >> "$cfgfile"
35241 # func_dirname file append nondir_replacement
35242 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35243 # otherwise set result to NONDIR_REPLACEMENT.
35247 */*) func_dirname_result="${1%/*}${2}" ;;
35248 * ) func_dirname_result="${3}" ;;
35252 # func_basename file
35255 func_basename_result="${1##*/}"
35258 # func_dirname_and_basename file append nondir_replacement
35259 # perform func_basename and func_dirname in a single function
35261 # dirname: Compute the dirname of FILE. If nonempty,
35262 # add APPEND to the result, otherwise set result
35263 # to NONDIR_REPLACEMENT.
35264 # value returned in "$func_dirname_result"
35265 # basename: Compute filename of FILE.
35266 # value retuned in "$func_basename_result"
35267 # Implementation must be kept synchronized with func_dirname
35268 # and func_basename. For efficiency, we do not delegate to
35269 # those functions but instead duplicate the functionality here.
35270 func_dirname_and_basename ()
35273 */*) func_dirname_result="${1%/*}${2}" ;;
35274 * ) func_dirname_result="${3}" ;;
35276 func_basename_result="${1##*/}"
35279 # func_stripname prefix suffix name
35280 # strip PREFIX and SUFFIX off of NAME.
35281 # PREFIX and SUFFIX must not contain globbing or regex special
35282 # characters, hashes, percent signs, but SUFFIX may contain a leading
35283 # dot (in which case that matches only a dot).
35286 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35287 # positional parameters, so assign one to ordinary parameter first.
35288 func_stripname_result=${3}
35289 func_stripname_result=${func_stripname_result#"${1}"}
35290 func_stripname_result=${func_stripname_result%"${2}"}
35296 func_opt_split_opt=${1%%=*}
35297 func_opt_split_arg=${1#*=}
35304 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35305 *) func_lo2o_result=${1} ;;
35309 # func_xform libobj-or-source
35312 func_xform_result=${1%.*}.lo
35315 # func_arith arithmetic-term...
35318 func_arith_result=$(( $* ))
35322 # STRING may not start with a hyphen.
35325 func_len_result=${#1}
35330 *) # Bourne compatible functions.
35331 cat << \_LT_EOF >> "$cfgfile"
35333 # func_dirname file append nondir_replacement
35334 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35335 # otherwise set result to NONDIR_REPLACEMENT.
35338 # Extract subdirectory from the argument.
35339 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35340 if test "X$func_dirname_result" = "X${1}"; then
35341 func_dirname_result="${3}"
35343 func_dirname_result="$func_dirname_result${2}"
35347 # func_basename file
35350 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35354 # func_stripname prefix suffix name
35355 # strip PREFIX and SUFFIX off of NAME.
35356 # PREFIX and SUFFIX must not contain globbing or regex special
35357 # characters, hashes, percent signs, but SUFFIX may contain a leading
35358 # dot (in which case that matches only a dot).
35359 # func_strip_suffix prefix name
35363 .*) func_stripname_result=`$ECHO "X${3}" \
35364 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35365 *) func_stripname_result=`$ECHO "X${3}" \
35366 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35371 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35372 my_sed_long_arg='1s/^-[^=]*=//'
35377 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35378 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35384 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35387 # func_xform libobj-or-source
35390 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35393 # func_arith arithmetic-term...
35396 func_arith_result=`expr "$@"`
35400 # STRING may not start with a hyphen.
35403 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35409 case $lt_shell_append in
35411 cat << \_LT_EOF >> "$cfgfile"
35413 # func_append var value
35414 # Append VALUE to the end of shell variable VAR.
35422 cat << \_LT_EOF >> "$cfgfile"
35424 # func_append var value
35425 # Append VALUE to the end of shell variable VAR.
35436 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35437 || (rm -f "$cfgfile"; exit 1)
35439 mv -f "$cfgfile" "$ofile" ||
35440 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35444 cat <<_LT_EOF >> "$ofile"
35446 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35448 # The linker used to build libraries.
35451 # Commands used to build an old-style archive.
35452 old_archive_cmds=$lt_old_archive_cmds_CXX
35454 # A language specific compiler.
35455 CC=$lt_compiler_CXX
35457 # Is the compiler the GNU compiler?
35460 # Compiler flag to turn off builtin functions.
35461 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35463 # How to pass a linker flag through the compiler.
35464 wl=$lt_lt_prog_compiler_wl_CXX
35466 # Additional compiler flags for building library objects.
35467 pic_flag=$lt_lt_prog_compiler_pic_CXX
35469 # Compiler flag to prevent dynamic linking.
35470 link_static_flag=$lt_lt_prog_compiler_static_CXX
35472 # Does compiler simultaneously support -c and -o options?
35473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35475 # Whether or not to add -lc for building shared libraries.
35476 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35478 # Whether or not to disallow shared libs when runtime libs are static.
35479 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35481 # Compiler flag to allow reflexive dlopens.
35482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35484 # Compiler flag to generate shared objects directly from archives.
35485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35487 # Whether the compiler copes with passing no objects directly.
35488 compiler_needs_object=$lt_compiler_needs_object_CXX
35490 # Create an old-style archive from a shared archive.
35491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35493 # Create a temporary old-style archive to link instead of a shared archive.
35494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35496 # Commands used to build a shared archive.
35497 archive_cmds=$lt_archive_cmds_CXX
35498 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35500 # Commands used to build a loadable module if different from building
35501 # a shared archive.
35502 module_cmds=$lt_module_cmds_CXX
35503 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35505 # Whether we are building with GNU ld or not.
35506 with_gnu_ld=$lt_with_gnu_ld_CXX
35508 # Flag that allows shared libraries with undefined symbols to be built.
35509 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35511 # Flag that enforces no undefined symbols.
35512 no_undefined_flag=$lt_no_undefined_flag_CXX
35514 # Flag to hardcode \$libdir into a binary during linking.
35515 # This must work even if \$libdir does not exist
35516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35518 # If ld is used when linking, flag to hardcode \$libdir into a binary
35519 # during linking. This must work even if \$libdir does not exist.
35520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35522 # Whether we need a single "-rpath" flag with a separated argument.
35523 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35526 # DIR into the resulting binary.
35527 hardcode_direct=$hardcode_direct_CXX
35529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35530 # DIR into the resulting binary and the resulting library dependency is
35531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35532 # library is relocated.
35533 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35536 # into the resulting binary.
35537 hardcode_minus_L=$hardcode_minus_L_CXX
35539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35540 # into the resulting binary.
35541 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35543 # Set to "yes" if building a shared library automatically hardcodes DIR
35544 # into the library and all subsequent libraries and executables linked
35546 hardcode_automatic=$hardcode_automatic_CXX
35548 # Set to yes if linker adds runtime paths of dependent libraries
35549 # to runtime path list.
35550 inherit_rpath=$inherit_rpath_CXX
35552 # Whether libtool must link a program against all its dependency libraries.
35553 link_all_deplibs=$link_all_deplibs_CXX
35555 # Fix the shell variable \$srcfile for the compiler.
35556 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35558 # Set to "yes" if exported symbols are required.
35559 always_export_symbols=$always_export_symbols_CXX
35561 # The commands to list exported symbols.
35562 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35564 # Symbols that should not be listed in the preloaded symbols.
35565 exclude_expsyms=$lt_exclude_expsyms_CXX
35567 # Symbols that must always be exported.
35568 include_expsyms=$lt_include_expsyms_CXX
35570 # Commands necessary for linking programs (against libraries) with templates.
35571 prelink_cmds=$lt_prelink_cmds_CXX
35573 # Specify filename containing input files.
35574 file_list_spec=$lt_file_list_spec_CXX
35576 # How to hardcode a shared library path into an executable.
35577 hardcode_action=$hardcode_action_CXX
35579 # The directories searched by this compiler when creating a shared library.
35580 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35582 # Dependencies to place before and after the objects being linked to
35583 # create a shared library.
35584 predep_objects=$lt_predep_objects_CXX
35585 postdep_objects=$lt_postdep_objects_CXX
35586 predeps=$lt_predeps_CXX
35587 postdeps=$lt_postdeps_CXX
35589 # The library search path used internally by the compiler when linking
35590 # a shared library.
35591 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35593 # ### END LIBTOOL TAG CONFIG: CXX
35597 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35598 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35599 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35600 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35601 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35602 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35610 ac_clean_files=$ac_clean_files_save
35612 test $ac_write_fail = 0 ||
35613 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35616 # configure is writing to config.log, and then calls config.status.
35617 # config.status does its own redirection, appending to config.log.
35618 # Unfortunately, on DOS this fails, as config.log is still kept open
35619 # by configure, so config.status won't be able to write to it; its
35620 # output is simply discarded. So we exec the FD to /dev/null,
35621 # effectively closing config.log, so it can be properly (re)opened and
35622 # appended to by config.status. When coming back to configure, we
35623 # need to make the FD available again.
35624 if test "$no_create" != yes; then
35626 ac_config_status_args=
35627 test "$silent" = yes &&
35628 ac_config_status_args="$ac_config_status_args --quiet"
35630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35633 # would make configure fail if this is the last instruction.
35634 $ac_cs_success || as_fn_exit $?
35636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35642 rm -f magick-version
35644 result_dejavu_font_dir='none'
35645 if test "${dejavu_font_dir}x" != 'x'; then
35646 result_dejavu_font_dir=$dejavu_font_dir
35649 result_ghostscript_font_dir='none'
35650 if test "${ghostscript_font_dir}x" != 'x'; then
35651 result_ghostscript_font_dir=$ghostscript_font_dir
35654 result_windows_font_dir='none'
35655 if test "${windows_font_dir}x" != 'x'; then
35656 result_windows_font_dir=${windows_font_dir}
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35660 ImageMagick is configured as follows. Please verify that this configuration
35661 matches your expectations.
35663 Host system type: $host
35664 Build system type: $build
35667 -------------------------------------------------------------------------------
35668 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35669 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35670 Module support --with-modules=$with_modules $with_modules
35671 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35672 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35673 High Dynamic Range Imagery
35674 --enable-hdri=$enable_hdri $enable_hdri
35676 Delegate Configuration:
35677 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35678 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35679 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35680 DJVU --with-djvu=$with_djvu $have_djvu
35681 DPS --with-dps=$with_dps $have_dps
35682 FFTW --with-fftw=$with_fftw $have_fftw
35683 FlashPIX --with-fpx=$with_fpx $have_fpx
35684 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35685 FreeType --with-freetype=$with_freetype $have_freetype
35686 GhostPCL None $PCLDelegate ($PCLVersion)
35687 GhostXPS None $XPSDelegate ($XPSVersion)
35688 Ghostscript None $PSDelegate ($GSVersion)
35689 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35690 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35691 Graphviz --with-gvc=$with_gvc $have_gvc
35692 JBIG --with-jbig=$with_jbig $have_jbig
35693 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35694 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35695 LCMS v1 --with-lcms=$with_lcms $have_lcms
35696 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35697 LQR --with-lqr=$with_lqr $have_lqr
35698 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35699 OpenEXR --with-openexr=$with_openexr $have_openexr
35700 PERL --with-perl=$with_perl $have_perl
35701 PNG --with-png=$with_png $have_png
35702 RSVG --with-rsvg=$with_rsvg $have_rsvg
35703 TIFF --with-tiff=$with_tiff $have_tiff
35704 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35705 WMF --with-wmf=$with_wmf $have_wmf
35706 X11 --with-x=$with_x $have_x
35707 XML --with-xml=$with_xml $have_xml
35708 ZLIB --with-zlib=$with_zlib $have_zlib
35711 X_CFLAGS = $X_CFLAGS
35712 X_PRE_LIBS = $X_PRE_LIBS
35714 X_EXTRA_LIBS = $X_EXTRA_LIBS
35716 Options used to compile and link:
35717 PREFIX = $PREFIX_DIR
35718 EXEC-PREFIX = $EXEC_PREFIX_DIR
35719 VERSION = $PACKAGE_VERSION
35722 CPPFLAGS = $MAGICK_CPPFLAGS
35723 PCFLAGS = $MAGICK_PCFLAGS
35726 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35727 LIBS = $MAGICK_LIBS
35729 CXXFLAGS = $CXXFLAGS
35732 ImageMagick is configured as follows. Please verify that this configuration
35733 matches your expectations.
35735 Host system type: $host
35736 Build system type: $build
35739 -------------------------------------------------------------------------------
35740 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35741 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35742 Module support --with-modules=$with_modules $with_modules
35743 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35744 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35745 High Dynamic Range Imagery
35746 --enable-hdri=$enable_hdri $enable_hdri
35748 Delegate Configuration:
35749 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35750 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35751 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35752 DJVU --with-djvu=$with_djvu $have_djvu
35753 DPS --with-dps=$with_dps $have_dps
35754 FFTW --with-fftw=$with_fftw $have_fftw
35755 FlashPIX --with-fpx=$with_fpx $have_fpx
35756 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35757 FreeType --with-freetype=$with_freetype $have_freetype
35758 GhostPCL None $PCLDelegate ($PCLVersion)
35759 GhostXPS None $XPSDelegate ($XPSVersion)
35760 Ghostscript None $PSDelegate ($GSVersion)
35761 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35762 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35763 Graphviz --with-gvc=$with_gvc $have_gvc
35764 JBIG --with-jbig=$with_jbig $have_jbig
35765 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35766 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35767 LCMS v1 --with-lcms=$with_lcms $have_lcms
35768 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35769 LQR --with-lqr=$with_lqr $have_lqr
35770 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35771 OpenEXR --with-openexr=$with_openexr $have_openexr
35772 PERL --with-perl=$with_perl $have_perl
35773 PNG --with-png=$with_png $have_png
35774 RSVG --with-rsvg=$with_rsvg $have_rsvg
35775 TIFF --with-tiff=$with_tiff $have_tiff
35776 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35777 WMF --with-wmf=$with_wmf $have_wmf
35778 X11 --with-x=$with_x $have_x
35779 XML --with-xml=$with_xml $have_xml
35780 ZLIB --with-zlib=$with_zlib $have_zlib
35783 X_CFLAGS = $X_CFLAGS
35784 X_PRE_LIBS = $X_PRE_LIBS
35786 X_EXTRA_LIBS = $X_EXTRA_LIBS
35788 Options used to compile and link:
35789 PREFIX = $PREFIX_DIR
35790 EXEC-PREFIX = $EXEC_PREFIX_DIR
35791 VERSION = $PACKAGE_VERSION
35794 CPPFLAGS = $MAGICK_CPPFLAGS
35795 PCFLAGS = $MAGICK_PCFLAGS
35798 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35799 LIBS = $MAGICK_LIBS
35801 CXXFLAGS = $CXXFLAGS