2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for lcms2 2.4.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
569 PACKAGE_TARNAME='lcms2'
570 PACKAGE_VERSION='2.4'
571 PACKAGE_STRING='lcms2 2.4'
575 # Factoring default headers for most tests.
576 ac_includes_default="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars='am__EXEEXT_FALSE
630 MAINTAINER_MODE_FALSE
688 INSTALL_STRIP_PROGRAM
741 program_transform_name
754 enable_option_checking
758 enable_dependency_tracking
766 enable_maintainer_mode
768 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 ac_unrecognized_opts=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
797 program_transform_name=s,x,x,
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
843 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848 # Accept the important Cygnus configure options, so we can diagnose typos.
850 case $ac_dashdash$ac_option in
854 -bindir | --bindir | --bindi | --bind | --bin | --bi)
856 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 -build | --build | --buil | --bui | --bu)
860 ac_prev=build_alias ;;
861 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
862 build_alias=$ac_optarg ;;
864 -cache-file | --cache-file | --cache-fil | --cache-fi \
865 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
866 ac_prev=cache_file ;;
867 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
868 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
869 cache_file=$ac_optarg ;;
872 cache_file=config.cache ;;
874 -datadir | --datadir | --datadi | --datad)
876 -datadir=* | --datadir=* | --datadi=* | --datad=*)
877 datadir=$ac_optarg ;;
879 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
880 | --dataroo | --dataro | --datar)
881 ac_prev=datarootdir ;;
882 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
883 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
884 datarootdir=$ac_optarg ;;
886 -disable-* | --disable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=no ;;
902 -docdir | --docdir | --docdi | --doc | --do)
904 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
909 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 -enable-* | --enable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
926 eval enable_$ac_useropt=\$ac_optarg ;;
928 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
929 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
930 | --exec | --exe | --ex)
931 ac_prev=exec_prefix ;;
932 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
933 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
934 | --exec=* | --exe=* | --ex=*)
935 exec_prefix=$ac_optarg ;;
937 -gas | --gas | --ga | --g)
938 # Obsolete; use --with-gas.
941 -help | --help | --hel | --he | -h)
943 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
944 ac_init_help=recursive ;;
945 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
946 ac_init_help=short ;;
948 -host | --host | --hos | --ho)
949 ac_prev=host_alias ;;
950 -host=* | --host=* | --hos=* | --ho=*)
951 host_alias=$ac_optarg ;;
953 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 htmldir=$ac_optarg ;;
959 -includedir | --includedir | --includedi | --included | --include \
960 | --includ | --inclu | --incl | --inc)
961 ac_prev=includedir ;;
962 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
963 | --includ=* | --inclu=* | --incl=* | --inc=*)
964 includedir=$ac_optarg ;;
966 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
969 infodir=$ac_optarg ;;
971 -libdir | --libdir | --libdi | --libd)
973 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
977 | --libexe | --libex | --libe)
978 ac_prev=libexecdir ;;
979 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
980 | --libexe=* | --libex=* | --libe=*)
981 libexecdir=$ac_optarg ;;
983 -localedir | --localedir | --localedi | --localed | --locale)
985 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
986 localedir=$ac_optarg ;;
988 -localstatedir | --localstatedir | --localstatedi | --localstated \
989 | --localstate | --localstat | --localsta | --localst | --locals)
990 ac_prev=localstatedir ;;
991 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
992 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
993 localstatedir=$ac_optarg ;;
995 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 -nfp | --nfp | --nf)
1001 # Obsolete; use --without-fp.
1004 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1005 | --no-cr | --no-c | -n)
1008 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1009 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1013 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1014 | --oldin | --oldi | --old | --ol | --o)
1015 ac_prev=oldincludedir ;;
1016 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1017 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1018 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1019 oldincludedir=$ac_optarg ;;
1021 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1024 prefix=$ac_optarg ;;
1026 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1027 | --program-pre | --program-pr | --program-p)
1028 ac_prev=program_prefix ;;
1029 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1030 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1031 program_prefix=$ac_optarg ;;
1033 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1034 | --program-suf | --program-su | --program-s)
1035 ac_prev=program_suffix ;;
1036 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1037 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1038 program_suffix=$ac_optarg ;;
1040 -program-transform-name | --program-transform-name \
1041 | --program-transform-nam | --program-transform-na \
1042 | --program-transform-n | --program-transform- \
1043 | --program-transform | --program-transfor \
1044 | --program-transfo | --program-transf \
1045 | --program-trans | --program-tran \
1046 | --progr-tra | --program-tr | --program-t)
1047 ac_prev=program_transform_name ;;
1048 -program-transform-name=* | --program-transform-name=* \
1049 | --program-transform-nam=* | --program-transform-na=* \
1050 | --program-transform-n=* | --program-transform-=* \
1051 | --program-transform=* | --program-transfor=* \
1052 | --program-transfo=* | --program-transf=* \
1053 | --program-trans=* | --program-tran=* \
1054 | --progr-tra=* | --program-tr=* | --program-t=*)
1055 program_transform_name=$ac_optarg ;;
1057 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1060 pdfdir=$ac_optarg ;;
1062 -psdir | --psdir | --psdi | --psd | --ps)
1064 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1068 | -silent | --silent | --silen | --sile | --sil)
1071 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 sbindir=$ac_optarg ;;
1077 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1078 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1079 | --sharedst | --shareds | --shared | --share | --shar \
1081 ac_prev=sharedstatedir ;;
1082 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1083 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1084 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 sharedstatedir=$ac_optarg ;;
1088 -site | --site | --sit)
1090 -site=* | --site=* | --sit=*)
1093 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1096 srcdir=$ac_optarg ;;
1098 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1099 | --syscon | --sysco | --sysc | --sys | --sy)
1100 ac_prev=sysconfdir ;;
1101 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1102 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1103 sysconfdir=$ac_optarg ;;
1105 -target | --target | --targe | --targ | --tar | --ta | --t)
1106 ac_prev=target_alias ;;
1107 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1108 target_alias=$ac_optarg ;;
1110 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1113 -version | --version | --versio | --versi | --vers | -V)
1114 ac_init_version=: ;;
1117 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid package name: $ac_useropt"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=\$ac_optarg ;;
1132 -without-* | --without-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error $? "invalid package name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1146 eval with_$ac_useropt=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1167 Try \`$0 --help' for more information"
1171 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1172 # Reject names that are not valid shell variable names.
1173 case $ac_envvar in #(
1174 '' | [0-9]* | *[!_$as_cr_alnum]* )
1175 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 as_fn_error $? "missing argument to $ac_option"
1196 if test -n "$ac_unrecognized_opts"; then
1197 case $enable_option_checking in
1199 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1200 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 # Check all directory arguments for consistency.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1211 # Remove trailing slashes.
1214 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1215 eval $ac_var=\$ac_val;;
1217 # Be sure to have absolute directory names.
1219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1225 # There might be people who depend on the old broken behavior: `$host'
1226 # used to hold the argument of --host etc.
1227 # FIXME: To remove some day.
1230 target=$target_alias
1232 # FIXME: To remove some day.
1233 if test "x$host_alias" != x; then
1234 if test "x$build_alias" = x; then
1235 cross_compiling=maybe
1236 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1237 If a cross compiler is detected then cross compile mode will be used" >&2
1238 elif test "x$build_alias" != "x$host_alias"; then
1244 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246 test "$silent" = yes && exec 6>/dev/null
1249 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1250 ac_ls_di=`ls -di .` &&
1251 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1252 as_fn_error $? "working directory cannot be determined"
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 as_fn_error $? "pwd does not report name of working directory"
1257 # Find the source files, if location was not specified.
1258 if test -z "$srcdir"; then
1259 ac_srcdir_defaulted=yes
1260 # Try the directory containing this script, then the parent directory.
1261 ac_confdir=`$as_dirname -- "$as_myself" ||
1262 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1263 X"$as_myself" : 'X\(//\)[^/]' \| \
1264 X"$as_myself" : 'X\(//\)$' \| \
1265 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1266 $as_echo X"$as_myself" |
1267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1289 ac_srcdir_defaulted=no
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1292 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1293 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1297 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures lcms2 2.4 to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking ...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of lcms2 2.4:";;
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --disable-dependency-tracking speeds up one-time build
1402 --enable-dependency-tracking do not reject slow dependency extractors
1403 --enable-shared[=PKGS] build shared libraries [default=yes]
1404 --enable-static[=PKGS] build static libraries [default=yes]
1405 --enable-fast-install[=PKGS]
1406 optimize for fast installation [default=yes]
1407 --disable-libtool-lock avoid locking (might break parallel builds)
1408 --enable-maintainer-mode enable make rules and dependencies not useful
1409 (and sometimes confusing) to the casual installer
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --without-jpeg disable JPEG support
1415 --without-tiff disable TIFF support
1416 --without-zlib disable ZLIB support
1417 --with-pic try to use only PIC/non-PIC objects [default=use
1419 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1420 --with-sysroot=DIR Search for dependent libraries within DIR
1421 (or the compiler's sysroot if not specified).
1423 Some influential environment variables:
1424 CC C compiler command
1425 CFLAGS C compiler flags
1426 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1427 nonstandard directory <lib dir>
1428 LIBS libraries to pass to the linker, e.g. -l<library>
1429 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1430 you have headers in a nonstandard directory <include dir>
1432 CXX C++ compiler command
1433 CXXFLAGS C++ compiler flags
1434 CXXCPP C++ preprocessor
1436 Use these variables to override the choices made by `configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1439 Report bugs to the package provider.
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1503 generated by GNU Autoconf 2.68
1505 Copyright (C) 2010 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1516 # ac_fn_c_try_compile LINENO
1517 # --------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_compile ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.$ac_objext; then :
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550 as_fn_set_status $ac_retval
1552 } # ac_fn_c_try_compile
1554 # ac_fn_c_try_cpp LINENO
1555 # ----------------------
1556 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { { ac_try="$ac_cpp conftest.$ac_ext"
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } > conftest.i && {
1576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1591 # ac_fn_cxx_try_compile LINENO
1592 # ----------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_cxx_try_compile ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_cxx_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1627 } # ac_fn_cxx_try_compile
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 $as_test_x conftest$ac_exeext
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_c_try_link
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1692 if ac_fn_c_try_compile "$LINENO"; then :
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 } # ac_fn_c_check_header_compile
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1771 # include <limits.h>
1773 # include <assert.h>
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1800 if ac_fn_c_try_link "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_func
1815 # ac_fn_cxx_try_cpp LINENO
1816 # ------------------------
1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_cpp ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_cpp conftest.$ac_ext"
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } > conftest.i && {
1837 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1838 test ! -s conftest.err
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1848 as_fn_set_status $ac_retval
1850 } # ac_fn_cxx_try_cpp
1852 # ac_fn_cxx_try_link LINENO
1853 # -------------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_cxx_try_link ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext conftest$ac_exeext
1859 if { { ac_try="$ac_link"
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>conftest.err
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_cxx_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest$ac_exeext && {
1878 test "$cross_compiling" = yes ||
1879 $as_test_x conftest$ac_exeext
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1889 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1890 # interfere with the next link command; also delete a directory that is
1891 # left behind by Apple's compiler. We do this before executing the actions.
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_cxx_try_link
1898 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1901 # the include files in INCLUDES and setting the cache variable VAR
1903 ac_fn_c_check_header_mongrel ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if eval \${$3+:} false; then :
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 # Is the header compilable?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1918 $as_echo_n "checking $2 usability... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1924 if ac_fn_c_try_compile "$LINENO"; then :
1925 ac_header_compiler=yes
1927 ac_header_compiler=no
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1931 $as_echo "$ac_header_compiler" >&6; }
1933 # Is the header present?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1935 $as_echo_n "checking $2 presence... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 if ac_fn_c_try_cpp "$LINENO"; then :
1941 ac_header_preproc=yes
1943 ac_header_preproc=no
1945 rm -f conftest.err conftest.i conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1947 $as_echo "$ac_header_preproc" >&6; }
1949 # So? What about this header?
1950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1953 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1959 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1961 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1963 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1965 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1967 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1975 eval "$3=\$ac_header_compiler"
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_header_mongrel
1984 cat >config.log <<_ACEOF
1985 This file contains any messages produced by compilers while
1986 running configure, to aid debugging if configure makes a mistake.
1988 It was created by lcms2 $as_me 2.4, which was
1989 generated by GNU Autoconf 2.68. Invocation command line was
2001 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2002 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2003 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2004 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2005 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2007 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2008 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2010 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2011 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2012 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2013 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2014 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2015 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2016 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 $as_echo "PATH: $as_dir"
2041 # Keep a trace of the command line.
2042 # Strip out --no-create and --no-recursion so they do not pile up.
2043 # Strip out --silent because we don't want to record it for future runs.
2044 # Also quote any args containing shell meta-characters.
2045 # Make two passes to allow for proper duplicate-argument suppression.
2049 ac_must_keep_next=false
2055 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2057 | -silent | --silent | --silen | --sile | --sil)
2060 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2065 as_fn_append ac_configure_args1 " '$ac_arg'"
2066 if test $ac_must_keep_next = true; then
2067 ac_must_keep_next=false # Got value, back to normal.
2070 *=* | --config-cache | -C | -disable-* | --disable-* \
2071 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2072 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2073 | -with-* | --with-* | -without-* | --without-* | --x)
2074 case "$ac_configure_args0 " in
2075 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078 -* ) ac_must_keep_next=true ;;
2081 as_fn_append ac_configure_args " '$ac_arg'"
2086 { ac_configure_args0=; unset ac_configure_args0;}
2087 { ac_configure_args1=; unset ac_configure_args1;}
2089 # When interrupted or exit'd, cleanup temporary files, and complete
2090 # config.log. We remove comments because anyway the quotes in there
2091 # would cause problems or look ugly.
2092 # WARNING: Use '\'' to represent an apostrophe within the trap.
2093 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2094 trap 'exit_status=$?
2095 # Save into config.log some information that might help in debugging.
2099 $as_echo "## ---------------- ##
2100 ## Cache variables. ##
2101 ## ---------------- ##"
2103 # The following way of writing the cache mishandles newlines in values,
2105 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2106 eval ac_val=\$$ac_var
2110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114 _ | IFS | as_nl) ;; #(
2115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2116 *) { eval $ac_var=; unset $ac_var;} ;;
2121 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2122 *${as_nl}ac_space=\ *)
2124 "s/'\''/'\''\\\\'\'''\''/g;
2125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2135 $as_echo "## ----------------- ##
2136 ## Output variables. ##
2137 ## ----------------- ##"
2139 for ac_var in $ac_subst_vars
2141 eval ac_val=\$$ac_var
2143 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 $as_echo "$ac_var='\''$ac_val'\''"
2149 if test -n "$ac_subst_files"; then
2150 $as_echo "## ------------------- ##
2151 ## File substitutions. ##
2152 ## ------------------- ##"
2154 for ac_var in $ac_subst_files
2156 eval ac_val=\$$ac_var
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 $as_echo "$ac_var='\''$ac_val'\''"
2165 if test -s confdefs.h; then
2166 $as_echo "## ----------- ##
2173 test "$ac_signal" != 0 &&
2174 $as_echo "$as_me: caught signal $ac_signal"
2175 $as_echo "$as_me: exit $exit_status"
2177 rm -f core *.core core.conftest.* &&
2178 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181 for ac_signal in 1 2 13 15; do
2182 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2189 $as_echo "/* confdefs.h */" > confdefs.h
2191 # Predefined preprocessor variables.
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_NAME "$PACKAGE_NAME"
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_STRING "$PACKAGE_STRING"
2209 cat >>confdefs.h <<_ACEOF
2210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_URL "$PACKAGE_URL"
2218 # Let the site file select an alternate cache file if it wants to.
2219 # Prefer an explicitly selected file to automatically selected ones.
2222 if test -n "$CONFIG_SITE"; then
2223 # We do not want a PATH search for config.site.
2224 case $CONFIG_SITE in #((
2225 -*) ac_site_file1=./$CONFIG_SITE;;
2226 */*) ac_site_file1=$CONFIG_SITE;;
2227 *) ac_site_file1=./$CONFIG_SITE;;
2229 elif test "x$prefix" != xNONE; then
2230 ac_site_file1=$prefix/share/config.site
2231 ac_site_file2=$prefix/etc/config.site
2233 ac_site_file1=$ac_default_prefix/share/config.site
2234 ac_site_file2=$ac_default_prefix/etc/config.site
2236 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2238 test "x$ac_site_file" = xNONE && continue
2239 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2241 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2242 sed 's/^/| /' "$ac_site_file" >&5
2244 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 as_fn_error $? "failed to load site script $ac_site_file
2247 See \`config.log' for more details" "$LINENO" 5 ; }
2251 if test -r "$cache_file"; then
2252 # Some versions of bash will fail to source /dev/null (special files
2253 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2254 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2256 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2259 *) . "./$cache_file";;
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2264 $as_echo "$as_me: creating cache $cache_file" >&6;}
2268 # Check that the precious variables saved in the cache have kept the same
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2283 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x $ac_old_val`
2290 ac_new_val_w=`echo x $ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2294 ac_cache_corrupted=:
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2338 # Libtool library revision control info
2339 # See the libtool documentation under the heading "Libtool's versioning
2340 # system" in order to understand the meaning of these fields
2342 # Here are a set of rules to help you update your library version
2345 # 1. Start with version information of `0:0:0' for each libtool library.
2346 # 2. Update the version information only immediately before a public
2347 # release of your software. More frequent updates are unnecessary, and
2348 # only guarantee that the current interface number gets larger faster.
2349 # 3. If the library source code has changed at all since the last update,
2350 # then increment revision (`c:r:a' becomes `c:r+1:a').
2351 # 4. If any interfaces have been added, removed, or changed since the last
2352 # update, increment current, and set revision to 0.
2353 # 5. If any interfaces have been added since the last public release, then
2355 # 6. If any interfaces have been removed since the last public release,
2356 # then set age to 0.
2363 # Obtain system type by running config.guess
2365 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2366 if test -f "$ac_dir/install-sh"; then
2368 ac_install_sh="$ac_aux_dir/install-sh -c"
2370 elif test -f "$ac_dir/install.sh"; then
2372 ac_install_sh="$ac_aux_dir/install.sh -c"
2374 elif test -f "$ac_dir/shtool"; then
2376 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 if test -z "$ac_aux_dir"; then
2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2384 # These three variables are undocumented and unsupported,
2385 # and are intended to be withdrawn in a future Autoconf release.
2386 # They can cause serious problems if a builder's source tree is in a directory
2387 # whose full name contains unusual characters.
2388 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2389 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2390 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2393 # Make sure we can run config.sub.
2394 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2395 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2398 $as_echo_n "checking build system type... " >&6; }
2399 if ${ac_cv_build+:} false; then :
2400 $as_echo_n "(cached) " >&6
2402 ac_build_alias=$build_alias
2403 test "x$ac_build_alias" = x &&
2404 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2405 test "x$ac_build_alias" = x &&
2406 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2407 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2408 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2412 $as_echo "$ac_cv_build" >&6; }
2413 case $ac_cv_build in
2415 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2418 ac_save_IFS=$IFS; IFS='-'
2424 # Remember, the first character of IFS is used to create $*,
2425 # except with old shells:
2428 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2432 $as_echo_n "checking host system type... " >&6; }
2433 if ${ac_cv_host+:} false; then :
2434 $as_echo_n "(cached) " >&6
2436 if test "x$host_alias" = x; then
2437 ac_cv_host=$ac_cv_build
2439 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2445 $as_echo "$ac_cv_host" >&6; }
2448 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2451 ac_save_IFS=$IFS; IFS='-'
2457 # Remember, the first character of IFS is used to create $*,
2458 # except with old shells:
2461 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2465 am__api_version='1.11'
2467 # Find a good install program. We prefer a C program (faster),
2468 # so one script is as good as another. But avoid the broken or
2469 # incompatible versions:
2470 # SysV /etc/install, /usr/sbin/install
2471 # SunOS /usr/etc/install
2472 # IRIX /sbin/install
2474 # AmigaOS /C/install, which installs bootblocks on floppy discs
2475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2478 # OS/2's system install, which has a completely different semantic
2479 # ./install, which can be erroneously created by make from ./install.sh.
2480 # Reject install programs that cannot install multiple files.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2483 if test -z "$INSTALL"; then
2484 if ${ac_cv_path_install+:} false; then :
2485 $as_echo_n "(cached) " >&6
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 # Account for people who put trailing slashes in PATH elements.
2493 case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2505 if test $ac_prog = install &&
2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2507 # AIX install. It has an incompatible calling convention.
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 rm -rf conftest.one conftest.two conftest.dir
2539 if test "${ac_cv_path_install+set}" = set; then
2540 INSTALL=$ac_cv_path_install
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 INSTALL=$ac_install_sh
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550 $as_echo "$INSTALL" >&6; }
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2561 $as_echo_n "checking whether build environment is sane... " >&6; }
2564 echo timestamp > conftest.file
2565 # Reject unsafe characters in $srcdir or the absolute working directory
2566 # name. Accept space and tab only in the latter.
2570 *[\\\"\#\$\&\'\`$am_lf]*)
2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2575 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2584 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2587 set X `ls -t "$srcdir/configure" conftest.file`
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" "$LINENO" 5
2601 test "$2" = conftest.file
2607 as_fn_error $? "newly created file is older than distributed files!
2608 Check your system clock" "$LINENO" 5
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2611 $as_echo "yes" >&6; }
2612 test "$program_prefix" != NONE &&
2613 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2617 # Double any \ or $.
2618 # By default was `s,x,x', remove it if useless.
2619 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2620 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2625 if test x"${MISSING+set}" != xset; then
2628 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2630 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2639 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2642 if test x"${install_sh}" != xset; then
2645 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2647 install_sh="\${SHELL} $am_aux_dir/install-sh"
2651 # Installed binaries are usually stripped using `strip' when the user
2652 # run `make install-strip'. However `strip' might not be the right
2653 # tool to use in cross-compilation environments, therefore Automake
2654 # will honor the `STRIP' environment variable to overrule this program.
2655 if test "$cross_compiling" != no; then
2656 if test -n "$ac_tool_prefix"; then
2657 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}strip; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_STRIP+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$STRIP"; then
2665 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 STRIP=$ac_cv_prog_STRIP
2685 if test -n "$STRIP"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2687 $as_echo "$STRIP" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2695 if test -z "$ac_cv_prog_STRIP"; then
2697 # Extract the first word of "strip", so it can be a program name with args.
2698 set dummy strip; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 if test -n "$ac_ct_STRIP"; then
2705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_STRIP="strip"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2725 if test -n "$ac_ct_STRIP"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2727 $as_echo "$ac_ct_STRIP" >&6; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2733 if test "x$ac_ct_STRIP" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2739 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2740 ac_tool_warned=yes ;;
2745 STRIP="$ac_cv_prog_STRIP"
2749 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2752 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2753 if test -z "$MKDIR_P"; then
2754 if ${ac_cv_path_mkdir+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2761 test -z "$as_dir" && as_dir=.
2762 for ac_prog in mkdir gmkdir; do
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2765 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2766 'mkdir (GNU coreutils) '* | \
2767 'mkdir (coreutils) '* | \
2768 'mkdir (fileutils) '4.1*)
2769 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2779 test -d ./--version && rmdir ./--version
2780 if test "${ac_cv_path_mkdir+set}" = set; then
2781 MKDIR_P="$ac_cv_path_mkdir -p"
2783 # As a last resort, use the slow shell script. Don't cache a
2784 # value for MKDIR_P within a source directory, because that will
2785 # break other packages using the cache if that directory is
2786 # removed, or if the value is a relative name.
2787 MKDIR_P="$ac_install_sh -d"
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2791 $as_echo "$MKDIR_P" >&6; }
2795 [\\/$]* | ?:[\\/]*) ;;
2796 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2799 for ac_prog in gawk mawk nawk awk
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$AWK"; then
2809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_AWK="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$AWK"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2838 test -n "$AWK" && break
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846 $as_echo_n "(cached) " >&6
2848 cat >conftest.make <<\_ACEOF
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2879 rmdir .tst 2>/dev/null
2881 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2882 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2883 # is not polluted with repeated "-I."
2884 am__isrc=' -I$(srcdir)'
2885 # test to see if srcdir already configured
2886 if test -f $srcdir/config.status; then
2887 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2891 # test whether we have cygpath
2892 if test -z "$CYGPATH_W"; then
2893 if (cygpath --version) >/dev/null 2>/dev/null; then
2894 CYGPATH_W='cygpath -w'
2901 # Define the identity of the package.
2906 # Some tools Automake needs.
2908 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2911 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2914 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2917 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2922 # We need awk for the "check" target. The system "awk" is bad on
2924 # Always define AMTAR for backward compatibility. Yes, it's still used
2925 # in the wild :-( We should find a proper way to deprecate it ...
2928 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2937 # Check whether --with-jpeg was given.
2938 if test "${with_jpeg+set}" = set; then :
2939 withval=$with_jpeg; with_jpeg=$withval
2947 # Check whether --with-tiff was given.
2948 if test "${with_tiff+set}" = set; then :
2949 withval=$with_tiff; with_tiff=$withval
2957 # Check whether --with-zlib was given.
2958 if test "${with_zlib+set}" = set; then :
2959 withval=$with_zlib; with_zlib=$withval
2965 # Check for programs
2966 DEPDIR="${am__leading_dot}deps"
2968 ac_config_commands="$ac_config_commands depfiles"
2971 am_make=${MAKE-make}
2972 cat > confinc << 'END'
2974 @echo this is the am__doit target
2977 # If we don't find an include directive, just comment out the code.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2979 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2983 # First try GNU make style include.
2984 echo "include confinc" > confmf
2985 # Ignore all kinds of additional output from `make'.
2986 case `$am_make -s -f confmf 2> /dev/null` in #(
2987 *the\ am__doit\ target*)
2993 # Now try BSD make style include.
2994 if test "$am__include" = "#"; then
2995 echo '.include "confinc"' > confmf
2996 case `$am_make -s -f confmf 2> /dev/null` in #(
2997 *the\ am__doit\ target*)
2998 am__include=.include
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3007 $as_echo "$_am_result" >&6; }
3008 rm -f confinc confmf
3010 # Check whether --enable-dependency-tracking was given.
3011 if test "${enable_dependency_tracking+set}" = set; then :
3012 enableval=$enable_dependency_tracking;
3015 if test "x$enable_dependency_tracking" != xno; then
3016 am_depcomp="$ac_aux_dir/depcomp"
3020 if test "x$enable_dependency_tracking" != xno; then
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test -n "$CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065 $as_echo "$CC" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3073 if test -z "$ac_cv_prog_CC"; then
3075 # Extract the first word of "gcc", so it can be a program name with args.
3076 set dummy gcc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="gcc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3111 if test "x$ac_ct_CC" = x; then
3114 case $cross_compiling:$ac_tool_warned in
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3129 set dummy ${ac_tool_prefix}cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145 ac_cv_prog_CC="${ac_tool_prefix}cc"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3167 if test -z "$CC"; then
3168 # Extract the first word of "cc", so it can be a program name with args.
3169 set dummy cc; ac_word=$2
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 $as_echo_n "checking for $ac_word... " >&6; }
3172 if ${ac_cv_prog_CC+:} false; then :
3173 $as_echo_n "(cached) " >&6
3175 if test -n "$CC"; then
3176 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3186 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3187 ac_prog_rejected=yes
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test $ac_prog_rejected = yes; then
3199 # We found a bogon in the path, so make sure we never use it.
3200 set dummy $ac_cv_prog_CC
3202 if test $# != 0; then
3203 # We chose a different compiler from the bogus one.
3204 # However, it has the same basename, so the bogon will be chosen
3205 # first if we set CC to just the basename; use the full file name.
3207 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3223 if test -z "$CC"; then
3224 if test -n "$ac_tool_prefix"; then
3225 for ac_prog in cl.exe
3227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232 $as_echo_n "(cached) " >&6
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3264 test -n "$CC" && break
3267 if test -z "$CC"; then
3269 for ac_prog in cl.exe
3271 # Extract the first word of "$ac_prog", so it can be a program name with args.
3272 set dummy $ac_prog; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$ac_ct_CC"; then
3279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_ac_ct_CC="$ac_prog"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3299 if test -n "$ac_ct_CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3301 $as_echo "$ac_ct_CC" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3308 test -n "$ac_ct_CC" && break
3311 if test "x$ac_ct_CC" = x; then
3314 case $cross_compiling:$ac_tool_warned in
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3318 ac_tool_warned=yes ;;
3327 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329 as_fn_error $? "no acceptable C compiler found in \$PATH
3330 See \`config.log' for more details" "$LINENO" 5 ; }
3332 # Provide some information about the compiler.
3333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3336 for ac_option in --version -v -V -qversion; do
3337 { { ac_try="$ac_compiler $ac_option >&5"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3346 if test -s conftest.err; then
3348 ... rest of stderr output deleted ...
3349 10q' conftest.err >conftest.er1
3350 cat conftest.er1 >&5
3352 rm -f conftest.er1 conftest.err
3353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3368 ac_clean_files_save=$ac_clean_files
3369 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3370 # Try to create an executable without -o first, disregard a.out.
3371 # It will help us diagnose broken compilers, and finding out an intuition
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3374 $as_echo_n "checking whether the C compiler works... " >&6; }
3375 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3377 # The possible output files:
3378 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3381 for ac_file in $ac_files
3384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3390 if { { ac_try="$ac_link_default"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link_default") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3402 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3403 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3404 # so that the user can short-circuit this test for compilers unknown to
3406 for ac_file in $ac_files ''
3408 test -f "$ac_file" || continue
3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3413 # We found the default executable, but exeext='' is most
3417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421 # We set ac_cv_exeext here because the later test for it is not
3422 # safe: cross compilers may not add the suffix if given an `-o'
3423 # argument, so we may need to know it at that point already.
3424 # Even if this section looks crufty: it has the advantage of
3431 test "$ac_cv_exeext" = no && ac_cv_exeext=
3436 if test -z "$ac_file"; then :
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3439 $as_echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error 77 "C compiler cannot create executables
3445 See \`config.log' for more details" "$LINENO" 5 ; }
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448 $as_echo "yes" >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3451 $as_echo_n "checking for C compiler default output file name... " >&6; }
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3453 $as_echo "$ac_file" >&6; }
3454 ac_exeext=$ac_cv_exeext
3456 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3457 ac_clean_files=$ac_clean_files_save
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3459 $as_echo_n "checking for suffix of executables... " >&6; }
3460 if { { ac_try="$ac_link"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 $as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_link") 2>&5
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3472 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3473 # work properly (i.e., refer to `conftest.exe'), while it won't with
3475 for ac_file in conftest.exe conftest conftest.*; do
3476 test -f "$ac_file" || continue
3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3488 See \`config.log' for more details" "$LINENO" 5 ; }
3490 rm -f conftest conftest$ac_cv_exeext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3492 $as_echo "$ac_cv_exeext" >&6; }
3494 rm -f conftest.$ac_ext
3495 EXEEXT=$ac_cv_exeext
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3503 FILE *f = fopen ("conftest.out", "w");
3504 return ferror (f) || fclose (f) != 0;
3510 ac_clean_files="$ac_clean_files conftest.out"
3511 # Check that the compiler produces executables we can run. If not, either
3512 # the compiler is broken, or we cross compile.
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514 $as_echo_n "checking whether we are cross compiling... " >&6; }
3515 if test "$cross_compiling" != yes; then
3516 { { ac_try="$ac_link"
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link") 2>&5
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }
3527 if { ac_try='./conftest$ac_cv_exeext'
3528 { { case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_try") 2>&5
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; }; then
3540 if test "$cross_compiling" = maybe; then
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot run C compiled programs.
3546 If you meant to cross compile, use \`--host'.
3547 See \`config.log' for more details" "$LINENO" 5 ; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552 $as_echo "$cross_compiling" >&6; }
3554 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3555 ac_clean_files=$ac_clean_files_save
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3557 $as_echo_n "checking for suffix of object files... " >&6; }
3558 if ${ac_cv_objext+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3572 rm -f conftest.o conftest.obj
3573 if { { ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_compile") 2>&5
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; then :
3584 for ac_file in conftest.o conftest.obj conftest.*; do
3585 test -f "$ac_file" || continue;
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details" "$LINENO" 5 ; }
3601 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3604 $as_echo "$ac_cv_objext" >&6; }
3605 OBJEXT=$ac_cv_objext
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3608 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609 if ${ac_cv_c_compiler_gnu+:} false; then :
3610 $as_echo_n "(cached) " >&6
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3626 if ac_fn_c_try_compile "$LINENO"; then :
3631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3636 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3637 if test $ac_compiler_gnu = yes; then
3642 ac_test_CFLAGS=${CFLAGS+set}
3643 ac_save_CFLAGS=$CFLAGS
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3645 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3646 if ${ac_cv_prog_cc_g+:} false; then :
3647 $as_echo_n "(cached) " >&6
3649 ac_save_c_werror_flag=$ac_c_werror_flag
3650 ac_c_werror_flag=yes
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3664 if ac_fn_c_try_compile "$LINENO"; then :
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 if ac_fn_c_try_compile "$LINENO"; then :
3682 ac_c_werror_flag=$ac_save_c_werror_flag
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3695 if ac_fn_c_try_compile "$LINENO"; then :
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 ac_c_werror_flag=$ac_save_c_werror_flag
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706 $as_echo "$ac_cv_prog_cc_g" >&6; }
3707 if test "$ac_test_CFLAGS" = set; then
3708 CFLAGS=$ac_save_CFLAGS
3709 elif test $ac_cv_prog_cc_g = yes; then
3710 if test "$GCC" = yes; then
3716 if test "$GCC" = yes; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3723 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3724 if ${ac_cv_prog_cc_c89+:} false; then :
3725 $as_echo_n "(cached) " >&6
3727 ac_cv_prog_cc_c89=no
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3733 #include <sys/types.h>
3734 #include <sys/stat.h>
3735 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3736 struct buf { int x; };
3737 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738 static char *e (p, i)
3744 static char *f (char * (*g) (char **, int), char **p, ...)
3749 s = g (p, va_arg (v,int));
3754 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3755 function prototypes and stuff, but not '\xHH' hex character constants.
3756 These don't provoke an error unfortunately, instead are silently treated
3757 as 'x'. The following induces an error, until -std is added to get
3758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3759 array size at least. It's necessary to write '\x00'==0 to get something
3760 that's true only with -std. */
3761 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3763 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764 inside strings and character constants. */
3766 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3768 int test (int i, double x);
3769 struct s1 {int (*f) (int a);};
3770 struct s2 {int (*f) (double a);};
3771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3782 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 CC="$ac_save_CC $ac_arg"
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_prog_cc_c89=$ac_arg
3789 rm -f core conftest.err conftest.$ac_objext
3790 test "x$ac_cv_prog_cc_c89" != "xno" && break
3792 rm -f conftest.$ac_ext
3797 case "x$ac_cv_prog_cc_c89" in
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800 $as_echo "none needed" >&6; } ;;
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803 $as_echo "unsupported" >&6; } ;;
3805 CC="$CC $ac_cv_prog_cc_c89"
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3809 if test "x$ac_cv_prog_cc_c89" != xno; then :
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3819 depcc="$CC" am_compiler_list=
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3822 $as_echo_n "checking dependency style of $depcc... " >&6; }
3823 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3824 $as_echo_n "(cached) " >&6
3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3827 # We make a subdir and do the tests there. Otherwise we can end up
3828 # making bogus files that we don't know about and never remove. For
3829 # instance it was reported that on HP-UX the gcc test will end up
3830 # making a dummy file named `D' -- because `-MD' means `put the output
3834 # Copy depcomp to subdir because otherwise we won't find it if we're
3835 # using a relative directory.
3836 cp "$am_depcomp" conftest.dir
3838 # We will build objects and dependencies in a subdirectory because
3839 # it helps to detect inapplicable dependency modes. For instance
3840 # both Tru64's cc and ICC support -MD to output dependencies as a
3841 # side effect of compilation, but ICC will put the dependencies in
3842 # the current directory while Tru64 will put them in the object
3846 am_cv_CC_dependencies_compiler_type=none
3847 if test "$am_compiler_list" = ""; then
3848 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3851 case " $depcc " in #(
3852 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3855 for depmode in $am_compiler_list; do
3856 # Setup a source with many dependencies, because some compilers
3857 # like to wrap large dependency lists on column 80 (with \), and
3858 # we should not choose a depcomp mode which is confused by this.
3860 # We need to recreate these files for each test, as the compiler may
3861 # overwrite some of them when testing with obscure command lines.
3862 # This happens at least with the AIX C compiler.
3864 for i in 1 2 3 4 5 6; do
3865 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3866 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3867 # Solaris 8's {/usr,}/bin/sh.
3868 touch sub/conftst$i.h
3870 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3873 # mode. It turns out that the SunPro C++ compiler does not properly
3874 # handle `-M -o', and we need to detect this. Also, some Intel
3875 # versions had trouble with output in subdirs
3876 am__obj=sub/conftest.${OBJEXT-o}
3877 am__minus_obj="-o $am__obj"
3880 # This depmode causes a compiler race in universal mode.
3881 test "$am__universal" = false || continue
3884 # after this tag, mechanisms are not by side-effect, so they'll
3885 # only be used when explicitly requested
3886 if test "x$enable_dependency_tracking" = xyes; then
3892 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3893 # This compiler won't grok `-c -o', but also, the minuso test has
3894 # not run yet. These depmodes are late enough in the game, and
3895 # so weak that their functioning should not be impacted.
3896 am__obj=conftest.${OBJEXT-o}
3901 if depmode=$depmode \
3902 source=sub/conftest.c object=$am__obj \
3903 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3904 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3905 >/dev/null 2>conftest.err &&
3906 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3907 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3908 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3909 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3910 # icc doesn't choke on unknown options, it will just issue warnings
3911 # or remarks (even with -Werror). So we grep stderr for any message
3912 # that says an option was ignored or not supported.
3913 # When given -MP, icc 7.0 and 7.1 complain thusly:
3914 # icc: Command line warning: ignoring option '-M'; no argument required
3915 # The diagnosis changed in icc 8.0:
3916 # icc: Command line remark: option '-MP' not supported
3917 if (grep 'ignoring option' conftest.err ||
3918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3919 am_cv_CC_dependencies_compiler_type=$depmode
3928 am_cv_CC_dependencies_compiler_type=none
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3933 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3937 test "x$enable_dependency_tracking" != xno \
3938 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3940 am__fastdepCC_FALSE='#'
3942 am__fastdepCC_TRUE='#'
3943 am__fastdepCC_FALSE=
3947 case $ac_cv_prog_cc_stdc in #(
3949 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3952 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3953 if ${ac_cv_prog_cc_c99+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 ac_cv_prog_cc_c99=no
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3961 #include <stdbool.h>
3966 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3967 #define debug(...) fprintf (stderr, __VA_ARGS__)
3968 #define showlist(...) puts (#__VA_ARGS__)
3969 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3971 test_varargs_macros (void)
3976 debug ("X = %d\n", x);
3977 showlist (The first, second, and third items.);
3978 report (x>y, "x is %d but y is %d", x, y);
3981 // Check long long types.
3982 #define BIG64 18446744073709551615ull
3983 #define BIG32 4294967295ul
3984 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3986 your preprocessor is broken;
3990 your preprocessor is broken;
3992 static long long int bignum = -9223372036854775807LL;
3993 static unsigned long long int ubignum = BIG64;
3995 struct incomplete_array
4003 const wchar_t *name;
4007 typedef const char *ccp;
4010 test_restrict (ccp restrict text)
4012 // See if C++-style comments work.
4013 // Iterate through items via the restricted pointer.
4014 // Also check for declarations in for loops.
4015 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4020 // Check varargs and va_copy.
4022 test_varargs (const char *format, ...)
4025 va_start (args, format);
4027 va_copy (args_copy, args);
4038 str = va_arg (args_copy, const char *);
4041 number = va_arg (args_copy, int);
4044 fnumber = va_arg (args_copy, double);
4059 _Bool success = false;
4062 if (test_restrict ("String literal") == 0)
4064 char *restrict newvar = "Another string";
4067 test_varargs ("s, d' f .", "string", 65, 34.234);
4068 test_varargs_macros ();
4070 // Check flexible array members.
4071 struct incomplete_array *ia =
4072 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4074 for (int i = 0; i < ia->datasize; ++i)
4075 ia->data[i] = i * 1.234;
4077 // Check named initializers.
4078 struct named_init ni = {
4080 .name = L"Test wide string",
4081 .average = 543.34343,
4086 int dynamic_array[ni.number];
4087 dynamic_array[ni.number - 1] = 543;
4089 // work around unused variable warnings
4090 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4091 || dynamic_array[ni.number - 1] != 543);
4097 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4099 CC="$ac_save_CC $ac_arg"
4100 if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_cv_prog_cc_c99=$ac_arg
4103 rm -f core conftest.err conftest.$ac_objext
4104 test "x$ac_cv_prog_cc_c99" != "xno" && break
4106 rm -f conftest.$ac_ext
4111 case "x$ac_cv_prog_cc_c99" in
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4114 $as_echo "none needed" >&6; } ;;
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4117 $as_echo "unsupported" >&6; } ;;
4119 CC="$CC $ac_cv_prog_cc_c99"
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4121 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4123 if test "x$ac_cv_prog_cc_c99" != xno; then :
4124 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_cv_prog_cc_c89=no
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/stat.h>
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4153 s = g (p, va_arg (v,int));
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4159 function prototypes and stuff, but not '\xHH' hex character constants.
4160 These don't provoke an error unfortunately, instead are silently treated
4161 as 'x'. The following induces an error, until -std is added to get
4162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4163 array size at least. It's necessary to write '\x00'==0 to get something
4164 that's true only with -std. */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168 inside strings and character constants. */
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 CC="$ac_save_CC $ac_arg"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_c89=$ac_arg
4193 rm -f core conftest.err conftest.$ac_objext
4194 test "x$ac_cv_prog_cc_c89" != "xno" && break
4196 rm -f conftest.$ac_ext
4201 case "x$ac_cv_prog_cc_c89" in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4209 CC="$CC $ac_cv_prog_cc_c89"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4214 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4216 ac_cv_prog_cc_stdc=no
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4223 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4224 if ${ac_cv_prog_cc_stdc+:} false; then :
4225 $as_echo_n "(cached) " >&6
4228 case $ac_cv_prog_cc_stdc in #(
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4231 $as_echo "unsupported" >&6; } ;; #(
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;; #(
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4237 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4251 if test -z "$CPP"; then
4252 if ${ac_cv_prog_CPP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 # Double quotes because CPP needs to be expanded
4256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4259 for ac_c_preproc_warn_flag in '' yes
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
4265 # On the NeXT, cc -E runs the code through the compiler's parser,
4266 # not just through cpp. "Syntax error" is here to catch this case.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4270 # include <limits.h>
4272 # include <assert.h>
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: fails on valid input.
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <ac_nonexistent.h>
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: success on invalid input.
4294 # Passes both tests.
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4318 for ac_c_preproc_warn_flag in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4338 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350 # Broken: success on invalid input.
4353 # Passes both tests.
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5 ; }
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382 if test -z "$CXX"; then
4383 if test -n "$CCC"; then
4386 if test -n "$ac_tool_prefix"; then
4387 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CXX+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 if test -n "$CXX"; then
4397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 if test -n "$CXX"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4419 $as_echo "$CXX" >&6; }
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4426 test -n "$CXX" && break
4429 if test -z "$CXX"; then
4431 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 if test -n "$ac_ct_CXX"; then
4441 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_CXX="$ac_prog"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4461 if test -n "$ac_ct_CXX"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4463 $as_echo "$ac_ct_CXX" >&6; }
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4470 test -n "$ac_ct_CXX" && break
4473 if test "x$ac_ct_CXX" = x; then
4476 case $cross_compiling:$ac_tool_warned in
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4492 for ac_option in --version -v -V -qversion; do
4493 { { ac_try="$ac_compiler $ac_option >&5"
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4502 if test -s conftest.err; then
4504 ... rest of stderr output deleted ...
4505 10q' conftest.err >conftest.er1
4506 cat conftest.er1 >&5
4508 rm -f conftest.er1 conftest.err
4509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510 test $ac_status = 0; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4515 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4542 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4548 ac_test_CXXFLAGS=${CXXFLAGS+set}
4549 ac_save_CXXFLAGS=$CXXFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4551 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4552 if ${ac_cv_prog_cxx_g+:} false; then :
4553 $as_echo_n "(cached) " >&6
4555 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4556 ac_cxx_werror_flag=yes
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571 ac_cv_prog_cxx_g=yes
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4588 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4602 ac_cv_prog_cxx_g=yes
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4612 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4613 if test "$ac_test_CXXFLAGS" = set; then
4614 CXXFLAGS=$ac_save_CXXFLAGS
4615 elif test $ac_cv_prog_cxx_g = yes; then
4616 if test "$GXX" = yes; then
4622 if test "$GXX" = yes; then
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 depcc="$CXX" am_compiler_list=
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4637 $as_echo_n "checking dependency style of $depcc... " >&6; }
4638 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4642 # We make a subdir and do the tests there. Otherwise we can end up
4643 # making bogus files that we don't know about and never remove. For
4644 # instance it was reported that on HP-UX the gcc test will end up
4645 # making a dummy file named `D' -- because `-MD' means `put the output
4649 # Copy depcomp to subdir because otherwise we won't find it if we're
4650 # using a relative directory.
4651 cp "$am_depcomp" conftest.dir
4653 # We will build objects and dependencies in a subdirectory because
4654 # it helps to detect inapplicable dependency modes. For instance
4655 # both Tru64's cc and ICC support -MD to output dependencies as a
4656 # side effect of compilation, but ICC will put the dependencies in
4657 # the current directory while Tru64 will put them in the object
4661 am_cv_CXX_dependencies_compiler_type=none
4662 if test "$am_compiler_list" = ""; then
4663 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4666 case " $depcc " in #(
4667 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4670 for depmode in $am_compiler_list; do
4671 # Setup a source with many dependencies, because some compilers
4672 # like to wrap large dependency lists on column 80 (with \), and
4673 # we should not choose a depcomp mode which is confused by this.
4675 # We need to recreate these files for each test, as the compiler may
4676 # overwrite some of them when testing with obscure command lines.
4677 # This happens at least with the AIX C compiler.
4679 for i in 1 2 3 4 5 6; do
4680 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4681 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4682 # Solaris 8's {/usr,}/bin/sh.
4683 touch sub/conftst$i.h
4685 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4687 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4688 # mode. It turns out that the SunPro C++ compiler does not properly
4689 # handle `-M -o', and we need to detect this. Also, some Intel
4690 # versions had trouble with output in subdirs
4691 am__obj=sub/conftest.${OBJEXT-o}
4692 am__minus_obj="-o $am__obj"
4695 # This depmode causes a compiler race in universal mode.
4696 test "$am__universal" = false || continue
4699 # after this tag, mechanisms are not by side-effect, so they'll
4700 # only be used when explicitly requested
4701 if test "x$enable_dependency_tracking" = xyes; then
4707 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4708 # This compiler won't grok `-c -o', but also, the minuso test has
4709 # not run yet. These depmodes are late enough in the game, and
4710 # so weak that their functioning should not be impacted.
4711 am__obj=conftest.${OBJEXT-o}
4716 if depmode=$depmode \
4717 source=sub/conftest.c object=$am__obj \
4718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4719 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4720 >/dev/null 2>conftest.err &&
4721 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4722 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4723 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4724 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4725 # icc doesn't choke on unknown options, it will just issue warnings
4726 # or remarks (even with -Werror). So we grep stderr for any message
4727 # that says an option was ignored or not supported.
4728 # When given -MP, icc 7.0 and 7.1 complain thusly:
4729 # icc: Command line warning: ignoring option '-M'; no argument required
4730 # The diagnosis changed in icc 8.0:
4731 # icc: Command line remark: option '-MP' not supported
4732 if (grep 'ignoring option' conftest.err ||
4733 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4734 am_cv_CXX_dependencies_compiler_type=$depmode
4743 am_cv_CXX_dependencies_compiler_type=none
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4748 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4749 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4752 test "x$enable_dependency_tracking" != xno \
4753 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4754 am__fastdepCXX_TRUE=
4755 am__fastdepCXX_FALSE='#'
4757 am__fastdepCXX_TRUE='#'
4758 am__fastdepCXX_FALSE=
4776 # Check whether --enable-shared was given.
4777 if test "${enable_shared+set}" = set; then :
4778 enableval=$enable_shared; p=${PACKAGE-default}
4780 yes) enable_shared=yes ;;
4781 no) enable_shared=no ;;
4784 # Look at the argument we got. We use all the common list separators.
4785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4786 for pkg in $enableval; do
4788 if test "X$pkg" = "X$p"; then
4807 # Check whether --enable-static was given.
4808 if test "${enable_static+set}" = set; then :
4809 enableval=$enable_static; p=${PACKAGE-default}
4811 yes) enable_static=yes ;;
4812 no) enable_static=no ;;
4815 # Look at the argument we got. We use all the common list separators.
4816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4817 for pkg in $enableval; do
4819 if test "X$pkg" = "X$p"; then
4838 enable_win32_dll=yes
4841 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4842 if test -n "$ac_tool_prefix"; then
4843 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4844 set dummy ${ac_tool_prefix}as; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_prog_AS+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 if test -n "$AS"; then
4851 ac_cv_prog_AS="$AS" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4860 ac_cv_prog_AS="${ac_tool_prefix}as"
4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 if test -n "$AS"; then
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4873 $as_echo "$AS" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876 $as_echo "no" >&6; }
4881 if test -z "$ac_cv_prog_AS"; then
4883 # Extract the first word of "as", so it can be a program name with args.
4884 set dummy as; ac_word=$2
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886 $as_echo_n "checking for $ac_word... " >&6; }
4887 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -n "$ac_ct_AS"; then
4891 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_ac_ct_AS="as"
4901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4911 if test -n "$ac_ct_AS"; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4913 $as_echo "$ac_ct_AS" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4919 if test "x$ac_ct_AS" = x; then
4922 case $cross_compiling:$ac_tool_warned in
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4926 ac_tool_warned=yes ;;
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_DLLTOOL+:} false; then :
4940 $as_echo_n "(cached) " >&6
4942 if test -n "$DLLTOOL"; then
4943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 DLLTOOL=$ac_cv_prog_DLLTOOL
4963 if test -n "$DLLTOOL"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4965 $as_echo "$DLLTOOL" >&6; }
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4973 if test -z "$ac_cv_prog_DLLTOOL"; then
4974 ac_ct_DLLTOOL=$DLLTOOL
4975 # Extract the first word of "dlltool", so it can be a program name with args.
4976 set dummy dlltool; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4980 $as_echo_n "(cached) " >&6
4982 if test -n "$ac_ct_DLLTOOL"; then
4983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5003 if test -n "$ac_ct_DLLTOOL"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5005 $as_echo "$ac_ct_DLLTOOL" >&6; }
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5011 if test "x$ac_ct_DLLTOOL" = x; then
5014 case $cross_compiling:$ac_tool_warned in
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5020 DLLTOOL=$ac_ct_DLLTOOL
5023 DLLTOOL="$ac_cv_prog_DLLTOOL"
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_prog_OBJDUMP+:} false; then :
5032 $as_echo_n "(cached) " >&6
5034 if test -n "$OBJDUMP"; then
5035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 OBJDUMP=$ac_cv_prog_OBJDUMP
5055 if test -n "$OBJDUMP"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5057 $as_echo "$OBJDUMP" >&6; }
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5065 if test -z "$ac_cv_prog_OBJDUMP"; then
5066 ac_ct_OBJDUMP=$OBJDUMP
5067 # Extract the first word of "objdump", so it can be a program name with args.
5068 set dummy objdump; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5072 $as_echo_n "(cached) " >&6
5074 if test -n "$ac_ct_OBJDUMP"; then
5075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5095 if test -n "$ac_ct_OBJDUMP"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5097 $as_echo "$ac_ct_OBJDUMP" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5103 if test "x$ac_ct_OBJDUMP" = x; then
5106 case $cross_compiling:$ac_tool_warned in
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5110 ac_tool_warned=yes ;;
5112 OBJDUMP=$ac_ct_OBJDUMP
5115 OBJDUMP="$ac_cv_prog_OBJDUMP"
5121 test -z "$AS" && AS=as
5127 test -z "$DLLTOOL" && DLLTOOL=dlltool
5133 test -z "$OBJDUMP" && OBJDUMP=objdump
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5145 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5151 macro_revision='1.3294'
5165 ltmain="$ac_aux_dir/ltmain.sh"
5167 # Backslashify metacharacters that are still active within
5168 # double-quoted strings.
5169 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5171 # Same as above, but do not quote variable references.
5172 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5174 # Sed substitution to delay expansion of an escaped shell variable in a
5175 # double_quote_subst'ed string.
5176 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5178 # Sed substitution to delay expansion of an escaped single quote.
5179 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5181 # Sed substitution to avoid accidental globbing in evaled expressions
5182 no_glob_subst='s/\*/\\\*/g'
5184 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5185 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5189 $as_echo_n "checking how to print strings... " >&6; }
5190 # Test print first, because it will be a builtin if present.
5191 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5192 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5194 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5197 # Use this function as a fallback that always works.
5198 func_fallback_echo ()
5200 eval 'cat <<_LTECHO_EOF
5204 ECHO='func_fallback_echo'
5207 # func_echo_all arg...
5208 # Invoke $ECHO with all args, space-separated.
5215 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5216 $as_echo "printf" >&6; } ;;
5217 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5218 $as_echo "print -r" >&6; } ;;
5219 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5220 $as_echo "cat" >&6; } ;;
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5237 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5238 if ${ac_cv_path_SED+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5242 for ac_i in 1 2 3 4 5 6 7; do
5243 ac_script="$ac_script$as_nl$ac_script"
5245 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5246 { ac_script=; unset ac_script;}
5247 if test -z "$SED"; then
5248 ac_path_SED_found=false
5249 # Loop through the user's path and test for each of PROGNAME-LIST
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 for ac_prog in sed gsed; do
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5258 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5259 # Check for GNU ac_path_SED and select it if it is found.
5260 # Check for GNU $ac_path_SED
5261 case `"$ac_path_SED" --version 2>&1` in
5263 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5266 $as_echo_n 0123456789 >"conftest.in"
5269 cat "conftest.in" "conftest.in" >"conftest.tmp"
5270 mv "conftest.tmp" "conftest.in"
5271 cp "conftest.in" "conftest.nl"
5272 $as_echo '' >> "conftest.nl"
5273 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5275 as_fn_arith $ac_count + 1 && ac_count=$as_val
5276 if test $ac_count -gt ${ac_path_SED_max-0}; then
5277 # Best one so far, save it but keep looking for a better one
5278 ac_cv_path_SED="$ac_path_SED"
5279 ac_path_SED_max=$ac_count
5281 # 10*(2^10) chars as input seems more than enough
5282 test $ac_count -gt 10 && break
5284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 $ac_path_SED_found && break 3
5292 if test -z "$ac_cv_path_SED"; then
5293 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5301 $as_echo "$ac_cv_path_SED" >&6; }
5302 SED="$ac_cv_path_SED"
5305 test -z "$SED" && SED=sed
5306 Xsed="$SED -e 1s/^X//"
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5320 if ${ac_cv_path_GREP+:} false; then :
5321 $as_echo_n "(cached) " >&6
5323 if test -z "$GREP"; then
5324 ac_path_GREP_found=false
5325 # Loop through the user's path and test for each of PROGNAME-LIST
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5330 test -z "$as_dir" && as_dir=.
5331 for ac_prog in grep ggrep; do
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5335 # Check for GNU ac_path_GREP and select it if it is found.
5336 # Check for GNU $ac_path_GREP
5337 case `"$ac_path_GREP" --version 2>&1` in
5339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5342 $as_echo_n 0123456789 >"conftest.in"
5345 cat "conftest.in" "conftest.in" >"conftest.tmp"
5346 mv "conftest.tmp" "conftest.in"
5347 cp "conftest.in" "conftest.nl"
5348 $as_echo 'GREP' >> "conftest.nl"
5349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5351 as_fn_arith $ac_count + 1 && ac_count=$as_val
5352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5353 # Best one so far, save it but keep looking for a better one
5354 ac_cv_path_GREP="$ac_path_GREP"
5355 ac_path_GREP_max=$ac_count
5357 # 10*(2^10) chars as input seems more than enough
5358 test $ac_count -gt 10 && break
5360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5363 $ac_path_GREP_found && break 3
5368 if test -z "$ac_cv_path_GREP"; then
5369 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5372 ac_cv_path_GREP=$GREP
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5377 $as_echo "$ac_cv_path_GREP" >&6; }
5378 GREP="$ac_cv_path_GREP"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5382 $as_echo_n "checking for egrep... " >&6; }
5383 if ${ac_cv_path_EGREP+:} false; then :
5384 $as_echo_n "(cached) " >&6
5386 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5387 then ac_cv_path_EGREP="$GREP -E"
5389 if test -z "$EGREP"; then
5390 ac_path_EGREP_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5396 test -z "$as_dir" && as_dir=.
5397 for ac_prog in egrep; do
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5400 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5401 # Check for GNU ac_path_EGREP and select it if it is found.
5402 # Check for GNU $ac_path_EGREP
5403 case `"$ac_path_EGREP" --version 2>&1` in
5405 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5408 $as_echo_n 0123456789 >"conftest.in"
5411 cat "conftest.in" "conftest.in" >"conftest.tmp"
5412 mv "conftest.tmp" "conftest.in"
5413 cp "conftest.in" "conftest.nl"
5414 $as_echo 'EGREP' >> "conftest.nl"
5415 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417 as_fn_arith $ac_count + 1 && ac_count=$as_val
5418 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5419 # Best one so far, save it but keep looking for a better one
5420 ac_cv_path_EGREP="$ac_path_EGREP"
5421 ac_path_EGREP_max=$ac_count
5423 # 10*(2^10) chars as input seems more than enough
5424 test $ac_count -gt 10 && break
5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5429 $ac_path_EGREP_found && break 3
5434 if test -z "$ac_cv_path_EGREP"; then
5435 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5438 ac_cv_path_EGREP=$EGREP
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5444 $as_echo "$ac_cv_path_EGREP" >&6; }
5445 EGREP="$ac_cv_path_EGREP"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5449 $as_echo_n "checking for fgrep... " >&6; }
5450 if ${ac_cv_path_FGREP+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5454 then ac_cv_path_FGREP="$GREP -F"
5456 if test -z "$FGREP"; then
5457 ac_path_FGREP_found=false
5458 # Loop through the user's path and test for each of PROGNAME-LIST
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5463 test -z "$as_dir" && as_dir=.
5464 for ac_prog in fgrep; do
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5467 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5468 # Check for GNU ac_path_FGREP and select it if it is found.
5469 # Check for GNU $ac_path_FGREP
5470 case `"$ac_path_FGREP" --version 2>&1` in
5472 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5475 $as_echo_n 0123456789 >"conftest.in"
5478 cat "conftest.in" "conftest.in" >"conftest.tmp"
5479 mv "conftest.tmp" "conftest.in"
5480 cp "conftest.in" "conftest.nl"
5481 $as_echo 'FGREP' >> "conftest.nl"
5482 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5484 as_fn_arith $ac_count + 1 && ac_count=$as_val
5485 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5486 # Best one so far, save it but keep looking for a better one
5487 ac_cv_path_FGREP="$ac_path_FGREP"
5488 ac_path_FGREP_max=$ac_count
5490 # 10*(2^10) chars as input seems more than enough
5491 test $ac_count -gt 10 && break
5493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5496 $ac_path_FGREP_found && break 3
5501 if test -z "$ac_cv_path_FGREP"; then
5502 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5505 ac_cv_path_FGREP=$FGREP
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5511 $as_echo "$ac_cv_path_FGREP" >&6; }
5512 FGREP="$ac_cv_path_FGREP"
5515 test -z "$GREP" && GREP=grep
5535 # Check whether --with-gnu-ld was given.
5536 if test "${with_gnu_ld+set}" = set; then :
5537 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5543 if test "$GCC" = yes; then
5544 # Check if gcc -print-prog-name=ld gives a path.
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5546 $as_echo_n "checking for ld used by $CC... " >&6; }
5549 # gcc leaves a trailing carriage return which upsets mingw
5550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5555 # Accept absolute paths.
5557 re_direlt='/[^/][^/]*/\.\./'
5558 # Canonicalize the pathname of ld
5559 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5560 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5561 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5563 test -z "$LD" && LD="$ac_prog"
5566 # If it fails, then pretend we aren't using GCC.
5570 # If it is relative, then search for the first ld in PATH.
5574 elif test "$with_gnu_ld" = yes; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5576 $as_echo_n "checking for GNU ld... " >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5579 $as_echo_n "checking for non-GNU ld... " >&6; }
5581 if ${lt_cv_path_LD+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -z "$LD"; then
5585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5586 for ac_dir in $PATH; do
5588 test -z "$ac_dir" && ac_dir=.
5589 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5590 lt_cv_path_LD="$ac_dir/$ac_prog"
5591 # Check to see if the program is GNU ld. I'd rather use --version,
5592 # but apparently some variants of GNU ld only accept -v.
5593 # Break only if it was the GNU/non-GNU ld that we prefer.
5594 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5595 *GNU* | *'with BFD'*)
5596 test "$with_gnu_ld" != no && break
5599 test "$with_gnu_ld" != yes && break
5606 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5611 if test -n "$LD"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5613 $as_echo "$LD" >&6; }
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5621 if ${lt_cv_prog_gnu_ld+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5625 case `$LD -v 2>&1 </dev/null` in
5626 *GNU* | *'with BFD'*)
5627 lt_cv_prog_gnu_ld=yes
5630 lt_cv_prog_gnu_ld=no
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5635 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5636 with_gnu_ld=$lt_cv_prog_gnu_ld
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5647 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5648 if ${lt_cv_path_NM+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 if test -n "$NM"; then
5652 # Let the user override the test.
5655 lt_nm_to_check="${ac_tool_prefix}nm"
5656 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5657 lt_nm_to_check="$lt_nm_to_check nm"
5659 for lt_tmp_nm in $lt_nm_to_check; do
5660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5661 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5663 test -z "$ac_dir" && ac_dir=.
5664 tmp_nm="$ac_dir/$lt_tmp_nm"
5665 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5666 # Check to see if the nm accepts a BSD-compat flag.
5667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5668 # nm: unknown option "B" ignored
5669 # Tru64's nm complains that /dev/null is an invalid object file
5670 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5671 */dev/null* | *'Invalid file or object type'*)
5672 lt_cv_path_NM="$tmp_nm -B"
5676 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5678 lt_cv_path_NM="$tmp_nm -p"
5682 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5683 continue # so that we can try to find one that supports BSD flags
5692 : ${lt_cv_path_NM=no}
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5696 $as_echo "$lt_cv_path_NM" >&6; }
5697 if test "$lt_cv_path_NM" != "no"; then
5700 # Didn't find any BSD compatible name lister, look for dumpbin.
5701 if test -n "$DUMPBIN"; then :
5702 # Let the user override the test.
5704 if test -n "$ac_tool_prefix"; then
5705 for ac_prog in dumpbin "link -dump"
5707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_DUMPBIN+:} false; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$DUMPBIN"; then
5715 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir=.
5722 for ac_exec_ext in '' $ac_executable_extensions; do
5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5724 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 DUMPBIN=$ac_cv_prog_DUMPBIN
5735 if test -n "$DUMPBIN"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5737 $as_echo "$DUMPBIN" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5744 test -n "$DUMPBIN" && break
5747 if test -z "$DUMPBIN"; then
5748 ac_ct_DUMPBIN=$DUMPBIN
5749 for ac_prog in dumpbin "link -dump"
5751 # Extract the first word of "$ac_prog", so it can be a program name with args.
5752 set dummy $ac_prog; ac_word=$2
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5756 $as_echo_n "(cached) " >&6
5758 if test -n "$ac_ct_DUMPBIN"; then
5759 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5779 if test -n "$ac_ct_DUMPBIN"; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5781 $as_echo "$ac_ct_DUMPBIN" >&6; }
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5784 $as_echo "no" >&6; }
5788 test -n "$ac_ct_DUMPBIN" && break
5791 if test "x$ac_ct_DUMPBIN" = x; then
5794 case $cross_compiling:$ac_tool_warned in
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5800 DUMPBIN=$ac_ct_DUMPBIN
5804 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5806 DUMPBIN="$DUMPBIN -symbols"
5814 if test "$DUMPBIN" != ":"; then
5818 test -z "$NM" && NM=nm
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5826 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5827 if ${lt_cv_nm_interface+:} false; then :
5828 $as_echo_n "(cached) " >&6
5830 lt_cv_nm_interface="BSD nm"
5831 echo "int some_variable = 0;" > conftest.$ac_ext
5832 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5833 (eval "$ac_compile" 2>conftest.err)
5834 cat conftest.err >&5
5835 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5836 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5837 cat conftest.err >&5
5838 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5839 cat conftest.out >&5
5840 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5841 lt_cv_nm_interface="MS dumpbin"
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5846 $as_echo "$lt_cv_nm_interface" >&6; }
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5849 $as_echo_n "checking whether ln -s works... " >&6; }
5851 if test "$LN_S" = "ln -s"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5853 $as_echo "yes" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5856 $as_echo "no, using $LN_S" >&6; }
5859 # find the maximum length of command line arguments
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5862 if ${lt_cv_sys_max_cmd_len+:} false; then :
5863 $as_echo_n "(cached) " >&6
5870 # On DJGPP, this test can blow up pretty badly due to problems in libc
5871 # (any single argument exceeding 2000 bytes causes a buffer overrun
5872 # during glob expansion). Even if it were fixed, the result of this
5873 # check would be larger than it should be.
5874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5878 # Under GNU Hurd, this test is not required because there is
5879 # no limit to the length of command line arguments.
5880 # Libtool will interpret -1 as no limit whatsoever
5881 lt_cv_sys_max_cmd_len=-1;
5884 cygwin* | mingw* | cegcc*)
5885 # On Win9x/ME, this test blows up -- it succeeds, but takes
5886 # about 5 minutes as the teststring grows exponentially.
5887 # Worse, since 9x/ME are not pre-emptively multitasking,
5888 # you end up with a "frozen" computer, even though with patience
5889 # the test eventually succeeds (with a max line length of 256k).
5890 # Instead, let's just punt: use the minimum linelength reported by
5891 # all of the supported platforms: 8192 (on NT/2K/XP).
5892 lt_cv_sys_max_cmd_len=8192;
5896 # On MiNT this can take a long time and run out of memory.
5897 lt_cv_sys_max_cmd_len=8192;
5901 # On AmigaOS with pdksh, this test takes hours, literally.
5902 # So we just punt and use a minimum line length of 8192.
5903 lt_cv_sys_max_cmd_len=8192;
5906 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5907 # This has been around since 386BSD, at least. Likely further.
5908 if test -x /sbin/sysctl; then
5909 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5910 elif test -x /usr/sbin/sysctl; then
5911 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5913 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5915 # And add a safety zone
5916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5921 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5922 lt_cv_sys_max_cmd_len=196608
5926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5928 # nice to cause kernel panics so lets avoid the loop below.
5929 # First set a reasonable default.
5930 lt_cv_sys_max_cmd_len=16384
5932 if test -x /sbin/sysconfig; then
5933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5939 lt_cv_sys_max_cmd_len=102400
5941 sysv5* | sco5v6* | sysv4.2uw2*)
5942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5943 if test -n "$kargmax"; then
5944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5946 lt_cv_sys_max_cmd_len=32768
5950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5951 if test -n "$lt_cv_sys_max_cmd_len"; then
5952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5955 # Make teststring a little bigger before we do anything with it.
5956 # a 1K string should be a reasonable start.
5957 for i in 1 2 3 4 5 6 7 8 ; do
5958 teststring=$teststring$teststring
5960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5961 # If test is not a shell built-in, we'll probably end up computing a
5962 # maximum length that is only half of the actual maximum length, but
5964 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5965 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5966 test $i != 17 # 1/2 MB should be enough
5969 teststring=$teststring$teststring
5971 # Only check the string length outside the loop.
5972 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5974 # Add a significant safety factor because C++ compilers can tack on
5975 # massive amounts of additional arguments before passing them to the
5976 # linker. It appears as though 1/2 is a usable value.
5977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5984 if test -n $lt_cv_sys_max_cmd_len ; then
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5986 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5989 $as_echo "none" >&6; }
5991 max_cmd_len=$lt_cv_sys_max_cmd_len
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6003 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6004 # Try some XSI features
6007 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6009 && eval 'test $(( 1 + 1 )) -eq 2 \
6010 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6013 $as_echo "$xsi_shell" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6017 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6019 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6021 && lt_shell_append=yes
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6023 $as_echo "$lt_shell_append" >&6; }
6026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6036 # test EBCDIC or ASCII
6037 case `echo X|tr X '\101'` in
6038 A) # ASCII based system
6039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6040 lt_SP2NL='tr \040 \012'
6041 lt_NL2SP='tr \015\012 \040\040'
6043 *) # EBCDIC based system
6044 lt_SP2NL='tr \100 \n'
6045 lt_NL2SP='tr \r\n \100\100'
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6058 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6059 if ${lt_cv_to_host_file_cmd+:} false; then :
6060 $as_echo_n "(cached) " >&6
6065 *-*-mingw* ) # actually msys
6066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6071 * ) # otherwise, assume *nix
6072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6078 *-*-mingw* ) # actually msys
6079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6082 lt_cv_to_host_file_cmd=func_convert_file_noop
6084 * ) # otherwise, assume *nix
6085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6089 * ) # unhandled hosts (and "normal" native builds)
6090 lt_cv_to_host_file_cmd=func_convert_file_noop
6096 to_host_file_cmd=$lt_cv_to_host_file_cmd
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6098 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6105 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6106 if ${lt_cv_to_tool_file_cmd+:} false; then :
6107 $as_echo_n "(cached) " >&6
6109 #assume ordinary cross tools, or native build.
6110 lt_cv_to_tool_file_cmd=func_convert_file_noop
6114 *-*-mingw* ) # actually msys
6115 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6125 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6132 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6133 if ${lt_cv_ld_reload_flag+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 lt_cv_ld_reload_flag='-r'
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6139 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6140 reload_flag=$lt_cv_ld_reload_flag
6141 case $reload_flag in
6143 *) reload_flag=" $reload_flag" ;;
6145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6147 cygwin* | mingw* | pw32* | cegcc*)
6148 if test "$GCC" != yes; then
6153 if test "$GCC" = yes; then
6154 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_OBJDUMP+:} false; then :
6175 $as_echo_n "(cached) " >&6
6177 if test -n "$OBJDUMP"; then
6178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6197 OBJDUMP=$ac_cv_prog_OBJDUMP
6198 if test -n "$OBJDUMP"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6200 $as_echo "$OBJDUMP" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6208 if test -z "$ac_cv_prog_OBJDUMP"; then
6209 ac_ct_OBJDUMP=$OBJDUMP
6210 # Extract the first word of "objdump", so it can be a program name with args.
6211 set dummy objdump; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$ac_ct_OBJDUMP"; then
6218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6238 if test -n "$ac_ct_OBJDUMP"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6240 $as_echo "$ac_ct_OBJDUMP" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6246 if test "x$ac_ct_OBJDUMP" = x; then
6249 case $cross_compiling:$ac_tool_warned in
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253 ac_tool_warned=yes ;;
6255 OBJDUMP=$ac_ct_OBJDUMP
6258 OBJDUMP="$ac_cv_prog_OBJDUMP"
6261 test -z "$OBJDUMP" && OBJDUMP=objdump
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6270 if ${lt_cv_deplibs_check_method+:} false; then :
6271 $as_echo_n "(cached) " >&6
6273 lt_cv_file_magic_cmd='$MAGIC_CMD'
6274 lt_cv_file_magic_test_file=
6275 lt_cv_deplibs_check_method='unknown'
6276 # Need to set the preceding variable on all platforms that support
6277 # interlibrary dependencies.
6278 # 'none' -- dependencies not supported.
6279 # `unknown' -- same as none, but documents that we really don't know.
6280 # 'pass_all' -- all dependencies passed with no checks.
6281 # 'test_compile' -- check by making test program.
6282 # 'file_magic [[regex]]' -- check by looking for files in library path
6283 # which responds to the $file_magic_cmd with a given extended regex.
6284 # If you have `file' or equivalent on your system and you're not sure
6285 # whether `pass_all' will *always* work, you probably want this one.
6289 lt_cv_deplibs_check_method=pass_all
6293 lt_cv_deplibs_check_method=pass_all
6297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6298 lt_cv_file_magic_cmd='/usr/bin/file -L'
6299 lt_cv_file_magic_test_file=/shlib/libc.so
6303 # func_win32_libid is a shell function defined in ltmain.sh
6304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6305 lt_cv_file_magic_cmd='func_win32_libid'
6309 # Base MSYS/MinGW do not provide the 'file' command needed by
6310 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6311 # unless we find 'file', for example because we are cross-compiling.
6312 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6313 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6315 lt_cv_file_magic_cmd='func_win32_libid'
6317 # Keep this pattern in sync with the one in func_win32_libid.
6318 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6319 lt_cv_file_magic_cmd='$OBJDUMP -f'
6324 # use the weaker test based on 'objdump'. See mingw*.
6325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6326 lt_cv_file_magic_cmd='$OBJDUMP -f'
6329 darwin* | rhapsody*)
6330 lt_cv_deplibs_check_method=pass_all
6333 freebsd* | dragonfly*)
6334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6337 # Not sure whether the presence of OpenBSD here was a mistake.
6338 # Let's accept both of them until this is cleared up.
6339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6340 lt_cv_file_magic_cmd=/usr/bin/file
6341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6345 lt_cv_deplibs_check_method=pass_all
6350 lt_cv_deplibs_check_method=pass_all
6354 lt_cv_deplibs_check_method=pass_all
6357 hpux10.20* | hpux11*)
6358 lt_cv_file_magic_cmd=/usr/bin/file
6361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6380 irix5* | irix6* | nonstopux*)
6382 *-32|*"-32 ") libmagic=32-bit;;
6383 *-n32|*"-n32 ") libmagic=N32;;
6384 *-64|*"-64 ") libmagic=64-bit;;
6385 *) libmagic=never-match;;
6387 lt_cv_deplibs_check_method=pass_all
6390 # This must be Linux ELF.
6391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6392 lt_cv_deplibs_check_method=pass_all
6396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6405 lt_cv_file_magic_cmd=/usr/bin/file
6406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6410 lt_cv_deplibs_check_method=pass_all
6414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6421 osf3* | osf4* | osf5*)
6422 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6430 lt_cv_deplibs_check_method=pass_all
6433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6434 lt_cv_deplibs_check_method=pass_all
6438 case $host_vendor in
6440 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]'
6441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6444 lt_cv_deplibs_check_method=pass_all
6447 lt_cv_file_magic_cmd='/bin/file'
6448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6451 lt_cv_file_magic_cmd='/bin/file'
6452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6453 lt_cv_file_magic_test_file=/lib/libc.so
6456 lt_cv_deplibs_check_method=pass_all
6459 lt_cv_deplibs_check_method=pass_all
6465 lt_cv_deplibs_check_method=pass_all
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6475 if test "$build" = "$host"; then
6478 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6481 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6487 file_magic_cmd=$lt_cv_file_magic_cmd
6488 deplibs_check_method=$lt_cv_deplibs_check_method
6489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_DLLTOOL+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 if test -n "$DLLTOOL"; then
6521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 DLLTOOL=$ac_cv_prog_DLLTOOL
6541 if test -n "$DLLTOOL"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6543 $as_echo "$DLLTOOL" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6551 if test -z "$ac_cv_prog_DLLTOOL"; then
6552 ac_ct_DLLTOOL=$DLLTOOL
6553 # Extract the first word of "dlltool", so it can be a program name with args.
6554 set dummy dlltool; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$ac_ct_DLLTOOL"; then
6561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6581 if test -n "$ac_ct_DLLTOOL"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6583 $as_echo "$ac_ct_DLLTOOL" >&6; }
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6589 if test "x$ac_ct_DLLTOOL" = x; then
6592 case $cross_compiling:$ac_tool_warned in
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6598 DLLTOOL=$ac_ct_DLLTOOL
6601 DLLTOOL="$ac_cv_prog_DLLTOOL"
6604 test -z "$DLLTOOL" && DLLTOOL=dlltool
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6615 $as_echo_n "(cached) " >&6
6617 lt_cv_sharedlib_from_linklib_cmd='unknown'
6620 cygwin* | mingw* | pw32* | cegcc*)
6621 # two different shell functions defined in ltmain.sh
6622 # decide which to use based on capabilities of $DLLTOOL
6623 case `$DLLTOOL --help 2>&1` in
6624 *--identify-strict*)
6625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6633 # fallback: assume linklib IS sharedlib
6634 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6651 if test -n "$ac_tool_prefix"; then
6654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657 $as_echo_n "checking for $ac_word... " >&6; }
6658 if ${ac_cv_prog_AR+:} false; then :
6659 $as_echo_n "(cached) " >&6
6661 if test -n "$AR"; then
6662 ac_cv_prog_AR="$AR" # Let the user override the test.
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 if test -n "$AR"; then
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6684 $as_echo "$AR" >&6; }
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687 $as_echo "no" >&6; }
6691 test -n "$AR" && break
6694 if test -z "$AR"; then
6698 # Extract the first word of "$ac_prog", so it can be a program name with args.
6699 set dummy $ac_prog; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 if test -n "$ac_ct_AR"; then
6706 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_ac_ct_AR="$ac_prog"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6726 if test -n "$ac_ct_AR"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6728 $as_echo "$ac_ct_AR" >&6; }
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6735 test -n "$ac_ct_AR" && break
6738 if test "x$ac_ct_AR" = x; then
6741 case $cross_compiling:$ac_tool_warned in
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6765 $as_echo_n "checking for archiver @FILE support... " >&6; }
6766 if ${lt_cv_ar_at_file+:} false; then :
6767 $as_echo_n "(cached) " >&6
6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6771 /* end confdefs.h. */
6781 if ac_fn_c_try_compile "$LINENO"; then :
6782 echo conftest.$ac_objext > conftest.lst
6783 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6785 (eval $lt_ar_try) 2>&5
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; }
6789 if test "$ac_status" -eq 0; then
6790 # Ensure the archiver fails upon bogus file names.
6791 rm -f conftest.$ac_objext libconftest.a
6792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6793 (eval $lt_ar_try) 2>&5
6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6796 test $ac_status = 0; }
6797 if test "$ac_status" -ne 0; then
6801 rm -f conftest.* libconftest.a
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6808 $as_echo "$lt_cv_ar_at_file" >&6; }
6810 if test "x$lt_cv_ar_at_file" = xno; then
6813 archiver_list_spec=$lt_cv_ar_at_file
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_prog_STRIP+:} false; then :
6828 $as_echo_n "(cached) " >&6
6830 if test -n "$STRIP"; then
6831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 STRIP=$ac_cv_prog_STRIP
6851 if test -n "$STRIP"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6853 $as_echo "$STRIP" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6861 if test -z "$ac_cv_prog_STRIP"; then
6863 # Extract the first word of "strip", so it can be a program name with args.
6864 set dummy strip; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 if test -n "$ac_ct_STRIP"; then
6871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_STRIP="strip"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891 if test -n "$ac_ct_STRIP"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6893 $as_echo "$ac_ct_STRIP" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6899 if test "x$ac_ct_STRIP" = x; then
6902 case $cross_compiling:$ac_tool_warned in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6906 ac_tool_warned=yes ;;
6911 STRIP="$ac_cv_prog_STRIP"
6914 test -z "$STRIP" && STRIP=:
6921 if test -n "$ac_tool_prefix"; then
6922 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_RANLIB+:} false; then :
6927 $as_echo_n "(cached) " >&6
6929 if test -n "$RANLIB"; then
6930 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 RANLIB=$ac_cv_prog_RANLIB
6950 if test -n "$RANLIB"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6952 $as_echo "$RANLIB" >&6; }
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6960 if test -z "$ac_cv_prog_RANLIB"; then
6961 ac_ct_RANLIB=$RANLIB
6962 # Extract the first word of "ranlib", so it can be a program name with args.
6963 set dummy ranlib; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 if test -n "$ac_ct_RANLIB"; then
6970 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6979 ac_cv_prog_ac_ct_RANLIB="ranlib"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6990 if test -n "$ac_ct_RANLIB"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6992 $as_echo "$ac_ct_RANLIB" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6998 if test "x$ac_ct_RANLIB" = x; then
7001 case $cross_compiling:$ac_tool_warned in
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7005 ac_tool_warned=yes ;;
7007 RANLIB=$ac_ct_RANLIB
7010 RANLIB="$ac_cv_prog_RANLIB"
7013 test -z "$RANLIB" && RANLIB=:
7020 # Determine commands to create old-style static archives.
7021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7022 old_postinstall_cmds='chmod 644 $oldlib'
7023 old_postuninstall_cmds=
7025 if test -n "$RANLIB"; then
7028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7031 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7039 lock_old_archive_extraction=yes ;;
7041 lock_old_archive_extraction=no ;;
7082 # If no C compiler was specified, use CC.
7085 # If no C compiler flags were specified, use CFLAGS.
7086 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7088 # Allow CC to be a program name with arguments.
7092 # Check for command to grab the raw symbol name followed by C symbol from nm.
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7094 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7095 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7096 $as_echo_n "(cached) " >&6
7099 # These are sane defaults that work on at least a few old systems.
7100 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7102 # Character class describing NM global symbol codes.
7103 symcode='[BCDEGRST]'
7105 # Regexp to match symbols that can be accessed directly from C.
7106 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7108 # Define system-specific variables.
7113 cygwin* | mingw* | pw32* | cegcc*)
7114 symcode='[ABCDGISTW]'
7117 if test "$host_cpu" = ia64; then
7118 symcode='[ABCDEGRST]'
7122 symcode='[BCDEGRST]'
7125 symcode='[BCDEGQRST]'
7136 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7144 # If we're using GNU nm, then use its standard symbol codes.
7145 case `$NM -V 2>&1` in
7146 *GNU* | *'with BFD'*)
7147 symcode='[ABCDGIRSTW]' ;;
7150 # Transform an extracted symbol line into a proper C declaration.
7151 # Some systems (esp. on ia64) link data and code symbols differently,
7152 # so use this general approach.
7153 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7155 # Transform an extracted symbol line into symbol name and symbol address
7156 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7157 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'"
7159 # Handle CRLF in mingw tool chain
7163 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7167 # Try without a prefix underscore, then with it.
7168 for ac_symprfx in "" "_"; do
7170 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7171 symxfrm="\\1 $ac_symprfx\\2 \\2"
7173 # Write the raw and C identifiers.
7174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7175 # Fake it for dumpbin and say T for any non-static function
7176 # and D for any global variable.
7177 # Also find C++ and __fastcall symbols from MSVC++,
7178 # which start with @ or ?.
7179 lt_cv_sys_global_symbol_pipe="$AWK '"\
7180 " {last_section=section; section=\$ 3};"\
7181 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7182 " \$ 0!~/External *\|/{next};"\
7183 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7184 " {if(hide[section]) next};"\
7185 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7186 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7187 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7188 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7189 " ' prfx=^$ac_symprfx"
7191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7195 # Check to see that the pipe works correctly.
7199 cat > conftest.$ac_ext <<_LT_EOF
7204 void nm_test_func(void);
7205 void nm_test_func(void){}
7209 int main(){nm_test_var='a';nm_test_func();return(0);}
7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7213 (eval $ac_compile) 2>&5
7215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7216 test $ac_status = 0; }; then
7217 # Now try to grab the symbols.
7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7220 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7223 test $ac_status = 0; } && test -s "$nlist"; then
7224 # Try sorting and uniquifying the output.
7225 if sort "$nlist" | uniq > "$nlist"T; then
7226 mv -f "$nlist"T "$nlist"
7231 # Make sure that we snagged all the symbols we need.
7232 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7233 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7234 cat <<_LT_EOF > conftest.$ac_ext
7235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7238 relocations are performed -- see ld's documentation on pseudo-relocs. */
7239 # define LT_DLSYM_CONST
7240 #elif defined(__osf__)
7241 /* This system does not cope well with relocations in const data. */
7242 # define LT_DLSYM_CONST
7244 # define LT_DLSYM_CONST const
7252 # Now generate the symbol file.
7253 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7255 cat <<_LT_EOF >> conftest.$ac_ext
7257 /* The mapping between symbol names and symbols. */
7258 LT_DLSYM_CONST struct {
7262 lt__PROGRAM__LTX_preloaded_symbols[] =
7264 { "@PROGRAM@", (void *) 0 },
7266 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7267 cat <<\_LT_EOF >> conftest.$ac_ext
7271 /* This works around a problem in FreeBSD linker */
7272 #ifdef FREEBSD_WORKAROUND
7273 static const void *lt_preloaded_setup() {
7274 return lt__PROGRAM__LTX_preloaded_symbols;
7282 # Now try linking the two files.
7283 mv conftest.$ac_objext conftstm.$ac_objext
7284 lt_globsym_save_LIBS=$LIBS
7285 lt_globsym_save_CFLAGS=$CFLAGS
7286 LIBS="conftstm.$ac_objext"
7287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7289 (eval $ac_link) 2>&5
7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7295 LIBS=$lt_globsym_save_LIBS
7296 CFLAGS=$lt_globsym_save_CFLAGS
7298 echo "cannot find nm_test_func in $nlist" >&5
7301 echo "cannot find nm_test_var in $nlist" >&5
7304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7307 echo "$progname: failed program was:" >&5
7308 cat conftest.$ac_ext >&5
7310 rm -rf conftest* conftst*
7312 # Do not use the global_symbol_pipe unless it works.
7313 if test "$pipe_works" = yes; then
7316 lt_cv_sys_global_symbol_pipe=
7322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7323 lt_cv_sys_global_symbol_to_cdecl=
7325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7327 $as_echo "failed" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7330 $as_echo "ok" >&6; }
7333 # Response file support.
7334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7335 nm_file_list_spec='@'
7336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7337 nm_file_list_spec='@'
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7367 $as_echo_n "checking for sysroot... " >&6; }
7369 # Check whether --with-sysroot was given.
7370 if test "${with_sysroot+set}" = set; then :
7371 withval=$with_sysroot;
7378 case ${with_sysroot} in #(
7380 if test "$GCC" = yes; then
7381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7391 $as_echo "${with_sysroot}" >&6; }
7392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7397 $as_echo "${lt_sysroot:-no}" >&6; }
7403 # Check whether --enable-libtool-lock was given.
7404 if test "${enable_libtool_lock+set}" = set; then :
7405 enableval=$enable_libtool_lock;
7408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7410 # Some flags need to be propagated to the compiler or linker for good
7414 # Find out which ABI we are using.
7415 echo 'int i;' > conftest.$ac_ext
7416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7417 (eval $ac_compile) 2>&5
7419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420 test $ac_status = 0; }; then
7421 case `/usr/bin/file conftest.$ac_objext` in
7433 # Find out which ABI we are using.
7434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436 (eval $ac_compile) 2>&5
7438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439 test $ac_status = 0; }; then
7440 if test "$lt_cv_prog_gnu_ld" = yes; then
7441 case `/usr/bin/file conftest.$ac_objext` in
7443 LD="${LD-ld} -melf32bsmip"
7446 LD="${LD-ld} -melf32bmipn32"
7449 LD="${LD-ld} -melf64bmip"
7453 case `/usr/bin/file conftest.$ac_objext` in
7469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7471 # Find out which ABI we are using.
7472 echo 'int i;' > conftest.$ac_ext
7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474 (eval $ac_compile) 2>&5
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477 test $ac_status = 0; }; then
7478 case `/usr/bin/file conftest.o` in
7481 x86_64-*kfreebsd*-gnu)
7482 LD="${LD-ld} -m elf_i386_fbsd"
7485 LD="${LD-ld} -m elf_i386"
7487 ppc64-*linux*|powerpc64-*linux*)
7488 LD="${LD-ld} -m elf32ppclinux"
7491 LD="${LD-ld} -m elf_s390"
7494 LD="${LD-ld} -m elf32_sparc"
7500 x86_64-*kfreebsd*-gnu)
7501 LD="${LD-ld} -m elf_x86_64_fbsd"
7504 LD="${LD-ld} -m elf_x86_64"
7506 ppc*-*linux*|powerpc*-*linux*)
7507 LD="${LD-ld} -m elf64ppc"
7509 s390*-*linux*|s390*-*tpf*)
7510 LD="${LD-ld} -m elf64_s390"
7513 LD="${LD-ld} -m elf64_sparc"
7523 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7524 SAVE_CFLAGS="$CFLAGS"
7525 CFLAGS="$CFLAGS -belf"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7528 if ${lt_cv_cc_needs_belf+:} false; then :
7529 $as_echo_n "(cached) " >&6
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7548 if ac_fn_c_try_link "$LINENO"; then :
7549 lt_cv_cc_needs_belf=yes
7551 lt_cv_cc_needs_belf=no
7553 rm -f core conftest.err conftest.$ac_objext \
7554 conftest$ac_exeext conftest.$ac_ext
7556 ac_cpp='$CPP $CPPFLAGS'
7557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7566 CFLAGS="$SAVE_CFLAGS"
7570 # Find out which ABI we are using.
7571 echo 'int i;' > conftest.$ac_ext
7572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7573 (eval $ac_compile) 2>&5
7575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7576 test $ac_status = 0; }; then
7577 case `/usr/bin/file conftest.o` in
7579 case $lt_cv_prog_gnu_ld in
7580 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7582 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7594 need_locks="$enable_libtool_lock"
7596 if test -n "$ac_tool_prefix"; then
7597 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7598 set dummy ${ac_tool_prefix}mt; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 if test -n "$MANIFEST_TOOL"; then
7605 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7625 if test -n "$MANIFEST_TOOL"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7627 $as_echo "$MANIFEST_TOOL" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7635 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7636 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7637 # Extract the first word of "mt", so it can be a program name with args.
7638 set dummy mt; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7642 $as_echo_n "(cached) " >&6
7644 if test -n "$ac_ct_MANIFEST_TOOL"; then
7645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7665 if test -n "$ac_ct_MANIFEST_TOOL"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7667 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7673 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7676 case $cross_compiling:$ac_tool_warned in
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7680 ac_tool_warned=yes ;;
7682 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7685 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7688 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7690 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7691 if ${lt_cv_path_mainfest_tool+:} false; then :
7692 $as_echo_n "(cached) " >&6
7694 lt_cv_path_mainfest_tool=no
7695 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7696 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7697 cat conftest.err >&5
7698 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7699 lt_cv_path_mainfest_tool=yes
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7704 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7705 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7715 rhapsody* | darwin*)
7716 if test -n "$ac_tool_prefix"; then
7717 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7718 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7722 $as_echo_n "(cached) " >&6
7724 if test -n "$DSYMUTIL"; then
7725 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7745 if test -n "$DSYMUTIL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7747 $as_echo "$DSYMUTIL" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7755 if test -z "$ac_cv_prog_DSYMUTIL"; then
7756 ac_ct_DSYMUTIL=$DSYMUTIL
7757 # Extract the first word of "dsymutil", so it can be a program name with args.
7758 set dummy dsymutil; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7762 $as_echo_n "(cached) " >&6
7764 if test -n "$ac_ct_DSYMUTIL"; then
7765 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7774 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7785 if test -n "$ac_ct_DSYMUTIL"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7787 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7793 if test "x$ac_ct_DSYMUTIL" = x; then
7796 case $cross_compiling:$ac_tool_warned in
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7800 ac_tool_warned=yes ;;
7802 DSYMUTIL=$ac_ct_DSYMUTIL
7805 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_prog_NMEDIT+:} false; then :
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$NMEDIT"; then
7817 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 NMEDIT=$ac_cv_prog_NMEDIT
7837 if test -n "$NMEDIT"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7839 $as_echo "$NMEDIT" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7847 if test -z "$ac_cv_prog_NMEDIT"; then
7848 ac_ct_NMEDIT=$NMEDIT
7849 # Extract the first word of "nmedit", so it can be a program name with args.
7850 set dummy nmedit; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7854 $as_echo_n "(cached) " >&6
7856 if test -n "$ac_ct_NMEDIT"; then
7857 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7866 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7877 if test -n "$ac_ct_NMEDIT"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7879 $as_echo "$ac_ct_NMEDIT" >&6; }
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7885 if test "x$ac_ct_NMEDIT" = x; then
7888 case $cross_compiling:$ac_tool_warned in
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7892 ac_tool_warned=yes ;;
7894 NMEDIT=$ac_ct_NMEDIT
7897 NMEDIT="$ac_cv_prog_NMEDIT"
7900 if test -n "$ac_tool_prefix"; then
7901 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_LIPO+:} false; then :
7906 $as_echo_n "(cached) " >&6
7908 if test -n "$LIPO"; then
7909 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7918 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 LIPO=$ac_cv_prog_LIPO
7929 if test -n "$LIPO"; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7931 $as_echo "$LIPO" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7939 if test -z "$ac_cv_prog_LIPO"; then
7941 # Extract the first word of "lipo", so it can be a program name with args.
7942 set dummy lipo; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7946 $as_echo_n "(cached) " >&6
7948 if test -n "$ac_ct_LIPO"; then
7949 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7958 ac_cv_prog_ac_ct_LIPO="lipo"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7969 if test -n "$ac_ct_LIPO"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7971 $as_echo "$ac_ct_LIPO" >&6; }
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7977 if test "x$ac_ct_LIPO" = x; then
7980 case $cross_compiling:$ac_tool_warned in
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7989 LIPO="$ac_cv_prog_LIPO"
7992 if test -n "$ac_tool_prefix"; then
7993 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}otool; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_OTOOL+:} false; then :
7998 $as_echo_n "(cached) " >&6
8000 if test -n "$OTOOL"; then
8001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8010 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 OTOOL=$ac_cv_prog_OTOOL
8021 if test -n "$OTOOL"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8023 $as_echo "$OTOOL" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 if test -z "$ac_cv_prog_OTOOL"; then
8033 # Extract the first word of "otool", so it can be a program name with args.
8034 set dummy otool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8038 $as_echo_n "(cached) " >&6
8040 if test -n "$ac_ct_OTOOL"; then
8041 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 test -z "$as_dir" && as_dir=.
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050 ac_cv_prog_ac_ct_OTOOL="otool"
8051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8061 if test -n "$ac_ct_OTOOL"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8063 $as_echo "$ac_ct_OTOOL" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8069 if test "x$ac_ct_OTOOL" = x; then
8072 case $cross_compiling:$ac_tool_warned in
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8081 OTOOL="$ac_cv_prog_OTOOL"
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_OTOOL64+:} false; then :
8090 $as_echo_n "(cached) " >&6
8092 if test -n "$OTOOL64"; then
8093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 OTOOL64=$ac_cv_prog_OTOOL64
8113 if test -n "$OTOOL64"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8115 $as_echo "$OTOOL64" >&6; }
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8123 if test -z "$ac_cv_prog_OTOOL64"; then
8124 ac_ct_OTOOL64=$OTOOL64
8125 # Extract the first word of "otool64", so it can be a program name with args.
8126 set dummy otool64; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 if test -n "$ac_ct_OTOOL64"; then
8133 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142 ac_cv_prog_ac_ct_OTOOL64="otool64"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8152 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8153 if test -n "$ac_ct_OTOOL64"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8155 $as_echo "$ac_ct_OTOOL64" >&6; }
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8161 if test "x$ac_ct_OTOOL64" = x; then
8164 case $cross_compiling:$ac_tool_warned in
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8170 OTOOL64=$ac_ct_OTOOL64
8173 OTOOL64="$ac_cv_prog_OTOOL64"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8203 $as_echo_n "checking for -single_module linker flag... " >&6; }
8204 if ${lt_cv_apple_cc_single_mod+:} false; then :
8205 $as_echo_n "(cached) " >&6
8207 lt_cv_apple_cc_single_mod=no
8208 if test -z "${LT_MULTI_MODULE}"; then
8209 # By default we will add the -single_module flag. You can override
8210 # by either setting the environment variable LT_MULTI_MODULE
8211 # non-empty at configure time, or by adding -multi_module to the
8213 rm -rf libconftest.dylib*
8214 echo "int foo(void){return 1;}" > conftest.c
8215 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216 -dynamiclib -Wl,-single_module conftest.c" >&5
8217 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8218 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8220 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8221 lt_cv_apple_cc_single_mod=yes
8223 cat conftest.err >&5
8225 rm -rf libconftest.dylib*
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8230 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8232 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8233 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8234 $as_echo_n "(cached) " >&6
8236 lt_cv_ld_exported_symbols_list=no
8237 save_LDFLAGS=$LDFLAGS
8238 echo "_main" > conftest.sym
8239 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 lt_cv_ld_exported_symbols_list=yes
8254 lt_cv_ld_exported_symbols_list=no
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 LDFLAGS="$save_LDFLAGS"
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8262 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8264 $as_echo_n "checking for -force_load linker flag... " >&6; }
8265 if ${lt_cv_ld_force_load+:} false; then :
8266 $as_echo_n "(cached) " >&6
8268 lt_cv_ld_force_load=no
8269 cat > conftest.c << _LT_EOF
8270 int forced_loaded() { return 2;}
8272 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8273 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8274 echo "$AR cru libconftest.a conftest.o" >&5
8275 $AR cru libconftest.a conftest.o 2>&5
8276 echo "$RANLIB libconftest.a" >&5
8277 $RANLIB libconftest.a 2>&5
8278 cat > conftest.c << _LT_EOF
8279 int main() { return 0;}
8281 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8282 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8284 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8285 lt_cv_ld_force_load=yes
8287 cat conftest.err >&5
8289 rm -f conftest.err libconftest.a conftest conftest.c
8290 rm -rf conftest.dSYM
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8294 $as_echo "$lt_cv_ld_force_load" >&6; }
8296 rhapsody* | darwin1.[012])
8297 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8299 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8300 darwin*) # darwin 5.x on
8301 # if running on 10.5 or later, the deployment target defaults
8302 # to the OS version, if on x86, and 10.4, the deployment
8303 # target defaults to 10.4. Don't you love it?
8304 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8305 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8308 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8310 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8314 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8315 _lt_dar_single_mod='$single_module'
8317 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8318 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8320 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8322 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8323 _lt_dsymutil='~$DSYMUTIL $lib || :'
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8332 $as_echo_n "checking for ANSI C header files... " >&6; }
8333 if ${ac_cv_header_stdc+:} false; then :
8334 $as_echo_n "(cached) " >&6
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352 ac_cv_header_stdc=yes
8354 ac_cv_header_stdc=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 if test $ac_cv_header_stdc = yes; then
8359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366 $EGREP "memchr" >/dev/null 2>&1; then :
8369 ac_cv_header_stdc=no
8375 if test $ac_cv_header_stdc = yes; then
8376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383 $EGREP "free" >/dev/null 2>&1; then :
8386 ac_cv_header_stdc=no
8392 if test $ac_cv_header_stdc = yes; then
8393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8394 if test "$cross_compiling" = yes; then :
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8401 #if ((' ' & 0x0FF) == 0x020)
8402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8405 # define ISLOWER(c) \
8406 (('a' <= (c) && (c) <= 'i') \
8407 || ('j' <= (c) && (c) <= 'r') \
8408 || ('s' <= (c) && (c) <= 'z'))
8409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8417 for (i = 0; i < 256; i++)
8418 if (XOR (islower (i), ISLOWER (i))
8419 || toupper (i) != TOUPPER (i))
8424 if ac_fn_c_try_run "$LINENO"; then :
8427 ac_cv_header_stdc=no
8429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8430 conftest.$ac_objext conftest.beam conftest.$ac_ext
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8436 $as_echo "$ac_cv_header_stdc" >&6; }
8437 if test $ac_cv_header_stdc = yes; then
8439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8445 inttypes.h stdint.h unistd.h
8447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8451 cat >>confdefs.h <<_ACEOF
8452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8460 for ac_header in dlfcn.h
8462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8464 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8476 func_stripname_cnf ()
8479 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8480 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8482 } # func_stripname_cnf
8499 # Check whether --with-pic was given.
8500 if test "${with_pic+set}" = set; then :
8501 withval=$with_pic; pic_mode="$withval"
8507 test -z "$pic_mode" && pic_mode=default
8515 # Check whether --enable-fast-install was given.
8516 if test "${enable_fast_install+set}" = set; then :
8517 enableval=$enable_fast_install; p=${PACKAGE-default}
8519 yes) enable_fast_install=yes ;;
8520 no) enable_fast_install=no ;;
8522 enable_fast_install=no
8523 # Look at the argument we got. We use all the common list separators.
8524 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8525 for pkg in $enableval; do
8527 if test "X$pkg" = "X$p"; then
8528 enable_fast_install=yes
8535 enable_fast_install=yes
8548 # This can be used to rebuild libtool when needed
8549 LIBTOOL_DEPS="$ltmain"
8551 # Always use our own libtool.
8552 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8579 test -z "$LN_S" && LN_S="ln -s"
8594 if test -n "${ZSH_VERSION+set}" ; then
8595 setopt NO_GLOB_SUBST
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8599 $as_echo_n "checking for objdir... " >&6; }
8600 if ${lt_cv_objdir+:} false; then :
8601 $as_echo_n "(cached) " >&6
8603 rm -f .libs 2>/dev/null
8604 mkdir .libs 2>/dev/null
8605 if test -d .libs; then
8608 # MS-DOS does not allow filenames that begin with a dot.
8611 rmdir .libs 2>/dev/null
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8614 $as_echo "$lt_cv_objdir" >&6; }
8615 objdir=$lt_cv_objdir
8621 cat >>confdefs.h <<_ACEOF
8622 #define LT_OBJDIR "$lt_cv_objdir/"
8630 # AIX sometimes has problems with the GCC collect2 program. For some
8631 # reason, if we set the COLLECT_NAMES environment variable, the problems
8632 # vanish in a puff of smoke.
8633 if test "X${COLLECT_NAMES+set}" != Xset; then
8635 export COLLECT_NAMES
8642 can_build_shared=yes
8644 # All known linkers require a `.a' archive for static linking (except MSVC,
8645 # which needs '.lib').
8648 with_gnu_ld="$lt_cv_prog_gnu_ld"
8651 old_CFLAGS="$CFLAGS"
8653 # Set sane defaults for various variables
8654 test -z "$CC" && CC=cc
8655 test -z "$LTCC" && LTCC=$CC
8656 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8657 test -z "$LD" && LD=ld
8658 test -z "$ac_objext" && ac_objext=o
8660 for cc_temp in $compiler""; do
8662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8668 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8671 # Only perform the check for file, if the check method requires it
8672 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8673 case $deplibs_check_method in
8675 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8677 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8678 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8679 $as_echo_n "(cached) " >&6
8683 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8686 lt_save_MAGIC_CMD="$MAGIC_CMD"
8687 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8689 for ac_dir in $ac_dummy; do
8691 test -z "$ac_dir" && ac_dir=.
8692 if test -f $ac_dir/${ac_tool_prefix}file; then
8693 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8694 if test -n "$file_magic_test_file"; then
8695 case $deplibs_check_method in
8697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8700 $EGREP "$file_magic_regex" > /dev/null; then
8705 *** Warning: the command libtool uses to detect shared libraries,
8706 *** $file_magic_cmd, produces output that libtool cannot recognize.
8707 *** The result is that libtool may fail to recognize shared libraries
8708 *** as such. This will affect the creation of libtool libraries that
8709 *** depend on shared libraries, but programs linked with such libtool
8710 *** libraries will work regardless of this problem. Nevertheless, you
8711 *** may want to report the problem to your system manager and/or to
8712 *** bug-libtool@gnu.org
8722 MAGIC_CMD="$lt_save_MAGIC_CMD"
8727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728 if test -n "$MAGIC_CMD"; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8730 $as_echo "$MAGIC_CMD" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 $as_echo "no" >&6; }
8740 if test -z "$lt_cv_path_MAGIC_CMD"; then
8741 if test -n "$ac_tool_prefix"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8743 $as_echo_n "checking for file... " >&6; }
8744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8745 $as_echo_n "(cached) " >&6
8749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8752 lt_save_MAGIC_CMD="$MAGIC_CMD"
8753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755 for ac_dir in $ac_dummy; do
8757 test -z "$ac_dir" && ac_dir=.
8758 if test -f $ac_dir/file; then
8759 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8760 if test -n "$file_magic_test_file"; then
8761 case $deplibs_check_method in
8763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766 $EGREP "$file_magic_regex" > /dev/null; then
8771 *** Warning: the command libtool uses to detect shared libraries,
8772 *** $file_magic_cmd, produces output that libtool cannot recognize.
8773 *** The result is that libtool may fail to recognize shared libraries
8774 *** as such. This will affect the creation of libtool libraries that
8775 *** depend on shared libraries, but programs linked with such libtool
8776 *** libraries will work regardless of this problem. Nevertheless, you
8777 *** may want to report the problem to your system manager and/or to
8778 *** bug-libtool@gnu.org
8788 MAGIC_CMD="$lt_save_MAGIC_CMD"
8793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8794 if test -n "$MAGIC_CMD"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796 $as_echo "$MAGIC_CMD" >&6; }
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8812 # Use C for the default configuration in the libtool script
8816 ac_cpp='$CPP $CPPFLAGS'
8817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8822 # Source file extension for C test sources.
8825 # Object file extension for compiled C test sources.
8829 # Code to be used in simple compile tests
8830 lt_simple_compile_test_code="int some_variable = 0;"
8832 # Code to be used in simple link tests
8833 lt_simple_link_test_code='int main(){return(0);}'
8841 # If no C compiler was specified, use CC.
8844 # If no C compiler flags were specified, use CFLAGS.
8845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8847 # Allow CC to be a program name with arguments.
8850 # Save the default compiler, since it gets overwritten when the other
8851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8852 compiler_DEFAULT=$CC
8854 # save warnings/boilerplate of simple test code
8855 ac_outfile=conftest.$ac_objext
8856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8858 _lt_compiler_boilerplate=`cat conftest.err`
8861 ac_outfile=conftest.$ac_objext
8862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8864 _lt_linker_boilerplate=`cat conftest.err`
8868 if test -n "$compiler"; then
8870 lt_prog_compiler_no_builtin_flag=
8872 if test "$GCC" = yes; then
8873 case $cc_basename in
8875 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8877 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8881 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8882 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8883 $as_echo_n "(cached) " >&6
8885 lt_cv_prog_compiler_rtti_exceptions=no
8886 ac_outfile=conftest.$ac_objext
8887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8888 lt_compiler_flag="-fno-rtti -fno-exceptions"
8889 # Insert the option either (1) after the last *FLAGS variable, or
8890 # (2) before a word containing "conftest.", or (3) at the end.
8891 # Note that $ac_compile itself does not contain backslashes and begins
8892 # with a dollar sign (not a hyphen), so the echo should work correctly.
8893 # The option is referenced via a variable to avoid confusing sed.
8894 lt_compile=`echo "$ac_compile" | $SED \
8895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8897 -e 's:$: $lt_compiler_flag:'`
8898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8899 (eval "$lt_compile" 2>conftest.err)
8901 cat conftest.err >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 if (exit $ac_status) && test -s "$ac_outfile"; then
8904 # The compiler can only warn and ignore the option if not recognized
8905 # So say no if there are warnings other than the usual output.
8906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8907 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8908 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8909 lt_cv_prog_compiler_rtti_exceptions=yes
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8916 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8918 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8919 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8931 lt_prog_compiler_wl=
8932 lt_prog_compiler_pic=
8933 lt_prog_compiler_static=
8936 if test "$GCC" = yes; then
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_static='-static'
8942 # All AIX code is PIC.
8943 if test "$host_cpu" = ia64; then
8944 # AIX 5 now supports IA64 processor
8945 lt_prog_compiler_static='-Bstatic'
8952 # see comment about AmigaOS4 .so support
8953 lt_prog_compiler_pic='-fPIC'
8956 # FIXME: we need at least 68020 code to build shared libraries, but
8957 # adding the `-m68020' flag to GCC prevents building anything better,
8959 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8964 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8965 # PIC is the default for these OSes.
8968 mingw* | cygwin* | pw32* | os2* | cegcc*)
8969 # This hack is so that the source file can tell whether it is being
8970 # built for inclusion in a dll (and should export symbols for example).
8971 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8972 # (--disable-auto-import) libraries
8973 lt_prog_compiler_pic='-DDLL_EXPORT'
8976 darwin* | rhapsody*)
8977 # PIC is the default on this platform
8978 # Common symbols not allowed in MH_DYLIB files
8979 lt_prog_compiler_pic='-fno-common'
8983 # PIC is the default for Haiku.
8984 # The "-static" flag exists, but is broken.
8985 lt_prog_compiler_static=
8989 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8990 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8991 # sets the default TLS model and affects inlining.
8997 lt_prog_compiler_pic='-fPIC'
9003 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9004 # Instead, we relocate shared libraries at runtime.
9008 # Just because we use GCC doesn't mean we suddenly get shared libraries
9009 # on systems that don't support them.
9010 lt_prog_compiler_can_build_shared=no
9015 # QNX uses GNU C++, but need to define -shared option too, otherwise
9017 lt_prog_compiler_pic='-fPIC -shared'
9021 if test -d /usr/nec; then
9022 lt_prog_compiler_pic=-Kconform_pic
9027 lt_prog_compiler_pic='-fPIC'
9031 case $cc_basename in
9032 nvcc*) # Cuda Compiler Driver 2.2
9033 lt_prog_compiler_wl='-Xlinker '
9034 lt_prog_compiler_pic='-Xcompiler -fPIC'
9038 # PORTME Check for flag to pass linker flags through the system compiler.
9041 lt_prog_compiler_wl='-Wl,'
9042 if test "$host_cpu" = ia64; then
9043 # AIX 5 now supports IA64 processor
9044 lt_prog_compiler_static='-Bstatic'
9046 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9050 mingw* | cygwin* | pw32* | os2* | cegcc*)
9051 # This hack is so that the source file can tell whether it is being
9052 # built for inclusion in a dll (and should export symbols for example).
9053 lt_prog_compiler_pic='-DDLL_EXPORT'
9056 hpux9* | hpux10* | hpux11*)
9057 lt_prog_compiler_wl='-Wl,'
9058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9065 lt_prog_compiler_pic='+Z'
9068 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9069 lt_prog_compiler_static='${wl}-a ${wl}archive'
9072 irix5* | irix6* | nonstopux*)
9073 lt_prog_compiler_wl='-Wl,'
9074 # PIC (with -KPIC) is the default.
9075 lt_prog_compiler_static='-non_shared'
9078 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9079 case $cc_basename in
9080 # old Intel for x86_64 which still supported -KPIC.
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-static'
9086 # icc used to be incompatible with GCC.
9087 # ICC 10 doesn't accept -KPIC any more.
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_pic='-fPIC'
9091 lt_prog_compiler_static='-static'
9093 # Lahey Fortran 8.1.
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='--shared'
9097 lt_prog_compiler_static='--static'
9100 # NAG Fortran compiler
9101 lt_prog_compiler_wl='-Wl,-Wl,,'
9102 lt_prog_compiler_pic='-PIC'
9103 lt_prog_compiler_static='-Bstatic'
9105 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9106 # Portland Group compilers (*not* the Pentium gcc compiler,
9107 # which looks to be a dead project)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-fpic'
9110 lt_prog_compiler_static='-Bstatic'
9113 lt_prog_compiler_wl='-Wl,'
9114 # All Alpha code is PIC.
9115 lt_prog_compiler_static='-non_shared'
9117 xl* | bgxl* | bgf* | mpixl*)
9118 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9119 lt_prog_compiler_wl='-Wl,'
9120 lt_prog_compiler_pic='-qpic'
9121 lt_prog_compiler_static='-qstaticlink'
9124 case `$CC -V 2>&1 | sed 5q` in
9125 *Sun\ F* | *Sun*Fortran*)
9126 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9127 lt_prog_compiler_pic='-KPIC'
9128 lt_prog_compiler_static='-Bstatic'
9129 lt_prog_compiler_wl=''
9133 lt_prog_compiler_pic='-KPIC'
9134 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl='-Wl,'
9143 lt_prog_compiler_pic='-KPIC'
9144 lt_prog_compiler_static='-Bstatic'
9148 # QNX uses GNU C++, but need to define -shared option too, otherwise
9150 lt_prog_compiler_pic='-fPIC -shared'
9153 osf3* | osf4* | osf5*)
9154 lt_prog_compiler_wl='-Wl,'
9155 # All OSF/1 code is PIC.
9156 lt_prog_compiler_static='-non_shared'
9160 lt_prog_compiler_static='-non_shared'
9164 lt_prog_compiler_pic='-KPIC'
9165 lt_prog_compiler_static='-Bstatic'
9166 case $cc_basename in
9167 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9168 lt_prog_compiler_wl='-Qoption ld ';;
9170 lt_prog_compiler_wl='-Wl,';;
9175 lt_prog_compiler_wl='-Qoption ld '
9176 lt_prog_compiler_pic='-PIC'
9177 lt_prog_compiler_static='-Bstatic'
9180 sysv4 | sysv4.2uw2* | sysv4.3*)
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-KPIC'
9183 lt_prog_compiler_static='-Bstatic'
9187 if test -d /usr/nec ;then
9188 lt_prog_compiler_pic='-Kconform_pic'
9189 lt_prog_compiler_static='-Bstatic'
9193 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9194 lt_prog_compiler_wl='-Wl,'
9195 lt_prog_compiler_pic='-KPIC'
9196 lt_prog_compiler_static='-Bstatic'
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_can_build_shared=no
9205 lt_prog_compiler_pic='-pic'
9206 lt_prog_compiler_static='-Bstatic'
9210 lt_prog_compiler_can_build_shared=no
9216 # For platforms which do not support PIC, -DPIC is meaningless:
9218 lt_prog_compiler_pic=
9221 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9226 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9227 if ${lt_cv_prog_compiler_pic+:} false; then :
9228 $as_echo_n "(cached) " >&6
9230 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9233 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9234 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9237 # Check to make sure the PIC flag actually works.
9239 if test -n "$lt_prog_compiler_pic"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9242 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9243 $as_echo_n "(cached) " >&6
9245 lt_cv_prog_compiler_pic_works=no
9246 ac_outfile=conftest.$ac_objext
9247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9249 # Insert the option either (1) after the last *FLAGS variable, or
9250 # (2) before a word containing "conftest.", or (3) at the end.
9251 # Note that $ac_compile itself does not contain backslashes and begins
9252 # with a dollar sign (not a hyphen), so the echo should work correctly.
9253 # The option is referenced via a variable to avoid confusing sed.
9254 lt_compile=`echo "$ac_compile" | $SED \
9255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9257 -e 's:$: $lt_compiler_flag:'`
9258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9259 (eval "$lt_compile" 2>conftest.err)
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 if (exit $ac_status) && test -s "$ac_outfile"; then
9264 # The compiler can only warn and ignore the option if not recognized
9265 # So say no if there are warnings other than the usual output.
9266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9269 lt_cv_prog_compiler_pic_works=yes
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9279 case $lt_prog_compiler_pic in
9281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9284 lt_prog_compiler_pic=
9285 lt_prog_compiler_can_build_shared=no
9301 # Check to make sure the static flag actually works.
9303 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9305 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9306 if ${lt_cv_prog_compiler_static_works+:} false; then :
9307 $as_echo_n "(cached) " >&6
9309 lt_cv_prog_compiler_static_works=no
9310 save_LDFLAGS="$LDFLAGS"
9311 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9312 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9313 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9314 # The linker can only warn and ignore the option if not recognized
9315 # So say no if there are warnings
9316 if test -s conftest.err; then
9317 # Append any errors to the config.log.
9318 cat conftest.err 1>&5
9319 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9320 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9321 if diff conftest.exp conftest.er2 >/dev/null; then
9322 lt_cv_prog_compiler_static_works=yes
9325 lt_cv_prog_compiler_static_works=yes
9329 LDFLAGS="$save_LDFLAGS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9333 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9335 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9338 lt_prog_compiler_static=
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9348 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9349 if ${lt_cv_prog_compiler_c_o+:} false; then :
9350 $as_echo_n "(cached) " >&6
9352 lt_cv_prog_compiler_c_o=no
9353 $RM -r conftest 2>/dev/null
9357 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9359 lt_compiler_flag="-o out/conftest2.$ac_objext"
9360 # Insert the option either (1) after the last *FLAGS variable, or
9361 # (2) before a word containing "conftest.", or (3) at the end.
9362 # Note that $ac_compile itself does not contain backslashes and begins
9363 # with a dollar sign (not a hyphen), so the echo should work correctly.
9364 lt_compile=`echo "$ac_compile" | $SED \
9365 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9366 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9367 -e 's:$: $lt_compiler_flag:'`
9368 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9369 (eval "$lt_compile" 2>out/conftest.err)
9371 cat out/conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9375 # The compiler can only warn and ignore the option if not recognized
9376 # So say no if there are warnings
9377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9378 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9379 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9380 lt_cv_prog_compiler_c_o=yes
9385 # SGI C++ compiler will create directory out/ii_files/ for
9386 # template instantiation
9387 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9388 $RM out/* && rmdir out
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9395 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9403 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9404 if ${lt_cv_prog_compiler_c_o+:} false; then :
9405 $as_echo_n "(cached) " >&6
9407 lt_cv_prog_compiler_c_o=no
9408 $RM -r conftest 2>/dev/null
9412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9414 lt_compiler_flag="-o out/conftest2.$ac_objext"
9415 # Insert the option either (1) after the last *FLAGS variable, or
9416 # (2) before a word containing "conftest.", or (3) at the end.
9417 # Note that $ac_compile itself does not contain backslashes and begins
9418 # with a dollar sign (not a hyphen), so the echo should work correctly.
9419 lt_compile=`echo "$ac_compile" | $SED \
9420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9422 -e 's:$: $lt_compiler_flag:'`
9423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9424 (eval "$lt_compile" 2>out/conftest.err)
9426 cat out/conftest.err >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9430 # The compiler can only warn and ignore the option if not recognized
9431 # So say no if there are warnings
9432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9435 lt_cv_prog_compiler_c_o=yes
9440 # SGI C++ compiler will create directory out/ii_files/ for
9441 # template instantiation
9442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9443 $RM out/* && rmdir out
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9450 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9455 hard_links="nottested"
9456 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9457 # do not overwrite the value of need_locks provided by the user
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9459 $as_echo_n "checking if we can lock with hard links... " >&6; }
9462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9464 ln conftest.a conftest.b 2>&5 || hard_links=no
9465 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9467 $as_echo "$hard_links" >&6; }
9468 if test "$hard_links" = no; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9470 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9483 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9486 allow_undefined_flag=
9487 always_export_symbols=no
9489 archive_expsym_cmds=
9490 compiler_needs_object=no
9491 enable_shared_with_static_runtimes=no
9492 export_dynamic_flag_spec=
9493 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9494 hardcode_automatic=no
9496 hardcode_direct_absolute=no
9497 hardcode_libdir_flag_spec=
9498 hardcode_libdir_flag_spec_ld=
9499 hardcode_libdir_separator=
9501 hardcode_shlibpath_var=unsupported
9503 link_all_deplibs=unknown
9506 old_archive_from_new_cmds=
9507 old_archive_from_expsyms_cmds=
9508 thread_safe_flag_spec=
9509 whole_archive_flag_spec=
9510 # include_expsyms should be a list of space-separated symbols to be *always*
9511 # included in the symbol list
9513 # exclude_expsyms can be an extended regexp of symbols to exclude
9514 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9515 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9516 # as well as any symbol that contains `d'.
9517 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9518 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9519 # platforms (ab)use it in PIC code, but their linkers get confused if
9520 # the symbol is explicitly referenced. Since portable code cannot
9521 # rely on this symbol name, it's probably fine to never include it in
9522 # preloaded symbol tables.
9523 # Exclude shared library initialization/finalization symbols.
9524 extract_expsyms_cmds=
9527 cygwin* | mingw* | pw32* | cegcc*)
9528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9529 # When not using gcc, we currently assume that we are using
9530 # Microsoft Visual C++.
9531 if test "$GCC" != yes; then
9536 # we just hope/assume this is gcc and not c89 (= MSVC++)
9546 # On some targets, GNU ld is compatible enough with the native linker
9547 # that we're better off using the native interface for both.
9548 lt_use_gnu_ld_interface=no
9549 if test "$with_gnu_ld" = yes; then
9552 # The AIX port of GNU ld has always aspired to compatibility
9553 # with the native linker. However, as the warning in the GNU ld
9554 # block says, versions before 2.19.5* couldn't really create working
9555 # shared libraries, regardless of the interface used.
9556 case `$LD -v 2>&1` in
9557 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9558 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9559 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9561 lt_use_gnu_ld_interface=yes
9566 lt_use_gnu_ld_interface=yes
9571 if test "$lt_use_gnu_ld_interface" = yes; then
9572 # If archive_cmds runs LD, not CC, wlarc should be empty
9575 # Set some defaults for GNU ld with shared library support. These
9576 # are reset later if shared libraries are not supported. Putting them
9577 # here allows them to be overridden if necessary.
9578 runpath_var=LD_RUN_PATH
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 export_dynamic_flag_spec='${wl}--export-dynamic'
9581 # ancient GNU ld didn't support --whole-archive et. al.
9582 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9583 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585 whole_archive_flag_spec=
9587 supports_anon_versioning=no
9588 case `$LD -v 2>&1` in
9589 *GNU\ gold*) supports_anon_versioning=yes ;;
9590 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9591 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9592 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9593 *\ 2.11.*) ;; # other 2.11 versions
9594 *) supports_anon_versioning=yes ;;
9597 # See if GNU ld supports shared libraries.
9600 # On AIX/PPC, the GNU linker is very broken
9601 if test "$host_cpu" != ia64; then
9605 *** Warning: the GNU linker, at least up to release 2.19, is reported
9606 *** to be unable to reliably create shared libraries on AIX.
9607 *** Therefore, libtool is disabling shared libraries support. If you
9608 *** really care for shared libraries, you may want to install binutils
9609 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9610 *** You will then need to restart the configuration process.
9619 # see comment about AmigaOS4 .so support
9620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9621 archive_expsym_cmds=''
9624 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)'
9625 hardcode_libdir_flag_spec='-L$libdir'
9626 hardcode_minus_L=yes
9632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9633 allow_undefined_flag=unsupported
9634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9635 # support --undefined. This deserves some investigation. FIXME
9636 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 cygwin* | mingw* | pw32* | cegcc*)
9643 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9644 # as there is no search path for DLLs.
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 export_dynamic_flag_spec='${wl}--export-all-symbols'
9647 allow_undefined_flag=unsupported
9648 always_export_symbols=no
9649 enable_shared_with_static_runtimes=yes
9650 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9651 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9653 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9655 # If the export-symbols file already is a .def file (1st line
9656 # is EXPORTS), use it as is; otherwise, prepend...
9657 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9658 cp $export_symbols $output_objdir/$soname.def;
9660 echo EXPORTS > $output_objdir/$soname.def;
9661 cat $export_symbols >> $output_objdir/$soname.def;
9663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671 link_all_deplibs=yes
9676 hardcode_shlibpath_var=no
9677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9678 export_dynamic_flag_spec='${wl}-E'
9679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9680 # Instead, shared libraries are loaded at an image base (0x10000000 by
9681 # default) and relocated if they conflict, which is a slow very memory
9682 # consuming and fragmenting process. To avoid this, we pick a random,
9683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9686 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'
9689 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9691 if test "$host_os" = linux-dietlibc; then
9692 case $cc_basename in
9693 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9696 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9697 && test "$tmp_diet" = no
9699 tmp_addflag=' $pic_flag'
9700 tmp_sharedflag='-shared'
9701 case $cc_basename,$host_cpu in
9702 pgcc*) # Portland Group C compiler
9703 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9704 tmp_addflag=' $pic_flag'
9706 pgf77* | pgf90* | pgf95* | pgfortran*)
9707 # Portland Group f77 and f90 compilers
9708 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9709 tmp_addflag=' $pic_flag -Mnomain' ;;
9710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9711 tmp_addflag=' -i_dynamic' ;;
9712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9713 tmp_addflag=' -i_dynamic -nofor_main' ;;
9714 ifc* | ifort*) # Intel Fortran compiler
9715 tmp_addflag=' -nofor_main' ;;
9716 lf95*) # Lahey Fortran 8.1
9717 whole_archive_flag_spec=
9718 tmp_sharedflag='--shared' ;;
9719 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9720 tmp_sharedflag='-qmkshrobj'
9722 nvcc*) # Cuda Compiler Driver 2.2
9723 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9724 compiler_needs_object=yes
9727 case `$CC -V 2>&1 | sed 5q` in
9728 *Sun\ C*) # Sun C 5.9
9729 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9730 compiler_needs_object=yes
9731 tmp_sharedflag='-G' ;;
9732 *Sun\ F*) # Sun Fortran 8.3
9733 tmp_sharedflag='-G' ;;
9735 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9737 if test "x$supports_anon_versioning" = xyes; then
9738 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9739 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9740 echo "local: *; };" >> $output_objdir/$libname.ver~
9741 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9744 case $cc_basename in
9745 xlf* | bgf* | bgxlf* | mpixlf*)
9746 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9747 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9748 hardcode_libdir_flag_spec=
9749 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9750 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9751 if test "x$supports_anon_versioning" = xyes; then
9752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9754 echo "local: *; };" >> $output_objdir/$libname.ver~
9755 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9775 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9780 *** create shared libraries on Solaris systems. Therefore, libtool
9781 *** is disabling shared libraries support. We urge you to upgrade GNU
9782 *** binutils to release 2.9.1 or newer. Another option is to modify
9783 *** your PATH or compiler configuration so that the native linker is
9784 *** used, and then restart.
9787 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9796 case `$LD -v 2>&1` in
9797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9802 *** reliably create shared libraries on SCO systems. Therefore, libtool
9803 *** is disabling shared libraries support. We urge you to upgrade GNU
9804 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9805 *** your PATH or compiler configuration so that the native linker is
9806 *** used, and then restart.
9811 # For security reasons, it is highly recommended that you always
9812 # use absolute paths for naming shared libraries, and exclude the
9813 # DT_RUNPATH tag from executables and libraries. But doing so
9814 # requires that you compile everything twice, which is a pain.
9815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9827 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9830 hardcode_shlibpath_var=no
9834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843 if test "$ld_shlibs" = no; then
9845 hardcode_libdir_flag_spec=
9846 export_dynamic_flag_spec=
9847 whole_archive_flag_spec=
9850 # PORTME fill in a description of your system's linker (not GNU ld)
9853 allow_undefined_flag=unsupported
9854 always_export_symbols=yes
9855 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'
9856 # Note: this linker hardcodes the directories in LIBPATH if there
9857 # are no directories specified by -L.
9858 hardcode_minus_L=yes
9859 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9860 # Neither direct hardcoding nor static linking is supported with a
9862 hardcode_direct=unsupported
9867 if test "$host_cpu" = ia64; then
9868 # On IA64, the linker does run time linking by default, so we don't
9869 # have to do anything special.
9870 aix_use_runtimelinking=no
9871 exp_sym_flag='-Bexport'
9874 # If we're using GNU nm, then we don't want the "-C" option.
9875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9876 # Also, AIX nm treats weak defined symbols like other global
9877 # defined symbols, whereas GNU nm marks them as "W".
9878 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9879 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9881 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'
9883 aix_use_runtimelinking=no
9885 # Test if we are trying to use run time linking or normal
9886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9887 # need to do runtime linking.
9888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9889 for ld_flag in $LDFLAGS; do
9890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9891 aix_use_runtimelinking=yes
9898 exp_sym_flag='-bexport'
9899 no_entry_flag='-bnoentry'
9902 # When large executables or shared objects are built, AIX ld can
9903 # have problems creating the table of contents. If linking a library
9904 # or program results in "error TOC overflow" add -mminimal-toc to
9905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9910 hardcode_direct_absolute=yes
9911 hardcode_libdir_separator=':'
9912 link_all_deplibs=yes
9913 file_list_spec='${wl}-f,'
9915 if test "$GCC" = yes; then
9916 case $host_os in aix4.[012]|aix4.[012].*)
9917 # We only want to do this on AIX 4.2 and lower, the check
9918 # below for broken collect2 doesn't work under 4.3+
9919 collect2name=`${CC} -print-prog-name=collect2`
9920 if test -f "$collect2name" &&
9921 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9923 # We have reworked collect2
9926 # We have old collect2
9927 hardcode_direct=unsupported
9928 # It fails to find uninstalled libraries when the uninstalled
9929 # path is not listed in the libpath. Setting hardcode_minus_L
9930 # to unsupported forces relinking
9931 hardcode_minus_L=yes
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 hardcode_libdir_separator=
9937 shared_flag='-shared'
9938 if test "$aix_use_runtimelinking" = yes; then
9939 shared_flag="$shared_flag "'${wl}-G'
9943 if test "$host_cpu" = ia64; then
9944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9945 # chokes on -Wl,-G. The following line is correct:
9948 if test "$aix_use_runtimelinking" = yes; then
9949 shared_flag='${wl}-G'
9951 shared_flag='${wl}-bM:SRE'
9956 export_dynamic_flag_spec='${wl}-bexpall'
9957 # It seems that -bexpall does not export symbols beginning with
9958 # underscore (_), so it is better to generate a list of symbols to export.
9959 always_export_symbols=yes
9960 if test "$aix_use_runtimelinking" = yes; then
9961 # Warning - without using the other runtime loading flags (-brtl),
9962 # -berok will link without error, but may produce a broken library.
9963 allow_undefined_flag='-berok'
9964 # Determine the default libpath from the value encoded in an
9966 if test "${lt_cv_aix_libpath+set}" = set; then
9967 aix_libpath=$lt_cv_aix_libpath
9969 if ${lt_cv_aix_libpath_+:} false; then :
9970 $as_echo_n "(cached) " >&6
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9983 if ac_fn_c_try_link "$LINENO"; then :
9985 lt_aix_libpath_sed='
9986 /Import File Strings/,/^$/ {
9988 s/^0 *\([^ ]*\) *$/\1/
9992 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9993 # Check for a 64-bit object if we didn't find anything.
9994 if test -z "$lt_cv_aix_libpath_"; then
9995 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 if test -z "$lt_cv_aix_libpath_"; then
10001 lt_cv_aix_libpath_="/usr/lib:/lib"
10006 aix_libpath=$lt_cv_aix_libpath_
10009 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10010 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10012 if test "$host_cpu" = ia64; then
10013 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10014 allow_undefined_flag="-z nodefs"
10015 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"
10017 # Determine the default libpath from the value encoded in an
10018 # empty executable.
10019 if test "${lt_cv_aix_libpath+set}" = set; then
10020 aix_libpath=$lt_cv_aix_libpath
10022 if ${lt_cv_aix_libpath_+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10036 if ac_fn_c_try_link "$LINENO"; then :
10038 lt_aix_libpath_sed='
10039 /Import File Strings/,/^$/ {
10041 s/^0 *\([^ ]*\) *$/\1/
10045 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10046 # Check for a 64-bit object if we didn't find anything.
10047 if test -z "$lt_cv_aix_libpath_"; then
10048 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 if test -z "$lt_cv_aix_libpath_"; then
10054 lt_cv_aix_libpath_="/usr/lib:/lib"
10059 aix_libpath=$lt_cv_aix_libpath_
10062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10063 # Warning - without using the other run time loading flags,
10064 # -berok will link without error, but may produce a broken library.
10065 no_undefined_flag=' ${wl}-bernotok'
10066 allow_undefined_flag=' ${wl}-berok'
10067 if test "$with_gnu_ld" = yes; then
10068 # We only use this code for GNU lds that support --whole-archive.
10069 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10071 # Exported symbols can be pulled into shared objects from archives
10072 whole_archive_flag_spec='$convenience'
10074 archive_cmds_need_lc=yes
10075 # This is similar to how AIX traditionally builds its shared libraries.
10076 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'
10084 # see comment about AmigaOS4 .so support
10085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086 archive_expsym_cmds=''
10089 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)'
10090 hardcode_libdir_flag_spec='-L$libdir'
10091 hardcode_minus_L=yes
10097 export_dynamic_flag_spec=-rdynamic
10100 cygwin* | mingw* | pw32* | cegcc*)
10101 # When not using gcc, we currently assume that we are using
10102 # Microsoft Visual C++.
10103 # hardcode_libdir_flag_spec is actually meaningless, as there is
10104 # no search path for DLLs.
10105 case $cc_basename in
10108 hardcode_libdir_flag_spec=' '
10109 allow_undefined_flag=unsupported
10110 always_export_symbols=yes
10112 # Tell ltmain to make .lib files, not .a files.
10114 # Tell ltmain to make .dll files, not .so files.
10116 # FIXME: Setting linknames here is a bad hack.
10117 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10118 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10119 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10121 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10123 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10125 # The linker will not automatically build a static lib if we build a DLL.
10126 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10127 enable_shared_with_static_runtimes=yes
10128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10130 old_postinstall_cmds='chmod 644 $oldlib'
10131 postlink_cmds='lt_outputfile="@OUTPUT@"~
10132 lt_tool_outputfile="@TOOL_OUTPUT@"~
10133 case $lt_outputfile in
10136 lt_outputfile="$lt_outputfile.exe"
10137 lt_tool_outputfile="$lt_tool_outputfile.exe"
10140 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10141 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10142 $RM "$lt_outputfile.manifest";
10146 # Assume MSVC wrapper
10147 hardcode_libdir_flag_spec=' '
10148 allow_undefined_flag=unsupported
10149 # Tell ltmain to make .lib files, not .a files.
10151 # Tell ltmain to make .dll files, not .so files.
10153 # FIXME: Setting linknames here is a bad hack.
10154 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10155 # The linker will automatically build a .lib file if we build a DLL.
10156 old_archive_from_new_cmds='true'
10157 # FIXME: Should let the user specify the lib program.
10158 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10159 enable_shared_with_static_runtimes=yes
10164 darwin* | rhapsody*)
10167 archive_cmds_need_lc=no
10169 hardcode_automatic=yes
10170 hardcode_shlibpath_var=unsupported
10171 if test "$lt_cv_ld_force_load" = "yes"; then
10172 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10174 whole_archive_flag_spec=''
10176 link_all_deplibs=yes
10177 allow_undefined_flag="$_lt_dar_allow_undefined"
10178 case $cc_basename in
10179 ifort*) _lt_dar_can_shared=yes ;;
10180 *) _lt_dar_can_shared=$GCC ;;
10182 if test "$_lt_dar_can_shared" = "yes"; then
10183 output_verbose_link_cmd=func_echo_all
10184 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10185 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10186 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}"
10187 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}"
10196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197 hardcode_libdir_flag_spec='-L$libdir'
10198 hardcode_shlibpath_var=no
10205 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10206 # support. Future versions do this automatically, but an explicit c++rt0.o
10207 # does not break anything, and helps significantly (at the cost of a little
10210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10211 hardcode_libdir_flag_spec='-R$libdir'
10212 hardcode_direct=yes
10213 hardcode_shlibpath_var=no
10216 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_direct=yes
10220 hardcode_minus_L=yes
10221 hardcode_shlibpath_var=no
10224 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10225 freebsd* | dragonfly*)
10226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 hardcode_libdir_flag_spec='-R$libdir'
10228 hardcode_direct=yes
10229 hardcode_shlibpath_var=no
10233 if test "$GCC" = yes; then
10234 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10236 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'
10238 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10239 hardcode_libdir_separator=:
10240 hardcode_direct=yes
10242 # hardcode_minus_L: Not really in the search PATH,
10243 # but as the default location of the library.
10244 hardcode_minus_L=yes
10245 export_dynamic_flag_spec='${wl}-E'
10249 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10250 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10252 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10254 if test "$with_gnu_ld" = no; then
10255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10256 hardcode_libdir_flag_spec_ld='+b $libdir'
10257 hardcode_libdir_separator=:
10258 hardcode_direct=yes
10259 hardcode_direct_absolute=yes
10260 export_dynamic_flag_spec='${wl}-E'
10261 # hardcode_minus_L: Not really in the search PATH,
10262 # but as the default location of the library.
10263 hardcode_minus_L=yes
10268 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10271 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10290 # Older versions of the 11.00 compiler do not understand -b yet
10291 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10293 $as_echo_n "checking if $CC understands -b... " >&6; }
10294 if ${lt_cv_prog_compiler__b+:} false; then :
10295 $as_echo_n "(cached) " >&6
10297 lt_cv_prog_compiler__b=no
10298 save_LDFLAGS="$LDFLAGS"
10299 LDFLAGS="$LDFLAGS -b"
10300 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10301 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10302 # The linker can only warn and ignore the option if not recognized
10303 # So say no if there are warnings
10304 if test -s conftest.err; then
10305 # Append any errors to the config.log.
10306 cat conftest.err 1>&5
10307 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10309 if diff conftest.exp conftest.er2 >/dev/null; then
10310 lt_cv_prog_compiler__b=yes
10313 lt_cv_prog_compiler__b=yes
10317 LDFLAGS="$save_LDFLAGS"
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10321 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10323 if test x"$lt_cv_prog_compiler__b" = xyes; then
10324 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10332 if test "$with_gnu_ld" = no; then
10333 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10334 hardcode_libdir_separator=:
10339 hardcode_shlibpath_var=no
10342 hardcode_direct=yes
10343 hardcode_direct_absolute=yes
10344 export_dynamic_flag_spec='${wl}-E'
10346 # hardcode_minus_L: Not really in the search PATH,
10347 # but as the default location of the library.
10348 hardcode_minus_L=yes
10354 irix5* | irix6* | nonstopux*)
10355 if test "$GCC" = yes; then
10356 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10357 # Try to use the -exported_symbol ld option, if it does not
10358 # work, assume that -exports_file does not work either and
10359 # implicitly export all symbols.
10360 # This should be the same for all languages, so no per-tag cache variable.
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10362 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10363 if ${lt_cv_irix_exported_symbol+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 save_LDFLAGS="$LDFLAGS"
10367 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10370 int foo (void) { return 0; }
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 lt_cv_irix_exported_symbol=yes
10375 lt_cv_irix_exported_symbol=no
10377 rm -f core conftest.err conftest.$ac_objext \
10378 conftest$ac_exeext conftest.$ac_ext
10379 LDFLAGS="$save_LDFLAGS"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10382 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10383 if test "$lt_cv_irix_exported_symbol" = yes; then
10384 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10390 archive_cmds_need_lc='no'
10391 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10392 hardcode_libdir_separator=:
10394 link_all_deplibs=yes
10398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10401 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10403 hardcode_libdir_flag_spec='-R$libdir'
10404 hardcode_direct=yes
10405 hardcode_shlibpath_var=no
10409 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 hardcode_direct=yes
10411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10412 hardcode_libdir_separator=:
10413 hardcode_shlibpath_var=no
10420 if test -f /usr/libexec/ld.so; then
10421 hardcode_direct=yes
10422 hardcode_shlibpath_var=no
10423 hardcode_direct_absolute=yes
10424 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10427 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10428 export_dynamic_flag_spec='${wl}-E'
10431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10433 hardcode_libdir_flag_spec='-R$libdir'
10436 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10447 hardcode_libdir_flag_spec='-L$libdir'
10448 hardcode_minus_L=yes
10449 allow_undefined_flag=unsupported
10450 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'
10451 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10455 if test "$GCC" = yes; then
10456 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10457 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10459 allow_undefined_flag=' -expect_unresolved \*'
10460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10462 archive_cmds_need_lc='no'
10463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10464 hardcode_libdir_separator=:
10467 osf4* | osf5*) # as osf3* with the addition of -msym flag
10468 if test "$GCC" = yes; then
10469 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10470 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10473 allow_undefined_flag=' -expect_unresolved \*'
10474 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10475 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~
10476 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10478 # Both c and cxx compiler support -rpath directly
10479 hardcode_libdir_flag_spec='-rpath $libdir'
10481 archive_cmds_need_lc='no'
10482 hardcode_libdir_separator=:
10486 no_undefined_flag=' -z defs'
10487 if test "$GCC" = yes; then
10489 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10491 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10493 case `$CC -V 2>&1` in
10496 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10497 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10498 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10502 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10504 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10508 hardcode_libdir_flag_spec='-R$libdir'
10509 hardcode_shlibpath_var=no
10511 solaris2.[0-5] | solaris2.[0-5].*) ;;
10513 # The compiler driver will combine and reorder linker options,
10514 # but understands `-z linker_flag'. GCC discards it without `$wl',
10515 # but is careful enough not to reorder.
10516 # Supported since Solaris 2.6 (maybe 2.5.1?)
10517 if test "$GCC" = yes; then
10518 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10520 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10524 link_all_deplibs=yes
10528 if test "x$host_vendor" = xsequent; then
10529 # Use $CC to link under sequent, because it throws in some extra .o
10530 # files that make .init and .fini sections work.
10531 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_direct=yes
10537 hardcode_minus_L=yes
10538 hardcode_shlibpath_var=no
10542 case $host_vendor in
10544 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10545 hardcode_direct=yes # is this really true???
10548 ## LD is ld it makes a PLAMLIB
10549 ## CC just makes a GrossModule.
10550 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10551 reload_cmds='$CC -r -o $output$reload_objs'
10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10559 runpath_var='LD_RUN_PATH'
10560 hardcode_shlibpath_var=no
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_shlibpath_var=no
10566 export_dynamic_flag_spec='-Bexport'
10570 if test -d /usr/nec; then
10571 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10572 hardcode_shlibpath_var=no
10573 runpath_var=LD_RUN_PATH
10574 hardcode_runpath_var=yes
10579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10580 no_undefined_flag='${wl}-z,text'
10581 archive_cmds_need_lc=no
10582 hardcode_shlibpath_var=no
10583 runpath_var='LD_RUN_PATH'
10585 if test "$GCC" = yes; then
10586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 sysv5* | sco3.2v5* | sco5v6*)
10595 # Note: We can NOT use -z defs as we might desire, because we do not
10596 # link with -lc, and that would cause any symbols used from libc to
10597 # always be unresolved, which means just about no library would
10598 # ever link correctly. If we're not using GNU ld we use -z text
10599 # though, which does catch some bad symbols but isn't as heavy-handed
10601 no_undefined_flag='${wl}-z,text'
10602 allow_undefined_flag='${wl}-z,nodefs'
10603 archive_cmds_need_lc=no
10604 hardcode_shlibpath_var=no
10605 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10606 hardcode_libdir_separator=':'
10607 link_all_deplibs=yes
10608 export_dynamic_flag_spec='${wl}-Bexport'
10609 runpath_var='LD_RUN_PATH'
10611 if test "$GCC" = yes; then
10612 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10622 hardcode_libdir_flag_spec='-L$libdir'
10623 hardcode_shlibpath_var=no
10631 if test x$host_vendor = xsni; then
10633 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10634 export_dynamic_flag_spec='${wl}-Blargedynsym'
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10641 $as_echo "$ld_shlibs" >&6; }
10642 test "$ld_shlibs" = no && can_build_shared=no
10644 with_gnu_ld=$with_gnu_ld
10661 # Do we need to explicitly link libc?
10663 case "x$archive_cmds_need_lc" in
10665 # Assume -lc should be added
10666 archive_cmds_need_lc=yes
10668 if test "$enable_shared" = yes && test "$GCC" = yes; then
10669 case $archive_cmds in
10671 # FIXME: we may have to deal with multi-command sequences.
10674 # Test whether the compiler implicitly links with -lc since on some
10675 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10676 # to ld, don't add -lc before -lgcc.
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10678 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10679 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10680 $as_echo_n "(cached) " >&6
10683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10686 (eval $ac_compile) 2>&5
10688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689 test $ac_status = 0; } 2>conftest.err; then
10692 libobjs=conftest.$ac_objext
10694 wl=$lt_prog_compiler_wl
10695 pic_flag=$lt_prog_compiler_pic
10701 lt_save_allow_undefined_flag=$allow_undefined_flag
10702 allow_undefined_flag=
10703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10704 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707 test $ac_status = 0; }
10709 lt_cv_archive_cmds_need_lc=no
10711 lt_cv_archive_cmds_need_lc=yes
10713 allow_undefined_flag=$lt_save_allow_undefined_flag
10715 cat conftest.err 1>&5
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10721 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10722 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10886 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10888 if test "$GCC" = yes; then
10890 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10891 *) lt_awk_arg="/^libraries:/" ;;
10894 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10895 *) lt_sed_strip_eq="s,=/,/,g" ;;
10897 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10898 case $lt_search_path_spec in
10900 # if the path contains ";" then we assume it to be the separator
10901 # otherwise default to the standard path separator (i.e. ":") - it is
10902 # assumed that no part of a normal pathname contains ";" but that should
10903 # okay in the real world where ";" in dirpaths is itself problematic.
10904 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10910 # Ok, now we have the path, separated by spaces, we can step through it
10911 # and add multilib dir if necessary.
10912 lt_tmp_lt_search_path_spec=
10913 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10914 for lt_sys_path in $lt_search_path_spec; do
10915 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10916 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10918 test -d "$lt_sys_path" && \
10919 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10922 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10923 BEGIN {RS=" "; FS="/|\n";} {
10926 for (lt_i = NF; lt_i > 0; lt_i--) {
10927 if ($lt_i != "" && $lt_i != ".") {
10928 if ($lt_i == "..") {
10931 if (lt_count == 0) {
10932 lt_foo="/" $lt_i lt_foo;
10939 if (lt_foo != "") { lt_freq[lt_foo]++; }
10940 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10942 # AWK program above erroneously prepends '/' to C:/dos/paths
10945 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10946 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10948 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10952 library_names_spec=
10953 libname_spec='lib$name'
10957 postuninstall_cmds=
10961 shlibpath_overrides_runpath=unknown
10963 dynamic_linker="$host_os ld.so"
10964 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10965 need_lib_prefix=unknown
10966 hardcode_into_libs=no
10968 # when you set need_version to no, make sure it does not cause -set_version
10969 # flags to be left without arguments
10970 need_version=unknown
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10976 shlibpath_var=LIBPATH
10978 # AIX 3 has no versioning support, so we append a major version to the name.
10979 soname_spec='${libname}${release}${shared_ext}$major'
10986 hardcode_into_libs=yes
10987 if test "$host_cpu" = ia64; then
10988 # AIX 5 supports IA64
10989 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10990 shlibpath_var=LD_LIBRARY_PATH
10992 # With GCC up to 2.95.x, collect2 would create an import file
10993 # for dependence libraries. The import file would start with
10994 # the line `#! .'. This would cause the generated library to
10995 # depend on `.', always an invalid library. This was fixed in
10996 # development snapshots of GCC prior to 3.0.
10998 aix4 | aix4.[01] | aix4.[01].*)
10999 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11001 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11004 can_build_shared=no
11008 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11009 # soname into executable. Probably we can add versioning support to
11010 # collect2, so additional links can be useful in future.
11011 if test "$aix_use_runtimelinking" = yes; then
11012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11013 # instead of lib<name>.a to let people know that these are not
11014 # typical AIX shared libraries.
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 # We preserve .a as extension for shared libraries through AIX4.2
11018 # and later when we are not doing run time linking.
11019 library_names_spec='${libname}${release}.a $libname.a'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11022 shlibpath_var=LIBPATH
11029 # Since July 2007 AmigaOS4 officially supports .so libraries.
11030 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 library_names_spec='$libname.ixlibrary $libname.a'
11035 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11036 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11042 library_names_spec='${libname}${shared_ext}'
11043 dynamic_linker="$host_os ld.so"
11044 shlibpath_var=LIBRARY_PATH
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11056 # the default ld.so.conf also contains /usr/contrib/lib and
11057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11058 # libtool to hard-code these into programs
11061 cygwin* | mingw* | pw32* | cegcc*)
11062 version_type=windows
11067 case $GCC,$cc_basename in
11070 library_names_spec='$libname.dll.a'
11071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11072 postinstall_cmds='base_file=`basename \${file}`~
11073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11074 dldir=$destdir/`dirname \$dlpath`~
11075 test -d \$dldir || mkdir -p \$dldir~
11076 $install_prog $dir/$dlname \$dldir/$dlname~
11077 chmod a+x \$dldir/$dlname~
11078 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11079 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11082 dlpath=$dir/\$dldll~
11084 shlibpath_overrides_runpath=yes
11088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11089 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11091 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11094 # MinGW DLLs use traditional 'lib' prefix
11095 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11098 # pw32 DLLs use 'pw' prefix rather than 'lib'
11099 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11102 dynamic_linker='Win32 ld.exe'
11107 libname_spec='$name'
11108 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11109 library_names_spec='${libname}.dll.lib'
11113 sys_lib_search_path_spec=
11116 for lt_path in $LIB
11119 # Let DOS variable expansion print the short 8.3 style file name.
11120 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11121 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11124 # Convert to MSYS style.
11125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11128 # Convert to unix form, then to dos form, then back to unix form
11129 # but this time dos style (no spaces!) so that the unix form looks
11130 # like /cygdrive/c/PROGRA~1:/cygdr...
11131 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11132 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11133 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11136 sys_lib_search_path_spec="$LIB"
11137 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11138 # It is most probably a Windows format PATH.
11139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11143 # FIXME: find the short name or the path components, as spaces are
11144 # common. (e.g. "Program Files" -> "PROGRA~1")
11148 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11149 postinstall_cmds='base_file=`basename \${file}`~
11150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11151 dldir=$destdir/`dirname \$dlpath`~
11152 test -d \$dldir || mkdir -p \$dldir~
11153 $install_prog $dir/$dlname \$dldir/$dlname'
11154 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11155 dlpath=$dir/\$dldll~
11157 shlibpath_overrides_runpath=yes
11158 dynamic_linker='Win32 link.exe'
11162 # Assume MSVC wrapper
11163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11164 dynamic_linker='Win32 ld.exe'
11167 # FIXME: first we should search . and the directory the executable is in
11171 darwin* | rhapsody*)
11172 dynamic_linker="$host_os dyld"
11173 version_type=darwin
11176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11177 soname_spec='${libname}${release}${major}$shared_ext'
11178 shlibpath_overrides_runpath=yes
11179 shlibpath_var=DYLD_LIBRARY_PATH
11180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11182 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11191 soname_spec='${libname}${release}${shared_ext}$major'
11192 shlibpath_var=LD_LIBRARY_PATH
11199 freebsd* | dragonfly*)
11200 # DragonFly does not have aout. When/if they implement a new
11201 # versioning mechanism, adjust this.
11202 if test -x /usr/bin/objformat; then
11203 objformat=`/usr/bin/objformat`
11206 freebsd[123]*) objformat=aout ;;
11207 *) objformat=elf ;;
11210 version_type=freebsd-$objformat
11211 case $version_type in
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11222 shlibpath_var=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath=yes
11227 freebsd3.[01]* | freebsdelf3.[01]*)
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11231 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11232 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11233 shlibpath_overrides_runpath=no
11234 hardcode_into_libs=yes
11236 *) # from 4.6 on, and DragonFly
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 hardcode_into_libs=yes
11257 dynamic_linker="$host_os runtime_loader"
11258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 shlibpath_var=LIBRARY_PATH
11261 shlibpath_overrides_runpath=yes
11262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11263 hardcode_into_libs=yes
11266 hpux9* | hpux10* | hpux11*)
11267 # Give a soname corresponding to the major version so that dld.sl refuses to
11268 # link against other versions.
11275 hardcode_into_libs=yes
11276 dynamic_linker="$host_os dld.so"
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280 soname_spec='${libname}${release}${shared_ext}$major'
11281 if test "X$HPUX_IA64_MODE" = X32; then
11282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11290 hardcode_into_libs=yes
11291 dynamic_linker="$host_os dld.sl"
11292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11301 dynamic_linker="$host_os dld.sl"
11302 shlibpath_var=SHLIB_PATH
11303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11309 postinstall_cmds='chmod 555 $lib'
11310 # or fails outright, so override atomically:
11311 install_override_mode=555
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11326 irix5* | irix6* | nonstopux*)
11328 nonstopux*) version_type=nonstopux ;;
11330 if test "$lt_cv_prog_gnu_ld" = yes; then
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11341 irix5* | nonstopux*)
11342 libsuff= shlibsuff=
11345 case $LD in # libtool.m4 will add one of these switches to LD
11346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11347 libsuff= shlibsuff= libmagic=32-bit;;
11348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11349 libsuff=32 shlibsuff=N32 libmagic=N32;;
11350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11352 *) libsuff= shlibsuff= libmagic=never-match;;
11356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11357 shlibpath_overrides_runpath=no
11358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11360 hardcode_into_libs=yes
11363 # No shared lib support for Linux oldld, aout, or coff.
11364 linux*oldld* | linux*aout* | linux*coff*)
11368 # This must be Linux ELF.
11369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11376 shlibpath_var=LD_LIBRARY_PATH
11377 shlibpath_overrides_runpath=no
11379 # Some binutils ld are patched to set DT_RUNPATH
11380 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11381 $as_echo_n "(cached) " >&6
11383 lt_cv_shlibpath_overrides_runpath=no
11384 save_LDFLAGS=$LDFLAGS
11385 save_libdir=$libdir
11386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11399 if ac_fn_c_try_link "$LINENO"; then :
11400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11401 lt_cv_shlibpath_overrides_runpath=yes
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11406 LDFLAGS=$save_LDFLAGS
11407 libdir=$save_libdir
11411 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11413 # This implies no fast_install, which is unacceptable.
11414 # Some rework will be needed to allow for fast_install
11415 # before this can be enabled.
11416 hardcode_into_libs=yes
11418 # Append ld.so.conf contents to the search path
11419 if test -f /etc/ld.so.conf; then
11420 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11424 # We used to test for /lib/ld.so.1 and disable shared libraries on
11425 # powerpc, because MkLinux only supported shared libraries with the
11426 # GNU dynamic linker. Since this was broken with cross compilers,
11427 # most powerpc-linux boxes support dynamic linking these days and
11428 # people can always --disable-shared, the test was removed, and we
11429 # assume the GNU/Linux dynamic linker is in use.
11430 dynamic_linker='GNU/Linux ld.so'
11437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11440 dynamic_linker='NetBSD (a.out) ld.so'
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 dynamic_linker='NetBSD ld.elf_so'
11446 shlibpath_var=LD_LIBRARY_PATH
11447 shlibpath_overrides_runpath=yes
11448 hardcode_into_libs=yes
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 shlibpath_var=LD_LIBRARY_PATH
11465 shlibpath_overrides_runpath=no
11466 hardcode_into_libs=yes
11467 dynamic_linker='ldqnx.so'
11472 sys_lib_dlsearch_path_spec="/usr/lib"
11474 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11476 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11477 *) need_version=no ;;
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11484 openbsd2.[89] | openbsd2.[89].*)
11485 shlibpath_overrides_runpath=no
11488 shlibpath_overrides_runpath=yes
11492 shlibpath_overrides_runpath=yes
11497 libname_spec='$name'
11500 library_names_spec='$libname${shared_ext} $libname.a'
11501 dynamic_linker='OS/2 ld.exe'
11502 shlibpath_var=LIBPATH
11505 osf3* | osf4* | osf5*)
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11513 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 hardcode_into_libs=yes
11529 # ldd complains unless libraries are executable
11530 postinstall_cmds='chmod +x $lib'
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11536 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 if test "$with_gnu_ld" = yes; then
11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548 soname_spec='${libname}${release}${shared_ext}$major'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 case $host_vendor in
11552 shlibpath_overrides_runpath=no
11554 runpath_var=LD_RUN_PATH
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11569 if test -d /usr/nec ;then
11571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572 soname_spec='$libname${shared_ext}.$major'
11573 shlibpath_var=LD_LIBRARY_PATH
11577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11578 version_type=freebsd-elf
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 if test "$with_gnu_ld" = yes; then
11587 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11589 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11592 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11596 sys_lib_dlsearch_path_spec='/usr/lib'
11600 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 shlibpath_var=LD_LIBRARY_PATH
11606 shlibpath_overrides_runpath=no
11607 hardcode_into_libs=yes
11612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613 soname_spec='${libname}${release}${shared_ext}$major'
11614 shlibpath_var=LD_LIBRARY_PATH
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11622 $as_echo "$dynamic_linker" >&6; }
11623 test "$dynamic_linker" = no && can_build_shared=no
11625 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11626 if test "$GCC" = yes; then
11627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11630 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11631 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11633 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11634 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11729 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11731 if test -n "$hardcode_libdir_flag_spec" ||
11732 test -n "$runpath_var" ||
11733 test "X$hardcode_automatic" = "Xyes" ; then
11735 # We can hardcode non-existent directories.
11736 if test "$hardcode_direct" != no &&
11737 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11738 # have to relink, otherwise we might link with an installed library
11739 # when we should be linking with a yet-to-be-installed one
11740 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11741 test "$hardcode_minus_L" != no; then
11742 # Linking always hardcodes the temporary library directory.
11743 hardcode_action=relink
11745 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11746 hardcode_action=immediate
11749 # We cannot hardcode anything, or else we can only hardcode existing
11751 hardcode_action=unsupported
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11754 $as_echo "$hardcode_action" >&6; }
11756 if test "$hardcode_action" = relink ||
11757 test "$inherit_rpath" = yes; then
11758 # Fast installation is not supported
11759 enable_fast_install=no
11760 elif test "$shlibpath_overrides_runpath" = yes ||
11761 test "$enable_shared" = no; then
11762 # Fast installation is not necessary
11763 enable_fast_install=needless
11771 if test "x$enable_dlopen" != xyes; then
11772 enable_dlopen=unknown
11773 enable_dlopen_self=unknown
11774 enable_dlopen_self_static=unknown
11781 lt_cv_dlopen="load_add_on"
11783 lt_cv_dlopen_self=yes
11786 mingw* | pw32* | cegcc*)
11787 lt_cv_dlopen="LoadLibrary"
11792 lt_cv_dlopen="dlopen"
11797 # if libdl is installed we need to link against it
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11799 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11800 if ${ac_cv_lib_dl_dlopen+:} false; then :
11801 $as_echo_n "(cached) " >&6
11803 ac_check_lib_save_LIBS=$LIBS
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11823 if ac_fn_c_try_link "$LINENO"; then :
11824 ac_cv_lib_dl_dlopen=yes
11826 ac_cv_lib_dl_dlopen=no
11828 rm -f core conftest.err conftest.$ac_objext \
11829 conftest$ac_exeext conftest.$ac_ext
11830 LIBS=$ac_check_lib_save_LIBS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11833 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11834 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11838 lt_cv_dlopen="dyld"
11840 lt_cv_dlopen_self=yes
11847 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11848 if test "x$ac_cv_func_shl_load" = xyes; then :
11849 lt_cv_dlopen="shl_load"
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11852 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11853 if ${ac_cv_lib_dld_shl_load+:} false; then :
11854 $as_echo_n "(cached) " >&6
11856 ac_check_lib_save_LIBS=$LIBS
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11861 /* Override any GCC internal prototype to avoid an error.
11862 Use char because int might match the return type of a GCC
11863 builtin and then its argument prototype would still apply. */
11871 return shl_load ();
11876 if ac_fn_c_try_link "$LINENO"; then :
11877 ac_cv_lib_dld_shl_load=yes
11879 ac_cv_lib_dld_shl_load=no
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11883 LIBS=$ac_check_lib_save_LIBS
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11886 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11887 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11888 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11890 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11891 if test "x$ac_cv_func_dlopen" = xyes; then :
11892 lt_cv_dlopen="dlopen"
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11896 if ${ac_cv_lib_dl_dlopen+:} false; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_check_lib_save_LIBS=$LIBS
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11919 if ac_fn_c_try_link "$LINENO"; then :
11920 ac_cv_lib_dl_dlopen=yes
11922 ac_cv_lib_dl_dlopen=no
11924 rm -f core conftest.err conftest.$ac_objext \
11925 conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11934 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11935 if ${ac_cv_lib_svld_dlopen+:} false; then :
11936 $as_echo_n "(cached) " >&6
11938 ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lsvld $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 ac_cv_lib_svld_dlopen=yes
11961 ac_cv_lib_svld_dlopen=no
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11968 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11969 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11970 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11973 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11974 if ${ac_cv_lib_dld_dld_link+:} false; then :
11975 $as_echo_n "(cached) " >&6
11977 ac_check_lib_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11992 return dld_link ();
11997 if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_lib_dld_dld_link=yes
12000 ac_cv_lib_dld_dld_link=no
12002 rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12007 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12008 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12009 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12030 if test "x$lt_cv_dlopen" != xno; then
12036 case $lt_cv_dlopen in
12038 save_CPPFLAGS="$CPPFLAGS"
12039 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12041 save_LDFLAGS="$LDFLAGS"
12042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12045 LIBS="$lt_cv_dlopen_libs $LIBS"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12048 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self+:} false; then :
12050 $as_echo_n "(cached) " >&6
12052 if test "$cross_compiling" = yes; then :
12053 lt_cv_dlopen_self=cross
12055 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12056 lt_status=$lt_dlunknown
12057 cat > conftest.$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12068 # define LT_DLGLOBAL RTLD_GLOBAL
12071 # define LT_DLGLOBAL DL_GLOBAL
12073 # define LT_DLGLOBAL 0
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078 find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12084 # define LT_DLLAZY_OR_NOW DL_LAZY
12087 # define LT_DLLAZY_OR_NOW RTLD_NOW
12090 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # define LT_DLLAZY_OR_NOW 0
12099 /* When -fvisbility=hidden is used, assume the code has been annotated
12100 correspondingly for the symbols needed. */
12101 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12105 int fnord () { return 42; }
12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109 int status = $lt_dlunknown;
12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12117 else puts (dlerror ());
12119 /* dlclose (self); */
12127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128 (eval $ac_link) 2>&5
12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12132 (./conftest; exit; ) >&5 2>/dev/null
12134 case x$lt_status in
12135 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12136 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12137 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12140 # compilation failed
12141 lt_cv_dlopen_self=no
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12149 $as_echo "$lt_cv_dlopen_self" >&6; }
12151 if test "x$lt_cv_dlopen_self" = xyes; then
12152 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12154 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12155 if ${lt_cv_dlopen_self_static+:} false; then :
12156 $as_echo_n "(cached) " >&6
12158 if test "$cross_compiling" = yes; then :
12159 lt_cv_dlopen_self_static=cross
12161 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12162 lt_status=$lt_dlunknown
12163 cat > conftest.$ac_ext <<_LT_EOF
12164 #line $LINENO "configure"
12165 #include "confdefs.h"
12174 # define LT_DLGLOBAL RTLD_GLOBAL
12177 # define LT_DLGLOBAL DL_GLOBAL
12179 # define LT_DLGLOBAL 0
12183 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12184 find out it does not work in some platform. */
12185 #ifndef LT_DLLAZY_OR_NOW
12187 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12190 # define LT_DLLAZY_OR_NOW DL_LAZY
12193 # define LT_DLLAZY_OR_NOW RTLD_NOW
12196 # define LT_DLLAZY_OR_NOW DL_NOW
12198 # define LT_DLLAZY_OR_NOW 0
12205 /* When -fvisbility=hidden is used, assume the code has been annotated
12206 correspondingly for the symbols needed. */
12207 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12208 int fnord () __attribute__((visibility("default")));
12211 int fnord () { return 42; }
12214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12215 int status = $lt_dlunknown;
12219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12222 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12223 else puts (dlerror ());
12225 /* dlclose (self); */
12233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12234 (eval $ac_link) 2>&5
12236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12238 (./conftest; exit; ) >&5 2>/dev/null
12240 case x$lt_status in
12241 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12242 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12243 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12246 # compilation failed
12247 lt_cv_dlopen_self_static=no
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12255 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12258 CPPFLAGS="$save_CPPFLAGS"
12259 LDFLAGS="$save_LDFLAGS"
12264 case $lt_cv_dlopen_self in
12265 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12266 *) enable_dlopen_self=unknown ;;
12269 case $lt_cv_dlopen_self_static in
12270 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12271 *) enable_dlopen_self_static=unknown ;;
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12294 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12295 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12299 $as_echo "yes" >&6; }
12301 # FIXME - insert some real tests, host_os isn't really good enough
12304 if test -n "$STRIP" ; then
12305 striplib="$STRIP -x"
12306 old_striplib="$STRIP -S"
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12308 $as_echo "yes" >&6; }
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12332 # Report which library types will actually be built
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12336 $as_echo "$can_build_shared" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12339 $as_echo_n "checking whether to build shared libraries... " >&6; }
12340 test "$can_build_shared" = "no" && enable_shared=no
12342 # On AIX, shared libraries and static libraries use the same namespace, and
12343 # are all built from PIC.
12346 test "$enable_shared" = yes && enable_static=no
12347 if test -n "$RANLIB"; then
12348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12349 postinstall_cmds='$RANLIB $lib'
12354 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12355 test "$enable_shared" = yes && enable_static=no
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12360 $as_echo "$enable_shared" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12363 $as_echo_n "checking whether to build static libraries... " >&6; }
12364 # Make sure either enable_shared or enable_static is yes.
12365 test "$enable_shared" = yes || enable_static=yes
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12367 $as_echo "$enable_static" >&6; }
12374 ac_cpp='$CPP $CPPFLAGS'
12375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12382 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12383 (test "X$CXX" != "Xg++"))) ; then
12385 ac_cpp='$CXXCPP $CPPFLAGS'
12386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12390 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12391 if test -z "$CXXCPP"; then
12392 if ${ac_cv_prog_CXXCPP+:} false; then :
12393 $as_echo_n "(cached) " >&6
12395 # Double quotes because CXXCPP needs to be expanded
12396 for CXXCPP in "$CXX -E" "/lib/cpp"
12398 ac_preproc_ok=false
12399 for ac_cxx_preproc_warn_flag in '' yes
12401 # Use a header file that comes with gcc, so configuring glibc
12402 # with a fresh cross-compiler works.
12403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12404 # <limits.h> exists even on freestanding compilers.
12405 # On the NeXT, cc -E runs the code through the compiler's parser,
12406 # not just through cpp. "Syntax error" is here to catch this case.
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12410 # include <limits.h>
12412 # include <assert.h>
12416 if ac_fn_cxx_try_cpp "$LINENO"; then :
12419 # Broken: fails on valid input.
12422 rm -f conftest.err conftest.i conftest.$ac_ext
12424 # OK, works on sane cases. Now check whether nonexistent headers
12425 # can be detected and how.
12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h. */
12428 #include <ac_nonexistent.h>
12430 if ac_fn_cxx_try_cpp "$LINENO"; then :
12431 # Broken: success on invalid input.
12434 # Passes both tests.
12438 rm -f conftest.err conftest.i conftest.$ac_ext
12441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12442 rm -f conftest.i conftest.err conftest.$ac_ext
12443 if $ac_preproc_ok; then :
12448 ac_cv_prog_CXXCPP=$CXXCPP
12451 CXXCPP=$ac_cv_prog_CXXCPP
12453 ac_cv_prog_CXXCPP=$CXXCPP
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12456 $as_echo "$CXXCPP" >&6; }
12457 ac_preproc_ok=false
12458 for ac_cxx_preproc_warn_flag in '' yes
12460 # Use a header file that comes with gcc, so configuring glibc
12461 # with a fresh cross-compiler works.
12462 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12463 # <limits.h> exists even on freestanding compilers.
12464 # On the NeXT, cc -E runs the code through the compiler's parser,
12465 # not just through cpp. "Syntax error" is here to catch this case.
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 # include <limits.h>
12471 # include <assert.h>
12475 if ac_fn_cxx_try_cpp "$LINENO"; then :
12478 # Broken: fails on valid input.
12481 rm -f conftest.err conftest.i conftest.$ac_ext
12483 # OK, works on sane cases. Now check whether nonexistent headers
12484 # can be detected and how.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h. */
12487 #include <ac_nonexistent.h>
12489 if ac_fn_cxx_try_cpp "$LINENO"; then :
12490 # Broken: success on invalid input.
12493 # Passes both tests.
12497 rm -f conftest.err conftest.i conftest.$ac_ext
12500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12501 rm -f conftest.i conftest.err conftest.$ac_ext
12502 if $ac_preproc_ok; then :
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12507 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12508 See \`config.log' for more details" "$LINENO" 5 ; }
12512 ac_cpp='$CPP $CPPFLAGS'
12513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12518 _lt_caught_CXX_error=yes
12522 ac_cpp='$CXXCPP $CPPFLAGS'
12523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12527 archive_cmds_need_lc_CXX=no
12528 allow_undefined_flag_CXX=
12529 always_export_symbols_CXX=no
12530 archive_expsym_cmds_CXX=
12531 compiler_needs_object_CXX=no
12532 export_dynamic_flag_spec_CXX=
12533 hardcode_direct_CXX=no
12534 hardcode_direct_absolute_CXX=no
12535 hardcode_libdir_flag_spec_CXX=
12536 hardcode_libdir_flag_spec_ld_CXX=
12537 hardcode_libdir_separator_CXX=
12538 hardcode_minus_L_CXX=no
12539 hardcode_shlibpath_var_CXX=unsupported
12540 hardcode_automatic_CXX=no
12541 inherit_rpath_CXX=no
12543 module_expsym_cmds_CXX=
12544 link_all_deplibs_CXX=unknown
12545 old_archive_cmds_CXX=$old_archive_cmds
12546 reload_flag_CXX=$reload_flag
12547 reload_cmds_CXX=$reload_cmds
12548 no_undefined_flag_CXX=
12549 whole_archive_flag_spec_CXX=
12550 enable_shared_with_static_runtimes_CXX=no
12552 # Source file extension for C++ test sources.
12555 # Object file extension for compiled C++ test sources.
12559 # No sense in running all these tests if we already determined that
12560 # the CXX compiler isn't working. Some variables (like enable_shared)
12561 # are currently assumed to apply to all compilers on this platform,
12562 # and will be corrupted by setting them based on a non-working compiler.
12563 if test "$_lt_caught_CXX_error" != yes; then
12564 # Code to be used in simple compile tests
12565 lt_simple_compile_test_code="int some_variable = 0;"
12567 # Code to be used in simple link tests
12568 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12570 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12577 # If no C compiler was specified, use CC.
12580 # If no C compiler flags were specified, use CFLAGS.
12581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12583 # Allow CC to be a program name with arguments.
12587 # save warnings/boilerplate of simple test code
12588 ac_outfile=conftest.$ac_objext
12589 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12590 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12591 _lt_compiler_boilerplate=`cat conftest.err`
12594 ac_outfile=conftest.$ac_objext
12595 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12596 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12597 _lt_linker_boilerplate=`cat conftest.err`
12601 # Allow CC to be a program name with arguments.
12603 lt_save_CFLAGS=$CFLAGS
12607 lt_save_with_gnu_ld=$with_gnu_ld
12608 lt_save_path_LD=$lt_cv_path_LD
12609 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12610 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12612 $as_unset lt_cv_prog_gnu_ld
12614 if test -n "${lt_cv_path_LDCXX+set}"; then
12615 lt_cv_path_LD=$lt_cv_path_LDCXX
12617 $as_unset lt_cv_path_LD
12619 test -z "${LDCXX+set}" || LD=$LDCXX
12624 for cc_temp in $compiler""; do
12626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12632 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12635 if test -n "$compiler"; then
12636 # We don't want -fno-exception when compiling C++ code, so set the
12637 # no_builtin_flag separately
12638 if test "$GXX" = yes; then
12639 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12641 lt_prog_compiler_no_builtin_flag_CXX=
12644 if test "$GXX" = yes; then
12645 # Set up default GNU C++ configuration
12649 # Check whether --with-gnu-ld was given.
12650 if test "${with_gnu_ld+set}" = set; then :
12651 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12657 if test "$GCC" = yes; then
12658 # Check if gcc -print-prog-name=ld gives a path.
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12660 $as_echo_n "checking for ld used by $CC... " >&6; }
12663 # gcc leaves a trailing carriage return which upsets mingw
12664 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12666 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12669 # Accept absolute paths.
12671 re_direlt='/[^/][^/]*/\.\./'
12672 # Canonicalize the pathname of ld
12673 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12674 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12675 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12677 test -z "$LD" && LD="$ac_prog"
12680 # If it fails, then pretend we aren't using GCC.
12684 # If it is relative, then search for the first ld in PATH.
12685 with_gnu_ld=unknown
12688 elif test "$with_gnu_ld" = yes; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12690 $as_echo_n "checking for GNU ld... " >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12693 $as_echo_n "checking for non-GNU ld... " >&6; }
12695 if ${lt_cv_path_LD+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 if test -z "$LD"; then
12699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12700 for ac_dir in $PATH; do
12702 test -z "$ac_dir" && ac_dir=.
12703 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12704 lt_cv_path_LD="$ac_dir/$ac_prog"
12705 # Check to see if the program is GNU ld. I'd rather use --version,
12706 # but apparently some variants of GNU ld only accept -v.
12707 # Break only if it was the GNU/non-GNU ld that we prefer.
12708 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12709 *GNU* | *'with BFD'*)
12710 test "$with_gnu_ld" != no && break
12713 test "$with_gnu_ld" != yes && break
12720 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12724 LD="$lt_cv_path_LD"
12725 if test -n "$LD"; then
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12727 $as_echo "$LD" >&6; }
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12732 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12734 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12735 if ${lt_cv_prog_gnu_ld+:} false; then :
12736 $as_echo_n "(cached) " >&6
12738 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12739 case `$LD -v 2>&1 </dev/null` in
12740 *GNU* | *'with BFD'*)
12741 lt_cv_prog_gnu_ld=yes
12744 lt_cv_prog_gnu_ld=no
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12749 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12750 with_gnu_ld=$lt_cv_prog_gnu_ld
12758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12759 # archiving commands below assume that GNU ld is being used.
12760 if test "$with_gnu_ld" = yes; then
12761 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12764 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12767 # If archive_cmds runs LD, not CC, wlarc should be empty
12768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12769 # investigate it a little bit more. (MM)
12772 # ancient GNU ld didn't support --whole-archive et. al.
12773 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12774 $GREP 'no-whole-archive' > /dev/null; then
12775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12777 whole_archive_flag_spec_CXX=
12783 # A generic and very simple default shared library creation
12784 # command for GNU C++ for the case where it uses the native
12785 # linker, instead of GNU ld. If possible, this setting should
12786 # overridden to take advantage of the native linker features on
12787 # the platform it is being used on.
12788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12791 # Commands to make compiler produce verbose output that lists
12792 # what "hidden" libraries, object files and flags are used when
12793 # linking a shared library.
12794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12802 # PORTME: fill in a description of your system's C++ link characteristics
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12804 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12808 # FIXME: insert proper C++ library support
12812 if test "$host_cpu" = ia64; then
12813 # On IA64, the linker does run time linking by default, so we don't
12814 # have to do anything special.
12815 aix_use_runtimelinking=no
12816 exp_sym_flag='-Bexport'
12819 aix_use_runtimelinking=no
12821 # Test if we are trying to use run time linking or normal
12822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12823 # need to do runtime linking.
12824 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12825 for ld_flag in $LDFLAGS; do
12828 aix_use_runtimelinking=yes
12836 exp_sym_flag='-bexport'
12837 no_entry_flag='-bnoentry'
12840 # When large executables or shared objects are built, AIX ld can
12841 # have problems creating the table of contents. If linking a library
12842 # or program results in "error TOC overflow" add -mminimal-toc to
12843 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12844 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12846 archive_cmds_CXX=''
12847 hardcode_direct_CXX=yes
12848 hardcode_direct_absolute_CXX=yes
12849 hardcode_libdir_separator_CXX=':'
12850 link_all_deplibs_CXX=yes
12851 file_list_spec_CXX='${wl}-f,'
12853 if test "$GXX" = yes; then
12854 case $host_os in aix4.[012]|aix4.[012].*)
12855 # We only want to do this on AIX 4.2 and lower, the check
12856 # below for broken collect2 doesn't work under 4.3+
12857 collect2name=`${CC} -print-prog-name=collect2`
12858 if test -f "$collect2name" &&
12859 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12861 # We have reworked collect2
12864 # We have old collect2
12865 hardcode_direct_CXX=unsupported
12866 # It fails to find uninstalled libraries when the uninstalled
12867 # path is not listed in the libpath. Setting hardcode_minus_L
12868 # to unsupported forces relinking
12869 hardcode_minus_L_CXX=yes
12870 hardcode_libdir_flag_spec_CXX='-L$libdir'
12871 hardcode_libdir_separator_CXX=
12874 shared_flag='-shared'
12875 if test "$aix_use_runtimelinking" = yes; then
12876 shared_flag="$shared_flag "'${wl}-G'
12880 if test "$host_cpu" = ia64; then
12881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12882 # chokes on -Wl,-G. The following line is correct:
12885 if test "$aix_use_runtimelinking" = yes; then
12886 shared_flag='${wl}-G'
12888 shared_flag='${wl}-bM:SRE'
12893 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12894 # It seems that -bexpall does not export symbols beginning with
12895 # underscore (_), so it is better to generate a list of symbols to
12897 always_export_symbols_CXX=yes
12898 if test "$aix_use_runtimelinking" = yes; then
12899 # Warning - without using the other runtime loading flags (-brtl),
12900 # -berok will link without error, but may produce a broken library.
12901 allow_undefined_flag_CXX='-berok'
12902 # Determine the default libpath from the value encoded in an empty
12904 if test "${lt_cv_aix_libpath+set}" = set; then
12905 aix_libpath=$lt_cv_aix_libpath
12907 if ${lt_cv_aix_libpath__CXX+:} false; then :
12908 $as_echo_n "(cached) " >&6
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12921 if ac_fn_cxx_try_link "$LINENO"; then :
12923 lt_aix_libpath_sed='
12924 /Import File Strings/,/^$/ {
12926 s/^0 *\([^ ]*\) *$/\1/
12930 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12931 # Check for a 64-bit object if we didn't find anything.
12932 if test -z "$lt_cv_aix_libpath__CXX"; then
12933 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 if test -z "$lt_cv_aix_libpath__CXX"; then
12939 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12944 aix_libpath=$lt_cv_aix_libpath__CXX
12947 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12949 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12951 if test "$host_cpu" = ia64; then
12952 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12953 allow_undefined_flag_CXX="-z nodefs"
12954 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"
12956 # Determine the default libpath from the value encoded in an
12957 # empty executable.
12958 if test "${lt_cv_aix_libpath+set}" = set; then
12959 aix_libpath=$lt_cv_aix_libpath
12961 if ${lt_cv_aix_libpath__CXX+:} false; then :
12962 $as_echo_n "(cached) " >&6
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12975 if ac_fn_cxx_try_link "$LINENO"; then :
12977 lt_aix_libpath_sed='
12978 /Import File Strings/,/^$/ {
12980 s/^0 *\([^ ]*\) *$/\1/
12984 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12985 # Check for a 64-bit object if we didn't find anything.
12986 if test -z "$lt_cv_aix_libpath__CXX"; then
12987 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12990 rm -f core conftest.err conftest.$ac_objext \
12991 conftest$ac_exeext conftest.$ac_ext
12992 if test -z "$lt_cv_aix_libpath__CXX"; then
12993 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12998 aix_libpath=$lt_cv_aix_libpath__CXX
13001 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13002 # Warning - without using the other run time loading flags,
13003 # -berok will link without error, but may produce a broken library.
13004 no_undefined_flag_CXX=' ${wl}-bernotok'
13005 allow_undefined_flag_CXX=' ${wl}-berok'
13006 if test "$with_gnu_ld" = yes; then
13007 # We only use this code for GNU lds that support --whole-archive.
13008 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13010 # Exported symbols can be pulled into shared objects from archives
13011 whole_archive_flag_spec_CXX='$convenience'
13013 archive_cmds_need_lc_CXX=yes
13014 # This is similar to how AIX traditionally builds its shared
13016 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'
13022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13023 allow_undefined_flag_CXX=unsupported
13024 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13025 # support --undefined. This deserves some investigation. FIXME
13026 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13033 case $cc_basename in
13035 # FIXME: insert proper C++ library support
13041 cygwin* | mingw* | pw32* | cegcc*)
13042 case $GXX,$cc_basename in
13045 # hardcode_libdir_flag_spec is actually meaningless, as there is
13046 # no search path for DLLs.
13047 hardcode_libdir_flag_spec_CXX=' '
13048 allow_undefined_flag_CXX=unsupported
13049 always_export_symbols_CXX=yes
13050 file_list_spec_CXX='@'
13051 # Tell ltmain to make .lib files, not .a files.
13053 # Tell ltmain to make .dll files, not .so files.
13055 # FIXME: Setting linknames here is a bad hack.
13056 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13057 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13058 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13060 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13062 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13064 # The linker will not automatically build a static lib if we build a DLL.
13065 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13066 enable_shared_with_static_runtimes_CXX=yes
13068 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13069 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13070 lt_tool_outputfile="@TOOL_OUTPUT@"~
13071 case $lt_outputfile in
13074 lt_outputfile="$lt_outputfile.exe"
13075 lt_tool_outputfile="$lt_tool_outputfile.exe"
13078 func_to_tool_file "$lt_outputfile"~
13079 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13080 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13081 $RM "$lt_outputfile.manifest";
13086 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13087 # as there is no search path for DLLs.
13088 hardcode_libdir_flag_spec_CXX='-L$libdir'
13089 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13090 allow_undefined_flag_CXX=unsupported
13091 always_export_symbols_CXX=no
13092 enable_shared_with_static_runtimes_CXX=yes
13094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13095 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'
13096 # If the export-symbols file already is a .def file (1st line
13097 # is EXPORTS), use it as is; otherwise, prepend...
13098 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13099 cp $export_symbols $output_objdir/$soname.def;
13101 echo EXPORTS > $output_objdir/$soname.def;
13102 cat $export_symbols >> $output_objdir/$soname.def;
13104 $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'
13111 darwin* | rhapsody*)
13114 archive_cmds_need_lc_CXX=no
13115 hardcode_direct_CXX=no
13116 hardcode_automatic_CXX=yes
13117 hardcode_shlibpath_var_CXX=unsupported
13118 if test "$lt_cv_ld_force_load" = "yes"; then
13119 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13121 whole_archive_flag_spec_CXX=''
13123 link_all_deplibs_CXX=yes
13124 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13125 case $cc_basename in
13126 ifort*) _lt_dar_can_shared=yes ;;
13127 *) _lt_dar_can_shared=$GCC ;;
13129 if test "$_lt_dar_can_shared" = "yes"; then
13130 output_verbose_link_cmd=func_echo_all
13131 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}"
13132 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13133 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}"
13134 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}"
13135 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13136 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}"
13137 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}"
13147 case $cc_basename in
13149 # FIXME: insert proper C++ library support
13153 # Green Hills C++ Compiler
13154 # FIXME: insert proper C++ library support
13158 # FIXME: insert proper C++ library support
13165 # C++ shared libraries reported to be fairly broken before
13171 archive_cmds_need_lc_CXX=no
13174 freebsd* | dragonfly*)
13175 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13184 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185 link_all_deplibs_CXX=yes
13189 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13190 hardcode_libdir_separator_CXX=:
13191 export_dynamic_flag_spec_CXX='${wl}-E'
13192 hardcode_direct_CXX=yes
13193 hardcode_minus_L_CXX=yes # Not in the search PATH,
13194 # but as the default
13195 # location of the library.
13197 case $cc_basename in
13199 # FIXME: insert proper C++ library support
13203 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'
13204 # Commands to make compiler produce verbose output that lists
13205 # what "hidden" libraries, object files and flags are used when
13206 # linking a shared library.
13208 # There doesn't appear to be a way to prevent this compiler from
13209 # explicitly linking system object files so we need to strip them
13210 # from the output so that they don't get included in the library
13212 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13215 if test "$GXX" = yes; then
13216 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13218 # FIXME: insert proper C++ library support
13226 if test $with_gnu_ld = no; then
13227 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13228 hardcode_libdir_separator_CXX=:
13234 export_dynamic_flag_spec_CXX='${wl}-E'
13240 hardcode_direct_CXX=no
13241 hardcode_shlibpath_var_CXX=no
13244 hardcode_direct_CXX=yes
13245 hardcode_direct_absolute_CXX=yes
13246 hardcode_minus_L_CXX=yes # Not in the search PATH,
13247 # but as the default
13248 # location of the library.
13252 case $cc_basename in
13254 # FIXME: insert proper C++ library support
13260 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269 # Commands to make compiler produce verbose output that lists
13270 # what "hidden" libraries, object files and flags are used when
13271 # linking a shared library.
13273 # There doesn't appear to be a way to prevent this compiler from
13274 # explicitly linking system object files so we need to strip them
13275 # from the output so that they don't get included in the library
13277 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13280 if test "$GXX" = yes; then
13281 if test $with_gnu_ld = no; then
13284 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 # FIXME: insert proper C++ library support
13303 hardcode_direct_CXX=no
13304 hardcode_shlibpath_var_CXX=no
13305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306 export_dynamic_flag_spec_CXX='${wl}-E'
13307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308 # Instead, shared libraries are loaded at an image base (0x10000000 by
13309 # default) and relocated if they conflict, which is a slow very memory
13310 # consuming and fragmenting process. To avoid this, we pick a random,
13311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13313 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'
13314 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'
13317 case $cc_basename in
13320 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13322 # Archives containing C++ object files must be created using
13323 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13324 # necessary to make sure instantiated templates are included
13326 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13329 if test "$GXX" = yes; then
13330 if test "$with_gnu_ld" = no; then
13331 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13333 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13336 link_all_deplibs_CXX=yes
13339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340 hardcode_libdir_separator_CXX=:
13341 inherit_rpath_CXX=yes
13344 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13345 case $cc_basename in
13347 # Kuck and Associates, Inc. (KAI) C++ Compiler
13349 # KCC will only create a shared library if the output file
13350 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13351 # to its proper name (with version) after linking.
13352 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'
13353 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'
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13358 # There doesn't appear to be a way to prevent this compiler from
13359 # explicitly linking system object files so we need to strip them
13360 # from the output so that they don't get included in the library
13362 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13367 # Archives containing C++ object files must be created using
13368 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13369 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13374 # version 8.0 and above of icpc choke on multiply defined symbols
13375 # if we add $predep_objects and $postdep_objects, however 7.1 and
13376 # earlier do not add the objects themselves.
13377 case `$CC -V 2>&1` in
13379 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 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'
13382 *) # Version 8.0 or newer
13385 ia64*) tmp_idyn=' -i_dynamic';;
13387 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388 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'
13391 archive_cmds_need_lc_CXX=no
13392 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13397 # Portland Group C++ compiler
13399 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13400 prelink_cmds_CXX='tpldir=Template.dir~
13402 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13403 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13404 old_archive_cmds_CXX='tpldir=Template.dir~
13406 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13407 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13409 archive_cmds_CXX='tpldir=Template.dir~
13411 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13413 archive_expsym_cmds_CXX='tpldir=Template.dir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13416 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13418 *) # Version 6 and above use weak symbols
13419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420 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'
13424 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13425 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431 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'
13433 runpath_var=LD_RUN_PATH
13434 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435 hardcode_libdir_separator_CXX=:
13437 # Commands to make compiler produce verbose output that lists
13438 # what "hidden" libraries, object files and flags are used when
13439 # linking a shared library.
13441 # There doesn't appear to be a way to prevent this compiler from
13442 # explicitly linking system object files so we need to strip them
13443 # from the output so that they don't get included in the library
13445 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13447 xl* | mpixl* | bgxl*)
13448 # IBM XL 8.0 on PPC, with GNU ld
13449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452 if test "x$supports_anon_versioning" = xyes; then
13453 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455 echo "local: *; };" >> $output_objdir/$libname.ver~
13456 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13460 case `$CC -V 2>&1 | sed 5q` in
13463 no_undefined_flag_CXX=' -zdefs'
13464 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13465 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'
13466 hardcode_libdir_flag_spec_CXX='-R$libdir'
13467 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13468 compiler_needs_object_CXX=yes
13470 # Not sure whether something based on
13471 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13473 output_verbose_link_cmd='func_echo_all'
13475 # Archives containing C++ object files must be created using
13476 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13477 # necessary to make sure instantiated templates are included
13479 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13487 # FIXME: insert proper C++ library support
13492 # FIXME: insert proper C++ library support
13497 case $cc_basename in
13499 # FIXME: insert proper C++ library support
13503 # FIXME: insert proper C++ library support
13510 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13511 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13513 hardcode_libdir_flag_spec_CXX='-R$libdir'
13514 hardcode_direct_CXX=yes
13515 hardcode_shlibpath_var_CXX=no
13517 # Workaround some broken pre-1.5 toolchains
13518 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13526 # C++ shared libraries are fairly broken
13531 if test -f /usr/libexec/ld.so; then
13532 hardcode_direct_CXX=yes
13533 hardcode_shlibpath_var_CXX=no
13534 hardcode_direct_absolute_CXX=yes
13535 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13538 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13539 export_dynamic_flag_spec_CXX='${wl}-E'
13540 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13542 output_verbose_link_cmd=func_echo_all
13548 osf3* | osf4* | osf5*)
13549 case $cc_basename in
13551 # Kuck and Associates, Inc. (KAI) C++ Compiler
13553 # KCC will only create a shared library if the output file
13554 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13555 # to its proper name (with version) after linking.
13556 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'
13558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13559 hardcode_libdir_separator_CXX=:
13561 # Archives containing C++ object files must be created using
13562 # the KAI C++ compiler.
13564 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13565 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13569 # Rational C++ 2.4.1
13570 # FIXME: insert proper C++ library support
13576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13578 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13581 allow_undefined_flag_CXX=' -expect_unresolved \*'
13582 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13583 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13584 echo "-hidden">> $lib.exp~
13585 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13587 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13591 hardcode_libdir_separator_CXX=:
13593 # Commands to make compiler produce verbose output that lists
13594 # what "hidden" libraries, object files and flags are used when
13595 # linking a shared library.
13597 # There doesn't appear to be a way to prevent this compiler from
13598 # explicitly linking system object files so we need to strip them
13599 # from the output so that they don't get included in the library
13601 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13604 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13605 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13608 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13611 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13615 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13616 hardcode_libdir_separator_CXX=:
13618 # Commands to make compiler produce verbose output that lists
13619 # what "hidden" libraries, object files and flags are used when
13620 # linking a shared library.
13621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13624 # FIXME: insert proper C++ library support
13632 # FIXME: insert proper C++ library support
13637 case $cc_basename in
13640 # FIXME: insert proper C++ library support
13645 # FIXME: insert proper C++ library support
13649 # FIXME: insert proper C++ library support
13656 case $cc_basename in
13658 # Sun C++ 4.2, 5.x and Centerline C++
13659 archive_cmds_need_lc_CXX=yes
13660 no_undefined_flag_CXX=' -zdefs'
13661 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663 $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'
13665 hardcode_libdir_flag_spec_CXX='-R$libdir'
13666 hardcode_shlibpath_var_CXX=no
13668 solaris2.[0-5] | solaris2.[0-5].*) ;;
13670 # The compiler driver will combine and reorder linker options,
13671 # but understands `-z linker_flag'.
13672 # Supported since Solaris 2.6 (maybe 2.5.1?)
13673 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13676 link_all_deplibs_CXX=yes
13678 output_verbose_link_cmd='func_echo_all'
13680 # Archives containing C++ object files must be created using
13681 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13682 # necessary to make sure instantiated templates are included
13684 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13687 # Green Hills C++ Compiler
13688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13690 # The C++ compiler must be used to create the archive.
13691 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13694 # GNU C++ compiler with Solaris linker
13695 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13697 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13698 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13700 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13702 # Commands to make compiler produce verbose output that lists
13703 # what "hidden" libraries, object files and flags are used when
13704 # linking a shared library.
13705 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13707 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13709 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13713 # Commands to make compiler produce verbose output that lists
13714 # what "hidden" libraries, object files and flags are used when
13715 # linking a shared library.
13716 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13719 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13721 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13731 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13732 no_undefined_flag_CXX='${wl}-z,text'
13733 archive_cmds_need_lc_CXX=no
13734 hardcode_shlibpath_var_CXX=no
13735 runpath_var='LD_RUN_PATH'
13737 case $cc_basename in
13739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 sysv5* | sco3.2v5* | sco5v6*)
13750 # Note: We can NOT use -z defs as we might desire, because we do not
13751 # link with -lc, and that would cause any symbols used from libc to
13752 # always be unresolved, which means just about no library would
13753 # ever link correctly. If we're not using GNU ld we use -z text
13754 # though, which does catch some bad symbols but isn't as heavy-handed
13756 no_undefined_flag_CXX='${wl}-z,text'
13757 allow_undefined_flag_CXX='${wl}-z,nodefs'
13758 archive_cmds_need_lc_CXX=no
13759 hardcode_shlibpath_var_CXX=no
13760 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13761 hardcode_libdir_separator_CXX=':'
13762 link_all_deplibs_CXX=yes
13763 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13764 runpath_var='LD_RUN_PATH'
13766 case $cc_basename in
13768 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13771 '"$old_archive_cmds_CXX"
13772 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13773 '"$reload_cmds_CXX"
13776 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 case $cc_basename in
13785 # NonStop-UX NCC 3.20
13786 # FIXME: insert proper C++ library support
13790 # FIXME: insert proper C++ library support
13797 # FIXME: insert proper C++ library support
13802 # FIXME: insert proper C++ library support
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13808 $as_echo "$ld_shlibs_CXX" >&6; }
13809 test "$ld_shlibs_CXX" = no && can_build_shared=no
13815 ## There is no encapsulation within the following macros, do not change
13816 ## the running order or otherwise move them around unless you know exactly
13817 ## what you are doing...
13818 # Dependencies to place before and after the object being linked:
13819 predep_objects_CXX=
13820 postdep_objects_CXX=
13823 compiler_lib_search_path_CXX=
13825 cat > conftest.$ac_ext <<_LT_EOF
13829 Foo (void) { a = 0; }
13836 _lt_libdeps_save_CFLAGS=$CFLAGS
13837 case "$CC $CFLAGS " in #(
13838 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13839 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13843 (eval $ac_compile) 2>&5
13845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13846 test $ac_status = 0; }; then
13847 # Parse the compiler output and extract the necessary
13848 # objects, libraries and library flags.
13850 # Sentinel used to keep track of whether or not we are before
13851 # the conftest object file.
13852 pre_test_object_deps_done=no
13854 for p in `eval "$output_verbose_link_cmd"`; do
13855 case ${prev}${p} in
13858 # Some compilers place space between "-{L,R}" and the path.
13859 # Remove the space.
13860 if test $p = "-L" ||
13861 test $p = "-R"; then
13866 # Expand the sysroot to ease extracting the directories later.
13867 if test -z "$prev"; then
13869 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13870 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13871 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13875 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13877 if test "$pre_test_object_deps_done" = no; then
13880 # Internal compiler library paths should come after those
13881 # provided the user. The postdeps already come after the
13882 # user supplied libs so there is no need to process them.
13883 if test -z "$compiler_lib_search_path_CXX"; then
13884 compiler_lib_search_path_CXX="${prev}${p}"
13886 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13889 # The "-l" case would never come before the object being
13890 # linked, so don't bother handling this case.
13893 if test -z "$postdeps_CXX"; then
13894 postdeps_CXX="${prev}${p}"
13896 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13902 *.lto.$objext) ;; # Ignore GCC LTO objects
13904 # This assumes that the test object file only shows up
13905 # once in the compiler output.
13906 if test "$p" = "conftest.$objext"; then
13907 pre_test_object_deps_done=yes
13911 if test "$pre_test_object_deps_done" = no; then
13912 if test -z "$predep_objects_CXX"; then
13913 predep_objects_CXX="$p"
13915 predep_objects_CXX="$predep_objects_CXX $p"
13918 if test -z "$postdep_objects_CXX"; then
13919 postdep_objects_CXX="$p"
13921 postdep_objects_CXX="$postdep_objects_CXX $p"
13926 *) ;; # Ignore the rest.
13934 echo "libtool.m4: error: problem compiling CXX test program"
13937 $RM -f confest.$objext
13938 CFLAGS=$_lt_libdeps_save_CFLAGS
13940 # PORTME: override above test on systems where it is broken
13943 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13944 # hack all around it, let's just trust "g++" to DTRT.
13945 predep_objects_CXX=
13946 postdep_objects_CXX=
13951 case `$CC -V 2>&1 | sed 5q` in
13955 # The more standards-conforming stlport4 library is
13956 # incompatible with the Cstd library. Avoid specifying
13957 # it if it's in CXXFLAGS. Ignore libCrun as
13958 # -library=stlport4 depends on it.
13959 case " $CXX $CXXFLAGS " in
13960 *" -library=stlport4 "*)
13961 solaris_use_stlport4=yes
13965 if test "$solaris_use_stlport4" != yes; then
13966 postdeps_CXX='-library=Cstd -library=Crun'
13973 case $cc_basename in
13975 # The more standards-conforming stlport4 library is
13976 # incompatible with the Cstd library. Avoid specifying
13977 # it if it's in CXXFLAGS. Ignore libCrun as
13978 # -library=stlport4 depends on it.
13979 case " $CXX $CXXFLAGS " in
13980 *" -library=stlport4 "*)
13981 solaris_use_stlport4=yes
13985 # Adding this requires a known-good setup of shared libraries for
13986 # Sun compiler versions before 5.6, else PIC objects from an old
13987 # archive will be linked into the output, leading to subtle bugs.
13988 if test "$solaris_use_stlport4" != yes; then
13989 postdeps_CXX='-library=Cstd -library=Crun'
13997 case " $postdeps_CXX " in
13998 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14000 compiler_lib_search_dirs_CXX=
14001 if test -n "${compiler_lib_search_path_CXX}"; then
14002 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14035 lt_prog_compiler_wl_CXX=
14036 lt_prog_compiler_pic_CXX=
14037 lt_prog_compiler_static_CXX=
14040 # C++ specific cases for pic, static, wl, etc.
14041 if test "$GXX" = yes; then
14042 lt_prog_compiler_wl_CXX='-Wl,'
14043 lt_prog_compiler_static_CXX='-static'
14047 # All AIX code is PIC.
14048 if test "$host_cpu" = ia64; then
14049 # AIX 5 now supports IA64 processor
14050 lt_prog_compiler_static_CXX='-Bstatic'
14057 # see comment about AmigaOS4 .so support
14058 lt_prog_compiler_pic_CXX='-fPIC'
14061 # FIXME: we need at least 68020 code to build shared libraries, but
14062 # adding the `-m68020' flag to GCC prevents building anything better,
14064 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14070 # PIC is the default for these OSes.
14072 mingw* | cygwin* | os2* | pw32* | cegcc*)
14073 # This hack is so that the source file can tell whether it is being
14074 # built for inclusion in a dll (and should export symbols for example).
14075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14076 # (--disable-auto-import) libraries
14077 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14079 darwin* | rhapsody*)
14080 # PIC is the default on this platform
14081 # Common symbols not allowed in MH_DYLIB files
14082 lt_prog_compiler_pic_CXX='-fno-common'
14085 # DJGPP does not support shared libraries at all
14086 lt_prog_compiler_pic_CXX=
14089 # PIC is the default for Haiku.
14090 # The "-static" flag exists, but is broken.
14091 lt_prog_compiler_static_CXX=
14094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14095 # Instead, we relocate shared libraries at runtime.
14098 if test -d /usr/nec; then
14099 lt_prog_compiler_pic_CXX=-Kconform_pic
14103 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14104 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14105 # sets the default TLS model and affects inlining.
14110 lt_prog_compiler_pic_CXX='-fPIC'
14115 # QNX uses GNU C++, but need to define -shared option too, otherwise
14116 # it will coredump.
14117 lt_prog_compiler_pic_CXX='-fPIC -shared'
14120 lt_prog_compiler_pic_CXX='-fPIC'
14126 # All AIX code is PIC.
14127 if test "$host_cpu" = ia64; then
14128 # AIX 5 now supports IA64 processor
14129 lt_prog_compiler_static_CXX='-Bstatic'
14131 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14135 case $cc_basename in
14137 # Green Hills C++ Compiler
14138 # _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"
14142 mingw* | cygwin* | os2* | pw32* | cegcc*)
14143 # This hack is so that the source file can tell whether it is being
14144 # built for inclusion in a dll (and should export symbols for example).
14145 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14148 case $cc_basename in
14150 lt_prog_compiler_pic_CXX='-KPIC'
14153 # Green Hills C++ Compiler
14154 lt_prog_compiler_pic_CXX='-pic'
14160 freebsd* | dragonfly*)
14161 # FreeBSD uses GNU C++
14163 hpux9* | hpux10* | hpux11*)
14164 case $cc_basename in
14166 lt_prog_compiler_wl_CXX='-Wl,'
14167 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14168 if test "$host_cpu" != ia64; then
14169 lt_prog_compiler_pic_CXX='+Z'
14173 lt_prog_compiler_wl_CXX='-Wl,'
14174 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14180 lt_prog_compiler_pic_CXX='+Z'
14189 # This is c89, which is MS Visual C++ (no shared libs)
14190 # Anyone wants to do a port?
14192 irix5* | irix6* | nonstopux*)
14193 case $cc_basename in
14195 lt_prog_compiler_wl_CXX='-Wl,'
14196 lt_prog_compiler_static_CXX='-non_shared'
14197 # CC pic flag -KPIC is the default.
14203 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14204 case $cc_basename in
14207 lt_prog_compiler_wl_CXX='--backend -Wl,'
14208 lt_prog_compiler_pic_CXX='-fPIC'
14211 # old Intel C++ for x86_64 which still supported -KPIC.
14212 lt_prog_compiler_wl_CXX='-Wl,'
14213 lt_prog_compiler_pic_CXX='-KPIC'
14214 lt_prog_compiler_static_CXX='-static'
14217 # Intel C++, used to be incompatible with GCC.
14218 # ICC 10 doesn't accept -KPIC any more.
14219 lt_prog_compiler_wl_CXX='-Wl,'
14220 lt_prog_compiler_pic_CXX='-fPIC'
14221 lt_prog_compiler_static_CXX='-static'
14224 # Portland Group C++ compiler
14225 lt_prog_compiler_wl_CXX='-Wl,'
14226 lt_prog_compiler_pic_CXX='-fpic'
14227 lt_prog_compiler_static_CXX='-Bstatic'
14231 # Make sure the PIC flag is empty. It appears that all Alpha
14232 # Linux and Compaq Tru64 Unix objects are PIC.
14233 lt_prog_compiler_pic_CXX=
14234 lt_prog_compiler_static_CXX='-non_shared'
14236 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14237 # IBM XL 8.0, 9.0 on PPC and BlueGene
14238 lt_prog_compiler_wl_CXX='-Wl,'
14239 lt_prog_compiler_pic_CXX='-qpic'
14240 lt_prog_compiler_static_CXX='-qstaticlink'
14243 case `$CC -V 2>&1 | sed 5q` in
14246 lt_prog_compiler_pic_CXX='-KPIC'
14247 lt_prog_compiler_static_CXX='-Bstatic'
14248 lt_prog_compiler_wl_CXX='-Qoption ld '
14259 case $cc_basename in
14261 lt_prog_compiler_pic_CXX='-W c,exportall'
14270 # QNX uses GNU C++, but need to define -shared option too, otherwise
14271 # it will coredump.
14272 lt_prog_compiler_pic_CXX='-fPIC -shared'
14274 osf3* | osf4* | osf5*)
14275 case $cc_basename in
14277 lt_prog_compiler_wl_CXX='--backend -Wl,'
14280 # Rational C++ 2.4.1
14281 lt_prog_compiler_pic_CXX='-pic'
14284 # Digital/Compaq C++
14285 lt_prog_compiler_wl_CXX='-Wl,'
14286 # Make sure the PIC flag is empty. It appears that all Alpha
14287 # Linux and Compaq Tru64 Unix objects are PIC.
14288 lt_prog_compiler_pic_CXX=
14289 lt_prog_compiler_static_CXX='-non_shared'
14298 case $cc_basename in
14300 # Sun C++ 4.2, 5.x and Centerline C++
14301 lt_prog_compiler_pic_CXX='-KPIC'
14302 lt_prog_compiler_static_CXX='-Bstatic'
14303 lt_prog_compiler_wl_CXX='-Qoption ld '
14306 # Green Hills C++ Compiler
14307 lt_prog_compiler_pic_CXX='-PIC'
14314 case $cc_basename in
14317 lt_prog_compiler_pic_CXX='-pic'
14318 lt_prog_compiler_static_CXX='-Bstatic'
14322 lt_prog_compiler_pic_CXX='-pic'
14328 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14329 case $cc_basename in
14331 lt_prog_compiler_wl_CXX='-Wl,'
14332 lt_prog_compiler_pic_CXX='-KPIC'
14333 lt_prog_compiler_static_CXX='-Bstatic'
14338 case $cc_basename in
14340 # NonStop-UX NCC 3.20
14341 lt_prog_compiler_pic_CXX='-KPIC'
14350 lt_prog_compiler_can_build_shared_CXX=no
14356 # For platforms which do not support PIC, -DPIC is meaningless:
14358 lt_prog_compiler_pic_CXX=
14361 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14367 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14368 $as_echo_n "(cached) " >&6
14370 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14373 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14374 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14377 # Check to make sure the PIC flag actually works.
14379 if test -n "$lt_prog_compiler_pic_CXX"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14381 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14382 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14383 $as_echo_n "(cached) " >&6
14385 lt_cv_prog_compiler_pic_works_CXX=no
14386 ac_outfile=conftest.$ac_objext
14387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14389 # Insert the option either (1) after the last *FLAGS variable, or
14390 # (2) before a word containing "conftest.", or (3) at the end.
14391 # Note that $ac_compile itself does not contain backslashes and begins
14392 # with a dollar sign (not a hyphen), so the echo should work correctly.
14393 # The option is referenced via a variable to avoid confusing sed.
14394 lt_compile=`echo "$ac_compile" | $SED \
14395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397 -e 's:$: $lt_compiler_flag:'`
14398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14399 (eval "$lt_compile" 2>conftest.err)
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 if (exit $ac_status) && test -s "$ac_outfile"; then
14404 # The compiler can only warn and ignore the option if not recognized
14405 # So say no if there are warnings other than the usual output.
14406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler_pic_works_CXX=yes
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14416 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14418 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14419 case $lt_prog_compiler_pic_CXX in
14421 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14424 lt_prog_compiler_pic_CXX=
14425 lt_prog_compiler_can_build_shared_CXX=no
14435 # Check to make sure the static flag actually works.
14437 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14439 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14440 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14441 $as_echo_n "(cached) " >&6
14443 lt_cv_prog_compiler_static_works_CXX=no
14444 save_LDFLAGS="$LDFLAGS"
14445 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14446 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14447 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14448 # The linker can only warn and ignore the option if not recognized
14449 # So say no if there are warnings
14450 if test -s conftest.err; then
14451 # Append any errors to the config.log.
14452 cat conftest.err 1>&5
14453 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14455 if diff conftest.exp conftest.er2 >/dev/null; then
14456 lt_cv_prog_compiler_static_works_CXX=yes
14459 lt_cv_prog_compiler_static_works_CXX=yes
14463 LDFLAGS="$save_LDFLAGS"
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14467 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14469 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14472 lt_prog_compiler_static_CXX=
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14479 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14480 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14481 $as_echo_n "(cached) " >&6
14483 lt_cv_prog_compiler_c_o_CXX=no
14484 $RM -r conftest 2>/dev/null
14488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14490 lt_compiler_flag="-o out/conftest2.$ac_objext"
14491 # Insert the option either (1) after the last *FLAGS variable, or
14492 # (2) before a word containing "conftest.", or (3) at the end.
14493 # Note that $ac_compile itself does not contain backslashes and begins
14494 # with a dollar sign (not a hyphen), so the echo should work correctly.
14495 lt_compile=`echo "$ac_compile" | $SED \
14496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498 -e 's:$: $lt_compiler_flag:'`
14499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14500 (eval "$lt_compile" 2>out/conftest.err)
14502 cat out/conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14506 # The compiler can only warn and ignore the option if not recognized
14507 # So say no if there are warnings
14508 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14511 lt_cv_prog_compiler_c_o_CXX=yes
14516 # SGI C++ compiler will create directory out/ii_files/ for
14517 # template instantiation
14518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14519 $RM out/* && rmdir out
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14526 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14531 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14532 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14533 $as_echo_n "(cached) " >&6
14535 lt_cv_prog_compiler_c_o_CXX=no
14536 $RM -r conftest 2>/dev/null
14540 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14542 lt_compiler_flag="-o out/conftest2.$ac_objext"
14543 # Insert the option either (1) after the last *FLAGS variable, or
14544 # (2) before a word containing "conftest.", or (3) at the end.
14545 # Note that $ac_compile itself does not contain backslashes and begins
14546 # with a dollar sign (not a hyphen), so the echo should work correctly.
14547 lt_compile=`echo "$ac_compile" | $SED \
14548 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14549 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14550 -e 's:$: $lt_compiler_flag:'`
14551 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14552 (eval "$lt_compile" 2>out/conftest.err)
14554 cat out/conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14558 # The compiler can only warn and ignore the option if not recognized
14559 # So say no if there are warnings
14560 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14561 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14562 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14563 lt_cv_prog_compiler_c_o_CXX=yes
14568 # SGI C++ compiler will create directory out/ii_files/ for
14569 # template instantiation
14570 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14571 $RM out/* && rmdir out
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14578 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14583 hard_links="nottested"
14584 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14585 # do not overwrite the value of need_locks provided by the user
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14587 $as_echo_n "checking if we can lock with hard links... " >&6; }
14590 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14592 ln conftest.a conftest.b 2>&5 || hard_links=no
14593 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14595 $as_echo "$hard_links" >&6; }
14596 if test "$hard_links" = no; then
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14598 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14611 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14614 # If we're using GNU nm, then we don't want the "-C" option.
14615 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14616 # Also, AIX nm treats weak defined symbols like other global defined
14617 # symbols, whereas GNU nm marks them as "W".
14618 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14619 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14621 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'
14625 export_symbols_cmds_CXX="$ltdll_cmds"
14627 cygwin* | mingw* | cegcc*)
14628 case $cc_basename in
14631 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14632 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14637 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14642 $as_echo "$ld_shlibs_CXX" >&6; }
14643 test "$ld_shlibs_CXX" = no && can_build_shared=no
14645 with_gnu_ld_CXX=$with_gnu_ld
14653 # Do we need to explicitly link libc?
14655 case "x$archive_cmds_need_lc_CXX" in
14657 # Assume -lc should be added
14658 archive_cmds_need_lc_CXX=yes
14660 if test "$enable_shared" = yes && test "$GCC" = yes; then
14661 case $archive_cmds_CXX in
14663 # FIXME: we may have to deal with multi-command sequences.
14666 # Test whether the compiler implicitly links with -lc since on some
14667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14668 # to ld, don't add -lc before -lgcc.
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14671 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14672 $as_echo_n "(cached) " >&6
14675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14678 (eval $ac_compile) 2>&5
14680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14681 test $ac_status = 0; } 2>conftest.err; then
14684 libobjs=conftest.$ac_objext
14686 wl=$lt_prog_compiler_wl_CXX
14687 pic_flag=$lt_prog_compiler_pic_CXX
14693 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14694 allow_undefined_flag_CXX=
14695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14696 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14699 test $ac_status = 0; }
14701 lt_cv_archive_cmds_need_lc_CXX=no
14703 lt_cv_archive_cmds_need_lc_CXX=yes
14705 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14707 cat conftest.err 1>&5
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14713 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14714 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14785 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14787 library_names_spec=
14788 libname_spec='lib$name'
14792 postuninstall_cmds=
14796 shlibpath_overrides_runpath=unknown
14798 dynamic_linker="$host_os ld.so"
14799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14800 need_lib_prefix=unknown
14801 hardcode_into_libs=no
14803 # when you set need_version to no, make sure it does not cause -set_version
14804 # flags to be left without arguments
14805 need_version=unknown
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14811 shlibpath_var=LIBPATH
14813 # AIX 3 has no versioning support, so we append a major version to the name.
14814 soname_spec='${libname}${release}${shared_ext}$major'
14821 hardcode_into_libs=yes
14822 if test "$host_cpu" = ia64; then
14823 # AIX 5 supports IA64
14824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14825 shlibpath_var=LD_LIBRARY_PATH
14827 # With GCC up to 2.95.x, collect2 would create an import file
14828 # for dependence libraries. The import file would start with
14829 # the line `#! .'. This would cause the generated library to
14830 # depend on `.', always an invalid library. This was fixed in
14831 # development snapshots of GCC prior to 3.0.
14833 aix4 | aix4.[01] | aix4.[01].*)
14834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14836 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14839 can_build_shared=no
14843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14844 # soname into executable. Probably we can add versioning support to
14845 # collect2, so additional links can be useful in future.
14846 if test "$aix_use_runtimelinking" = yes; then
14847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14848 # instead of lib<name>.a to let people know that these are not
14849 # typical AIX shared libraries.
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852 # We preserve .a as extension for shared libraries through AIX4.2
14853 # and later when we are not doing run time linking.
14854 library_names_spec='${libname}${release}.a $libname.a'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14857 shlibpath_var=LIBPATH
14864 # Since July 2007 AmigaOS4 officially supports .so libraries.
14865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 library_names_spec='$libname.ixlibrary $libname.a'
14870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14871 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14877 library_names_spec='${libname}${shared_ext}'
14878 dynamic_linker="$host_os ld.so"
14879 shlibpath_var=LIBRARY_PATH
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14891 # the default ld.so.conf also contains /usr/contrib/lib and
14892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14893 # libtool to hard-code these into programs
14896 cygwin* | mingw* | pw32* | cegcc*)
14897 version_type=windows
14902 case $GCC,$cc_basename in
14905 library_names_spec='$libname.dll.a'
14906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14907 postinstall_cmds='base_file=`basename \${file}`~
14908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14909 dldir=$destdir/`dirname \$dlpath`~
14910 test -d \$dldir || mkdir -p \$dldir~
14911 $install_prog $dir/$dlname \$dldir/$dlname~
14912 chmod a+x \$dldir/$dlname~
14913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14917 dlpath=$dir/\$dldll~
14919 shlibpath_overrides_runpath=yes
14923 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 # MinGW DLLs use traditional 'lib' prefix
14929 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932 # pw32 DLLs use 'pw' prefix rather than 'lib'
14933 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936 dynamic_linker='Win32 ld.exe'
14941 libname_spec='$name'
14942 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943 library_names_spec='${libname}.dll.lib'
14947 sys_lib_search_path_spec=
14950 for lt_path in $LIB
14953 # Let DOS variable expansion print the short 8.3 style file name.
14954 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14955 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14958 # Convert to MSYS style.
14959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14962 # Convert to unix form, then to dos form, then back to unix form
14963 # but this time dos style (no spaces!) so that the unix form looks
14964 # like /cygdrive/c/PROGRA~1:/cygdr...
14965 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14966 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14967 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14970 sys_lib_search_path_spec="$LIB"
14971 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14972 # It is most probably a Windows format PATH.
14973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14977 # FIXME: find the short name or the path components, as spaces are
14978 # common. (e.g. "Program Files" -> "PROGRA~1")
14982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14983 postinstall_cmds='base_file=`basename \${file}`~
14984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14985 dldir=$destdir/`dirname \$dlpath`~
14986 test -d \$dldir || mkdir -p \$dldir~
14987 $install_prog $dir/$dlname \$dldir/$dlname'
14988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14989 dlpath=$dir/\$dldll~
14991 shlibpath_overrides_runpath=yes
14992 dynamic_linker='Win32 link.exe'
14996 # Assume MSVC wrapper
14997 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14998 dynamic_linker='Win32 ld.exe'
15001 # FIXME: first we should search . and the directory the executable is in
15005 darwin* | rhapsody*)
15006 dynamic_linker="$host_os dyld"
15007 version_type=darwin
15010 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15011 soname_spec='${libname}${release}${major}$shared_ext'
15012 shlibpath_overrides_runpath=yes
15013 shlibpath_var=DYLD_LIBRARY_PATH
15014 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15016 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15024 soname_spec='${libname}${release}${shared_ext}$major'
15025 shlibpath_var=LD_LIBRARY_PATH
15032 freebsd* | dragonfly*)
15033 # DragonFly does not have aout. When/if they implement a new
15034 # versioning mechanism, adjust this.
15035 if test -x /usr/bin/objformat; then
15036 objformat=`/usr/bin/objformat`
15039 freebsd[123]*) objformat=aout ;;
15040 *) objformat=elf ;;
15043 version_type=freebsd-$objformat
15044 case $version_type in
15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15055 shlibpath_var=LD_LIBRARY_PATH
15058 shlibpath_overrides_runpath=yes
15060 freebsd3.[01]* | freebsdelf3.[01]*)
15061 shlibpath_overrides_runpath=yes
15062 hardcode_into_libs=yes
15064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15066 shlibpath_overrides_runpath=no
15067 hardcode_into_libs=yes
15069 *) # from 4.6 on, and DragonFly
15070 shlibpath_overrides_runpath=yes
15071 hardcode_into_libs=yes
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 hardcode_into_libs=yes
15090 dynamic_linker="$host_os runtime_loader"
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 shlibpath_var=LIBRARY_PATH
15094 shlibpath_overrides_runpath=yes
15095 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15096 hardcode_into_libs=yes
15099 hpux9* | hpux10* | hpux11*)
15100 # Give a soname corresponding to the major version so that dld.sl refuses to
15101 # link against other versions.
15108 hardcode_into_libs=yes
15109 dynamic_linker="$host_os dld.so"
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 if test "X$HPUX_IA64_MODE" = X32; then
15115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15123 hardcode_into_libs=yes
15124 dynamic_linker="$host_os dld.sl"
15125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15134 dynamic_linker="$host_os dld.sl"
15135 shlibpath_var=SHLIB_PATH
15136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15141 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15142 postinstall_cmds='chmod 555 $lib'
15143 # or fails outright, so override atomically:
15144 install_override_mode=555
15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 shlibpath_overrides_runpath=no
15156 hardcode_into_libs=yes
15159 irix5* | irix6* | nonstopux*)
15161 nonstopux*) version_type=nonstopux ;;
15163 if test "$lt_cv_prog_gnu_ld" = yes; then
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15174 irix5* | nonstopux*)
15175 libsuff= shlibsuff=
15178 case $LD in # libtool.m4 will add one of these switches to LD
15179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15180 libsuff= shlibsuff= libmagic=32-bit;;
15181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15182 libsuff=32 shlibsuff=N32 libmagic=N32;;
15183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15185 *) libsuff= shlibsuff= libmagic=never-match;;
15189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15190 shlibpath_overrides_runpath=no
15191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15193 hardcode_into_libs=yes
15196 # No shared lib support for Linux oldld, aout, or coff.
15197 linux*oldld* | linux*aout* | linux*coff*)
15201 # This must be Linux ELF.
15202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=no
15212 # Some binutils ld are patched to set DT_RUNPATH
15213 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15214 $as_echo_n "(cached) " >&6
15216 lt_cv_shlibpath_overrides_runpath=no
15217 save_LDFLAGS=$LDFLAGS
15218 save_libdir=$libdir
15219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15232 if ac_fn_cxx_try_link "$LINENO"; then :
15233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15234 lt_cv_shlibpath_overrides_runpath=yes
15237 rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LDFLAGS=$save_LDFLAGS
15240 libdir=$save_libdir
15244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15246 # This implies no fast_install, which is unacceptable.
15247 # Some rework will be needed to allow for fast_install
15248 # before this can be enabled.
15249 hardcode_into_libs=yes
15251 # Append ld.so.conf contents to the search path
15252 if test -f /etc/ld.so.conf; then
15253 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15257 # We used to test for /lib/ld.so.1 and disable shared libraries on
15258 # powerpc, because MkLinux only supported shared libraries with the
15259 # GNU dynamic linker. Since this was broken with cross compilers,
15260 # most powerpc-linux boxes support dynamic linking these days and
15261 # people can always --disable-shared, the test was removed, and we
15262 # assume the GNU/Linux dynamic linker is in use.
15263 dynamic_linker='GNU/Linux ld.so'
15270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15273 dynamic_linker='NetBSD (a.out) ld.so'
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15276 soname_spec='${libname}${release}${shared_ext}$major'
15277 dynamic_linker='NetBSD ld.elf_so'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15281 hardcode_into_libs=yes
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 shlibpath_overrides_runpath=yes
15295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15296 soname_spec='${libname}${release}${shared_ext}$major'
15297 shlibpath_var=LD_LIBRARY_PATH
15298 shlibpath_overrides_runpath=no
15299 hardcode_into_libs=yes
15300 dynamic_linker='ldqnx.so'
15305 sys_lib_dlsearch_path_spec="/usr/lib"
15307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15310 *) need_version=no ;;
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15317 openbsd2.[89] | openbsd2.[89].*)
15318 shlibpath_overrides_runpath=no
15321 shlibpath_overrides_runpath=yes
15325 shlibpath_overrides_runpath=yes
15330 libname_spec='$name'
15333 library_names_spec='$libname${shared_ext} $libname.a'
15334 dynamic_linker='OS/2 ld.exe'
15335 shlibpath_var=LIBPATH
15338 osf3* | osf4* | osf5*)
15342 soname_spec='${libname}${release}${shared_ext}$major'
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 shlibpath_var=LD_LIBRARY_PATH
15345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 shlibpath_overrides_runpath=yes
15361 hardcode_into_libs=yes
15362 # ldd complains unless libraries are executable
15363 postinstall_cmds='chmod +x $lib'
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 if test "$with_gnu_ld" = yes; then
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 soname_spec='${libname}${release}${shared_ext}$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 case $host_vendor in
15385 shlibpath_overrides_runpath=no
15387 runpath_var=LD_RUN_PATH
15395 shlibpath_overrides_runpath=no
15396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15402 if test -d /usr/nec ;then
15404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15405 soname_spec='$libname${shared_ext}.$major'
15406 shlibpath_var=LD_LIBRARY_PATH
15410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15411 version_type=freebsd-elf
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 shlibpath_overrides_runpath=yes
15418 hardcode_into_libs=yes
15419 if test "$with_gnu_ld" = yes; then
15420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15429 sys_lib_dlsearch_path_spec='/usr/lib'
15433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=no
15440 hardcode_into_libs=yes
15445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 shlibpath_var=LD_LIBRARY_PATH
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15455 $as_echo "$dynamic_linker" >&6; }
15456 test "$dynamic_linker" = no && can_build_shared=no
15458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15459 if test "$GCC" = yes; then
15460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15464 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15467 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15509 hardcode_action_CXX=
15510 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15511 test -n "$runpath_var_CXX" ||
15512 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15514 # We can hardcode non-existent directories.
15515 if test "$hardcode_direct_CXX" != no &&
15516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15517 # have to relink, otherwise we might link with an installed library
15518 # when we should be linking with a yet-to-be-installed one
15519 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15520 test "$hardcode_minus_L_CXX" != no; then
15521 # Linking always hardcodes the temporary library directory.
15522 hardcode_action_CXX=relink
15524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15525 hardcode_action_CXX=immediate
15528 # We cannot hardcode anything, or else we can only hardcode existing
15530 hardcode_action_CXX=unsupported
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15533 $as_echo "$hardcode_action_CXX" >&6; }
15535 if test "$hardcode_action_CXX" = relink ||
15536 test "$inherit_rpath_CXX" = yes; then
15537 # Fast installation is not supported
15538 enable_fast_install=no
15539 elif test "$shlibpath_overrides_runpath" = yes ||
15540 test "$enable_shared" = no; then
15541 # Fast installation is not necessary
15542 enable_fast_install=needless
15551 fi # test -n "$compiler"
15554 CFLAGS=$lt_save_CFLAGS
15558 with_gnu_ld=$lt_save_with_gnu_ld
15559 lt_cv_path_LDCXX=$lt_cv_path_LD
15560 lt_cv_path_LD=$lt_save_path_LD
15561 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15562 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15563 fi # test "$_lt_caught_CXX_error" != yes
15566 ac_cpp='$CPP $CPPFLAGS'
15567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15583 ac_config_commands="$ac_config_commands libtool"
15588 # Only expand once:
15593 # Add configure option --enable-maintainer-mode which enables dependency
15594 # checking and generation useful to package maintainers. This is made an
15595 # option to avoid confusing end users.
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15598 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15599 # Check whether --enable-maintainer-mode was given.
15600 if test "${enable_maintainer_mode+set}" = set; then :
15601 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15603 USE_MAINTAINER_MODE=no
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15607 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15608 if test $USE_MAINTAINER_MODE = yes; then
15609 MAINTAINER_MODE_TRUE=
15610 MAINTAINER_MODE_FALSE='#'
15612 MAINTAINER_MODE_TRUE='#'
15613 MAINTAINER_MODE_FALSE=
15616 MAINT=$MAINTAINER_MODE_TRUE
15620 # If the C compiler supports the keyword inline, do nothing. Otherwise
15621 # define inline to __inline__ or __inline if it accepts one of those,
15622 # otherwise define inline to be empty.
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15624 $as_echo_n "checking for inline... " >&6; }
15625 if ${ac_cv_c_inline+:} false; then :
15626 $as_echo_n "(cached) " >&6
15629 for ac_kw in inline __inline__ __inline; do
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 #ifndef __cplusplus
15634 static $ac_kw foo_t static_foo () {return 0; }
15635 $ac_kw foo_t foo () {return 0; }
15639 if ac_fn_c_try_compile "$LINENO"; then :
15640 ac_cv_c_inline=$ac_kw
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 test "$ac_cv_c_inline" != no && break
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15648 $as_echo "$ac_cv_c_inline" >&6; }
15650 case $ac_cv_c_inline in
15653 case $ac_cv_c_inline in
15655 *) ac_val=$ac_cv_c_inline;;
15657 cat >>confdefs.h <<_ACEOF
15658 #ifndef __cplusplus
15659 #define inline $ac_val
15667 # If words are stored with the most significant byte first (like
15668 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15670 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15671 if ${ac_cv_c_bigendian+:} false; then :
15672 $as_echo_n "(cached) " >&6
15674 ac_cv_c_bigendian=unknown
15675 # See if we're dealing with a universal compiler.
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15678 #ifndef __APPLE_CC__
15679 not a universal capable compiler
15684 if ac_fn_c_try_compile "$LINENO"; then :
15686 # Check for potential -arch flags. It is not universal unless
15687 # there are at least two -arch flags with different values.
15690 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15691 if test -n "$ac_prev"; then
15693 i?86 | x86_64 | ppc | ppc64)
15694 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15697 ac_cv_c_bigendian=universal
15703 elif test "x$ac_word" = "x-arch"; then
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 if test $ac_cv_c_bigendian = unknown; then
15710 # See if sys/param.h defines the BYTE_ORDER macro.
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 #include <sys/types.h>
15714 #include <sys/param.h>
15719 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15720 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15722 bogus endian macros
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 # It does; now see whether it defined to BIG_ENDIAN or not.
15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15733 #include <sys/types.h>
15734 #include <sys/param.h>
15739 #if BYTE_ORDER != BIG_ENDIAN
15747 if ac_fn_c_try_compile "$LINENO"; then :
15748 ac_cv_c_bigendian=yes
15750 ac_cv_c_bigendian=no
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 if test $ac_cv_c_bigendian = unknown; then
15757 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h. */
15760 #include <limits.h>
15765 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15766 bogus endian macros
15773 if ac_fn_c_try_compile "$LINENO"; then :
15774 # It does; now see whether it defined to _BIG_ENDIAN or not.
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 #include <limits.h>
15782 #ifndef _BIG_ENDIAN
15790 if ac_fn_c_try_compile "$LINENO"; then :
15791 ac_cv_c_bigendian=yes
15793 ac_cv_c_bigendian=no
15795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 if test $ac_cv_c_bigendian = unknown; then
15800 # Compile a test program.
15801 if test "$cross_compiling" = yes; then :
15802 # Try to guess by grepping values from an object file.
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 short int ascii_mm[] =
15806 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15807 short int ascii_ii[] =
15808 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15809 int use_ascii (int i) {
15810 return ascii_mm[i] + ascii_ii[i];
15812 short int ebcdic_ii[] =
15813 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15814 short int ebcdic_mm[] =
15815 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15816 int use_ebcdic (int i) {
15817 return ebcdic_mm[i] + ebcdic_ii[i];
15824 return use_ascii (foo) == use_ebcdic (foo);
15829 if ac_fn_c_try_compile "$LINENO"; then :
15830 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15831 ac_cv_c_bigendian=yes
15833 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15834 if test "$ac_cv_c_bigendian" = unknown; then
15835 ac_cv_c_bigendian=no
15837 # finding both strings is unlikely to happen, but who knows?
15838 ac_cv_c_bigendian=unknown
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15846 $ac_includes_default
15851 /* Are we little or big endian? From Harbison&Steele. */
15855 char c[sizeof (long int)];
15858 return u.c[sizeof (long int) - 1] == 1;
15864 if ac_fn_c_try_run "$LINENO"; then :
15865 ac_cv_c_bigendian=no
15867 ac_cv_c_bigendian=yes
15869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15870 conftest.$ac_objext conftest.beam conftest.$ac_ext
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15876 $as_echo "$ac_cv_c_bigendian" >&6; }
15877 case $ac_cv_c_bigendian in #(
15879 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15885 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15889 as_fn_error $? "unknown endianness
15890 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15895 # Find math library
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15899 $as_echo_n "checking for sqrt in -lm... " >&6; }
15900 if ${ac_cv_lib_m_sqrt+:} false; then :
15901 $as_echo_n "(cached) " >&6
15903 ac_check_lib_save_LIBS=$LIBS
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15908 /* Override any GCC internal prototype to avoid an error.
15909 Use char because int might match the return type of a GCC
15910 builtin and then its argument prototype would still apply. */
15923 if ac_fn_c_try_link "$LINENO"; then :
15924 ac_cv_lib_m_sqrt=yes
15926 ac_cv_lib_m_sqrt=no
15928 rm -f core conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
15930 LIBS=$ac_check_lib_save_LIBS
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15933 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15934 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
15938 LIBS="$LIB_MATH $LIBS"
15946 if test ! "$with_jpeg" = 'no'
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
15949 $as_echo_n "checking for JPEG support ... " >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15954 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
15955 if test "x$ac_cv_header_jconfig_h" = xyes; then :
15956 passed=`expr $passed + 1`
15958 failed=`expr $failed + 1`
15962 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
15963 if test "x$ac_cv_header_jerror_h" = xyes; then :
15964 passed=`expr $passed + 1`
15966 failed=`expr $failed + 1`
15970 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
15971 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
15972 passed=`expr $passed + 1`
15974 failed=`expr $failed + 1`
15978 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
15980 passed=`expr $passed + 1`
15982 failed=`expr $failed + 1`
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15987 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15988 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
15989 $as_echo_n "(cached) " >&6
15991 ac_check_lib_save_LIBS=$LIBS
15992 LIBS="-ljpeg $LIBS"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994 /* end confdefs.h. */
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
16002 char jpeg_read_header ();
16006 return jpeg_read_header ();
16011 if ac_fn_c_try_link "$LINENO"; then :
16012 ac_cv_lib_jpeg_jpeg_read_header=yes
16014 ac_cv_lib_jpeg_jpeg_read_header=no
16016 rm -f core conftest.err conftest.$ac_objext \
16017 conftest$ac_exeext conftest.$ac_ext
16018 LIBS=$ac_check_lib_save_LIBS
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
16021 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
16022 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
16023 passed=`expr $passed + 1`
16025 failed=`expr $failed + 1`
16029 # Test for compatible JPEG library
16030 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
16032 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
16033 if ${ac_cv_jpeg_version_ok+:} false; then :
16034 $as_echo_n "(cached) " >&6
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16039 #include <stdlib.h>
16040 #include <jpeglib.h>
16046 #if JPEG_LIB_VERSION < 62
16047 #error IJG JPEG library must be version 6b or newer!
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 ac_cv_jpeg_version_ok='yes'
16058 ac_cv_jpeg_version_ok='no'
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
16063 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
16064 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16066 $as_echo "yes" >&6; }
16067 passed=`expr $passed + 1`
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16070 $as_echo "no" >&6; }
16071 failed=`expr $failed + 1`
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
16075 $as_echo_n "checking if JPEG package is complete... " >&6; }
16076 if test $passed -gt 0
16078 if test $failed -gt 0
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16081 $as_echo "no -- some components failed test" >&6; }
16082 have_jpeg='no (failed tests)'
16085 LIBS="$LIB_JPEG $LIBS"
16087 $as_echo "#define HasJPEG 1" >>confdefs.h
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16090 $as_echo "yes" >&6; }
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16095 $as_echo "no" >&6; }
16098 if test "$have_jpeg" = 'yes'; then
16112 if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
16116 $as_echo_n "checking for ZLIB support ... " >&6; }
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16121 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
16122 if test "x$ac_cv_header_zconf_h" = xyes; then :
16123 passed=`expr $passed + 1`
16125 failed=`expr $failed + 1`
16129 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16130 if test "x$ac_cv_header_zlib_h" = xyes; then :
16131 passed=`expr $passed + 1`
16133 failed=`expr $failed + 1`
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
16138 $as_echo_n "checking for compress in -lz... " >&6; }
16139 if ${ac_cv_lib_z_compress+:} false; then :
16140 $as_echo_n "(cached) " >&6
16142 ac_check_lib_save_LIBS=$LIBS
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16147 /* Override any GCC internal prototype to avoid an error.
16148 Use char because int might match the return type of a GCC
16149 builtin and then its argument prototype would still apply. */
16157 return compress ();
16162 if ac_fn_c_try_link "$LINENO"; then :
16163 ac_cv_lib_z_compress=yes
16165 ac_cv_lib_z_compress=no
16167 rm -f core conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169 LIBS=$ac_check_lib_save_LIBS
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
16172 $as_echo "$ac_cv_lib_z_compress" >&6; }
16173 if test "x$ac_cv_lib_z_compress" = xyes; then :
16174 passed=`expr $passed + 1`
16176 failed=`expr $failed + 1`
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
16180 $as_echo_n "checking for uncompress in -lz... " >&6; }
16181 if ${ac_cv_lib_z_uncompress+:} false; then :
16182 $as_echo_n "(cached) " >&6
16184 ac_check_lib_save_LIBS=$LIBS
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16189 /* Override any GCC internal prototype to avoid an error.
16190 Use char because int might match the return type of a GCC
16191 builtin and then its argument prototype would still apply. */
16195 char uncompress ();
16199 return uncompress ();
16204 if ac_fn_c_try_link "$LINENO"; then :
16205 ac_cv_lib_z_uncompress=yes
16207 ac_cv_lib_z_uncompress=no
16209 rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LIBS=$ac_check_lib_save_LIBS
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
16214 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16215 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
16216 passed=`expr $passed + 1`
16218 failed=`expr $failed + 1`
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16222 $as_echo_n "checking for deflate in -lz... " >&6; }
16223 if ${ac_cv_lib_z_deflate+:} false; then :
16224 $as_echo_n "(cached) " >&6
16226 ac_check_lib_save_LIBS=$LIBS
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16231 /* Override any GCC internal prototype to avoid an error.
16232 Use char because int might match the return type of a GCC
16233 builtin and then its argument prototype would still apply. */
16246 if ac_fn_c_try_link "$LINENO"; then :
16247 ac_cv_lib_z_deflate=yes
16249 ac_cv_lib_z_deflate=no
16251 rm -f core conftest.err conftest.$ac_objext \
16252 conftest$ac_exeext conftest.$ac_ext
16253 LIBS=$ac_check_lib_save_LIBS
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16256 $as_echo "$ac_cv_lib_z_deflate" >&6; }
16257 if test "x$ac_cv_lib_z_deflate" = xyes; then :
16258 passed=`expr $passed + 1`
16260 failed=`expr $failed + 1`
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16264 $as_echo_n "checking for inflate in -lz... " >&6; }
16265 if ${ac_cv_lib_z_inflate+:} false; then :
16266 $as_echo_n "(cached) " >&6
16268 ac_check_lib_save_LIBS=$LIBS
16270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16271 /* end confdefs.h. */
16273 /* Override any GCC internal prototype to avoid an error.
16274 Use char because int might match the return type of a GCC
16275 builtin and then its argument prototype would still apply. */
16288 if ac_fn_c_try_link "$LINENO"; then :
16289 ac_cv_lib_z_inflate=yes
16291 ac_cv_lib_z_inflate=no
16293 rm -f core conftest.err conftest.$ac_objext \
16294 conftest$ac_exeext conftest.$ac_ext
16295 LIBS=$ac_check_lib_save_LIBS
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16298 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16299 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16300 passed=`expr $passed + 1`
16302 failed=`expr $failed + 1`
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
16306 $as_echo_n "checking for gzseek in -lz... " >&6; }
16307 if ${ac_cv_lib_z_gzseek+:} false; then :
16308 $as_echo_n "(cached) " >&6
16310 ac_check_lib_save_LIBS=$LIBS
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16315 /* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16330 if ac_fn_c_try_link "$LINENO"; then :
16331 ac_cv_lib_z_gzseek=yes
16333 ac_cv_lib_z_gzseek=no
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
16340 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
16341 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
16342 passed=`expr $passed + 1`
16344 failed=`expr $failed + 1`
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
16348 $as_echo_n "checking for gztell in -lz... " >&6; }
16349 if ${ac_cv_lib_z_gztell+:} false; then :
16350 $as_echo_n "(cached) " >&6
16352 ac_check_lib_save_LIBS=$LIBS
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16357 /* Override any GCC internal prototype to avoid an error.
16358 Use char because int might match the return type of a GCC
16359 builtin and then its argument prototype would still apply. */
16372 if ac_fn_c_try_link "$LINENO"; then :
16373 ac_cv_lib_z_gztell=yes
16375 ac_cv_lib_z_gztell=no
16377 rm -f core conftest.err conftest.$ac_objext \
16378 conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
16382 $as_echo "$ac_cv_lib_z_gztell" >&6; }
16383 if test "x$ac_cv_lib_z_gztell" = xyes; then :
16384 passed=`expr $passed + 1`
16386 failed=`expr $failed + 1`
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
16390 $as_echo_n "checking if ZLIB package is complete... " >&6; }
16391 if test $passed -gt 0
16393 if test $failed -gt 0
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16396 $as_echo "no -- some components failed test" >&6; }
16397 have_zlib='no (failed tests)'
16400 LIBS="$LIB_ZLIB $LIBS"
16402 $as_echo "#define HasZLIB 1" >>confdefs.h
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16405 $as_echo "yes" >&6; }
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16410 $as_echo "no" >&6; }
16413 if test "$have_zlib" = 'yes'; then
16428 if test ! "$with_tiff" = 'no'
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
16431 $as_echo_n "checking for TIFF support ... " >&6; }
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16436 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16437 if test "x$ac_cv_header_tiff_h" = xyes; then :
16438 passed=`expr $passed + 1`
16440 failed=`expr $failed + 1`
16444 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16445 if test "x$ac_cv_header_tiffio_h" = xyes; then :
16446 passed=`expr $passed + 1`
16448 failed=`expr $failed + 1`
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
16453 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
16454 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
16455 $as_echo_n "(cached) " >&6
16457 ac_check_lib_save_LIBS=$LIBS
16458 LIBS="-ltiff $LIBS"
16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16462 /* Override any GCC internal prototype to avoid an error.
16463 Use char because int might match the return type of a GCC
16464 builtin and then its argument prototype would still apply. */
16472 return TIFFOpen ();
16477 if ac_fn_c_try_link "$LINENO"; then :
16478 ac_cv_lib_tiff_TIFFOpen=yes
16480 ac_cv_lib_tiff_TIFFOpen=no
16482 rm -f core conftest.err conftest.$ac_objext \
16483 conftest$ac_exeext conftest.$ac_ext
16484 LIBS=$ac_check_lib_save_LIBS
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16487 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16488 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
16489 passed=`expr $passed + 1`
16491 failed=`expr $failed + 1`
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16495 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16496 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16497 $as_echo_n "(cached) " >&6
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-ltiff $LIBS"
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16504 /* Override any GCC internal prototype to avoid an error.
16505 Use char because int might match the return type of a GCC
16506 builtin and then its argument prototype would still apply. */
16510 char TIFFClientOpen ();
16514 return TIFFClientOpen ();
16519 if ac_fn_c_try_link "$LINENO"; then :
16520 ac_cv_lib_tiff_TIFFClientOpen=yes
16522 ac_cv_lib_tiff_TIFFClientOpen=no
16524 rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16529 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16530 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16531 passed=`expr $passed + 1`
16533 failed=`expr $failed + 1`
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
16537 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
16538 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
16539 $as_echo_n "(cached) " >&6
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-ltiff $LIBS"
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16546 /* Override any GCC internal prototype to avoid an error.
16547 Use char because int might match the return type of a GCC
16548 builtin and then its argument prototype would still apply. */
16552 char TIFFIsByteSwapped ();
16556 return TIFFIsByteSwapped ();
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
16564 ac_cv_lib_tiff_TIFFIsByteSwapped=no
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
16571 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
16572 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
16573 passed=`expr $passed + 1`
16575 failed=`expr $failed + 1`
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
16579 $as_echo_n "checking if TIFF package is complete... " >&6; }
16580 if test $passed -gt 0
16582 if test $failed -gt 0
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16585 $as_echo "no -- some components failed test" >&6; }
16586 have_tiff='no (failed tests)'
16589 LIBS="$LIB_TIFF $LIBS"
16591 $as_echo "#define HasTIFF 1" >>confdefs.h
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16594 $as_echo "yes" >&6; }
16596 for ac_header in tiffconf.h
16598 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
16599 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
16600 cat >>confdefs.h <<_ACEOF
16601 #define HAVE_TIFFCONF_H 1
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16611 $as_echo "no" >&6; }
16614 if test "$have_tiff" = 'yes'; then
16624 # Libraries that the LCMS library depends on
16625 LCMS_LIB_DEPLIBS="$LIB_MATH"
16626 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
16629 # Libraries that the jpegicc program depends on
16630 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH"
16631 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
16634 # Libraries that the tifficc program depends on
16635 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH"
16636 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
16642 # Perform substitutions
16644 ac_config_files="$ac_config_files Makefile"
16646 ac_config_files="$ac_config_files lcms2.pc"
16648 ac_config_files="$ac_config_files include/Makefile"
16650 ac_config_files="$ac_config_files src/Makefile"
16652 ac_config_files="$ac_config_files utils/tificc/Makefile"
16654 ac_config_files="$ac_config_files utils/transicc/Makefile"
16656 ac_config_files="$ac_config_files utils/linkicc/Makefile"
16658 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
16660 ac_config_files="$ac_config_files utils/psicc/Makefile"
16662 ac_config_files="$ac_config_files testbed/Makefile"
16664 cat >confcache <<\_ACEOF
16665 # This file is a shell script that caches the results of configure
16666 # tests run on this system so they can be shared between configure
16667 # scripts and configure runs, see configure's option --config-cache.
16668 # It is not useful on other systems. If it contains results you don't
16669 # want to keep, you may remove or edit it.
16671 # config.status only pays attention to the cache file if you give it
16672 # the --recheck option to rerun configure.
16674 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16676 # following values.
16680 # The following way of writing the cache mishandles newlines in values,
16681 # but we know of no workaround that is simple, portable, and efficient.
16682 # So, we kill variables containing newlines.
16683 # Ultrix sh set writes to stderr and can't be redirected directly,
16684 # and sets the high bit in the cache file unless we assign to the vars.
16686 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16687 eval ac_val=\$$ac_var
16691 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16695 _ | IFS | as_nl) ;; #(
16696 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16697 *) { eval $ac_var=; unset $ac_var;} ;;
16703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16704 *${as_nl}ac_space=\ *)
16705 # `set' does not quote correctly, so add quotes: double-quote
16706 # substitution turns \\\\ into \\, and sed turns \\ into \.
16709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16712 # `set' quotes correctly as required by POSIX, so do not add quotes.
16713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16726 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16727 if test -w "$cache_file"; then
16728 if test "x$cache_file" != "x/dev/null"; then
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16730 $as_echo "$as_me: updating cache $cache_file" >&6;}
16731 if test ! -f "$cache_file" || test -h "$cache_file"; then
16732 cat confcache >"$cache_file"
16734 case $cache_file in #(
16736 mv -f confcache "$cache_file"$$ &&
16737 mv -f "$cache_file"$$ "$cache_file" ;; #(
16739 mv -f confcache "$cache_file" ;;
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16745 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16750 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16751 # Let make expand exec_prefix.
16752 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16754 # Transform confdefs.h into DEFS.
16755 # Protect against shell expansion while executing Makefile rules.
16756 # Protect against Makefile macro expansion.
16758 # If the first sed substitution is executed (which looks for macros that
16759 # take arguments), then branch to the quote section. Otherwise,
16760 # look for a macro that doesn't take arguments.
16770 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16772 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16776 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16789 DEFS=`sed -n "$ac_script" confdefs.h`
16795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16796 # 1. Remove the extension, and $U if already installed.
16797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16800 # will be set to the directory where LIBOBJS objects are built.
16801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16804 LIBOBJS=$ac_libobjs
16806 LTLIBOBJS=$ac_ltlibobjs
16809 if test -n "$EXEEXT"; then
16811 am__EXEEXT_FALSE='#'
16813 am__EXEEXT_TRUE='#'
16817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16818 as_fn_error $? "conditional \"AMDEP\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16825 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16826 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16829 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16830 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16834 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
16835 as_fn_error $? "conditional \"HasJPEG\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16838 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
16839 as_fn_error $? "conditional \"HasZLIB\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16842 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
16843 as_fn_error $? "conditional \"HasTIFF\" was never defined.
16844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16847 : "${CONFIG_STATUS=./config.status}"
16849 ac_clean_files_save=$ac_clean_files
16850 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16852 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16854 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16856 # Generated by $as_me.
16857 # Run this file to recreate the current configuration.
16858 # Compiler output produced by configure, useful for debugging
16859 # configure, is in config.log if it exists.
16862 ac_cs_recheck=false
16865 SHELL=\${CONFIG_SHELL-$SHELL}
16868 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16869 ## -------------------- ##
16870 ## M4sh Initialization. ##
16871 ## -------------------- ##
16873 # Be more Bourne compatible
16874 DUALCASE=1; export DUALCASE # for MKS sh
16875 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16878 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16879 # is contrary to our usage. Disable this feature.
16880 alias -g '${1+"$@"}'='"$@"'
16881 setopt NO_GLOB_SUBST
16883 case `(set -o) 2>/dev/null` in #(
16895 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16896 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16899 # Prefer a ksh shell builtin over an external printf program on Solaris,
16900 # but without wasting forks for bash or zsh.
16901 if test -z "$BASH_VERSION$ZSH_VERSION" \
16902 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16903 as_echo='print -r --'
16904 as_echo_n='print -rn --'
16905 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16906 as_echo='printf %s\n'
16907 as_echo_n='printf %s'
16909 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16910 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16911 as_echo_n='/usr/ucb/echo -n'
16913 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16914 as_echo_n_body='eval
16918 expr "X$arg" : "X\\(.*\\)$as_nl";
16919 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16921 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16923 export as_echo_n_body
16924 as_echo_n='sh -c $as_echo_n_body as_echo'
16926 export as_echo_body
16927 as_echo='sh -c $as_echo_body as_echo'
16930 # The user is always right.
16931 if test "${PATH_SEPARATOR+set}" != set; then
16933 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16934 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16941 # We need space, tab and new line, in precisely that order. Quoting is
16942 # there to prevent editors from complaining about space-tab.
16943 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16944 # splitting by setting IFS to empty value.)
16947 # Find who we are. Look in the path if we contain no directory separator.
16950 *[\\/]* ) as_myself=$0 ;;
16951 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16952 for as_dir in $PATH
16955 test -z "$as_dir" && as_dir=.
16956 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16962 # We did not find ourselves, most probably we were run as `sh COMMAND'
16963 # in which case we are not to be found in the path.
16964 if test "x$as_myself" = x; then
16967 if test ! -f "$as_myself"; then
16968 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16972 # Unset variables that we do not need and which cause bugs (e.g. in
16973 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16974 # suppresses any "Segmentation fault" message there. '((' could
16975 # trigger a bug in pdksh 5.2.14.
16976 for as_var in BASH_ENV ENV MAIL MAILPATH
16977 do eval test x\${$as_var+set} = xset \
16978 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16994 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16995 # ----------------------------------------
16996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16998 # script with STATUS, using 1 if that was 0.
17001 as_status=$1; test $as_status -eq 0 && as_status=1
17003 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17004 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17006 $as_echo "$as_me: error: $2" >&2
17007 as_fn_exit $as_status
17011 # as_fn_set_status STATUS
17012 # -----------------------
17013 # Set $? to STATUS, without forking.
17014 as_fn_set_status ()
17017 } # as_fn_set_status
17019 # as_fn_exit STATUS
17020 # -----------------
17021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17025 as_fn_set_status $1
17031 # Portably unset VAR.
17034 { eval $1=; unset $1;}
17036 as_unset=as_fn_unset
17037 # as_fn_append VAR VALUE
17038 # ----------------------
17039 # Append the text in VALUE to the end of the definition contained in VAR. Take
17040 # advantage of any shell optimizations that allow amortized linear growth over
17041 # repeated appends, instead of the typical quadratic growth present in naive
17043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17044 eval 'as_fn_append ()
17055 # as_fn_arith ARG...
17056 # ------------------
17057 # Perform arithmetic evaluation on the ARGs, and store the result in the
17058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17059 # must be portable across $(()) and expr.
17060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17061 eval 'as_fn_arith ()
17068 as_val=`expr "$@" || test $? -eq 1`
17073 if expr a : '\(a\)' >/dev/null 2>&1 &&
17074 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17081 as_basename=basename
17086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17092 as_me=`$as_basename -- "$0" ||
17093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17094 X"$0" : 'X\(//\)$' \| \
17095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17097 sed '/^.*\/\([^/][^/]*\)\/*$/{
17111 # Avoid depending upon Character Ranges.
17112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17115 as_cr_digits='0123456789'
17116 as_cr_alnum=$as_cr_Letters$as_cr_digits
17118 ECHO_C= ECHO_N= ECHO_T=
17119 case `echo -n x` in #(((((
17121 case `echo 'xy\c'` in
17122 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17124 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17131 rm -f conf$$ conf$$.exe conf$$.file
17132 if test -d conf$$.dir; then
17133 rm -f conf$$.dir/conf$$.file
17136 mkdir conf$$.dir 2>/dev/null
17138 if (echo >conf$$.file) 2>/dev/null; then
17139 if ln -s conf$$.file conf$$ 2>/dev/null; then
17141 # ... but there are two gotchas:
17142 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17143 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17144 # In both cases, we have to default to `cp -p'.
17145 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17147 elif ln conf$$.file conf$$ 2>/dev/null; then
17155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17156 rmdir conf$$.dir 2>/dev/null
17161 # Create "$as_dir" as a directory, including parents if necessary.
17166 -*) as_dir=./$as_dir;;
17168 test -d "$as_dir" || eval $as_mkdir_p || {
17172 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17173 *) as_qdir=$as_dir;;
17175 as_dirs="'$as_qdir' $as_dirs"
17176 as_dir=`$as_dirname -- "$as_dir" ||
17177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17178 X"$as_dir" : 'X\(//\)[^/]' \| \
17179 X"$as_dir" : 'X\(//\)$' \| \
17180 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17181 $as_echo X"$as_dir" |
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17186 /^X\(\/\/\)[^/].*/{
17199 test -d "$as_dir" && break
17201 test -z "$as_dirs" || eval "mkdir $as_dirs"
17202 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17206 if mkdir -p . 2>/dev/null; then
17207 as_mkdir_p='mkdir -p "$as_dir"'
17209 test -d ./-p && rmdir ./-p
17213 if test -x / >/dev/null 2>&1; then
17214 as_test_x='test -x'
17216 if ls -dL / >/dev/null 2>&1; then
17223 if test -d "$1"; then
17229 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17230 ???[sx]*):;;*)false;;esac;fi
17234 as_executable_p=$as_test_x
17236 # Sed expression to map a string onto a valid CPP name.
17237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17239 # Sed expression to map a string onto a valid variable name.
17240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17244 ## ----------------------------------- ##
17245 ## Main body of $CONFIG_STATUS script. ##
17246 ## ----------------------------------- ##
17248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17251 # Save the log message, to keep $0 and so on meaningful, and to
17252 # report actual input values of CONFIG_FILES etc. instead of their
17253 # values after options handling.
17255 This file was extended by lcms2 $as_me 2.4, which was
17256 generated by GNU Autoconf 2.68. Invocation command line was
17258 CONFIG_FILES = $CONFIG_FILES
17259 CONFIG_HEADERS = $CONFIG_HEADERS
17260 CONFIG_LINKS = $CONFIG_LINKS
17261 CONFIG_COMMANDS = $CONFIG_COMMANDS
17264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17269 case $ac_config_files in *"
17270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17276 # Files that config.status was made for.
17277 config_files="$ac_config_files"
17278 config_commands="$ac_config_commands"
17282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17284 \`$as_me' instantiates files and other configuration actions
17285 from templates according to the current configuration. Unless the files
17286 and actions are specified as TAGs, all are instantiated by default.
17288 Usage: $0 [OPTION]... [TAG]...
17290 -h, --help print this help, then exit
17291 -V, --version print version number and configuration settings, then exit
17292 --config print configuration, then exit
17293 -q, --quiet, --silent
17294 do not print progress messages
17295 -d, --debug don't remove temporary files
17296 --recheck update $as_me by reconfiguring in the same conditions
17297 --file=FILE[:TEMPLATE]
17298 instantiate the configuration file FILE
17300 Configuration files:
17303 Configuration commands:
17306 Report bugs to the package provider."
17309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17310 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17312 lcms2 config.status 2.4
17313 configured by $0, generated by GNU Autoconf 2.68,
17314 with options \\"\$ac_cs_config\\"
17316 Copyright (C) 2010 Free Software Foundation, Inc.
17317 This config.status script is free software; the Free Software Foundation
17318 gives unlimited permission to copy, distribute and modify it."
17325 test -n "\$AWK" || AWK=awk
17328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17329 # The default lists apply if the user does not specify any file.
17335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17352 # Handling of the options.
17353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17355 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17356 $as_echo "$ac_cs_version"; exit ;;
17357 --config | --confi | --conf | --con | --co | --c )
17358 $as_echo "$ac_cs_config"; exit ;;
17359 --debug | --debu | --deb | --de | --d | -d )
17361 --file | --fil | --fi | --f )
17364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17365 '') as_fn_error $? "missing file argument" ;;
17367 as_fn_append CONFIG_FILES " '$ac_optarg'"
17368 ac_need_defaults=false;;
17369 --he | --h | --help | --hel | -h )
17370 $as_echo "$ac_cs_usage"; exit ;;
17371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17375 # This is an error.
17376 -*) as_fn_error $? "unrecognized option: \`$1'
17377 Try \`$0 --help' for more information." ;;
17379 *) as_fn_append ac_config_targets " $1"
17380 ac_need_defaults=false ;;
17386 ac_configure_extra_args=
17388 if $ac_cs_silent; then
17390 ac_configure_extra_args="$ac_configure_extra_args --silent"
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 if \$ac_cs_recheck; then
17396 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17399 CONFIG_SHELL='$SHELL'
17400 export CONFIG_SHELL
17405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17410 ## Running $as_me. ##
17416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17420 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17423 # The HP-UX ksh and POSIX shell print the target directory to stdout
17424 # if CDPATH is set.
17425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17427 sed_quote_subst='$sed_quote_subst'
17428 double_quote_subst='$double_quote_subst'
17429 delay_variable_subst='$delay_variable_subst'
17430 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17431 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17432 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17433 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17435 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17436 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17437 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17438 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17439 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17440 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17441 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17442 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17443 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17444 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17445 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17446 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17447 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17448 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17449 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17450 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17451 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17452 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17453 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17454 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17455 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17456 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17457 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17458 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17459 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17460 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17461 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17462 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17463 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17464 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17467 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17468 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17469 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17470 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17471 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17472 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17473 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17474 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17475 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17476 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17477 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17478 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17479 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17480 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17481 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17482 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17483 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17484 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17485 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17486 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17487 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17488 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17489 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17490 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17491 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17492 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17493 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17494 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17495 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17496 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17497 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17498 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17499 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17500 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17501 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17502 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17503 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17504 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17505 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17506 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17507 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17508 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17509 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17510 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17511 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17512 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17513 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17514 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17515 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17516 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17517 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17518 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17519 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17520 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17521 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17522 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17523 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17524 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17525 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17526 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17527 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17528 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17529 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17535 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17536 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17537 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17538 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17539 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17540 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17541 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17542 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17543 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17544 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17545 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17546 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17547 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17548 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17549 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17550 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17551 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17552 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17553 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17554 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17555 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17556 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17557 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17558 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17559 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17560 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17561 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17562 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17563 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17564 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17565 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17566 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17567 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17568 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17569 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17570 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17571 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17572 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17573 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17574 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17575 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17576 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17577 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17578 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17579 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17580 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17581 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17582 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17583 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17585 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17586 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17587 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17588 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17589 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17590 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17591 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17592 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17593 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17594 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17595 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17596 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17597 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17598 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17599 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17600 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17601 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17602 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17603 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17605 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17606 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17607 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17609 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17610 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17611 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17612 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17613 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17614 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17615 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17618 LTCFLAGS='$LTCFLAGS'
17619 compiler='$compiler_DEFAULT'
17621 # A function that is used when there is no print builtin or printf.
17622 func_fallback_echo ()
17624 eval 'cat <<_LTECHO_EOF
17629 # Quote evaled strings.
17645 deplibs_check_method \
17649 sharedlib_from_linklib_cmd \
17652 archiver_list_spec \
17658 lt_cv_sys_global_symbol_pipe \
17659 lt_cv_sys_global_symbol_to_cdecl \
17660 lt_cv_sys_global_symbol_to_c_name_address \
17661 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17662 nm_file_list_spec \
17663 lt_prog_compiler_no_builtin_flag \
17664 lt_prog_compiler_pic \
17665 lt_prog_compiler_wl \
17666 lt_prog_compiler_static \
17667 lt_cv_prog_compiler_c_o \
17676 export_dynamic_flag_spec \
17677 whole_archive_flag_spec \
17678 compiler_needs_object \
17680 allow_undefined_flag \
17681 no_undefined_flag \
17682 hardcode_libdir_flag_spec \
17683 hardcode_libdir_flag_spec_ld \
17684 hardcode_libdir_separator \
17688 variables_saved_for_relink \
17690 library_names_spec \
17692 install_override_mode \
17696 compiler_lib_search_dirs \
17701 compiler_lib_search_path \
17705 lt_prog_compiler_no_builtin_flag_CXX \
17706 lt_prog_compiler_pic_CXX \
17707 lt_prog_compiler_wl_CXX \
17708 lt_prog_compiler_static_CXX \
17709 lt_cv_prog_compiler_c_o_CXX \
17710 export_dynamic_flag_spec_CXX \
17711 whole_archive_flag_spec_CXX \
17712 compiler_needs_object_CXX \
17714 allow_undefined_flag_CXX \
17715 no_undefined_flag_CXX \
17716 hardcode_libdir_flag_spec_CXX \
17717 hardcode_libdir_flag_spec_ld_CXX \
17718 hardcode_libdir_separator_CXX \
17719 exclude_expsyms_CXX \
17720 include_expsyms_CXX \
17721 file_list_spec_CXX \
17722 compiler_lib_search_dirs_CXX \
17723 predep_objects_CXX \
17724 postdep_objects_CXX \
17727 compiler_lib_search_path_CXX; do
17728 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17729 *[\\\\\\\`\\"\\\$]*)
17730 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17733 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17738 # Double-quote double-evaled strings.
17739 for var in reload_cmds \
17740 old_postinstall_cmds \
17741 old_postuninstall_cmds \
17743 extract_expsyms_cmds \
17744 old_archive_from_new_cmds \
17745 old_archive_from_expsyms_cmds \
17747 archive_expsym_cmds \
17749 module_expsym_cmds \
17750 export_symbols_cmds \
17754 postuninstall_cmds \
17756 sys_lib_search_path_spec \
17757 sys_lib_dlsearch_path_spec \
17759 old_archive_cmds_CXX \
17760 old_archive_from_new_cmds_CXX \
17761 old_archive_from_expsyms_cmds_CXX \
17763 archive_expsym_cmds_CXX \
17765 module_expsym_cmds_CXX \
17766 export_symbols_cmds_CXX \
17768 postlink_cmds_CXX; do
17769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17770 *[\\\\\\\`\\"\\\$]*)
17771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17779 ac_aux_dir='$ac_aux_dir'
17780 xsi_shell='$xsi_shell'
17781 lt_shell_append='$lt_shell_append'
17783 # See if we are running on zsh, and set the options which allow our
17784 # commands through without removal of \ escapes INIT.
17785 if test -n "\${ZSH_VERSION+set}" ; then
17786 setopt NO_GLOB_SUBST
17792 TIMESTAMP='$TIMESTAMP'
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17805 # Handling of arguments.
17806 for ac_config_target in $ac_config_targets
17808 case $ac_config_target in
17809 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17810 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17812 "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
17813 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17814 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17815 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
17816 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
17817 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
17818 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
17819 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
17820 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
17822 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17827 # If the user did not use the arguments to specify the items to instantiate,
17828 # then the envvar interface is used. Set only those that are not.
17829 # We use the long form for the default assignment because of an extremely
17830 # bizarre bug on SunOS 4.1.3.
17831 if $ac_need_defaults; then
17832 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17833 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17836 # Have a temporary directory for convenience. Make it in the build tree
17837 # simply because there is no reason against having it here, and in addition,
17838 # creating and moving files from /tmp can sometimes cause problems.
17839 # Hook for its removal unless debugging.
17840 # Note that there is a small window in which the directory will not be cleaned:
17841 # after its creation but before its name has been assigned to `$tmp'.
17845 trap 'exit_status=$?
17846 : "${ac_tmp:=$tmp}"
17847 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17849 trap 'as_fn_exit 1' 1 2 13 15
17851 # Create a (secure) tmp directory for tmp files.
17854 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17858 tmp=./conf$$-$RANDOM
17859 (umask 077 && mkdir "$tmp")
17860 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17863 # Set up the scripts for CONFIG_FILES section.
17864 # No need to generate them if there are no CONFIG_FILES.
17865 # This happens for instance with `./config.status config.h'.
17866 if test -n "$CONFIG_FILES"; then
17869 ac_cr=`echo X | tr X '\015'`
17870 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17871 # But we know of no other shell where ac_cr would be empty at this
17872 # point, so we can use a bashism as a fallback.
17873 if test "x$ac_cr" = x; then
17874 eval ac_cr=\$\'\\r\'
17876 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17877 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17880 ac_cs_awk_cr=$ac_cr
17883 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17888 echo "cat >conf$$subs.awk <<_ACEOF" &&
17889 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17891 } >conf$$subs.sh ||
17892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17893 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17895 for ac_last_try in false false false false false :; do
17896 . ./conf$$subs.sh ||
17897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17899 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17900 if test $ac_delim_n = $ac_delim_num; then
17902 elif $ac_last_try; then
17903 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17905 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17908 rm -f conf$$subs.sh
17910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17911 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17915 s/^/S["/; s/!.*/"]=/
17925 s/\(.\{148\}\)..*/\1/
17927 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17932 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17939 s/\(.\{148\}\)..*/\1/
17941 s/["\\]/\\&/g; s/^/"/; s/$/"/
17945 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17950 ' <conf$$subs.awk | sed '
17955 ' >>$CONFIG_STATUS || ac_write_fail=1
17956 rm -f conf$$subs.awk
17957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17960 for (key in S) S_is_set[key] = 1
17966 nfields = split(line, field, "@")
17968 len = length(field[1])
17969 for (i = 2; i < nfields; i++) {
17971 keylen = length(key)
17972 if (S_is_set[key]) {
17974 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17975 len += length(value) + length(field[++i])
17986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17988 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17991 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17992 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17995 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17996 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17997 # trailing colons and then remove the whole line if VPATH becomes empty
17998 # (actually we leave an empty line to preserve line numbers).
17999 if test "x$srcdir" = x.; then
18000 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18019 fi # test -n "$CONFIG_FILES"
18022 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18027 :[FHLC]) ac_mode=$ac_tag; continue;;
18029 case $ac_mode$ac_tag in
18031 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18032 :[FH]-) ac_tag=-:-;;
18033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18050 -) ac_f="$ac_tmp/stdin";;
18051 *) # Look for the file first in the build tree, then in the source tree
18052 # (if the path is not absolute). The absolute path cannot be DOS-style,
18053 # because $ac_f cannot contain `:'.
18057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18062 as_fn_append ac_file_inputs " '$ac_f'"
18065 # Let's still pretend it is `configure' which instantiates (i.e., don't
18066 # use $as_me), people would be surprised to read:
18067 # /* config.h. Generated by config.status. */
18068 configure_input='Generated from '`
18069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18071 if test x"$ac_file" != x-; then
18072 configure_input="$ac_file. $configure_input"
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18074 $as_echo "$as_me: creating $ac_file" >&6;}
18076 # Neutralize special characters interpreted by sed in replacement strings.
18077 case $configure_input in #(
18078 *\&* | *\|* | *\\* )
18079 ac_sed_conf_input=`$as_echo "$configure_input" |
18080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18081 *) ac_sed_conf_input=$configure_input;;
18085 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18091 ac_dir=`$as_dirname -- "$ac_file" ||
18092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18093 X"$ac_file" : 'X\(//\)[^/]' \| \
18094 X"$ac_file" : 'X\(//\)$' \| \
18095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18096 $as_echo X"$ac_file" |
18097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18101 /^X\(\/\/\)[^/].*/{
18114 as_dir="$ac_dir"; as_fn_mkdir_p
18118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18121 # A ".." for each directory in $ac_dir_suffix.
18122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18123 case $ac_top_builddir_sub in
18124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18128 ac_abs_top_builddir=$ac_pwd
18129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18130 # for backward compatibility:
18131 ac_top_builddir=$ac_top_build_prefix
18134 .) # We are building in place.
18136 ac_top_srcdir=$ac_top_builddir_sub
18137 ac_abs_top_srcdir=$ac_pwd ;;
18138 [\\/]* | ?:[\\/]* ) # Absolute name.
18139 ac_srcdir=$srcdir$ac_dir_suffix;
18140 ac_top_srcdir=$srcdir
18141 ac_abs_top_srcdir=$srcdir ;;
18142 *) # Relative name.
18143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18144 ac_top_srcdir=$ac_top_build_prefix$srcdir
18145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18160 ac_MKDIR_P=$MKDIR_P
18162 [\\/$]* | ?:[\\/]* ) ;;
18163 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18168 # If the template does not know about datarootdir, expand it.
18169 # FIXME: This hack should be removed a few years after 2.60.
18170 ac_datarootdir_hack=; ac_datarootdir_seen=
18181 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18182 *datarootdir*) ac_datarootdir_seen=yes;;
18183 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18185 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18188 ac_datarootdir_hack='
18189 s&@datadir@&$datadir&g
18190 s&@docdir@&$docdir&g
18191 s&@infodir@&$infodir&g
18192 s&@localedir@&$localedir&g
18193 s&@mandir@&$mandir&g
18194 s&\\\${datarootdir}&$datarootdir&g' ;;
18198 # Neutralize VPATH when `$srcdir' = `.'.
18199 # Shell code in configure.ac might set extrasub.
18200 # FIXME: do we really want to maintain this feature?
18201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18202 ac_sed_extra="$ac_vpsub
18205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18208 s|@configure_input@|$ac_sed_conf_input|;t t
18209 s&@top_builddir@&$ac_top_builddir_sub&;t t
18210 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18211 s&@srcdir@&$ac_srcdir&;t t
18212 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18213 s&@top_srcdir@&$ac_top_srcdir&;t t
18214 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18215 s&@builddir@&$ac_builddir&;t t
18216 s&@abs_builddir@&$ac_abs_builddir&;t t
18217 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18218 s&@INSTALL@&$ac_INSTALL&;t t
18219 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18220 $ac_datarootdir_hack
18222 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18223 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18226 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18228 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18230 which seems to be undefined. Please make sure it is defined" >&5
18231 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18232 which seems to be undefined. Please make sure it is defined" >&2;}
18234 rm -f "$ac_tmp/stdin"
18236 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18237 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18239 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18243 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18244 $as_echo "$as_me: executing $ac_file commands" >&6;}
18249 case $ac_file$ac_mode in
18250 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18251 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18252 # are listed without --file. Let's play safe and only enable the eval
18253 # if we detect the quoting.
18254 case $CONFIG_FILES in
18255 *\'*) eval set x "$CONFIG_FILES" ;;
18256 *) set x $CONFIG_FILES ;;
18261 # Strip MF so we end up with the name of the file.
18262 mf=`echo "$mf" | sed -e 's/:.*$//'`
18263 # Check whether this is an Automake generated Makefile or not.
18264 # We used to match only the files named `Makefile.in', but
18265 # some people rename them; so instead we look at the file content.
18266 # Grep'ing the first line is not enough: some people post-process
18267 # each Makefile.in and add a new line on top of each file to say so.
18268 # Grep'ing the whole file is not good either: AIX grep has a line
18269 # limit of 2048, but all sed's we know have understand at least 4000.
18270 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18271 dirpart=`$as_dirname -- "$mf" ||
18272 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18273 X"$mf" : 'X\(//\)[^/]' \| \
18274 X"$mf" : 'X\(//\)$' \| \
18275 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18281 /^X\(\/\/\)[^/].*/{
18297 # Extract the definition of DEPDIR, am__include, and am__quote
18298 # from the Makefile without running `make'.
18299 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18300 test -z "$DEPDIR" && continue
18301 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18302 test -z "am__include" && continue
18303 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18304 # When using ansi2knr, U may be empty or an underscore; expand it
18305 U=`sed -n 's/^U = //p' < "$mf"`
18306 # Find all dependency output files, they are included files with
18307 # $(DEPDIR) in their names. We invoke sed twice because it is the
18308 # simplest approach to changing $(DEPDIR) to its actual value in the
18310 for file in `sed -n "
18311 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18312 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18313 # Make sure the directory exists.
18314 test -f "$dirpart/$file" && continue
18315 fdir=`$as_dirname -- "$file" ||
18316 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18317 X"$file" : 'X\(//\)[^/]' \| \
18318 X"$file" : 'X\(//\)$' \| \
18319 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18320 $as_echo X"$file" |
18321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18325 /^X\(\/\/\)[^/].*/{
18338 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18339 # echo "creating $dirpart/$file"
18340 echo '# dummy' > "$dirpart/$file"
18347 # See if we are running on zsh, and set the options which allow our
18348 # commands through without removal of \ escapes.
18349 if test -n "${ZSH_VERSION+set}" ; then
18350 setopt NO_GLOB_SUBST
18353 cfgfile="${ofile}T"
18354 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18357 cat <<_LT_EOF >> "$cfgfile"
18360 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18361 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18362 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18363 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18365 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18366 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18368 # Written by Gordon Matzigkeit, 1996
18370 # This file is part of GNU Libtool.
18372 # GNU Libtool is free software; you can redistribute it and/or
18373 # modify it under the terms of the GNU General Public License as
18374 # published by the Free Software Foundation; either version 2 of
18375 # the License, or (at your option) any later version.
18377 # As a special exception to the GNU General Public License,
18378 # if you distribute this file as part of a program or library that
18379 # is built using GNU Libtool, you may include this file under the
18380 # same distribution terms that you use for the rest of that program.
18382 # GNU Libtool is distributed in the hope that it will be useful,
18383 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18384 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18385 # GNU General Public License for more details.
18387 # You should have received a copy of the GNU General Public License
18388 # along with GNU Libtool; see the file COPYING. If not, a copy
18389 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18390 # obtained by writing to the Free Software Foundation, Inc.,
18391 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18394 # The names of the tagged configurations supported by this script.
18395 available_tags="CXX "
18397 # ### BEGIN LIBTOOL CONFIG
18399 # Whether or not to build shared libraries.
18400 build_libtool_libs=$enable_shared
18402 # Whether or not to build static libraries.
18403 build_old_libs=$enable_static
18405 # Assembler program.
18408 # DLL creation program.
18409 DLLTOOL=$lt_DLLTOOL
18411 # Object dumper program.
18412 OBJDUMP=$lt_OBJDUMP
18414 # Which release of libtool.m4 was used?
18415 macro_version=$macro_version
18416 macro_revision=$macro_revision
18418 # What type of objects to build.
18421 # Whether or not to optimize for fast installation.
18422 fast_install=$enable_fast_install
18424 # Shell to use when invoking shell scripts.
18427 # An echo program that protects backslashes.
18431 host_alias=$host_alias
18435 # The build system.
18436 build_alias=$build_alias
18440 # A sed program that does not truncate output.
18443 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18444 Xsed="\$SED -e 1s/^X//"
18446 # A grep program that handles long lines.
18452 # A literal string matcher.
18455 # A BSD- or MS-compatible name lister.
18458 # Whether we need soft or hard links.
18461 # What is the maximum length of a command?
18462 max_cmd_len=$max_cmd_len
18464 # Object file suffix (normally "o").
18467 # Executable file suffix (normally "").
18470 # whether the shell understands "unset".
18473 # turn spaces into newlines.
18476 # turn newlines into spaces.
18479 # convert \$build file names to \$host format.
18480 to_host_file_cmd=$lt_cv_to_host_file_cmd
18482 # convert \$build files to toolchain format.
18483 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18485 # Method to check whether dependent libraries are shared objects.
18486 deplibs_check_method=$lt_deplibs_check_method
18488 # Command to use when deplibs_check_method = "file_magic".
18489 file_magic_cmd=$lt_file_magic_cmd
18491 # How to find potential files when deplibs_check_method = "file_magic".
18492 file_magic_glob=$lt_file_magic_glob
18494 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18495 want_nocaseglob=$lt_want_nocaseglob
18497 # Command to associate shared and link libraries.
18498 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18503 # Flags to create an archive.
18504 AR_FLAGS=$lt_AR_FLAGS
18506 # How to feed a file listing to the archiver.
18507 archiver_list_spec=$lt_archiver_list_spec
18509 # A symbol stripping program.
18512 # Commands used to install an old-style archive.
18514 old_postinstall_cmds=$lt_old_postinstall_cmds
18515 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18517 # Whether to use a lock for old archive extraction.
18518 lock_old_archive_extraction=$lock_old_archive_extraction
18523 # LTCC compiler flags.
18524 LTCFLAGS=$lt_CFLAGS
18526 # Take the output of nm and produce a listing of raw symbols and C names.
18527 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18529 # Transform the output of nm in a proper C declaration.
18530 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18532 # Transform the output of nm in a C name address pair.
18533 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18535 # Transform the output of nm in a C name address pair when lib prefix is needed.
18536 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18538 # Specify filename containing input files for \$NM.
18539 nm_file_list_spec=$lt_nm_file_list_spec
18541 # The root where to search for dependent libraries,and in which our libraries should be installed.
18542 lt_sysroot=$lt_sysroot
18544 # The name of the directory that contains temporary libtool files.
18547 # Used to examine libraries when file_magic_cmd begins with "file".
18548 MAGIC_CMD=$MAGIC_CMD
18550 # Must we lock files when doing compilation?
18551 need_locks=$lt_need_locks
18554 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18556 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18557 DSYMUTIL=$lt_DSYMUTIL
18559 # Tool to change global to local symbols on Mac OS X.
18562 # Tool to manipulate fat objects and archives on Mac OS X.
18565 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18568 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18569 OTOOL64=$lt_OTOOL64
18571 # Old archive suffix (normally "a").
18574 # Shared library suffix (normally ".so").
18575 shrext_cmds=$lt_shrext_cmds
18577 # The commands to extract the exported symbol list from a shared archive.
18578 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18580 # Variables whose values should be saved in libtool wrapper scripts and
18581 # restored at link time.
18582 variables_saved_for_relink=$lt_variables_saved_for_relink
18584 # Do we need the "lib" prefix for modules?
18585 need_lib_prefix=$need_lib_prefix
18587 # Do we need a version for libraries?
18588 need_version=$need_version
18590 # Library versioning type.
18591 version_type=$version_type
18593 # Shared library runtime path variable.
18594 runpath_var=$runpath_var
18596 # Shared library path variable.
18597 shlibpath_var=$shlibpath_var
18599 # Is shlibpath searched before the hard-coded library search path?
18600 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18602 # Format of library name prefix.
18603 libname_spec=$lt_libname_spec
18605 # List of archive names. First name is the real one, the rest are links.
18606 # The last name is the one that the linker finds with -lNAME
18607 library_names_spec=$lt_library_names_spec
18609 # The coded name of the library, if different from the real name.
18610 soname_spec=$lt_soname_spec
18612 # Permission mode override for installation of shared libraries.
18613 install_override_mode=$lt_install_override_mode
18615 # Command to use after installation of a shared archive.
18616 postinstall_cmds=$lt_postinstall_cmds
18618 # Command to use after uninstallation of a shared archive.
18619 postuninstall_cmds=$lt_postuninstall_cmds
18621 # Commands used to finish a libtool library installation in a directory.
18622 finish_cmds=$lt_finish_cmds
18624 # As "finish_cmds", except a single script fragment to be evaled but
18626 finish_eval=$lt_finish_eval
18628 # Whether we should hardcode library paths into libraries.
18629 hardcode_into_libs=$hardcode_into_libs
18631 # Compile-time system search path for libraries.
18632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18634 # Run-time system search path for libraries.
18635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18637 # Whether dlopen is supported.
18638 dlopen_support=$enable_dlopen
18640 # Whether dlopen of programs is supported.
18641 dlopen_self=$enable_dlopen_self
18643 # Whether dlopen of statically linked programs is supported.
18644 dlopen_self_static=$enable_dlopen_self_static
18646 # Commands to strip libraries.
18647 old_striplib=$lt_old_striplib
18648 striplib=$lt_striplib
18651 # The linker used to build libraries.
18654 # How to create reloadable object files.
18655 reload_flag=$lt_reload_flag
18656 reload_cmds=$lt_reload_cmds
18658 # Commands used to build an old-style archive.
18659 old_archive_cmds=$lt_old_archive_cmds
18661 # A language specific compiler.
18664 # Is the compiler the GNU compiler?
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18670 # Additional compiler flags for building library objects.
18671 pic_flag=$lt_lt_prog_compiler_pic
18673 # How to pass a linker flag through the compiler.
18674 wl=$lt_lt_prog_compiler_wl
18676 # Compiler flag to prevent dynamic linking.
18677 link_static_flag=$lt_lt_prog_compiler_static
18679 # Does compiler simultaneously support -c and -o options?
18680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18682 # Whether or not to add -lc for building shared libraries.
18683 build_libtool_need_lc=$archive_cmds_need_lc
18685 # Whether or not to disallow shared libs when runtime libs are static.
18686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18688 # Compiler flag to allow reflexive dlopens.
18689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18691 # Compiler flag to generate shared objects directly from archives.
18692 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18694 # Whether the compiler copes with passing no objects directly.
18695 compiler_needs_object=$lt_compiler_needs_object
18697 # Create an old-style archive from a shared archive.
18698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18700 # Create a temporary old-style archive to link instead of a shared archive.
18701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18703 # Commands used to build a shared archive.
18704 archive_cmds=$lt_archive_cmds
18705 archive_expsym_cmds=$lt_archive_expsym_cmds
18707 # Commands used to build a loadable module if different from building
18708 # a shared archive.
18709 module_cmds=$lt_module_cmds
18710 module_expsym_cmds=$lt_module_expsym_cmds
18712 # Whether we are building with GNU ld or not.
18713 with_gnu_ld=$lt_with_gnu_ld
18715 # Flag that allows shared libraries with undefined symbols to be built.
18716 allow_undefined_flag=$lt_allow_undefined_flag
18718 # Flag that enforces no undefined symbols.
18719 no_undefined_flag=$lt_no_undefined_flag
18721 # Flag to hardcode \$libdir into a binary during linking.
18722 # This must work even if \$libdir does not exist
18723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18725 # If ld is used when linking, flag to hardcode \$libdir into a binary
18726 # during linking. This must work even if \$libdir does not exist.
18727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18729 # Whether we need a single "-rpath" flag with a separated argument.
18730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18733 # DIR into the resulting binary.
18734 hardcode_direct=$hardcode_direct
18736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18737 # DIR into the resulting binary and the resulting library dependency is
18738 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18739 # library is relocated.
18740 hardcode_direct_absolute=$hardcode_direct_absolute
18742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18743 # into the resulting binary.
18744 hardcode_minus_L=$hardcode_minus_L
18746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18747 # into the resulting binary.
18748 hardcode_shlibpath_var=$hardcode_shlibpath_var
18750 # Set to "yes" if building a shared library automatically hardcodes DIR
18751 # into the library and all subsequent libraries and executables linked
18753 hardcode_automatic=$hardcode_automatic
18755 # Set to yes if linker adds runtime paths of dependent libraries
18756 # to runtime path list.
18757 inherit_rpath=$inherit_rpath
18759 # Whether libtool must link a program against all its dependency libraries.
18760 link_all_deplibs=$link_all_deplibs
18762 # Set to "yes" if exported symbols are required.
18763 always_export_symbols=$always_export_symbols
18765 # The commands to list exported symbols.
18766 export_symbols_cmds=$lt_export_symbols_cmds
18768 # Symbols that should not be listed in the preloaded symbols.
18769 exclude_expsyms=$lt_exclude_expsyms
18771 # Symbols that must always be exported.
18772 include_expsyms=$lt_include_expsyms
18774 # Commands necessary for linking programs (against libraries) with templates.
18775 prelink_cmds=$lt_prelink_cmds
18777 # Commands necessary for finishing linking programs.
18778 postlink_cmds=$lt_postlink_cmds
18780 # Specify filename containing input files.
18781 file_list_spec=$lt_file_list_spec
18783 # How to hardcode a shared library path into an executable.
18784 hardcode_action=$hardcode_action
18786 # The directories searched by this compiler when creating a shared library.
18787 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18789 # Dependencies to place before and after the objects being linked to
18790 # create a shared library.
18791 predep_objects=$lt_predep_objects
18792 postdep_objects=$lt_postdep_objects
18793 predeps=$lt_predeps
18794 postdeps=$lt_postdeps
18796 # The library search path used internally by the compiler when linking
18797 # a shared library.
18798 compiler_lib_search_path=$lt_compiler_lib_search_path
18800 # ### END LIBTOOL CONFIG
18806 cat <<\_LT_EOF >> "$cfgfile"
18807 # AIX sometimes has problems with the GCC collect2 program. For some
18808 # reason, if we set the COLLECT_NAMES environment variable, the problems
18809 # vanish in a puff of smoke.
18810 if test "X${COLLECT_NAMES+set}" != Xset; then
18812 export COLLECT_NAMES
18819 ltmain="$ac_aux_dir/ltmain.sh"
18822 # We use sed instead of cat because bash on DJGPP gets confused if
18823 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18824 # text mode, it properly converts lines to CR/LF. This bash problem
18825 # is reportedly fixed, but why not run on old versions too?
18826 sed '$q' "$ltmain" >> "$cfgfile" \
18827 || (rm -f "$cfgfile"; exit 1)
18829 if test x"$xsi_shell" = xyes; then
18830 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18834 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18835 \ * ) func_dirname_result="${3}" ;;\
18837 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18838 && mv -f "$cfgfile.tmp" "$cfgfile" \
18839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18840 test 0 -eq $? || _lt_function_replace_fail=:
18843 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18846 \ func_basename_result="${1##*/}"\
18847 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18848 && mv -f "$cfgfile.tmp" "$cfgfile" \
18849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18850 test 0 -eq $? || _lt_function_replace_fail=:
18853 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18854 func_dirname_and_basename ()\
18857 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18858 \ * ) func_dirname_result="${3}" ;;\
18860 \ func_basename_result="${1##*/}"\
18861 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18862 && mv -f "$cfgfile.tmp" "$cfgfile" \
18863 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18864 test 0 -eq $? || _lt_function_replace_fail=:
18867 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18870 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18871 \ # positional parameters, so assign one to ordinary parameter first.\
18872 \ func_stripname_result=${3}\
18873 \ func_stripname_result=${func_stripname_result#"${1}"}\
18874 \ func_stripname_result=${func_stripname_result%"${2}"}\
18875 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18876 && mv -f "$cfgfile.tmp" "$cfgfile" \
18877 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18878 test 0 -eq $? || _lt_function_replace_fail=:
18881 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18882 func_split_long_opt ()\
18884 \ func_split_long_opt_name=${1%%=*}\
18885 \ func_split_long_opt_arg=${1#*=}\
18886 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18887 && mv -f "$cfgfile.tmp" "$cfgfile" \
18888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18889 test 0 -eq $? || _lt_function_replace_fail=:
18892 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18893 func_split_short_opt ()\
18895 \ func_split_short_opt_arg=${1#??}\
18896 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18897 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18898 && mv -f "$cfgfile.tmp" "$cfgfile" \
18899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18900 test 0 -eq $? || _lt_function_replace_fail=:
18903 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18907 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18908 \ *) func_lo2o_result=${1} ;;\
18910 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18911 && mv -f "$cfgfile.tmp" "$cfgfile" \
18912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18913 test 0 -eq $? || _lt_function_replace_fail=:
18916 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18919 func_xform_result=${1%.*}.lo\
18920 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18921 && mv -f "$cfgfile.tmp" "$cfgfile" \
18922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18923 test 0 -eq $? || _lt_function_replace_fail=:
18926 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18929 func_arith_result=$(( $* ))\
18930 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18931 && mv -f "$cfgfile.tmp" "$cfgfile" \
18932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18933 test 0 -eq $? || _lt_function_replace_fail=:
18936 sed -e '/^func_len ()$/,/^} # func_len /c\
18939 func_len_result=${#1}\
18940 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18941 && mv -f "$cfgfile.tmp" "$cfgfile" \
18942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18943 test 0 -eq $? || _lt_function_replace_fail=:
18947 if test x"$lt_shell_append" = xyes; then
18948 sed -e '/^func_append ()$/,/^} # func_append /c\
18951 eval "${1}+=\\${2}"\
18952 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18953 && mv -f "$cfgfile.tmp" "$cfgfile" \
18954 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18955 test 0 -eq $? || _lt_function_replace_fail=:
18958 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18959 func_append_quoted ()\
18961 \ func_quote_for_eval "${2}"\
18962 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18963 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18964 && mv -f "$cfgfile.tmp" "$cfgfile" \
18965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18966 test 0 -eq $? || _lt_function_replace_fail=:
18969 # Save a `func_append' function call where possible by direct use of '+='
18970 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18971 && mv -f "$cfgfile.tmp" "$cfgfile" \
18972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18973 test 0 -eq $? || _lt_function_replace_fail=:
18975 # Save a `func_append' function call even when '+=' is not available
18976 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18977 && mv -f "$cfgfile.tmp" "$cfgfile" \
18978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18979 test 0 -eq $? || _lt_function_replace_fail=:
18982 if test x"$_lt_function_replace_fail" = x":"; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18984 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18988 mv -f "$cfgfile" "$ofile" ||
18989 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18993 cat <<_LT_EOF >> "$ofile"
18995 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18997 # The linker used to build libraries.
19000 # How to create reloadable object files.
19001 reload_flag=$lt_reload_flag_CXX
19002 reload_cmds=$lt_reload_cmds_CXX
19004 # Commands used to build an old-style archive.
19005 old_archive_cmds=$lt_old_archive_cmds_CXX
19007 # A language specific compiler.
19008 CC=$lt_compiler_CXX
19010 # Is the compiler the GNU compiler?
19013 # Compiler flag to turn off builtin functions.
19014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19016 # Additional compiler flags for building library objects.
19017 pic_flag=$lt_lt_prog_compiler_pic_CXX
19019 # How to pass a linker flag through the compiler.
19020 wl=$lt_lt_prog_compiler_wl_CXX
19022 # Compiler flag to prevent dynamic linking.
19023 link_static_flag=$lt_lt_prog_compiler_static_CXX
19025 # Does compiler simultaneously support -c and -o options?
19026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19028 # Whether or not to add -lc for building shared libraries.
19029 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19031 # Whether or not to disallow shared libs when runtime libs are static.
19032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19034 # Compiler flag to allow reflexive dlopens.
19035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19037 # Compiler flag to generate shared objects directly from archives.
19038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19040 # Whether the compiler copes with passing no objects directly.
19041 compiler_needs_object=$lt_compiler_needs_object_CXX
19043 # Create an old-style archive from a shared archive.
19044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19046 # Create a temporary old-style archive to link instead of a shared archive.
19047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19049 # Commands used to build a shared archive.
19050 archive_cmds=$lt_archive_cmds_CXX
19051 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19053 # Commands used to build a loadable module if different from building
19054 # a shared archive.
19055 module_cmds=$lt_module_cmds_CXX
19056 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19058 # Whether we are building with GNU ld or not.
19059 with_gnu_ld=$lt_with_gnu_ld_CXX
19061 # Flag that allows shared libraries with undefined symbols to be built.
19062 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19064 # Flag that enforces no undefined symbols.
19065 no_undefined_flag=$lt_no_undefined_flag_CXX
19067 # Flag to hardcode \$libdir into a binary during linking.
19068 # This must work even if \$libdir does not exist
19069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19071 # If ld is used when linking, flag to hardcode \$libdir into a binary
19072 # during linking. This must work even if \$libdir does not exist.
19073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19075 # Whether we need a single "-rpath" flag with a separated argument.
19076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19079 # DIR into the resulting binary.
19080 hardcode_direct=$hardcode_direct_CXX
19082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19083 # DIR into the resulting binary and the resulting library dependency is
19084 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19085 # library is relocated.
19086 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19088 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19089 # into the resulting binary.
19090 hardcode_minus_L=$hardcode_minus_L_CXX
19092 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19093 # into the resulting binary.
19094 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19096 # Set to "yes" if building a shared library automatically hardcodes DIR
19097 # into the library and all subsequent libraries and executables linked
19099 hardcode_automatic=$hardcode_automatic_CXX
19101 # Set to yes if linker adds runtime paths of dependent libraries
19102 # to runtime path list.
19103 inherit_rpath=$inherit_rpath_CXX
19105 # Whether libtool must link a program against all its dependency libraries.
19106 link_all_deplibs=$link_all_deplibs_CXX
19108 # Set to "yes" if exported symbols are required.
19109 always_export_symbols=$always_export_symbols_CXX
19111 # The commands to list exported symbols.
19112 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19114 # Symbols that should not be listed in the preloaded symbols.
19115 exclude_expsyms=$lt_exclude_expsyms_CXX
19117 # Symbols that must always be exported.
19118 include_expsyms=$lt_include_expsyms_CXX
19120 # Commands necessary for linking programs (against libraries) with templates.
19121 prelink_cmds=$lt_prelink_cmds_CXX
19123 # Commands necessary for finishing linking programs.
19124 postlink_cmds=$lt_postlink_cmds_CXX
19126 # Specify filename containing input files.
19127 file_list_spec=$lt_file_list_spec_CXX
19129 # How to hardcode a shared library path into an executable.
19130 hardcode_action=$hardcode_action_CXX
19132 # The directories searched by this compiler when creating a shared library.
19133 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19135 # Dependencies to place before and after the objects being linked to
19136 # create a shared library.
19137 predep_objects=$lt_predep_objects_CXX
19138 postdep_objects=$lt_postdep_objects_CXX
19139 predeps=$lt_predeps_CXX
19140 postdeps=$lt_postdeps_CXX
19142 # The library search path used internally by the compiler when linking
19143 # a shared library.
19144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19146 # ### END LIBTOOL TAG CONFIG: CXX
19157 ac_clean_files=$ac_clean_files_save
19159 test $ac_write_fail = 0 ||
19160 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19163 # configure is writing to config.log, and then calls config.status.
19164 # config.status does its own redirection, appending to config.log.
19165 # Unfortunately, on DOS this fails, as config.log is still kept open
19166 # by configure, so config.status won't be able to write to it; its
19167 # output is simply discarded. So we exec the FD to /dev/null,
19168 # effectively closing config.log, so it can be properly (re)opened and
19169 # appended to by config.status. When coming back to configure, we
19170 # need to make the FD available again.
19171 if test "$no_create" != yes; then
19173 ac_config_status_args=
19174 test "$silent" = yes &&
19175 ac_config_status_args="$ac_config_status_args --quiet"
19177 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19179 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19180 # would make configure fail if this is the last instruction.
19181 $ac_cs_success || as_fn_exit 1
19183 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19185 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}