2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for lcms2 2.3.
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.3'
571 PACKAGE_STRING='lcms2 2.3'
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
687 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
757 enable_dependency_tracking
765 enable_maintainer_mode
767 ac_precious_vars='build_alias
782 # Initialize some variables set by options.
784 ac_init_version=false
785 ac_unrecognized_opts=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name=s,x,x,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
940 -help | --help | --hel | --he | -h)
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 # Obsolete; use --without-fp.
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1089 -site=* | --site=* | --sit=*)
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=no ;;
1148 # Obsolete; use --with-x.
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used" >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error $? "pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures lcms2 2.3 to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking ...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/lcms2]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of lcms2 2.3:";;
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --without-jpeg disable JPEG support
1414 --without-tiff disable TIFF support
1415 --without-zlib disable ZLIB support
1416 --with-pic try to use only PIC/non-PIC objects [default=use
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1431 CXX C++ compiler command
1432 CXXFLAGS C++ compiler flags
1433 CXXCPP C++ preprocessor
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1438 Report bugs to the package provider.
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1468 .) # We are building in place.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1502 generated by GNU Autoconf 2.68
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_compile
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 if { { ac_try="$ac_cpp conftest.$ac_ext"
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } > conftest.i && {
1575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1590 # ac_fn_cxx_try_compile LINENO
1591 # ----------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_cxx_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_cxx_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_cxx_try_compile
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 $as_test_x conftest$ac_exeext
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_link
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below.
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767 <limits.h> exists even on freestanding compilers. */
1770 # include <limits.h>
1772 # include <assert.h>
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1799 if ac_fn_c_try_link "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext \
1805 conftest$ac_exeext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_func
1814 # ac_fn_cxx_try_cpp LINENO
1815 # ------------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_cpp ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1837 test ! -s conftest.err
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_cxx_try_cpp
1851 # ac_fn_cxx_try_link LINENO
1852 # -------------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_link ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext conftest$ac_exeext
1858 if { { ac_try="$ac_link"
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>conftest.err
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest$ac_exeext && {
1877 test "$cross_compiling" = yes ||
1878 $as_test_x conftest$ac_exeext
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889 # interfere with the next link command; also delete a directory that is
1890 # left behind by Apple's compiler. We do this before executing the actions.
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_cxx_try_link
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1902 ac_fn_c_check_header_mongrel ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if eval \${$3+:} false; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1915 # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_header_compiler=yes
1926 ac_header_compiler=no
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940 ac_header_preproc=yes
1942 ac_header_preproc=no
1944 rm -f conftest.err conftest.i conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1948 # So? What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1974 eval "$3=\$ac_header_compiler"
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_header_mongrel
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1987 It was created by lcms2 $as_me 2.3, which was
1988 generated by GNU Autoconf 2.68. Invocation command line was
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2009 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2010 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2013 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2014 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2015 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 $as_echo "PATH: $as_dir"
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2048 ac_must_keep_next=false
2054 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056 | -silent | --silent | --silen | --sile | --sil)
2059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2064 as_fn_append ac_configure_args1 " '$ac_arg'"
2065 if test $ac_must_keep_next = true; then
2066 ac_must_keep_next=false # Got value, back to normal.
2069 *=* | --config-cache | -C | -disable-* | --disable-* \
2070 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072 | -with-* | --with-* | -without-* | --without-* | --x)
2073 case "$ac_configure_args0 " in
2074 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077 -* ) ac_must_keep_next=true ;;
2080 as_fn_append ac_configure_args " '$ac_arg'"
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log. We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094 # Save into config.log some information that might help in debugging.
2098 $as_echo "## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##"
2102 # The following way of writing the cache mishandles newlines in values,
2104 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105 eval ac_val=\$$ac_var
2109 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 _ | IFS | as_nl) ;; #(
2114 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115 *) { eval $ac_var=; unset $ac_var;} ;;
2120 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121 *${as_nl}ac_space=\ *)
2123 "s/'\''/'\''\\\\'\'''\''/g;
2124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2134 $as_echo "## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##"
2138 for ac_var in $ac_subst_vars
2140 eval ac_val=\$$ac_var
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 $as_echo "$ac_var='\''$ac_val'\''"
2148 if test -n "$ac_subst_files"; then
2149 $as_echo "## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##"
2153 for ac_var in $ac_subst_files
2155 eval ac_val=\$$ac_var
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 $as_echo "$ac_var='\''$ac_val'\''"
2164 if test -s confdefs.h; then
2165 $as_echo "## ----------- ##
2172 test "$ac_signal" != 0 &&
2173 $as_echo "$as_me: caught signal $ac_signal"
2174 $as_echo "$as_me: exit $exit_status"
2176 rm -f core *.core core.conftest.* &&
2177 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180 for ac_signal in 1 2 13 15; do
2181 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2188 $as_echo "/* confdefs.h */" > confdefs.h
2190 # Predefined preprocessor variables.
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2221 if test -n "$CONFIG_SITE"; then
2222 # We do not want a PATH search for config.site.
2223 case $CONFIG_SITE in #((
2224 -*) ac_site_file1=./$CONFIG_SITE;;
2225 */*) ac_site_file1=$CONFIG_SITE;;
2226 *) ac_site_file1=./$CONFIG_SITE;;
2228 elif test "x$prefix" != xNONE; then
2229 ac_site_file1=$prefix/share/config.site
2230 ac_site_file2=$prefix/etc/config.site
2232 ac_site_file1=$ac_default_prefix/share/config.site
2233 ac_site_file2=$ac_default_prefix/etc/config.site
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2237 test "x$ac_site_file" = xNONE && continue
2238 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241 sed 's/^/| /' "$ac_site_file" >&5
2243 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5 ; }
2250 if test -r "$cache_file"; then
2251 # Some versions of bash will fail to source /dev/null (special files
2252 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2253 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 $as_echo "$as_me: loading cache $cache_file" >&6;}
2257 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258 *) . "./$cache_file";;
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 $as_echo "$as_me: creating cache $cache_file" >&6;}
2267 # Check that the precious variables saved in the cache have kept the same
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272 eval ac_new_set=\$ac_env_${ac_var}_set
2273 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274 eval ac_new_val=\$ac_env_${ac_var}_value
2275 case $ac_old_set,$ac_new_set in
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279 ac_cache_corrupted=: ;;
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283 ac_cache_corrupted=: ;;
2286 if test "x$ac_old_val" != "x$ac_new_val"; then
2287 # differences in whitespace do not lead to failure.
2288 ac_old_val_w=`echo x $ac_old_val`
2289 ac_new_val_w=`echo x $ac_new_val`
2290 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293 ac_cache_corrupted=:
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297 eval $ac_var=\$ac_old_val
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2300 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2305 # Pass precious variables to config.status.
2306 if test "$ac_new_set" = set; then
2308 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309 *) ac_arg=$ac_var=$ac_new_val ;;
2311 case " $ac_configure_args " in
2312 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2313 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 if $ac_cache_corrupted; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337 # Libtool library revision control info
2338 # See the libtool documentation under the heading "Libtool's versioning
2339 # system" in order to understand the meaning of these fields
2341 # Here are a set of rules to help you update your library version
2344 # 1. Start with version information of `0:0:0' for each libtool library.
2345 # 2. Update the version information only immediately before a public
2346 # release of your software. More frequent updates are unnecessary, and
2347 # only guarantee that the current interface number gets larger faster.
2348 # 3. If the library source code has changed at all since the last update,
2349 # then increment revision (`c:r:a' becomes `c:r+1:a').
2350 # 4. If any interfaces have been added, removed, or changed since the last
2351 # update, increment current, and set revision to 0.
2352 # 5. If any interfaces have been added since the last public release, then
2354 # 6. If any interfaces have been removed since the last public release,
2355 # then set age to 0.
2362 # Obtain system type by running config.guess
2364 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2365 if test -f "$ac_dir/install-sh"; then
2367 ac_install_sh="$ac_aux_dir/install-sh -c"
2369 elif test -f "$ac_dir/install.sh"; then
2371 ac_install_sh="$ac_aux_dir/install.sh -c"
2373 elif test -f "$ac_dir/shtool"; then
2375 ac_install_sh="$ac_aux_dir/shtool install -c"
2379 if test -z "$ac_aux_dir"; then
2380 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2383 # These three variables are undocumented and unsupported,
2384 # and are intended to be withdrawn in a future Autoconf release.
2385 # They can cause serious problems if a builder's source tree is in a directory
2386 # whose full name contains unusual characters.
2387 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2388 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2389 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2392 # Make sure we can run config.sub.
2393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2394 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2397 $as_echo_n "checking build system type... " >&6; }
2398 if ${ac_cv_build+:} false; then :
2399 $as_echo_n "(cached) " >&6
2401 ac_build_alias=$build_alias
2402 test "x$ac_build_alias" = x &&
2403 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2404 test "x$ac_build_alias" = x &&
2405 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2411 $as_echo "$ac_cv_build" >&6; }
2412 case $ac_cv_build in
2414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2417 ac_save_IFS=$IFS; IFS='-'
2423 # Remember, the first character of IFS is used to create $*,
2424 # except with old shells:
2427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2431 $as_echo_n "checking host system type... " >&6; }
2432 if ${ac_cv_host+:} false; then :
2433 $as_echo_n "(cached) " >&6
2435 if test "x$host_alias" = x; then
2436 ac_cv_host=$ac_cv_build
2438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2450 ac_save_IFS=$IFS; IFS='-'
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2464 am__api_version='1.11'
2466 # Find a good install program. We prefer a C program (faster),
2467 # so one script is as good as another. But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484 $as_echo_n "(cached) " >&6
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in #((
2493 ./ | .// | /[cC]/* | \
2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2498 # OSF1 and SCO ODT 3.0 have their own names for install.
2499 # Don't use installbsd from OSF since it installs stuff as root
2501 for ac_prog in ginstall scoinst install; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2504 if test $ac_prog = install &&
2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # AIX install. It has an incompatible calling convention.
2508 elif test $ac_prog = install &&
2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # program-specific install script used by HP pwplus--don't use.
2513 rm -rf conftest.one conftest.two conftest.dir
2514 echo one > conftest.one
2515 echo two > conftest.two
2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518 test -s conftest.one && test -s conftest.two &&
2519 test -s conftest.dir/conftest.one &&
2520 test -s conftest.dir/conftest.two
2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535 rm -rf conftest.one conftest.two conftest.dir
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL=$ac_cv_path_install
2541 # As a last resort, use the slow shell script. Don't cache a
2542 # value for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the value is a relative name.
2545 INSTALL=$ac_install_sh
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2563 echo timestamp > conftest.file
2564 # Reject unsafe characters in $srcdir or the absolute working directory
2565 # name. Accept space and tab only in the latter.
2569 *[\\\"\#\$\&\'\`$am_lf]*)
2570 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2573 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2574 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments. Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2586 set X `ls -t "$srcdir/configure" conftest.file`
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
2596 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2597 alias in your environment" "$LINENO" 5
2600 test "$2" = conftest.file
2606 as_fn_error $? "newly created file is older than distributed files!
2607 Check your system clock" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611 test "$program_prefix" != NONE &&
2612 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2616 # Double any \ or $.
2617 # By default was `s,x,x', remove it if useless.
2618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2624 if test x"${MISSING+set}" != xset; then
2627 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2629 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634 am_missing_run="$MISSING --run "
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2638 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 if test x"${install_sh}" != xset; then
2644 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2646 install_sh="\${SHELL} $am_aux_dir/install-sh"
2650 # Installed binaries are usually stripped using `strip' when the user
2651 # run `make install-strip'. However `strip' might not be the right
2652 # tool to use in cross-compilation environments, therefore Automake
2653 # will honor the `STRIP' environment variable to overrule this program.
2654 if test "$cross_compiling" != no; then
2655 if test -n "$ac_tool_prefix"; then
2656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_STRIP+:} false; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$STRIP"; then
2664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 STRIP=$ac_cv_prog_STRIP
2684 if test -n "$STRIP"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2686 $as_echo "$STRIP" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2694 if test -z "$ac_cv_prog_STRIP"; then
2696 # Extract the first word of "strip", so it can be a program name with args.
2697 set dummy strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$ac_ct_STRIP"; then
2704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_ac_ct_STRIP="strip"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2724 if test -n "$ac_ct_STRIP"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2726 $as_echo "$ac_ct_STRIP" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2732 if test "x$ac_ct_STRIP" = x; then
2735 case $cross_compiling:$ac_tool_warned in
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2744 STRIP="$ac_cv_prog_STRIP"
2748 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2751 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2752 if test -z "$MKDIR_P"; then
2753 if ${ac_cv_path_mkdir+:} false; then :
2754 $as_echo_n "(cached) " >&6
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2760 test -z "$as_dir" && as_dir=.
2761 for ac_prog in mkdir gmkdir; do
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2764 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2765 'mkdir (GNU coreutils) '* | \
2766 'mkdir (coreutils) '* | \
2767 'mkdir (fileutils) '4.1*)
2768 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2778 test -d ./--version && rmdir ./--version
2779 if test "${ac_cv_path_mkdir+set}" = set; then
2780 MKDIR_P="$ac_cv_path_mkdir -p"
2782 # As a last resort, use the slow shell script. Don't cache a
2783 # value for MKDIR_P within a source directory, because that will
2784 # break other packages using the cache if that directory is
2785 # removed, or if the value is a relative name.
2786 MKDIR_P="$ac_install_sh -d"
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2790 $as_echo "$MKDIR_P" >&6; }
2794 [\\/$]* | ?:[\\/]*) ;;
2795 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2798 for ac_prog in gawk mawk nawk awk
2800 # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_AWK+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 if test -n "$AWK"; then
2808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_AWK="$ac_prog"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 if test -n "$AWK"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2830 $as_echo "$AWK" >&6; }
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2837 test -n "$AWK" && break
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2845 $as_echo_n "(cached) " >&6
2847 cat >conftest.make <<\_ACEOF
2850 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 eval ac_cv_prog_make_${ac_make}_set=yes;;
2857 eval ac_cv_prog_make_${ac_make}_set=no;;
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 SET_MAKE="MAKE=${MAKE-make}"
2871 rm -rf .tst 2>/dev/null
2872 mkdir .tst 2>/dev/null
2873 if test -d .tst; then
2878 rmdir .tst 2>/dev/null
2880 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2881 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2882 # is not polluted with repeated "-I."
2883 am__isrc=' -I$(srcdir)'
2884 # test to see if srcdir already configured
2885 if test -f $srcdir/config.status; then
2886 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2890 # test whether we have cygpath
2891 if test -z "$CYGPATH_W"; then
2892 if (cygpath --version) >/dev/null 2>/dev/null; then
2893 CYGPATH_W='cygpath -w'
2900 # Define the identity of the package.
2905 # Some tools Automake needs.
2907 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2921 # We need awk for the "check" target. The system "awk" is bad on
2923 # Always define AMTAR for backward compatibility.
2925 AMTAR=${AMTAR-"${am_missing_run}tar"}
2927 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2936 # Check whether --with-jpeg was given.
2937 if test "${with_jpeg+set}" = set; then :
2938 withval=$with_jpeg; with_jpeg=$withval
2946 # Check whether --with-tiff was given.
2947 if test "${with_tiff+set}" = set; then :
2948 withval=$with_tiff; with_tiff=$withval
2956 # Check whether --with-zlib was given.
2957 if test "${with_zlib+set}" = set; then :
2958 withval=$with_zlib; with_zlib=$withval
2964 # Check for programs
2965 DEPDIR="${am__leading_dot}deps"
2967 ac_config_commands="$ac_config_commands depfiles"
2970 am_make=${MAKE-make}
2971 cat > confinc << 'END'
2973 @echo this is the am__doit target
2976 # If we don't find an include directive, just comment out the code.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2978 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2982 # First try GNU make style include.
2983 echo "include confinc" > confmf
2984 # Ignore all kinds of additional output from `make'.
2985 case `$am_make -s -f confmf 2> /dev/null` in #(
2986 *the\ am__doit\ target*)
2992 # Now try BSD make style include.
2993 if test "$am__include" = "#"; then
2994 echo '.include "confinc"' > confmf
2995 case `$am_make -s -f confmf 2> /dev/null` in #(
2996 *the\ am__doit\ target*)
2997 am__include=.include
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3006 $as_echo "$_am_result" >&6; }
3007 rm -f confinc confmf
3009 # Check whether --enable-dependency-tracking was given.
3010 if test "${enable_dependency_tracking+set}" = set; then :
3011 enableval=$enable_dependency_tracking;
3014 if test "x$enable_dependency_tracking" != xno; then
3015 am_depcomp="$ac_aux_dir/depcomp"
3018 if test "x$enable_dependency_tracking" != xno; then
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3071 if test -z "$ac_cv_prog_CC"; then
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="gcc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3109 if test "x$ac_ct_CC" = x; then
3112 case $cross_compiling:$ac_tool_warned in
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="${ac_tool_prefix}cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3165 if test -z "$CC"; then
3166 # Extract the first word of "cc", so it can be a program name with args.
3167 set dummy cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected=yes
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 for ac_prog in cl.exe
3225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 test -n "$CC" && break
3265 if test -z "$CC"; then
3267 for ac_prog in cl.exe
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_ac_ct_CC="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$ac_ct_CC" && break
3309 if test "x$ac_ct_CC" = x; then
3312 case $cross_compiling:$ac_tool_warned in
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3325 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details" "$LINENO" 5 ; }
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3334 for ac_option in --version -v -V -qversion; do
3335 { { ac_try="$ac_compiler $ac_option >&5"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3344 if test -s conftest.err; then
3346 ... rest of stderr output deleted ...
3347 10q' conftest.err >conftest.er1
3348 cat conftest.er1 >&5
3350 rm -f conftest.er1 conftest.err
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3366 ac_clean_files_save=$ac_clean_files
3367 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368 # Try to create an executable without -o first, disregard a.out.
3369 # It will help us diagnose broken compilers, and finding out an intuition
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3372 $as_echo_n "checking whether the C compiler works... " >&6; }
3373 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3375 # The possible output files:
3376 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3379 for ac_file in $ac_files
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388 if { { ac_try="$ac_link_default"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link_default") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3402 # so that the user can short-circuit this test for compilers unknown to
3404 for ac_file in $ac_files ''
3406 test -f "$ac_file" || continue
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3411 # We found the default executable, but exeext='' is most
3415 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3417 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419 # We set ac_cv_exeext here because the later test for it is not
3420 # safe: cross compilers may not add the suffix if given an `-o'
3421 # argument, so we may need to know it at that point already.
3422 # Even if this section looks crufty: it has the advantage of
3429 test "$ac_cv_exeext" = no && ac_cv_exeext=
3434 if test -z "$ac_file"; then :
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error 77 "C compiler cannot create executables
3443 See \`config.log' for more details" "$LINENO" 5 ; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 ac_exeext=$ac_cv_exeext
3454 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455 ac_clean_files=$ac_clean_files_save
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457 $as_echo_n "checking for suffix of executables... " >&6; }
3458 if { { ac_try="$ac_link"
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3471 # work properly (i.e., refer to `conftest.exe'), while it won't with
3473 for ac_file in conftest.exe conftest conftest.*; do
3474 test -f "$ac_file" || continue
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3486 See \`config.log' for more details" "$LINENO" 5 ; }
3488 rm -f conftest conftest$ac_cv_exeext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3501 FILE *f = fopen ("conftest.out", "w");
3502 return ferror (f) || fclose (f) != 0;
3508 ac_clean_files="$ac_clean_files conftest.out"
3509 # Check that the compiler produces executables we can run. If not, either
3510 # the compiler is broken, or we cross compile.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512 $as_echo_n "checking whether we are cross compiling... " >&6; }
3513 if test "$cross_compiling" != yes; then
3514 { { ac_try="$ac_link"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 if { ac_try='./conftest$ac_cv_exeext'
3526 { { case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_try") 2>&5
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; }; then
3538 if test "$cross_compiling" = maybe; then
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot run C compiled programs.
3544 If you meant to cross compile, use \`--host'.
3545 See \`config.log' for more details" "$LINENO" 5 ; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550 $as_echo "$cross_compiling" >&6; }
3552 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if ${ac_cv_objext+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3570 rm -f conftest.o conftest.obj
3571 if { { ac_try="$ac_compile"
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compile") 2>&5
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 for ac_file in conftest.o conftest.obj conftest.*; do
3583 test -f "$ac_file" || continue;
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of object files: cannot compile
3597 See \`config.log' for more details" "$LINENO" 5 ; }
3599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602 $as_echo "$ac_cv_objext" >&6; }
3603 OBJEXT=$ac_cv_objext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3607 if ${ac_cv_c_compiler_gnu+:} false; then :
3608 $as_echo_n "(cached) " >&6
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635 if test $ac_compiler_gnu = yes; then
3640 ac_test_CFLAGS=${CFLAGS+set}
3641 ac_save_CFLAGS=$CFLAGS
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3644 if ${ac_cv_prog_cc_g+:} false; then :
3645 $as_echo_n "(cached) " >&6
3647 ac_save_c_werror_flag=$ac_c_werror_flag
3648 ac_c_werror_flag=yes
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3662 if ac_fn_c_try_compile "$LINENO"; then :
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_c_try_compile "$LINENO"; then :
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3693 if ac_fn_c_try_compile "$LINENO"; then :
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_c_werror_flag=$ac_save_c_werror_flag
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704 $as_echo "$ac_cv_prog_cc_g" >&6; }
3705 if test "$ac_test_CFLAGS" = set; then
3706 CFLAGS=$ac_save_CFLAGS
3707 elif test $ac_cv_prog_cc_g = yes; then
3708 if test "$GCC" = yes; then
3714 if test "$GCC" = yes; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3722 if ${ac_cv_prog_cc_c89+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 ac_cv_prog_cc_c89=no
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 #include <sys/types.h>
3732 #include <sys/stat.h>
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3747 s = g (p, va_arg (v,int));
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3753 function prototypes and stuff, but not '\xHH' hex character constants.
3754 These don't provoke an error unfortunately, instead are silently treated
3755 as 'x'. The following induces an error, until -std is added to get
3756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3757 array size at least. It's necessary to write '\x00'==0 to get something
3758 that's true only with -std. */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762 inside strings and character constants. */
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3783 CC="$ac_save_CC $ac_arg"
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_c89=$ac_arg
3787 rm -f core conftest.err conftest.$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 rm -f conftest.$ac_ext
3795 case "x$ac_cv_prog_cc_c89" in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3803 CC="$CC $ac_cv_prog_cc_c89"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 if test "x$ac_cv_prog_cc_c89" != xno; then :
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817 depcc="$CC" am_compiler_list=
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3820 $as_echo_n "checking dependency style of $depcc... " >&6; }
3821 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825 # We make a subdir and do the tests there. Otherwise we can end up
3826 # making bogus files that we don't know about and never remove. For
3827 # instance it was reported that on HP-UX the gcc test will end up
3828 # making a dummy file named `D' -- because `-MD' means `put the output
3831 # Copy depcomp to subdir because otherwise we won't find it if we're
3832 # using a relative directory.
3833 cp "$am_depcomp" conftest.dir
3835 # We will build objects and dependencies in a subdirectory because
3836 # it helps to detect inapplicable dependency modes. For instance
3837 # both Tru64's cc and ICC support -MD to output dependencies as a
3838 # side effect of compilation, but ICC will put the dependencies in
3839 # the current directory while Tru64 will put them in the object
3843 am_cv_CC_dependencies_compiler_type=none
3844 if test "$am_compiler_list" = ""; then
3845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3848 case " $depcc " in #(
3849 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3852 for depmode in $am_compiler_list; do
3853 # Setup a source with many dependencies, because some compilers
3854 # like to wrap large dependency lists on column 80 (with \), and
3855 # we should not choose a depcomp mode which is confused by this.
3857 # We need to recreate these files for each test, as the compiler may
3858 # overwrite some of them when testing with obscure command lines.
3859 # This happens at least with the AIX C compiler.
3861 for i in 1 2 3 4 5 6; do
3862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3864 # Solaris 8's {/usr,}/bin/sh.
3865 touch sub/conftst$i.h
3867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3870 # mode. It turns out that the SunPro C++ compiler does not properly
3871 # handle `-M -o', and we need to detect this. Also, some Intel
3872 # versions had trouble with output in subdirs
3873 am__obj=sub/conftest.${OBJEXT-o}
3874 am__minus_obj="-o $am__obj"
3877 # This depmode causes a compiler race in universal mode.
3878 test "$am__universal" = false || continue
3881 # after this tag, mechanisms are not by side-effect, so they'll
3882 # only be used when explicitly requested
3883 if test "x$enable_dependency_tracking" = xyes; then
3889 msvisualcpp | msvcmsys)
3890 # This compiler won't grok `-c -o', but also, the minuso test has
3891 # not run yet. These depmodes are late enough in the game, and
3892 # so weak that their functioning should not be impacted.
3893 am__obj=conftest.${OBJEXT-o}
3898 if depmode=$depmode \
3899 source=sub/conftest.c object=$am__obj \
3900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3902 >/dev/null 2>conftest.err &&
3903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3907 # icc doesn't choke on unknown options, it will just issue warnings
3908 # or remarks (even with -Werror). So we grep stderr for any message
3909 # that says an option was ignored or not supported.
3910 # When given -MP, icc 7.0 and 7.1 complain thusly:
3911 # icc: Command line warning: ignoring option '-M'; no argument required
3912 # The diagnosis changed in icc 8.0:
3913 # icc: Command line remark: option '-MP' not supported
3914 if (grep 'ignoring option' conftest.err ||
3915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3916 am_cv_CC_dependencies_compiler_type=$depmode
3925 am_cv_CC_dependencies_compiler_type=none
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3930 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3931 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3934 test "x$enable_dependency_tracking" != xno \
3935 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3937 am__fastdepCC_FALSE='#'
3939 am__fastdepCC_TRUE='#'
3940 am__fastdepCC_FALSE=
3944 case $ac_cv_prog_cc_stdc in #(
3946 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3950 if ${ac_cv_prog_cc_c99+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 ac_cv_prog_cc_c99=no
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3958 #include <stdbool.h>
3963 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3964 #define debug(...) fprintf (stderr, __VA_ARGS__)
3965 #define showlist(...) puts (#__VA_ARGS__)
3966 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3968 test_varargs_macros (void)
3973 debug ("X = %d\n", x);
3974 showlist (The first, second, and third items.);
3975 report (x>y, "x is %d but y is %d", x, y);
3978 // Check long long types.
3979 #define BIG64 18446744073709551615ull
3980 #define BIG32 4294967295ul
3981 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3983 your preprocessor is broken;
3987 your preprocessor is broken;
3989 static long long int bignum = -9223372036854775807LL;
3990 static unsigned long long int ubignum = BIG64;
3992 struct incomplete_array
4000 const wchar_t *name;
4004 typedef const char *ccp;
4007 test_restrict (ccp restrict text)
4009 // See if C++-style comments work.
4010 // Iterate through items via the restricted pointer.
4011 // Also check for declarations in for loops.
4012 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4017 // Check varargs and va_copy.
4019 test_varargs (const char *format, ...)
4022 va_start (args, format);
4024 va_copy (args_copy, args);
4035 str = va_arg (args_copy, const char *);
4038 number = va_arg (args_copy, int);
4041 fnumber = va_arg (args_copy, double);
4056 _Bool success = false;
4059 if (test_restrict ("String literal") == 0)
4061 char *restrict newvar = "Another string";
4064 test_varargs ("s, d' f .", "string", 65, 34.234);
4065 test_varargs_macros ();
4067 // Check flexible array members.
4068 struct incomplete_array *ia =
4069 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4071 for (int i = 0; i < ia->datasize; ++i)
4072 ia->data[i] = i * 1.234;
4074 // Check named initializers.
4075 struct named_init ni = {
4077 .name = L"Test wide string",
4078 .average = 543.34343,
4083 int dynamic_array[ni.number];
4084 dynamic_array[ni.number - 1] = 543;
4086 // work around unused variable warnings
4087 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4088 || dynamic_array[ni.number - 1] != 543);
4094 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4096 CC="$ac_save_CC $ac_arg"
4097 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_cv_prog_cc_c99=$ac_arg
4100 rm -f core conftest.err conftest.$ac_objext
4101 test "x$ac_cv_prog_cc_c99" != "xno" && break
4103 rm -f conftest.$ac_ext
4108 case "x$ac_cv_prog_cc_c99" in
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4116 CC="$CC $ac_cv_prog_cc_c99"
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4118 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4120 if test "x$ac_cv_prog_cc_c99" != xno; then :
4121 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4124 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4125 if ${ac_cv_prog_cc_c89+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 ac_cv_prog_cc_c89=no
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 #include <sys/types.h>
4135 #include <sys/stat.h>
4136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4137 struct buf { int x; };
4138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4139 static char *e (p, i)
4145 static char *f (char * (*g) (char **, int), char **p, ...)
4150 s = g (p, va_arg (v,int));
4155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4156 function prototypes and stuff, but not '\xHH' hex character constants.
4157 These don't provoke an error unfortunately, instead are silently treated
4158 as 'x'. The following induces an error, until -std is added to get
4159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4160 array size at least. It's necessary to write '\x00'==0 to get something
4161 that's true only with -std. */
4162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4165 inside strings and character constants. */
4167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4169 int test (int i, double x);
4170 struct s1 {int (*f) (int a);};
4171 struct s2 {int (*f) (double a);};
4172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4178 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4186 CC="$ac_save_CC $ac_arg"
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_prog_cc_c89=$ac_arg
4190 rm -f core conftest.err conftest.$ac_objext
4191 test "x$ac_cv_prog_cc_c89" != "xno" && break
4193 rm -f conftest.$ac_ext
4198 case "x$ac_cv_prog_cc_c89" in
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4206 CC="$CC $ac_cv_prog_cc_c89"
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4210 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4213 ac_cv_prog_cc_stdc=no
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4220 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4221 if ${ac_cv_prog_cc_stdc+:} false; then :
4222 $as_echo_n "(cached) " >&6
4225 case $ac_cv_prog_cc_stdc in #(
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;; #(
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;; #(
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4234 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4248 if test -z "$CPP"; then
4249 if ${ac_cv_prog_CPP+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 # Double quotes because CPP needs to be expanded
4253 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4256 for ac_c_preproc_warn_flag in '' yes
4258 # Use a header file that comes with gcc, so configuring glibc
4259 # with a fresh cross-compiler works.
4260 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261 # <limits.h> exists even on freestanding compilers.
4262 # On the NeXT, cc -E runs the code through the compiler's parser,
4263 # not just through cpp. "Syntax error" is here to catch this case.
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 # include <limits.h>
4269 # include <assert.h>
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4276 # Broken: fails on valid input.
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4281 # OK, works on sane cases. Now check whether nonexistent headers
4282 # can be detected and how.
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4285 #include <ac_nonexistent.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288 # Broken: success on invalid input.
4291 # Passes both tests.
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error" is here to catch this case.
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4326 # include <limits.h>
4328 # include <assert.h>
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: fails on valid input.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # OK, works on sane cases. Now check whether nonexistent headers
4341 # can be detected and how.
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <ac_nonexistent.h>
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347 # Broken: success on invalid input.
4350 # Passes both tests.
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5 ; }
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 ac_cpp='$CXXCPP $CPPFLAGS'
4376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4379 if test -z "$CXX"; then
4380 if test -n "$CCC"; then
4383 if test -n "$ac_tool_prefix"; then
4384 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CXX+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 if test -n "$CXX"; then
4394 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 if test -n "$CXX"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4416 $as_echo "$CXX" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4423 test -n "$CXX" && break
4426 if test -z "$CXX"; then
4428 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4435 $as_echo_n "(cached) " >&6
4437 if test -n "$ac_ct_CXX"; then
4438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 test -z "$as_dir" && as_dir=.
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447 ac_cv_prog_ac_ct_CXX="$ac_prog"
4448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4458 if test -n "$ac_ct_CXX"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4460 $as_echo "$ac_ct_CXX" >&6; }
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4467 test -n "$ac_ct_CXX" && break
4470 if test "x$ac_ct_CXX" = x; then
4473 case $cross_compiling:$ac_tool_warned in
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4485 # Provide some information about the compiler.
4486 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4489 for ac_option in --version -v -V -qversion; do
4490 { { ac_try="$ac_compiler $ac_option >&5"
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499 if test -s conftest.err; then
4501 ... rest of stderr output deleted ...
4502 10q' conftest.err >conftest.er1
4503 cat conftest.er1 >&5
4505 rm -f conftest.er1 conftest.err
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4511 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4512 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4513 $as_echo_n "(cached) " >&6
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4529 if ac_fn_cxx_try_compile "$LINENO"; then :
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4539 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4540 if test $ac_compiler_gnu = yes; then
4545 ac_test_CXXFLAGS=${CXXFLAGS+set}
4546 ac_save_CXXFLAGS=$CXXFLAGS
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4548 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4549 if ${ac_cv_prog_cxx_g+:} false; then :
4550 $as_echo_n "(cached) " >&6
4552 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4553 ac_cxx_werror_flag=yes
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4567 if ac_fn_cxx_try_compile "$LINENO"; then :
4568 ac_cv_prog_cxx_g=yes
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4585 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4598 if ac_fn_cxx_try_compile "$LINENO"; then :
4599 ac_cv_prog_cxx_g=yes
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4609 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4610 if test "$ac_test_CXXFLAGS" = set; then
4611 CXXFLAGS=$ac_save_CXXFLAGS
4612 elif test $ac_cv_prog_cxx_g = yes; then
4613 if test "$GXX" = yes; then
4619 if test "$GXX" = yes; then
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 depcc="$CXX" am_compiler_list=
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4634 $as_echo_n "checking dependency style of $depcc... " >&6; }
4635 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4636 $as_echo_n "(cached) " >&6
4638 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4639 # We make a subdir and do the tests there. Otherwise we can end up
4640 # making bogus files that we don't know about and never remove. For
4641 # instance it was reported that on HP-UX the gcc test will end up
4642 # making a dummy file named `D' -- because `-MD' means `put the output
4645 # Copy depcomp to subdir because otherwise we won't find it if we're
4646 # using a relative directory.
4647 cp "$am_depcomp" conftest.dir
4649 # We will build objects and dependencies in a subdirectory because
4650 # it helps to detect inapplicable dependency modes. For instance
4651 # both Tru64's cc and ICC support -MD to output dependencies as a
4652 # side effect of compilation, but ICC will put the dependencies in
4653 # the current directory while Tru64 will put them in the object
4657 am_cv_CXX_dependencies_compiler_type=none
4658 if test "$am_compiler_list" = ""; then
4659 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4662 case " $depcc " in #(
4663 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4666 for depmode in $am_compiler_list; do
4667 # Setup a source with many dependencies, because some compilers
4668 # like to wrap large dependency lists on column 80 (with \), and
4669 # we should not choose a depcomp mode which is confused by this.
4671 # We need to recreate these files for each test, as the compiler may
4672 # overwrite some of them when testing with obscure command lines.
4673 # This happens at least with the AIX C compiler.
4675 for i in 1 2 3 4 5 6; do
4676 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4677 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4678 # Solaris 8's {/usr,}/bin/sh.
4679 touch sub/conftst$i.h
4681 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4684 # mode. It turns out that the SunPro C++ compiler does not properly
4685 # handle `-M -o', and we need to detect this. Also, some Intel
4686 # versions had trouble with output in subdirs
4687 am__obj=sub/conftest.${OBJEXT-o}
4688 am__minus_obj="-o $am__obj"
4691 # This depmode causes a compiler race in universal mode.
4692 test "$am__universal" = false || continue
4695 # after this tag, mechanisms are not by side-effect, so they'll
4696 # only be used when explicitly requested
4697 if test "x$enable_dependency_tracking" = xyes; then
4703 msvisualcpp | msvcmsys)
4704 # This compiler won't grok `-c -o', but also, the minuso test has
4705 # not run yet. These depmodes are late enough in the game, and
4706 # so weak that their functioning should not be impacted.
4707 am__obj=conftest.${OBJEXT-o}
4712 if depmode=$depmode \
4713 source=sub/conftest.c object=$am__obj \
4714 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4715 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4716 >/dev/null 2>conftest.err &&
4717 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4718 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4719 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4720 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4721 # icc doesn't choke on unknown options, it will just issue warnings
4722 # or remarks (even with -Werror). So we grep stderr for any message
4723 # that says an option was ignored or not supported.
4724 # When given -MP, icc 7.0 and 7.1 complain thusly:
4725 # icc: Command line warning: ignoring option '-M'; no argument required
4726 # The diagnosis changed in icc 8.0:
4727 # icc: Command line remark: option '-MP' not supported
4728 if (grep 'ignoring option' conftest.err ||
4729 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4730 am_cv_CXX_dependencies_compiler_type=$depmode
4739 am_cv_CXX_dependencies_compiler_type=none
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4744 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4745 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4748 test "x$enable_dependency_tracking" != xno \
4749 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4750 am__fastdepCXX_TRUE=
4751 am__fastdepCXX_FALSE='#'
4753 am__fastdepCXX_TRUE='#'
4754 am__fastdepCXX_FALSE=
4772 # Check whether --enable-shared was given.
4773 if test "${enable_shared+set}" = set; then :
4774 enableval=$enable_shared; p=${PACKAGE-default}
4776 yes) enable_shared=yes ;;
4777 no) enable_shared=no ;;
4780 # Look at the argument we got. We use all the common list separators.
4781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4782 for pkg in $enableval; do
4784 if test "X$pkg" = "X$p"; then
4803 # Check whether --enable-static was given.
4804 if test "${enable_static+set}" = set; then :
4805 enableval=$enable_static; p=${PACKAGE-default}
4807 yes) enable_static=yes ;;
4808 no) enable_static=no ;;
4811 # Look at the argument we got. We use all the common list separators.
4812 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4813 for pkg in $enableval; do
4815 if test "X$pkg" = "X$p"; then
4834 enable_win32_dll=yes
4837 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4838 if test -n "$ac_tool_prefix"; then
4839 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}as; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_AS+:} false; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$AS"; then
4847 ac_cv_prog_AS="$AS" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_AS="${ac_tool_prefix}as"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 if test -n "$AS"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4869 $as_echo "$AS" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4877 if test -z "$ac_cv_prog_AS"; then
4879 # Extract the first word of "as", so it can be a program name with args.
4880 set dummy as; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -n "$ac_ct_AS"; then
4887 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_ac_ct_AS="as"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4907 if test -n "$ac_ct_AS"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4909 $as_echo "$ac_ct_AS" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4915 if test "x$ac_ct_AS" = x; then
4918 case $cross_compiling:$ac_tool_warned in
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_DLLTOOL+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 if test -n "$DLLTOOL"; then
4939 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 test -z "$as_dir" && as_dir=.
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 DLLTOOL=$ac_cv_prog_DLLTOOL
4959 if test -n "$DLLTOOL"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4961 $as_echo "$DLLTOOL" >&6; }
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4969 if test -z "$ac_cv_prog_DLLTOOL"; then
4970 ac_ct_DLLTOOL=$DLLTOOL
4971 # Extract the first word of "dlltool", so it can be a program name with args.
4972 set dummy dlltool; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$ac_ct_DLLTOOL"; then
4979 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4999 if test -n "$ac_ct_DLLTOOL"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5001 $as_echo "$ac_ct_DLLTOOL" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_ct_DLLTOOL" = x; then
5010 case $cross_compiling:$ac_tool_warned in
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5016 DLLTOOL=$ac_ct_DLLTOOL
5019 DLLTOOL="$ac_cv_prog_DLLTOOL"
5022 if test -n "$ac_tool_prefix"; then
5023 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_OBJDUMP+:} false; then :
5028 $as_echo_n "(cached) " >&6
5030 if test -n "$OBJDUMP"; then
5031 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 OBJDUMP=$ac_cv_prog_OBJDUMP
5051 if test -n "$OBJDUMP"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5053 $as_echo "$OBJDUMP" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5061 if test -z "$ac_cv_prog_OBJDUMP"; then
5062 ac_ct_OBJDUMP=$OBJDUMP
5063 # Extract the first word of "objdump", so it can be a program name with args.
5064 set dummy objdump; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if test -n "$ac_ct_OBJDUMP"; then
5071 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5091 if test -n "$ac_ct_OBJDUMP"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5093 $as_echo "$ac_ct_OBJDUMP" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5099 if test "x$ac_ct_OBJDUMP" = x; then
5102 case $cross_compiling:$ac_tool_warned in
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5108 OBJDUMP=$ac_ct_OBJDUMP
5111 OBJDUMP="$ac_cv_prog_OBJDUMP"
5117 test -z "$AS" && AS=as
5123 test -z "$DLLTOOL" && DLLTOOL=dlltool
5129 test -z "$OBJDUMP" && OBJDUMP=objdump
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5141 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5147 macro_revision='1.3294'
5161 ltmain="$ac_aux_dir/ltmain.sh"
5163 # Backslashify metacharacters that are still active within
5164 # double-quoted strings.
5165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5167 # Same as above, but do not quote variable references.
5168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5170 # Sed substitution to delay expansion of an escaped shell variable in a
5171 # double_quote_subst'ed string.
5172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5174 # Sed substitution to delay expansion of an escaped single quote.
5175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5177 # Sed substitution to avoid accidental globbing in evaled expressions
5178 no_glob_subst='s/\*/\\\*/g'
5180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5185 $as_echo_n "checking how to print strings... " >&6; }
5186 # Test print first, because it will be a builtin if present.
5187 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5188 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5190 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5193 # Use this function as a fallback that always works.
5194 func_fallback_echo ()
5196 eval 'cat <<_LTECHO_EOF
5200 ECHO='func_fallback_echo'
5203 # func_echo_all arg...
5204 # Invoke $ECHO with all args, space-separated.
5211 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5212 $as_echo "printf" >&6; } ;;
5213 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5214 $as_echo "print -r" >&6; } ;;
5215 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5216 $as_echo "cat" >&6; } ;;
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5233 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5234 if ${ac_cv_path_SED+:} false; then :
5235 $as_echo_n "(cached) " >&6
5237 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5238 for ac_i in 1 2 3 4 5 6 7; do
5239 ac_script="$ac_script$as_nl$ac_script"
5241 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5242 { ac_script=; unset ac_script;}
5243 if test -z "$SED"; then
5244 ac_path_SED_found=false
5245 # Loop through the user's path and test for each of PROGNAME-LIST
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir=.
5251 for ac_prog in sed gsed; do
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5254 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5255 # Check for GNU ac_path_SED and select it if it is found.
5256 # Check for GNU $ac_path_SED
5257 case `"$ac_path_SED" --version 2>&1` in
5259 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5262 $as_echo_n 0123456789 >"conftest.in"
5265 cat "conftest.in" "conftest.in" >"conftest.tmp"
5266 mv "conftest.tmp" "conftest.in"
5267 cp "conftest.in" "conftest.nl"
5268 $as_echo '' >> "conftest.nl"
5269 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271 as_fn_arith $ac_count + 1 && ac_count=$as_val
5272 if test $ac_count -gt ${ac_path_SED_max-0}; then
5273 # Best one so far, save it but keep looking for a better one
5274 ac_cv_path_SED="$ac_path_SED"
5275 ac_path_SED_max=$ac_count
5277 # 10*(2^10) chars as input seems more than enough
5278 test $ac_count -gt 10 && break
5280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5283 $ac_path_SED_found && break 3
5288 if test -z "$ac_cv_path_SED"; then
5289 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5297 $as_echo "$ac_cv_path_SED" >&6; }
5298 SED="$ac_cv_path_SED"
5301 test -z "$SED" && SED=sed
5302 Xsed="$SED -e 1s/^X//"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5316 if ${ac_cv_path_GREP+:} false; then :
5317 $as_echo_n "(cached) " >&6
5319 if test -z "$GREP"; then
5320 ac_path_GREP_found=false
5321 # Loop through the user's path and test for each of PROGNAME-LIST
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5326 test -z "$as_dir" && as_dir=.
5327 for ac_prog in grep ggrep; do
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5330 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5331 # Check for GNU ac_path_GREP and select it if it is found.
5332 # Check for GNU $ac_path_GREP
5333 case `"$ac_path_GREP" --version 2>&1` in
5335 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5338 $as_echo_n 0123456789 >"conftest.in"
5341 cat "conftest.in" "conftest.in" >"conftest.tmp"
5342 mv "conftest.tmp" "conftest.in"
5343 cp "conftest.in" "conftest.nl"
5344 $as_echo 'GREP' >> "conftest.nl"
5345 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347 as_fn_arith $ac_count + 1 && ac_count=$as_val
5348 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349 # Best one so far, save it but keep looking for a better one
5350 ac_cv_path_GREP="$ac_path_GREP"
5351 ac_path_GREP_max=$ac_count
5353 # 10*(2^10) chars as input seems more than enough
5354 test $ac_count -gt 10 && break
5356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5359 $ac_path_GREP_found && break 3
5364 if test -z "$ac_cv_path_GREP"; then
5365 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5368 ac_cv_path_GREP=$GREP
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5373 $as_echo "$ac_cv_path_GREP" >&6; }
5374 GREP="$ac_cv_path_GREP"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5378 $as_echo_n "checking for egrep... " >&6; }
5379 if ${ac_cv_path_EGREP+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5383 then ac_cv_path_EGREP="$GREP -E"
5385 if test -z "$EGREP"; then
5386 ac_path_EGREP_found=false
5387 # Loop through the user's path and test for each of PROGNAME-LIST
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5392 test -z "$as_dir" && as_dir=.
5393 for ac_prog in egrep; do
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5396 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5397 # Check for GNU ac_path_EGREP and select it if it is found.
5398 # Check for GNU $ac_path_EGREP
5399 case `"$ac_path_EGREP" --version 2>&1` in
5401 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5404 $as_echo_n 0123456789 >"conftest.in"
5407 cat "conftest.in" "conftest.in" >"conftest.tmp"
5408 mv "conftest.tmp" "conftest.in"
5409 cp "conftest.in" "conftest.nl"
5410 $as_echo 'EGREP' >> "conftest.nl"
5411 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413 as_fn_arith $ac_count + 1 && ac_count=$as_val
5414 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5415 # Best one so far, save it but keep looking for a better one
5416 ac_cv_path_EGREP="$ac_path_EGREP"
5417 ac_path_EGREP_max=$ac_count
5419 # 10*(2^10) chars as input seems more than enough
5420 test $ac_count -gt 10 && break
5422 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5425 $ac_path_EGREP_found && break 3
5430 if test -z "$ac_cv_path_EGREP"; then
5431 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5434 ac_cv_path_EGREP=$EGREP
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5440 $as_echo "$ac_cv_path_EGREP" >&6; }
5441 EGREP="$ac_cv_path_EGREP"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5445 $as_echo_n "checking for fgrep... " >&6; }
5446 if ${ac_cv_path_FGREP+:} false; then :
5447 $as_echo_n "(cached) " >&6
5449 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5450 then ac_cv_path_FGREP="$GREP -F"
5452 if test -z "$FGREP"; then
5453 ac_path_FGREP_found=false
5454 # Loop through the user's path and test for each of PROGNAME-LIST
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5459 test -z "$as_dir" && as_dir=.
5460 for ac_prog in fgrep; do
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5463 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5464 # Check for GNU ac_path_FGREP and select it if it is found.
5465 # Check for GNU $ac_path_FGREP
5466 case `"$ac_path_FGREP" --version 2>&1` in
5468 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5471 $as_echo_n 0123456789 >"conftest.in"
5474 cat "conftest.in" "conftest.in" >"conftest.tmp"
5475 mv "conftest.tmp" "conftest.in"
5476 cp "conftest.in" "conftest.nl"
5477 $as_echo 'FGREP' >> "conftest.nl"
5478 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5480 as_fn_arith $ac_count + 1 && ac_count=$as_val
5481 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5482 # Best one so far, save it but keep looking for a better one
5483 ac_cv_path_FGREP="$ac_path_FGREP"
5484 ac_path_FGREP_max=$ac_count
5486 # 10*(2^10) chars as input seems more than enough
5487 test $ac_count -gt 10 && break
5489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5492 $ac_path_FGREP_found && break 3
5497 if test -z "$ac_cv_path_FGREP"; then
5498 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5501 ac_cv_path_FGREP=$FGREP
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5507 $as_echo "$ac_cv_path_FGREP" >&6; }
5508 FGREP="$ac_cv_path_FGREP"
5511 test -z "$GREP" && GREP=grep
5531 # Check whether --with-gnu-ld was given.
5532 if test "${with_gnu_ld+set}" = set; then :
5533 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5539 if test "$GCC" = yes; then
5540 # Check if gcc -print-prog-name=ld gives a path.
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5542 $as_echo_n "checking for ld used by $CC... " >&6; }
5545 # gcc leaves a trailing carriage return which upsets mingw
5546 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5548 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5551 # Accept absolute paths.
5553 re_direlt='/[^/][^/]*/\.\./'
5554 # Canonicalize the pathname of ld
5555 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5556 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5557 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5559 test -z "$LD" && LD="$ac_prog"
5562 # If it fails, then pretend we aren't using GCC.
5566 # If it is relative, then search for the first ld in PATH.
5570 elif test "$with_gnu_ld" = yes; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5572 $as_echo_n "checking for GNU ld... " >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5575 $as_echo_n "checking for non-GNU ld... " >&6; }
5577 if ${lt_cv_path_LD+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -z "$LD"; then
5581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5582 for ac_dir in $PATH; do
5584 test -z "$ac_dir" && ac_dir=.
5585 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5586 lt_cv_path_LD="$ac_dir/$ac_prog"
5587 # Check to see if the program is GNU ld. I'd rather use --version,
5588 # but apparently some variants of GNU ld only accept -v.
5589 # Break only if it was the GNU/non-GNU ld that we prefer.
5590 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5591 *GNU* | *'with BFD'*)
5592 test "$with_gnu_ld" != no && break
5595 test "$with_gnu_ld" != yes && break
5602 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5607 if test -n "$LD"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5609 $as_echo "$LD" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5614 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5616 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5617 if ${lt_cv_prog_gnu_ld+:} false; then :
5618 $as_echo_n "(cached) " >&6
5620 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5621 case `$LD -v 2>&1 </dev/null` in
5622 *GNU* | *'with BFD'*)
5623 lt_cv_prog_gnu_ld=yes
5626 lt_cv_prog_gnu_ld=no
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5631 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5632 with_gnu_ld=$lt_cv_prog_gnu_ld
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5643 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5644 if ${lt_cv_path_NM+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$NM"; then
5648 # Let the user override the test.
5651 lt_nm_to_check="${ac_tool_prefix}nm"
5652 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5653 lt_nm_to_check="$lt_nm_to_check nm"
5655 for lt_tmp_nm in $lt_nm_to_check; do
5656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5659 test -z "$ac_dir" && ac_dir=.
5660 tmp_nm="$ac_dir/$lt_tmp_nm"
5661 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5662 # Check to see if the nm accepts a BSD-compat flag.
5663 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5664 # nm: unknown option "B" ignored
5665 # Tru64's nm complains that /dev/null is an invalid object file
5666 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5667 */dev/null* | *'Invalid file or object type'*)
5668 lt_cv_path_NM="$tmp_nm -B"
5672 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5674 lt_cv_path_NM="$tmp_nm -p"
5678 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5679 continue # so that we can try to find one that supports BSD flags
5688 : ${lt_cv_path_NM=no}
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5692 $as_echo "$lt_cv_path_NM" >&6; }
5693 if test "$lt_cv_path_NM" != "no"; then
5696 # Didn't find any BSD compatible name lister, look for dumpbin.
5697 if test -n "$DUMPBIN"; then :
5698 # Let the user override the test.
5700 if test -n "$ac_tool_prefix"; then
5701 for ac_prog in dumpbin "link -dump"
5703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_DUMPBIN+:} false; then :
5708 $as_echo_n "(cached) " >&6
5710 if test -n "$DUMPBIN"; then
5711 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 DUMPBIN=$ac_cv_prog_DUMPBIN
5731 if test -n "$DUMPBIN"; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5733 $as_echo "$DUMPBIN" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5740 test -n "$DUMPBIN" && break
5743 if test -z "$DUMPBIN"; then
5744 ac_ct_DUMPBIN=$DUMPBIN
5745 for ac_prog in dumpbin "link -dump"
5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 if test -n "$ac_ct_DUMPBIN"; then
5755 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5775 if test -n "$ac_ct_DUMPBIN"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5777 $as_echo "$ac_ct_DUMPBIN" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5784 test -n "$ac_ct_DUMPBIN" && break
5787 if test "x$ac_ct_DUMPBIN" = x; then
5790 case $cross_compiling:$ac_tool_warned in
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5796 DUMPBIN=$ac_ct_DUMPBIN
5800 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5802 DUMPBIN="$DUMPBIN -symbols"
5810 if test "$DUMPBIN" != ":"; then
5814 test -z "$NM" && NM=nm
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5822 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5823 if ${lt_cv_nm_interface+:} false; then :
5824 $as_echo_n "(cached) " >&6
5826 lt_cv_nm_interface="BSD nm"
5827 echo "int some_variable = 0;" > conftest.$ac_ext
5828 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5829 (eval "$ac_compile" 2>conftest.err)
5830 cat conftest.err >&5
5831 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5832 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5833 cat conftest.err >&5
5834 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5835 cat conftest.out >&5
5836 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5837 lt_cv_nm_interface="MS dumpbin"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5842 $as_echo "$lt_cv_nm_interface" >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5845 $as_echo_n "checking whether ln -s works... " >&6; }
5847 if test "$LN_S" = "ln -s"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5849 $as_echo "yes" >&6; }
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5852 $as_echo "no, using $LN_S" >&6; }
5855 # find the maximum length of command line arguments
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5857 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5858 if ${lt_cv_sys_max_cmd_len+:} false; then :
5859 $as_echo_n "(cached) " >&6
5866 # On DJGPP, this test can blow up pretty badly due to problems in libc
5867 # (any single argument exceeding 2000 bytes causes a buffer overrun
5868 # during glob expansion). Even if it were fixed, the result of this
5869 # check would be larger than it should be.
5870 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5874 # Under GNU Hurd, this test is not required because there is
5875 # no limit to the length of command line arguments.
5876 # Libtool will interpret -1 as no limit whatsoever
5877 lt_cv_sys_max_cmd_len=-1;
5880 cygwin* | mingw* | cegcc*)
5881 # On Win9x/ME, this test blows up -- it succeeds, but takes
5882 # about 5 minutes as the teststring grows exponentially.
5883 # Worse, since 9x/ME are not pre-emptively multitasking,
5884 # you end up with a "frozen" computer, even though with patience
5885 # the test eventually succeeds (with a max line length of 256k).
5886 # Instead, let's just punt: use the minimum linelength reported by
5887 # all of the supported platforms: 8192 (on NT/2K/XP).
5888 lt_cv_sys_max_cmd_len=8192;
5892 # On MiNT this can take a long time and run out of memory.
5893 lt_cv_sys_max_cmd_len=8192;
5897 # On AmigaOS with pdksh, this test takes hours, literally.
5898 # So we just punt and use a minimum line length of 8192.
5899 lt_cv_sys_max_cmd_len=8192;
5902 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5903 # This has been around since 386BSD, at least. Likely further.
5904 if test -x /sbin/sysctl; then
5905 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5906 elif test -x /usr/sbin/sysctl; then
5907 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5909 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5911 # And add a safety zone
5912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5917 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5918 lt_cv_sys_max_cmd_len=196608
5922 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5923 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5924 # nice to cause kernel panics so lets avoid the loop below.
5925 # First set a reasonable default.
5926 lt_cv_sys_max_cmd_len=16384
5928 if test -x /sbin/sysconfig; then
5929 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5930 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5935 lt_cv_sys_max_cmd_len=102400
5937 sysv5* | sco5v6* | sysv4.2uw2*)
5938 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5939 if test -n "$kargmax"; then
5940 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5942 lt_cv_sys_max_cmd_len=32768
5946 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5947 if test -n "$lt_cv_sys_max_cmd_len"; then
5948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5951 # Make teststring a little bigger before we do anything with it.
5952 # a 1K string should be a reasonable start.
5953 for i in 1 2 3 4 5 6 7 8 ; do
5954 teststring=$teststring$teststring
5956 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5957 # If test is not a shell built-in, we'll probably end up computing a
5958 # maximum length that is only half of the actual maximum length, but
5960 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5961 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5962 test $i != 17 # 1/2 MB should be enough
5965 teststring=$teststring$teststring
5967 # Only check the string length outside the loop.
5968 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5970 # Add a significant safety factor because C++ compilers can tack on
5971 # massive amounts of additional arguments before passing them to the
5972 # linker. It appears as though 1/2 is a usable value.
5973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5980 if test -n $lt_cv_sys_max_cmd_len ; then
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5982 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5985 $as_echo "none" >&6; }
5987 max_cmd_len=$lt_cv_sys_max_cmd_len
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5999 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6000 # Try some XSI features
6003 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6005 && eval 'test $(( 1 + 1 )) -eq 2 \
6006 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6009 $as_echo "$xsi_shell" >&6; }
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6013 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6015 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6017 && lt_shell_append=yes
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6019 $as_echo "$lt_shell_append" >&6; }
6022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6032 # test EBCDIC or ASCII
6033 case `echo X|tr X '\101'` in
6034 A) # ASCII based system
6035 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6036 lt_SP2NL='tr \040 \012'
6037 lt_NL2SP='tr \015\012 \040\040'
6039 *) # EBCDIC based system
6040 lt_SP2NL='tr \100 \n'
6041 lt_NL2SP='tr \r\n \100\100'
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6054 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6055 if ${lt_cv_to_host_file_cmd+:} false; then :
6056 $as_echo_n "(cached) " >&6
6061 *-*-mingw* ) # actually msys
6062 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6065 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6067 * ) # otherwise, assume *nix
6068 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6074 *-*-mingw* ) # actually msys
6075 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6078 lt_cv_to_host_file_cmd=func_convert_file_noop
6080 * ) # otherwise, assume *nix
6081 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6085 * ) # unhandled hosts (and "normal" native builds)
6086 lt_cv_to_host_file_cmd=func_convert_file_noop
6092 to_host_file_cmd=$lt_cv_to_host_file_cmd
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6094 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6101 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6102 if ${lt_cv_to_tool_file_cmd+:} false; then :
6103 $as_echo_n "(cached) " >&6
6105 #assume ordinary cross tools, or native build.
6106 lt_cv_to_tool_file_cmd=func_convert_file_noop
6110 *-*-mingw* ) # actually msys
6111 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6119 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6121 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6128 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6129 if ${lt_cv_ld_reload_flag+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 lt_cv_ld_reload_flag='-r'
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6135 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6136 reload_flag=$lt_cv_ld_reload_flag
6137 case $reload_flag in
6139 *) reload_flag=" $reload_flag" ;;
6141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6143 cygwin* | mingw* | pw32* | cegcc*)
6144 if test "$GCC" != yes; then
6149 if test "$GCC" = yes; then
6150 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_OBJDUMP+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$OBJDUMP"; then
6174 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 OBJDUMP=$ac_cv_prog_OBJDUMP
6194 if test -n "$OBJDUMP"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6196 $as_echo "$OBJDUMP" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_OBJDUMP"; then
6205 ac_ct_OBJDUMP=$OBJDUMP
6206 # Extract the first word of "objdump", so it can be a program name with args.
6207 set dummy objdump; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_OBJDUMP"; then
6214 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6234 if test -n "$ac_ct_OBJDUMP"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6236 $as_echo "$ac_ct_OBJDUMP" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_OBJDUMP" = x; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6251 OBJDUMP=$ac_ct_OBJDUMP
6254 OBJDUMP="$ac_cv_prog_OBJDUMP"
6257 test -z "$OBJDUMP" && OBJDUMP=objdump
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6265 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6266 if ${lt_cv_deplibs_check_method+:} false; then :
6267 $as_echo_n "(cached) " >&6
6269 lt_cv_file_magic_cmd='$MAGIC_CMD'
6270 lt_cv_file_magic_test_file=
6271 lt_cv_deplibs_check_method='unknown'
6272 # Need to set the preceding variable on all platforms that support
6273 # interlibrary dependencies.
6274 # 'none' -- dependencies not supported.
6275 # `unknown' -- same as none, but documents that we really don't know.
6276 # 'pass_all' -- all dependencies passed with no checks.
6277 # 'test_compile' -- check by making test program.
6278 # 'file_magic [[regex]]' -- check by looking for files in library path
6279 # which responds to the $file_magic_cmd with a given extended regex.
6280 # If you have `file' or equivalent on your system and you're not sure
6281 # whether `pass_all' will *always* work, you probably want this one.
6285 lt_cv_deplibs_check_method=pass_all
6289 lt_cv_deplibs_check_method=pass_all
6293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6294 lt_cv_file_magic_cmd='/usr/bin/file -L'
6295 lt_cv_file_magic_test_file=/shlib/libc.so
6299 # func_win32_libid is a shell function defined in ltmain.sh
6300 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301 lt_cv_file_magic_cmd='func_win32_libid'
6305 # Base MSYS/MinGW do not provide the 'file' command needed by
6306 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6307 # unless we find 'file', for example because we are cross-compiling.
6308 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6309 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6310 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311 lt_cv_file_magic_cmd='func_win32_libid'
6313 # Keep this pattern in sync with the one in func_win32_libid.
6314 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6315 lt_cv_file_magic_cmd='$OBJDUMP -f'
6320 # use the weaker test based on 'objdump'. See mingw*.
6321 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6322 lt_cv_file_magic_cmd='$OBJDUMP -f'
6325 darwin* | rhapsody*)
6326 lt_cv_deplibs_check_method=pass_all
6329 freebsd* | dragonfly*)
6330 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6333 # Not sure whether the presence of OpenBSD here was a mistake.
6334 # Let's accept both of them until this is cleared up.
6335 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6336 lt_cv_file_magic_cmd=/usr/bin/file
6337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6341 lt_cv_deplibs_check_method=pass_all
6346 lt_cv_deplibs_check_method=pass_all
6350 lt_cv_deplibs_check_method=pass_all
6353 hpux10.20* | hpux11*)
6354 lt_cv_file_magic_cmd=/usr/bin/file
6357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6358 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6361 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]'
6362 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6366 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6372 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6373 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6376 irix5* | irix6* | nonstopux*)
6378 *-32|*"-32 ") libmagic=32-bit;;
6379 *-n32|*"-n32 ") libmagic=N32;;
6380 *-64|*"-64 ") libmagic=64-bit;;
6381 *) libmagic=never-match;;
6383 lt_cv_deplibs_check_method=pass_all
6386 # This must be Linux ELF.
6387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6388 lt_cv_deplibs_check_method=pass_all
6392 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6401 lt_cv_file_magic_cmd=/usr/bin/file
6402 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6406 lt_cv_deplibs_check_method=pass_all
6410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6411 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6417 osf3* | osf4* | osf5*)
6418 lt_cv_deplibs_check_method=pass_all
6422 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6430 lt_cv_deplibs_check_method=pass_all
6434 case $host_vendor in
6436 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]'
6437 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6440 lt_cv_deplibs_check_method=pass_all
6443 lt_cv_file_magic_cmd='/bin/file'
6444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6447 lt_cv_file_magic_cmd='/bin/file'
6448 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6449 lt_cv_file_magic_test_file=/lib/libc.so
6452 lt_cv_deplibs_check_method=pass_all
6455 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6471 if test "$build" = "$host"; then
6474 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6477 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_DLLTOOL+:} false; then :
6514 $as_echo_n "(cached) " >&6
6516 if test -n "$DLLTOOL"; then
6517 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 DLLTOOL=$ac_cv_prog_DLLTOOL
6537 if test -n "$DLLTOOL"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6539 $as_echo "$DLLTOOL" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6547 if test -z "$ac_cv_prog_DLLTOOL"; then
6548 ac_ct_DLLTOOL=$DLLTOOL
6549 # Extract the first word of "dlltool", so it can be a program name with args.
6550 set dummy dlltool; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6554 $as_echo_n "(cached) " >&6
6556 if test -n "$ac_ct_DLLTOOL"; then
6557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6577 if test -n "$ac_ct_DLLTOOL"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6579 $as_echo "$ac_ct_DLLTOOL" >&6; }
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6585 if test "x$ac_ct_DLLTOOL" = x; then
6588 case $cross_compiling:$ac_tool_warned in
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6594 DLLTOOL=$ac_ct_DLLTOOL
6597 DLLTOOL="$ac_cv_prog_DLLTOOL"
6600 test -z "$DLLTOOL" && DLLTOOL=dlltool
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6609 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6610 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6611 $as_echo_n "(cached) " >&6
6613 lt_cv_sharedlib_from_linklib_cmd='unknown'
6616 cygwin* | mingw* | pw32* | cegcc*)
6617 # two different shell functions defined in ltmain.sh
6618 # decide which to use based on capabilities of $DLLTOOL
6619 case `$DLLTOOL --help 2>&1` in
6620 *--identify-strict*)
6621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6629 # fallback: assume linklib IS sharedlib
6630 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6636 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6637 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6638 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6647 if test -n "$ac_tool_prefix"; then
6650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_AR+:} false; then :
6655 $as_echo_n "(cached) " >&6
6657 if test -n "$AR"; then
6658 ac_cv_prog_AR="$AR" # Let the user override the test.
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 test -z "$as_dir" && as_dir=.
6665 for ac_exec_ext in '' $ac_executable_extensions; do
6666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 if test -n "$AR"; then
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6680 $as_echo "$AR" >&6; }
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6687 test -n "$AR" && break
6690 if test -z "$AR"; then
6694 # Extract the first word of "$ac_prog", so it can be a program name with args.
6695 set dummy $ac_prog; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6699 $as_echo_n "(cached) " >&6
6701 if test -n "$ac_ct_AR"; then
6702 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_prog_ac_ct_AR="$ac_prog"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6722 if test -n "$ac_ct_AR"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6724 $as_echo "$ac_ct_AR" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6731 test -n "$ac_ct_AR" && break
6734 if test "x$ac_ct_AR" = x; then
6737 case $cross_compiling:$ac_tool_warned in
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741 ac_tool_warned=yes ;;
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6761 $as_echo_n "checking for archiver @FILE support... " >&6; }
6762 if ${lt_cv_ar_at_file+:} false; then :
6763 $as_echo_n "(cached) " >&6
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 echo conftest.$ac_objext > conftest.lst
6779 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6781 (eval $lt_ar_try) 2>&5
6783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784 test $ac_status = 0; }
6785 if test "$ac_status" -eq 0; then
6786 # Ensure the archiver fails upon bogus file names.
6787 rm -f conftest.$ac_objext libconftest.a
6788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6789 (eval $lt_ar_try) 2>&5
6791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792 test $ac_status = 0; }
6793 if test "$ac_status" -ne 0; then
6797 rm -f conftest.* libconftest.a
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6804 $as_echo "$lt_cv_ar_at_file" >&6; }
6806 if test "x$lt_cv_ar_at_file" = xno; then
6809 archiver_list_spec=$lt_cv_ar_at_file
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}strip; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_STRIP+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$STRIP"; then
6827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 STRIP=$ac_cv_prog_STRIP
6847 if test -n "$STRIP"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6849 $as_echo "$STRIP" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6857 if test -z "$ac_cv_prog_STRIP"; then
6859 # Extract the first word of "strip", so it can be a program name with args.
6860 set dummy strip; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$ac_ct_STRIP"; then
6867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_STRIP="strip"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6887 if test -n "$ac_ct_STRIP"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6889 $as_echo "$ac_ct_STRIP" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6895 if test "x$ac_ct_STRIP" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6907 STRIP="$ac_cv_prog_STRIP"
6910 test -z "$STRIP" && STRIP=:
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_RANLIB+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$RANLIB"; then
6926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 RANLIB=$ac_cv_prog_RANLIB
6946 if test -n "$RANLIB"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6948 $as_echo "$RANLIB" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_prog_RANLIB"; then
6957 ac_ct_RANLIB=$RANLIB
6958 # Extract the first word of "ranlib", so it can be a program name with args.
6959 set dummy ranlib; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_RANLIB"; then
6966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975 ac_cv_prog_ac_ct_RANLIB="ranlib"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6986 if test -n "$ac_ct_RANLIB"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6988 $as_echo "$ac_ct_RANLIB" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 if test "x$ac_ct_RANLIB" = x; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7003 RANLIB=$ac_ct_RANLIB
7006 RANLIB="$ac_cv_prog_RANLIB"
7009 test -z "$RANLIB" && RANLIB=:
7016 # Determine commands to create old-style static archives.
7017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7018 old_postinstall_cmds='chmod 644 $oldlib'
7019 old_postuninstall_cmds=
7021 if test -n "$RANLIB"; then
7024 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7030 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7035 lock_old_archive_extraction=yes ;;
7037 lock_old_archive_extraction=no ;;
7078 # If no C compiler was specified, use CC.
7081 # If no C compiler flags were specified, use CFLAGS.
7082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7084 # Allow CC to be a program name with arguments.
7088 # Check for command to grab the raw symbol name followed by C symbol from nm.
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7090 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7091 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7092 $as_echo_n "(cached) " >&6
7095 # These are sane defaults that work on at least a few old systems.
7096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7098 # Character class describing NM global symbol codes.
7099 symcode='[BCDEGRST]'
7101 # Regexp to match symbols that can be accessed directly from C.
7102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7104 # Define system-specific variables.
7109 cygwin* | mingw* | pw32* | cegcc*)
7110 symcode='[ABCDGISTW]'
7113 if test "$host_cpu" = ia64; then
7114 symcode='[ABCDEGRST]'
7118 symcode='[BCDEGRST]'
7121 symcode='[BCDEGQRST]'
7132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7140 # If we're using GNU nm, then use its standard symbol codes.
7141 case `$NM -V 2>&1` in
7142 *GNU* | *'with BFD'*)
7143 symcode='[ABCDGIRSTW]' ;;
7146 # Transform an extracted symbol line into a proper C declaration.
7147 # Some systems (esp. on ia64) link data and code symbols differently,
7148 # so use this general approach.
7149 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7151 # Transform an extracted symbol line into symbol name and symbol address
7152 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7153 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'"
7155 # Handle CRLF in mingw tool chain
7159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7163 # Try without a prefix underscore, then with it.
7164 for ac_symprfx in "" "_"; do
7166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7167 symxfrm="\\1 $ac_symprfx\\2 \\2"
7169 # Write the raw and C identifiers.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 # Fake it for dumpbin and say T for any non-static function
7172 # and D for any global variable.
7173 # Also find C++ and __fastcall symbols from MSVC++,
7174 # which start with @ or ?.
7175 lt_cv_sys_global_symbol_pipe="$AWK '"\
7176 " {last_section=section; section=\$ 3};"\
7177 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7178 " \$ 0!~/External *\|/{next};"\
7179 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7180 " {if(hide[section]) next};"\
7181 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7182 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7183 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7184 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7185 " ' prfx=^$ac_symprfx"
7187 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7189 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7191 # Check to see that the pipe works correctly.
7195 cat > conftest.$ac_ext <<_LT_EOF
7200 void nm_test_func(void);
7201 void nm_test_func(void){}
7205 int main(){nm_test_var='a';nm_test_func();return(0);}
7208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209 (eval $ac_compile) 2>&5
7211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212 test $ac_status = 0; }; then
7213 # Now try to grab the symbols.
7215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7216 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219 test $ac_status = 0; } && test -s "$nlist"; then
7220 # Try sorting and uniquifying the output.
7221 if sort "$nlist" | uniq > "$nlist"T; then
7222 mv -f "$nlist"T "$nlist"
7227 # Make sure that we snagged all the symbols we need.
7228 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7229 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7230 cat <<_LT_EOF > conftest.$ac_ext
7231 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7232 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7233 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7234 relocations are performed -- see ld's documentation on pseudo-relocs. */
7235 # define LT_DLSYM_CONST
7236 #elif defined(__osf__)
7237 /* This system does not cope well with relocations in const data. */
7238 # define LT_DLSYM_CONST
7240 # define LT_DLSYM_CONST const
7248 # Now generate the symbol file.
7249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7251 cat <<_LT_EOF >> conftest.$ac_ext
7253 /* The mapping between symbol names and symbols. */
7254 LT_DLSYM_CONST struct {
7258 lt__PROGRAM__LTX_preloaded_symbols[] =
7260 { "@PROGRAM@", (void *) 0 },
7262 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263 cat <<\_LT_EOF >> conftest.$ac_ext
7267 /* This works around a problem in FreeBSD linker */
7268 #ifdef FREEBSD_WORKAROUND
7269 static const void *lt_preloaded_setup() {
7270 return lt__PROGRAM__LTX_preloaded_symbols;
7278 # Now try linking the two files.
7279 mv conftest.$ac_objext conftstm.$ac_objext
7280 lt_globsym_save_LIBS=$LIBS
7281 lt_globsym_save_CFLAGS=$CFLAGS
7282 LIBS="conftstm.$ac_objext"
7283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7285 (eval $ac_link) 2>&5
7287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7291 LIBS=$lt_globsym_save_LIBS
7292 CFLAGS=$lt_globsym_save_CFLAGS
7294 echo "cannot find nm_test_func in $nlist" >&5
7297 echo "cannot find nm_test_var in $nlist" >&5
7300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7303 echo "$progname: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 rm -rf conftest* conftst*
7308 # Do not use the global_symbol_pipe unless it works.
7309 if test "$pipe_works" = yes; then
7312 lt_cv_sys_global_symbol_pipe=
7318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319 lt_cv_sys_global_symbol_to_cdecl=
7321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7323 $as_echo "failed" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7326 $as_echo "ok" >&6; }
7329 # Response file support.
7330 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7331 nm_file_list_spec='@'
7332 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7333 nm_file_list_spec='@'
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7363 $as_echo_n "checking for sysroot... " >&6; }
7365 # Check whether --with-sysroot was given.
7366 if test "${with_sysroot+set}" = set; then :
7367 withval=$with_sysroot;
7374 case ${with_sysroot} in #(
7376 if test "$GCC" = yes; then
7377 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7381 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7387 $as_echo "${with_sysroot}" >&6; }
7388 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7393 $as_echo "${lt_sysroot:-no}" >&6; }
7399 # Check whether --enable-libtool-lock was given.
7400 if test "${enable_libtool_lock+set}" = set; then :
7401 enableval=$enable_libtool_lock;
7404 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7406 # Some flags need to be propagated to the compiler or linker for good
7410 # Find out which ABI we are using.
7411 echo 'int i;' > conftest.$ac_ext
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413 (eval $ac_compile) 2>&5
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; }; then
7417 case `/usr/bin/file conftest.$ac_objext` in
7429 # Find out which ABI we are using.
7430 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7432 (eval $ac_compile) 2>&5
7434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435 test $ac_status = 0; }; then
7436 if test "$lt_cv_prog_gnu_ld" = yes; then
7437 case `/usr/bin/file conftest.$ac_objext` in
7439 LD="${LD-ld} -melf32bsmip"
7442 LD="${LD-ld} -melf32bmipn32"
7445 LD="${LD-ld} -melf64bmip"
7449 case `/usr/bin/file conftest.$ac_objext` in
7465 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7466 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7467 # Find out which ABI we are using.
7468 echo 'int i;' > conftest.$ac_ext
7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470 (eval $ac_compile) 2>&5
7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; }; then
7474 case `/usr/bin/file conftest.o` in
7477 x86_64-*kfreebsd*-gnu)
7478 LD="${LD-ld} -m elf_i386_fbsd"
7481 LD="${LD-ld} -m elf_i386"
7483 ppc64-*linux*|powerpc64-*linux*)
7484 LD="${LD-ld} -m elf32ppclinux"
7487 LD="${LD-ld} -m elf_s390"
7490 LD="${LD-ld} -m elf32_sparc"
7496 x86_64-*kfreebsd*-gnu)
7497 LD="${LD-ld} -m elf_x86_64_fbsd"
7500 LD="${LD-ld} -m elf_x86_64"
7502 ppc*-*linux*|powerpc*-*linux*)
7503 LD="${LD-ld} -m elf64ppc"
7505 s390*-*linux*|s390*-*tpf*)
7506 LD="${LD-ld} -m elf64_s390"
7509 LD="${LD-ld} -m elf64_sparc"
7519 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7520 SAVE_CFLAGS="$CFLAGS"
7521 CFLAGS="$CFLAGS -belf"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7524 if ${lt_cv_cc_needs_belf+:} false; then :
7525 $as_echo_n "(cached) " >&6
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 lt_cv_cc_needs_belf=yes
7547 lt_cv_cc_needs_belf=no
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7552 ac_cpp='$CPP $CPPFLAGS'
7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7562 CFLAGS="$SAVE_CFLAGS"
7566 # Find out which ABI we are using.
7567 echo 'int i;' > conftest.$ac_ext
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569 (eval $ac_compile) 2>&5
7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; }; then
7573 case `/usr/bin/file conftest.o` in
7575 case $lt_cv_prog_gnu_ld in
7576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7590 need_locks="$enable_libtool_lock"
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}mt; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$MANIFEST_TOOL"; then
7601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7621 if test -n "$MANIFEST_TOOL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7623 $as_echo "$MANIFEST_TOOL" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7633 # Extract the first word of "mt", so it can be a program name with args.
7634 set dummy mt; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7661 if test -n "$ac_ct_MANIFEST_TOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7672 case $cross_compiling:$ac_tool_warned in
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7687 if ${lt_cv_path_mainfest_tool+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 lt_cv_path_mainfest_tool=no
7691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7693 cat conftest.err >&5
7694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7695 lt_cv_path_mainfest_tool=yes
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7701 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7711 rhapsody* | darwin*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$DSYMUTIL"; then
7721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DSYMUTIL" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7798 DSYMUTIL=$ac_ct_DSYMUTIL
7801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_NMEDIT+:} false; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$NMEDIT"; then
7813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844 ac_ct_NMEDIT=$NMEDIT
7845 # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$ac_ct_NMEDIT"; then
7853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_NMEDIT" = x; then
7884 case $cross_compiling:$ac_tool_warned in
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7890 NMEDIT=$ac_ct_NMEDIT
7893 NMEDIT="$ac_cv_prog_NMEDIT"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_LIPO+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$LIPO"; then
7905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_LIPO"; then
7937 # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_LIPO"; then
7945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_LIPO="lipo"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_LIPO" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7985 LIPO="$ac_cv_prog_LIPO"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_OTOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7996 if test -n "$OTOOL"; then
7997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_OTOOL"; then
8029 # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$ac_ct_OTOOL"; then
8037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_ac_ct_OTOOL="otool"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_OTOOL" = x; then
8068 case $cross_compiling:$ac_tool_warned in
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8077 OTOOL="$ac_cv_prog_OTOOL"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL64+:} false; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$OTOOL64"; then
8089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120 ac_ct_OTOOL64=$OTOOL64
8121 # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$ac_ct_OTOOL64"; then
8129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_OTOOL64" = x; then
8160 case $cross_compiling:$ac_tool_warned in
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8166 OTOOL64=$ac_ct_OTOOL64
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if ${lt_cv_apple_cc_single_mod+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 lt_cv_apple_cc_single_mod=no
8204 if test -z "${LT_MULTI_MODULE}"; then
8205 # By default we will add the -single_module flag. You can override
8206 # by either setting the environment variable LT_MULTI_MODULE
8207 # non-empty at configure time, or by adding -multi_module to the
8209 rm -rf libconftest.dylib*
8210 echo "int foo(void){return 1;}" > conftest.c
8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8216 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8217 lt_cv_apple_cc_single_mod=yes
8219 cat conftest.err >&5
8221 rm -rf libconftest.dylib*
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8226 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8228 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8229 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 lt_cv_ld_exported_symbols_list=no
8233 save_LDFLAGS=$LDFLAGS
8234 echo "_main" > conftest.sym
8235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8247 if ac_fn_c_try_link "$LINENO"; then :
8248 lt_cv_ld_exported_symbols_list=yes
8250 lt_cv_ld_exported_symbols_list=no
8252 rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LDFLAGS="$save_LDFLAGS"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8258 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8260 $as_echo_n "checking for -force_load linker flag... " >&6; }
8261 if ${lt_cv_ld_force_load+:} false; then :
8262 $as_echo_n "(cached) " >&6
8264 lt_cv_ld_force_load=no
8265 cat > conftest.c << _LT_EOF
8266 int forced_loaded() { return 2;}
8268 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8269 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8270 echo "$AR cru libconftest.a conftest.o" >&5
8271 $AR cru libconftest.a conftest.o 2>&5
8272 echo "$RANLIB libconftest.a" >&5
8273 $RANLIB libconftest.a 2>&5
8274 cat > conftest.c << _LT_EOF
8275 int main() { return 0;}
8277 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8278 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8280 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8281 lt_cv_ld_force_load=yes
8283 cat conftest.err >&5
8285 rm -f conftest.err libconftest.a conftest conftest.c
8286 rm -rf conftest.dSYM
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8290 $as_echo "$lt_cv_ld_force_load" >&6; }
8292 rhapsody* | darwin1.[012])
8293 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8295 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8296 darwin*) # darwin 5.x on
8297 # if running on 10.5 or later, the deployment target defaults
8298 # to the OS version, if on x86, and 10.4, the deployment
8299 # target defaults to 10.4. Don't you love it?
8300 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8301 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8302 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8306 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8310 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8311 _lt_dar_single_mod='$single_module'
8313 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8314 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8316 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8318 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8319 _lt_dsymutil='~$DSYMUTIL $lib || :'
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8328 $as_echo_n "checking for ANSI C header files... " >&6; }
8329 if ${ac_cv_header_stdc+:} false; then :
8330 $as_echo_n "(cached) " >&6
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348 ac_cv_header_stdc=yes
8350 ac_cv_header_stdc=no
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 if test $ac_cv_header_stdc = yes; then
8355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8362 $EGREP "memchr" >/dev/null 2>&1; then :
8365 ac_cv_header_stdc=no
8371 if test $ac_cv_header_stdc = yes; then
8372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8379 $EGREP "free" >/dev/null 2>&1; then :
8382 ac_cv_header_stdc=no
8388 if test $ac_cv_header_stdc = yes; then
8389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8390 if test "$cross_compiling" = yes; then :
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8397 #if ((' ' & 0x0FF) == 0x020)
8398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8401 # define ISLOWER(c) \
8402 (('a' <= (c) && (c) <= 'i') \
8403 || ('j' <= (c) && (c) <= 'r') \
8404 || ('s' <= (c) && (c) <= 'z'))
8405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8413 for (i = 0; i < 256; i++)
8414 if (XOR (islower (i), ISLOWER (i))
8415 || toupper (i) != TOUPPER (i))
8420 if ac_fn_c_try_run "$LINENO"; then :
8423 ac_cv_header_stdc=no
8425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8426 conftest.$ac_objext conftest.beam conftest.$ac_ext
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8432 $as_echo "$ac_cv_header_stdc" >&6; }
8433 if test $ac_cv_header_stdc = yes; then
8435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8441 inttypes.h stdint.h unistd.h
8443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8447 cat >>confdefs.h <<_ACEOF
8448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8456 for ac_header in dlfcn.h
8458 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8460 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8461 cat >>confdefs.h <<_ACEOF
8462 #define HAVE_DLFCN_H 1
8472 func_stripname_cnf ()
8475 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8476 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8478 } # func_stripname_cnf
8495 # Check whether --with-pic was given.
8496 if test "${with_pic+set}" = set; then :
8497 withval=$with_pic; pic_mode="$withval"
8503 test -z "$pic_mode" && pic_mode=default
8511 # Check whether --enable-fast-install was given.
8512 if test "${enable_fast_install+set}" = set; then :
8513 enableval=$enable_fast_install; p=${PACKAGE-default}
8515 yes) enable_fast_install=yes ;;
8516 no) enable_fast_install=no ;;
8518 enable_fast_install=no
8519 # Look at the argument we got. We use all the common list separators.
8520 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8521 for pkg in $enableval; do
8523 if test "X$pkg" = "X$p"; then
8524 enable_fast_install=yes
8531 enable_fast_install=yes
8544 # This can be used to rebuild libtool when needed
8545 LIBTOOL_DEPS="$ltmain"
8547 # Always use our own libtool.
8548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8575 test -z "$LN_S" && LN_S="ln -s"
8590 if test -n "${ZSH_VERSION+set}" ; then
8591 setopt NO_GLOB_SUBST
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8595 $as_echo_n "checking for objdir... " >&6; }
8596 if ${lt_cv_objdir+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 rm -f .libs 2>/dev/null
8600 mkdir .libs 2>/dev/null
8601 if test -d .libs; then
8604 # MS-DOS does not allow filenames that begin with a dot.
8607 rmdir .libs 2>/dev/null
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8610 $as_echo "$lt_cv_objdir" >&6; }
8611 objdir=$lt_cv_objdir
8617 cat >>confdefs.h <<_ACEOF
8618 #define LT_OBJDIR "$lt_cv_objdir/"
8626 # AIX sometimes has problems with the GCC collect2 program. For some
8627 # reason, if we set the COLLECT_NAMES environment variable, the problems
8628 # vanish in a puff of smoke.
8629 if test "X${COLLECT_NAMES+set}" != Xset; then
8631 export COLLECT_NAMES
8638 can_build_shared=yes
8640 # All known linkers require a `.a' archive for static linking (except MSVC,
8641 # which needs '.lib').
8644 with_gnu_ld="$lt_cv_prog_gnu_ld"
8647 old_CFLAGS="$CFLAGS"
8649 # Set sane defaults for various variables
8650 test -z "$CC" && CC=cc
8651 test -z "$LTCC" && LTCC=$CC
8652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8653 test -z "$LD" && LD=ld
8654 test -z "$ac_objext" && ac_objext=o
8656 for cc_temp in $compiler""; do
8658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667 # Only perform the check for file, if the check method requires it
8668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8669 case $deplibs_check_method in
8671 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8675 $as_echo_n "(cached) " >&6
8679 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682 lt_save_MAGIC_CMD="$MAGIC_CMD"
8683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8684 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8685 for ac_dir in $ac_dummy; do
8687 test -z "$ac_dir" && ac_dir=.
8688 if test -f $ac_dir/${ac_tool_prefix}file; then
8689 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8690 if test -n "$file_magic_test_file"; then
8691 case $deplibs_check_method in
8693 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8694 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8695 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8696 $EGREP "$file_magic_regex" > /dev/null; then
8701 *** Warning: the command libtool uses to detect shared libraries,
8702 *** $file_magic_cmd, produces output that libtool cannot recognize.
8703 *** The result is that libtool may fail to recognize shared libraries
8704 *** as such. This will affect the creation of libtool libraries that
8705 *** depend on shared libraries, but programs linked with such libtool
8706 *** libraries will work regardless of this problem. Nevertheless, you
8707 *** may want to report the problem to your system manager and/or to
8708 *** bug-libtool@gnu.org
8718 MAGIC_CMD="$lt_save_MAGIC_CMD"
8723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724 if test -n "$MAGIC_CMD"; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8726 $as_echo "$MAGIC_CMD" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8736 if test -z "$lt_cv_path_MAGIC_CMD"; then
8737 if test -n "$ac_tool_prefix"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8739 $as_echo_n "checking for file... " >&6; }
8740 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8741 $as_echo_n "(cached) " >&6
8745 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8748 lt_save_MAGIC_CMD="$MAGIC_CMD"
8749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8750 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8751 for ac_dir in $ac_dummy; do
8753 test -z "$ac_dir" && ac_dir=.
8754 if test -f $ac_dir/file; then
8755 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8756 if test -n "$file_magic_test_file"; then
8757 case $deplibs_check_method in
8759 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8762 $EGREP "$file_magic_regex" > /dev/null; then
8767 *** Warning: the command libtool uses to detect shared libraries,
8768 *** $file_magic_cmd, produces output that libtool cannot recognize.
8769 *** The result is that libtool may fail to recognize shared libraries
8770 *** as such. This will affect the creation of libtool libraries that
8771 *** depend on shared libraries, but programs linked with such libtool
8772 *** libraries will work regardless of this problem. Nevertheless, you
8773 *** may want to report the problem to your system manager and/or to
8774 *** bug-libtool@gnu.org
8784 MAGIC_CMD="$lt_save_MAGIC_CMD"
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if test -n "$MAGIC_CMD"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8792 $as_echo "$MAGIC_CMD" >&6; }
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8808 # Use C for the default configuration in the libtool script
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818 # Source file extension for C test sources.
8821 # Object file extension for compiled C test sources.
8825 # Code to be used in simple compile tests
8826 lt_simple_compile_test_code="int some_variable = 0;"
8828 # Code to be used in simple link tests
8829 lt_simple_link_test_code='int main(){return(0);}'
8837 # If no C compiler was specified, use CC.
8840 # If no C compiler flags were specified, use CFLAGS.
8841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8843 # Allow CC to be a program name with arguments.
8846 # Save the default compiler, since it gets overwritten when the other
8847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8848 compiler_DEFAULT=$CC
8850 # save warnings/boilerplate of simple test code
8851 ac_outfile=conftest.$ac_objext
8852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8854 _lt_compiler_boilerplate=`cat conftest.err`
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8860 _lt_linker_boilerplate=`cat conftest.err`
8864 if test -n "$compiler"; then
8866 lt_prog_compiler_no_builtin_flag=
8868 if test "$GCC" = yes; then
8869 case $cc_basename in
8871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8879 $as_echo_n "(cached) " >&6
8881 lt_cv_prog_compiler_rtti_exceptions=no
8882 ac_outfile=conftest.$ac_objext
8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884 lt_compiler_flag="-fno-rtti -fno-exceptions"
8885 # Insert the option either (1) after the last *FLAGS variable, or
8886 # (2) before a word containing "conftest.", or (3) at the end.
8887 # Note that $ac_compile itself does not contain backslashes and begins
8888 # with a dollar sign (not a hyphen), so the echo should work correctly.
8889 # The option is referenced via a variable to avoid confusing sed.
8890 lt_compile=`echo "$ac_compile" | $SED \
8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893 -e 's:$: $lt_compiler_flag:'`
8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895 (eval "$lt_compile" 2>conftest.err)
8897 cat conftest.err >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 if (exit $ac_status) && test -s "$ac_outfile"; then
8900 # The compiler can only warn and ignore the option if not recognized
8901 # So say no if there are warnings other than the usual output.
8902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8905 lt_cv_prog_compiler_rtti_exceptions=yes
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8927 lt_prog_compiler_wl=
8928 lt_prog_compiler_pic=
8929 lt_prog_compiler_static=
8932 if test "$GCC" = yes; then
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_static='-static'
8938 # All AIX code is PIC.
8939 if test "$host_cpu" = ia64; then
8940 # AIX 5 now supports IA64 processor
8941 lt_prog_compiler_static='-Bstatic'
8948 # see comment about AmigaOS4 .so support
8949 lt_prog_compiler_pic='-fPIC'
8952 # FIXME: we need at least 68020 code to build shared libraries, but
8953 # adding the `-m68020' flag to GCC prevents building anything better,
8955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8961 # PIC is the default for these OSes.
8964 mingw* | cygwin* | pw32* | os2* | cegcc*)
8965 # This hack is so that the source file can tell whether it is being
8966 # built for inclusion in a dll (and should export symbols for example).
8967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8968 # (--disable-auto-import) libraries
8969 lt_prog_compiler_pic='-DDLL_EXPORT'
8972 darwin* | rhapsody*)
8973 # PIC is the default on this platform
8974 # Common symbols not allowed in MH_DYLIB files
8975 lt_prog_compiler_pic='-fno-common'
8979 # PIC is the default for Haiku.
8980 # The "-static" flag exists, but is broken.
8981 lt_prog_compiler_static=
8985 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8986 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8987 # sets the default TLS model and affects inlining.
8993 lt_prog_compiler_pic='-fPIC'
8999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9000 # Instead, we relocate shared libraries at runtime.
9004 # Just because we use GCC doesn't mean we suddenly get shared libraries
9005 # on systems that don't support them.
9006 lt_prog_compiler_can_build_shared=no
9011 # QNX uses GNU C++, but need to define -shared option too, otherwise
9013 lt_prog_compiler_pic='-fPIC -shared'
9017 if test -d /usr/nec; then
9018 lt_prog_compiler_pic=-Kconform_pic
9023 lt_prog_compiler_pic='-fPIC'
9027 case $cc_basename in
9028 nvcc*) # Cuda Compiler Driver 2.2
9029 lt_prog_compiler_wl='-Xlinker '
9030 lt_prog_compiler_pic='-Xcompiler -fPIC'
9034 # PORTME Check for flag to pass linker flags through the system compiler.
9037 lt_prog_compiler_wl='-Wl,'
9038 if test "$host_cpu" = ia64; then
9039 # AIX 5 now supports IA64 processor
9040 lt_prog_compiler_static='-Bstatic'
9042 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9046 mingw* | cygwin* | pw32* | os2* | cegcc*)
9047 # This hack is so that the source file can tell whether it is being
9048 # built for inclusion in a dll (and should export symbols for example).
9049 lt_prog_compiler_pic='-DDLL_EXPORT'
9052 hpux9* | hpux10* | hpux11*)
9053 lt_prog_compiler_wl='-Wl,'
9054 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9061 lt_prog_compiler_pic='+Z'
9064 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9065 lt_prog_compiler_static='${wl}-a ${wl}archive'
9068 irix5* | irix6* | nonstopux*)
9069 lt_prog_compiler_wl='-Wl,'
9070 # PIC (with -KPIC) is the default.
9071 lt_prog_compiler_static='-non_shared'
9074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9075 case $cc_basename in
9076 # old Intel for x86_64 which still supported -KPIC.
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-KPIC'
9080 lt_prog_compiler_static='-static'
9082 # icc used to be incompatible with GCC.
9083 # ICC 10 doesn't accept -KPIC any more.
9085 lt_prog_compiler_wl='-Wl,'
9086 lt_prog_compiler_pic='-fPIC'
9087 lt_prog_compiler_static='-static'
9089 # Lahey Fortran 8.1.
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='--shared'
9093 lt_prog_compiler_static='--static'
9096 # NAG Fortran compiler
9097 lt_prog_compiler_wl='-Wl,-Wl,,'
9098 lt_prog_compiler_pic='-PIC'
9099 lt_prog_compiler_static='-Bstatic'
9101 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9102 # Portland Group compilers (*not* the Pentium gcc compiler,
9103 # which looks to be a dead project)
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='-fpic'
9106 lt_prog_compiler_static='-Bstatic'
9109 lt_prog_compiler_wl='-Wl,'
9110 # All Alpha code is PIC.
9111 lt_prog_compiler_static='-non_shared'
9113 xl* | bgxl* | bgf* | mpixl*)
9114 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9115 lt_prog_compiler_wl='-Wl,'
9116 lt_prog_compiler_pic='-qpic'
9117 lt_prog_compiler_static='-qstaticlink'
9120 case `$CC -V 2>&1 | sed 5q` in
9121 *Sun\ F* | *Sun*Fortran*)
9122 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 lt_prog_compiler_wl=''
9129 lt_prog_compiler_pic='-KPIC'
9130 lt_prog_compiler_static='-Bstatic'
9131 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_pic='-KPIC'
9140 lt_prog_compiler_static='-Bstatic'
9144 # QNX uses GNU C++, but need to define -shared option too, otherwise
9146 lt_prog_compiler_pic='-fPIC -shared'
9149 osf3* | osf4* | osf5*)
9150 lt_prog_compiler_wl='-Wl,'
9151 # All OSF/1 code is PIC.
9152 lt_prog_compiler_static='-non_shared'
9156 lt_prog_compiler_static='-non_shared'
9160 lt_prog_compiler_pic='-KPIC'
9161 lt_prog_compiler_static='-Bstatic'
9162 case $cc_basename in
9163 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9164 lt_prog_compiler_wl='-Qoption ld ';;
9166 lt_prog_compiler_wl='-Wl,';;
9171 lt_prog_compiler_wl='-Qoption ld '
9172 lt_prog_compiler_pic='-PIC'
9173 lt_prog_compiler_static='-Bstatic'
9176 sysv4 | sysv4.2uw2* | sysv4.3*)
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9183 if test -d /usr/nec ;then
9184 lt_prog_compiler_pic='-Kconform_pic'
9185 lt_prog_compiler_static='-Bstatic'
9189 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_pic='-KPIC'
9192 lt_prog_compiler_static='-Bstatic'
9196 lt_prog_compiler_wl='-Wl,'
9197 lt_prog_compiler_can_build_shared=no
9201 lt_prog_compiler_pic='-pic'
9202 lt_prog_compiler_static='-Bstatic'
9206 lt_prog_compiler_can_build_shared=no
9212 # For platforms which do not support PIC, -DPIC is meaningless:
9214 lt_prog_compiler_pic=
9217 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9223 if ${lt_cv_prog_compiler_pic+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9233 # Check to make sure the PIC flag actually works.
9235 if test -n "$lt_prog_compiler_pic"; then
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 lt_cv_prog_compiler_pic_works=no
9242 ac_outfile=conftest.$ac_objext
9243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9245 # Insert the option either (1) after the last *FLAGS variable, or
9246 # (2) before a word containing "conftest.", or (3) at the end.
9247 # Note that $ac_compile itself does not contain backslashes and begins
9248 # with a dollar sign (not a hyphen), so the echo should work correctly.
9249 # The option is referenced via a variable to avoid confusing sed.
9250 lt_compile=`echo "$ac_compile" | $SED \
9251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9253 -e 's:$: $lt_compiler_flag:'`
9254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9255 (eval "$lt_compile" 2>conftest.err)
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 if (exit $ac_status) && test -s "$ac_outfile"; then
9260 # The compiler can only warn and ignore the option if not recognized
9261 # So say no if there are warnings other than the usual output.
9262 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9263 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9265 lt_cv_prog_compiler_pic_works=yes
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9274 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9275 case $lt_prog_compiler_pic in
9277 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9280 lt_prog_compiler_pic=
9281 lt_prog_compiler_can_build_shared=no
9297 # Check to make sure the static flag actually works.
9299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9302 if ${lt_cv_prog_compiler_static_works+:} false; then :
9303 $as_echo_n "(cached) " >&6
9305 lt_cv_prog_compiler_static_works=no
9306 save_LDFLAGS="$LDFLAGS"
9307 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9308 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310 # The linker can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 if test -s conftest.err; then
9313 # Append any errors to the config.log.
9314 cat conftest.err 1>&5
9315 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317 if diff conftest.exp conftest.er2 >/dev/null; then
9318 lt_cv_prog_compiler_static_works=yes
9321 lt_cv_prog_compiler_static_works=yes
9325 LDFLAGS="$save_LDFLAGS"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9331 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9334 lt_prog_compiler_static=
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9345 if ${lt_cv_prog_compiler_c_o+:} false; then :
9346 $as_echo_n "(cached) " >&6
9348 lt_cv_prog_compiler_c_o=no
9349 $RM -r conftest 2>/dev/null
9353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9355 lt_compiler_flag="-o out/conftest2.$ac_objext"
9356 # Insert the option either (1) after the last *FLAGS variable, or
9357 # (2) before a word containing "conftest.", or (3) at the end.
9358 # Note that $ac_compile itself does not contain backslashes and begins
9359 # with a dollar sign (not a hyphen), so the echo should work correctly.
9360 lt_compile=`echo "$ac_compile" | $SED \
9361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363 -e 's:$: $lt_compiler_flag:'`
9364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365 (eval "$lt_compile" 2>out/conftest.err)
9367 cat out/conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9371 # The compiler can only warn and ignore the option if not recognized
9372 # So say no if there are warnings
9373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9376 lt_cv_prog_compiler_c_o=yes
9381 # SGI C++ compiler will create directory out/ii_files/ for
9382 # template instantiation
9383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9384 $RM out/* && rmdir out
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9400 if ${lt_cv_prog_compiler_c_o+:} false; then :
9401 $as_echo_n "(cached) " >&6
9403 lt_cv_prog_compiler_c_o=no
9404 $RM -r conftest 2>/dev/null
9408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9410 lt_compiler_flag="-o out/conftest2.$ac_objext"
9411 # Insert the option either (1) after the last *FLAGS variable, or
9412 # (2) before a word containing "conftest.", or (3) at the end.
9413 # Note that $ac_compile itself does not contain backslashes and begins
9414 # with a dollar sign (not a hyphen), so the echo should work correctly.
9415 lt_compile=`echo "$ac_compile" | $SED \
9416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418 -e 's:$: $lt_compiler_flag:'`
9419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420 (eval "$lt_compile" 2>out/conftest.err)
9422 cat out/conftest.err >&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9426 # The compiler can only warn and ignore the option if not recognized
9427 # So say no if there are warnings
9428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler_c_o=yes
9436 # SGI C++ compiler will create directory out/ii_files/ for
9437 # template instantiation
9438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439 $RM out/* && rmdir out
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451 hard_links="nottested"
9452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9453 # do not overwrite the value of need_locks provided by the user
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9455 $as_echo_n "checking if we can lock with hard links... " >&6; }
9458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9460 ln conftest.a conftest.b 2>&5 || hard_links=no
9461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9463 $as_echo "$hard_links" >&6; }
9464 if test "$hard_links" = no; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9466 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9482 allow_undefined_flag=
9483 always_export_symbols=no
9485 archive_expsym_cmds=
9486 compiler_needs_object=no
9487 enable_shared_with_static_runtimes=no
9488 export_dynamic_flag_spec=
9489 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9490 hardcode_automatic=no
9492 hardcode_direct_absolute=no
9493 hardcode_libdir_flag_spec=
9494 hardcode_libdir_flag_spec_ld=
9495 hardcode_libdir_separator=
9497 hardcode_shlibpath_var=unsupported
9499 link_all_deplibs=unknown
9502 old_archive_from_new_cmds=
9503 old_archive_from_expsyms_cmds=
9504 thread_safe_flag_spec=
9505 whole_archive_flag_spec=
9506 # include_expsyms should be a list of space-separated symbols to be *always*
9507 # included in the symbol list
9509 # exclude_expsyms can be an extended regexp of symbols to exclude
9510 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512 # as well as any symbol that contains `d'.
9513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515 # platforms (ab)use it in PIC code, but their linkers get confused if
9516 # the symbol is explicitly referenced. Since portable code cannot
9517 # rely on this symbol name, it's probably fine to never include it in
9518 # preloaded symbol tables.
9519 # Exclude shared library initialization/finalization symbols.
9520 extract_expsyms_cmds=
9523 cygwin* | mingw* | pw32* | cegcc*)
9524 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9525 # When not using gcc, we currently assume that we are using
9526 # Microsoft Visual C++.
9527 if test "$GCC" != yes; then
9532 # we just hope/assume this is gcc and not c89 (= MSVC++)
9542 # On some targets, GNU ld is compatible enough with the native linker
9543 # that we're better off using the native interface for both.
9544 lt_use_gnu_ld_interface=no
9545 if test "$with_gnu_ld" = yes; then
9548 # The AIX port of GNU ld has always aspired to compatibility
9549 # with the native linker. However, as the warning in the GNU ld
9550 # block says, versions before 2.19.5* couldn't really create working
9551 # shared libraries, regardless of the interface used.
9552 case `$LD -v 2>&1` in
9553 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9554 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9555 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9557 lt_use_gnu_ld_interface=yes
9562 lt_use_gnu_ld_interface=yes
9567 if test "$lt_use_gnu_ld_interface" = yes; then
9568 # If archive_cmds runs LD, not CC, wlarc should be empty
9571 # Set some defaults for GNU ld with shared library support. These
9572 # are reset later if shared libraries are not supported. Putting them
9573 # here allows them to be overridden if necessary.
9574 runpath_var=LD_RUN_PATH
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 export_dynamic_flag_spec='${wl}--export-dynamic'
9577 # ancient GNU ld didn't support --whole-archive et. al.
9578 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9579 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9581 whole_archive_flag_spec=
9583 supports_anon_versioning=no
9584 case `$LD -v 2>&1` in
9585 *GNU\ gold*) supports_anon_versioning=yes ;;
9586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9589 *\ 2.11.*) ;; # other 2.11 versions
9590 *) supports_anon_versioning=yes ;;
9593 # See if GNU ld supports shared libraries.
9596 # On AIX/PPC, the GNU linker is very broken
9597 if test "$host_cpu" != ia64; then
9601 *** Warning: the GNU linker, at least up to release 2.19, is reported
9602 *** to be unable to reliably create shared libraries on AIX.
9603 *** Therefore, libtool is disabling shared libraries support. If you
9604 *** really care for shared libraries, you may want to install binutils
9605 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9606 *** You will then need to restart the configuration process.
9615 # see comment about AmigaOS4 .so support
9616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617 archive_expsym_cmds=''
9620 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)'
9621 hardcode_libdir_flag_spec='-L$libdir'
9622 hardcode_minus_L=yes
9628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9629 allow_undefined_flag=unsupported
9630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9631 # support --undefined. This deserves some investigation. FIXME
9632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9638 cygwin* | mingw* | pw32* | cegcc*)
9639 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9640 # as there is no search path for DLLs.
9641 hardcode_libdir_flag_spec='-L$libdir'
9642 export_dynamic_flag_spec='${wl}--export-all-symbols'
9643 allow_undefined_flag=unsupported
9644 always_export_symbols=no
9645 enable_shared_with_static_runtimes=yes
9646 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'
9647 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9649 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9651 # If the export-symbols file already is a .def file (1st line
9652 # is EXPORTS), use it as is; otherwise, prepend...
9653 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9654 cp $export_symbols $output_objdir/$soname.def;
9656 echo EXPORTS > $output_objdir/$soname.def;
9657 cat $export_symbols >> $output_objdir/$soname.def;
9659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667 link_all_deplibs=yes
9672 hardcode_shlibpath_var=no
9673 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9674 export_dynamic_flag_spec='${wl}-E'
9675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9676 # Instead, shared libraries are loaded at an image base (0x10000000 by
9677 # default) and relocated if they conflict, which is a slow very memory
9678 # consuming and fragmenting process. To avoid this, we pick a random,
9679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9680 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9682 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'
9685 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9687 if test "$host_os" = linux-dietlibc; then
9688 case $cc_basename in
9689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9693 && test "$tmp_diet" = no
9695 tmp_addflag=' $pic_flag'
9696 tmp_sharedflag='-shared'
9697 case $cc_basename,$host_cpu in
9698 pgcc*) # Portland Group C compiler
9699 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'
9700 tmp_addflag=' $pic_flag'
9702 pgf77* | pgf90* | pgf95* | pgfortran*)
9703 # Portland Group f77 and f90 compilers
9704 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'
9705 tmp_addflag=' $pic_flag -Mnomain' ;;
9706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9707 tmp_addflag=' -i_dynamic' ;;
9708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9709 tmp_addflag=' -i_dynamic -nofor_main' ;;
9710 ifc* | ifort*) # Intel Fortran compiler
9711 tmp_addflag=' -nofor_main' ;;
9712 lf95*) # Lahey Fortran 8.1
9713 whole_archive_flag_spec=
9714 tmp_sharedflag='--shared' ;;
9715 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9716 tmp_sharedflag='-qmkshrobj'
9718 nvcc*) # Cuda Compiler Driver 2.2
9719 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'
9720 compiler_needs_object=yes
9723 case `$CC -V 2>&1 | sed 5q` in
9724 *Sun\ C*) # Sun C 5.9
9725 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'
9726 compiler_needs_object=yes
9727 tmp_sharedflag='-G' ;;
9728 *Sun\ F*) # Sun Fortran 8.3
9729 tmp_sharedflag='-G' ;;
9731 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 if test "x$supports_anon_versioning" = xyes; then
9734 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9735 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9736 echo "local: *; };" >> $output_objdir/$libname.ver~
9737 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9740 case $cc_basename in
9741 xlf* | bgf* | bgxlf* | mpixlf*)
9742 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9743 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9744 hardcode_libdir_flag_spec=
9745 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9746 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9747 if test "x$supports_anon_versioning" = xyes; then
9748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9750 echo "local: *; };" >> $output_objdir/$libname.ver~
9751 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9762 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9771 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9776 *** create shared libraries on Solaris systems. Therefore, libtool
9777 *** is disabling shared libraries support. We urge you to upgrade GNU
9778 *** binutils to release 2.9.1 or newer. Another option is to modify
9779 *** your PATH or compiler configuration so that the native linker is
9780 *** used, and then restart.
9783 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9792 case `$LD -v 2>&1` in
9793 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9797 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9798 *** reliably create shared libraries on SCO systems. Therefore, libtool
9799 *** is disabling shared libraries support. We urge you to upgrade GNU
9800 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9801 *** your PATH or compiler configuration so that the native linker is
9802 *** used, and then restart.
9807 # For security reasons, it is highly recommended that you always
9808 # use absolute paths for naming shared libraries, and exclude the
9809 # DT_RUNPATH tag from executables and libraries. But doing so
9810 # requires that you compile everything twice, which is a pain.
9811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_shlibpath_var=no
9830 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9839 if test "$ld_shlibs" = no; then
9841 hardcode_libdir_flag_spec=
9842 export_dynamic_flag_spec=
9843 whole_archive_flag_spec=
9846 # PORTME fill in a description of your system's linker (not GNU ld)
9849 allow_undefined_flag=unsupported
9850 always_export_symbols=yes
9851 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'
9852 # Note: this linker hardcodes the directories in LIBPATH if there
9853 # are no directories specified by -L.
9854 hardcode_minus_L=yes
9855 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9856 # Neither direct hardcoding nor static linking is supported with a
9858 hardcode_direct=unsupported
9863 if test "$host_cpu" = ia64; then
9864 # On IA64, the linker does run time linking by default, so we don't
9865 # have to do anything special.
9866 aix_use_runtimelinking=no
9867 exp_sym_flag='-Bexport'
9870 # If we're using GNU nm, then we don't want the "-C" option.
9871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9872 # Also, AIX nm treats weak defined symbols like other global
9873 # defined symbols, whereas GNU nm marks them as "W".
9874 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9875 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'
9877 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'
9879 aix_use_runtimelinking=no
9881 # Test if we are trying to use run time linking or normal
9882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9883 # need to do runtime linking.
9884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9885 for ld_flag in $LDFLAGS; do
9886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9887 aix_use_runtimelinking=yes
9894 exp_sym_flag='-bexport'
9895 no_entry_flag='-bnoentry'
9898 # When large executables or shared objects are built, AIX ld can
9899 # have problems creating the table of contents. If linking a library
9900 # or program results in "error TOC overflow" add -mminimal-toc to
9901 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9902 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9906 hardcode_direct_absolute=yes
9907 hardcode_libdir_separator=':'
9908 link_all_deplibs=yes
9909 file_list_spec='${wl}-f,'
9911 if test "$GCC" = yes; then
9912 case $host_os in aix4.[012]|aix4.[012].*)
9913 # We only want to do this on AIX 4.2 and lower, the check
9914 # below for broken collect2 doesn't work under 4.3+
9915 collect2name=`${CC} -print-prog-name=collect2`
9916 if test -f "$collect2name" &&
9917 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9919 # We have reworked collect2
9922 # We have old collect2
9923 hardcode_direct=unsupported
9924 # It fails to find uninstalled libraries when the uninstalled
9925 # path is not listed in the libpath. Setting hardcode_minus_L
9926 # to unsupported forces relinking
9927 hardcode_minus_L=yes
9928 hardcode_libdir_flag_spec='-L$libdir'
9929 hardcode_libdir_separator=
9933 shared_flag='-shared'
9934 if test "$aix_use_runtimelinking" = yes; then
9935 shared_flag="$shared_flag "'${wl}-G'
9939 if test "$host_cpu" = ia64; then
9940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9941 # chokes on -Wl,-G. The following line is correct:
9944 if test "$aix_use_runtimelinking" = yes; then
9945 shared_flag='${wl}-G'
9947 shared_flag='${wl}-bM:SRE'
9952 export_dynamic_flag_spec='${wl}-bexpall'
9953 # It seems that -bexpall does not export symbols beginning with
9954 # underscore (_), so it is better to generate a list of symbols to export.
9955 always_export_symbols=yes
9956 if test "$aix_use_runtimelinking" = yes; then
9957 # Warning - without using the other runtime loading flags (-brtl),
9958 # -berok will link without error, but may produce a broken library.
9959 allow_undefined_flag='-berok'
9960 # Determine the default libpath from the value encoded in an
9962 if test "${lt_cv_aix_libpath+set}" = set; then
9963 aix_libpath=$lt_cv_aix_libpath
9965 if ${lt_cv_aix_libpath_+:} false; then :
9966 $as_echo_n "(cached) " >&6
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9979 if ac_fn_c_try_link "$LINENO"; then :
9981 lt_aix_libpath_sed='
9982 /Import File Strings/,/^$/ {
9984 s/^0 *\([^ ]*\) *$/\1/
9988 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9989 # Check for a 64-bit object if we didn't find anything.
9990 if test -z "$lt_cv_aix_libpath_"; then
9991 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9994 rm -f core conftest.err conftest.$ac_objext \
9995 conftest$ac_exeext conftest.$ac_ext
9996 if test -z "$lt_cv_aix_libpath_"; then
9997 lt_cv_aix_libpath_="/usr/lib:/lib"
10002 aix_libpath=$lt_cv_aix_libpath_
10005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10006 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"
10008 if test "$host_cpu" = ia64; then
10009 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10010 allow_undefined_flag="-z nodefs"
10011 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"
10013 # Determine the default libpath from the value encoded in an
10014 # empty executable.
10015 if test "${lt_cv_aix_libpath+set}" = set; then
10016 aix_libpath=$lt_cv_aix_libpath
10018 if ${lt_cv_aix_libpath_+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10032 if ac_fn_c_try_link "$LINENO"; then :
10034 lt_aix_libpath_sed='
10035 /Import File Strings/,/^$/ {
10037 s/^0 *\([^ ]*\) *$/\1/
10041 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10042 # Check for a 64-bit object if we didn't find anything.
10043 if test -z "$lt_cv_aix_libpath_"; then
10044 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 if test -z "$lt_cv_aix_libpath_"; then
10050 lt_cv_aix_libpath_="/usr/lib:/lib"
10055 aix_libpath=$lt_cv_aix_libpath_
10058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059 # Warning - without using the other run time loading flags,
10060 # -berok will link without error, but may produce a broken library.
10061 no_undefined_flag=' ${wl}-bernotok'
10062 allow_undefined_flag=' ${wl}-berok'
10063 if test "$with_gnu_ld" = yes; then
10064 # We only use this code for GNU lds that support --whole-archive.
10065 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10067 # Exported symbols can be pulled into shared objects from archives
10068 whole_archive_flag_spec='$convenience'
10070 archive_cmds_need_lc=yes
10071 # This is similar to how AIX traditionally builds its shared libraries.
10072 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'
10080 # see comment about AmigaOS4 .so support
10081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 archive_expsym_cmds=''
10085 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)'
10086 hardcode_libdir_flag_spec='-L$libdir'
10087 hardcode_minus_L=yes
10093 export_dynamic_flag_spec=-rdynamic
10096 cygwin* | mingw* | pw32* | cegcc*)
10097 # When not using gcc, we currently assume that we are using
10098 # Microsoft Visual C++.
10099 # hardcode_libdir_flag_spec is actually meaningless, as there is
10100 # no search path for DLLs.
10101 case $cc_basename in
10104 hardcode_libdir_flag_spec=' '
10105 allow_undefined_flag=unsupported
10106 always_export_symbols=yes
10108 # Tell ltmain to make .lib files, not .a files.
10110 # Tell ltmain to make .dll files, not .so files.
10112 # FIXME: Setting linknames here is a bad hack.
10113 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10115 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10117 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10119 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10121 # The linker will not automatically build a static lib if we build a DLL.
10122 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10123 enable_shared_with_static_runtimes=yes
10124 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10126 old_postinstall_cmds='chmod 644 $oldlib'
10127 postlink_cmds='lt_outputfile="@OUTPUT@"~
10128 lt_tool_outputfile="@TOOL_OUTPUT@"~
10129 case $lt_outputfile in
10132 lt_outputfile="$lt_outputfile.exe"
10133 lt_tool_outputfile="$lt_tool_outputfile.exe"
10136 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10137 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10138 $RM "$lt_outputfile.manifest";
10142 # Assume MSVC wrapper
10143 hardcode_libdir_flag_spec=' '
10144 allow_undefined_flag=unsupported
10145 # Tell ltmain to make .lib files, not .a files.
10147 # Tell ltmain to make .dll files, not .so files.
10149 # FIXME: Setting linknames here is a bad hack.
10150 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10151 # The linker will automatically build a .lib file if we build a DLL.
10152 old_archive_from_new_cmds='true'
10153 # FIXME: Should let the user specify the lib program.
10154 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10155 enable_shared_with_static_runtimes=yes
10160 darwin* | rhapsody*)
10163 archive_cmds_need_lc=no
10165 hardcode_automatic=yes
10166 hardcode_shlibpath_var=unsupported
10167 if test "$lt_cv_ld_force_load" = "yes"; then
10168 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\"`'
10170 whole_archive_flag_spec=''
10172 link_all_deplibs=yes
10173 allow_undefined_flag="$_lt_dar_allow_undefined"
10174 case $cc_basename in
10175 ifort*) _lt_dar_can_shared=yes ;;
10176 *) _lt_dar_can_shared=$GCC ;;
10178 if test "$_lt_dar_can_shared" = "yes"; then
10179 output_verbose_link_cmd=func_echo_all
10180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10182 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}"
10183 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}"
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_shlibpath_var=no
10201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10202 # support. Future versions do this automatically, but an explicit c++rt0.o
10203 # does not break anything, and helps significantly (at the cost of a little
10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10207 hardcode_libdir_flag_spec='-R$libdir'
10208 hardcode_direct=yes
10209 hardcode_shlibpath_var=no
10212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_minus_L=yes
10217 hardcode_shlibpath_var=no
10220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10221 freebsd* | dragonfly*)
10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223 hardcode_libdir_flag_spec='-R$libdir'
10224 hardcode_direct=yes
10225 hardcode_shlibpath_var=no
10229 if test "$GCC" = yes; then
10230 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'
10232 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'
10234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235 hardcode_libdir_separator=:
10236 hardcode_direct=yes
10238 # hardcode_minus_L: Not really in the search PATH,
10239 # but as the default location of the library.
10240 hardcode_minus_L=yes
10241 export_dynamic_flag_spec='${wl}-E'
10245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10246 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10250 if test "$with_gnu_ld" = no; then
10251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252 hardcode_libdir_flag_spec_ld='+b $libdir'
10253 hardcode_libdir_separator=:
10254 hardcode_direct=yes
10255 hardcode_direct_absolute=yes
10256 export_dynamic_flag_spec='${wl}-E'
10257 # hardcode_minus_L: Not really in the search PATH,
10258 # but as the default location of the library.
10259 hardcode_minus_L=yes
10264 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10286 # Older versions of the 11.00 compiler do not understand -b yet
10287 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10289 $as_echo_n "checking if $CC understands -b... " >&6; }
10290 if ${lt_cv_prog_compiler__b+:} false; then :
10291 $as_echo_n "(cached) " >&6
10293 lt_cv_prog_compiler__b=no
10294 save_LDFLAGS="$LDFLAGS"
10295 LDFLAGS="$LDFLAGS -b"
10296 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10298 # The linker can only warn and ignore the option if not recognized
10299 # So say no if there are warnings
10300 if test -s conftest.err; then
10301 # Append any errors to the config.log.
10302 cat conftest.err 1>&5
10303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10305 if diff conftest.exp conftest.er2 >/dev/null; then
10306 lt_cv_prog_compiler__b=yes
10309 lt_cv_prog_compiler__b=yes
10313 LDFLAGS="$save_LDFLAGS"
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10319 if test x"$lt_cv_prog_compiler__b" = xyes; then
10320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10328 if test "$with_gnu_ld" = no; then
10329 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10330 hardcode_libdir_separator=:
10335 hardcode_shlibpath_var=no
10338 hardcode_direct=yes
10339 hardcode_direct_absolute=yes
10340 export_dynamic_flag_spec='${wl}-E'
10342 # hardcode_minus_L: Not really in the search PATH,
10343 # but as the default location of the library.
10344 hardcode_minus_L=yes
10350 irix5* | irix6* | nonstopux*)
10351 if test "$GCC" = yes; then
10352 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'
10353 # Try to use the -exported_symbol ld option, if it does not
10354 # work, assume that -exports_file does not work either and
10355 # implicitly export all symbols.
10356 # This should be the same for all languages, so no per-tag cache variable.
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10358 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10359 if ${lt_cv_irix_exported_symbol+:} false; then :
10360 $as_echo_n "(cached) " >&6
10362 save_LDFLAGS="$LDFLAGS"
10363 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10366 int foo (void) { return 0; }
10368 if ac_fn_c_try_link "$LINENO"; then :
10369 lt_cv_irix_exported_symbol=yes
10371 lt_cv_irix_exported_symbol=no
10373 rm -f core conftest.err conftest.$ac_objext \
10374 conftest$ac_exeext conftest.$ac_ext
10375 LDFLAGS="$save_LDFLAGS"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10378 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10379 if test "$lt_cv_irix_exported_symbol" = yes; then
10380 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'
10383 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'
10384 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'
10386 archive_cmds_need_lc='no'
10387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388 hardcode_libdir_separator=:
10390 link_all_deplibs=yes
10394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10397 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10399 hardcode_libdir_flag_spec='-R$libdir'
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_direct=yes
10407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408 hardcode_libdir_separator=:
10409 hardcode_shlibpath_var=no
10416 if test -f /usr/libexec/ld.so; then
10417 hardcode_direct=yes
10418 hardcode_shlibpath_var=no
10419 hardcode_direct_absolute=yes
10420 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424 export_dynamic_flag_spec='${wl}-E'
10427 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10428 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10429 hardcode_libdir_flag_spec='-R$libdir'
10432 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10433 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_minus_L=yes
10445 allow_undefined_flag=unsupported
10446 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'
10447 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10451 if test "$GCC" = yes; then
10452 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10453 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'
10455 allow_undefined_flag=' -expect_unresolved \*'
10456 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'
10458 archive_cmds_need_lc='no'
10459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460 hardcode_libdir_separator=:
10463 osf4* | osf5*) # as osf3* with the addition of -msym flag
10464 if test "$GCC" = yes; then
10465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10466 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'
10467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469 allow_undefined_flag=' -expect_unresolved \*'
10470 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'
10471 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~
10472 $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'
10474 # Both c and cxx compiler support -rpath directly
10475 hardcode_libdir_flag_spec='-rpath $libdir'
10477 archive_cmds_need_lc='no'
10478 hardcode_libdir_separator=:
10482 no_undefined_flag=' -z defs'
10483 if test "$GCC" = yes; then
10485 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10487 $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'
10489 case `$CC -V 2>&1` in
10492 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10498 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10500 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10504 hardcode_libdir_flag_spec='-R$libdir'
10505 hardcode_shlibpath_var=no
10507 solaris2.[0-5] | solaris2.[0-5].*) ;;
10509 # The compiler driver will combine and reorder linker options,
10510 # but understands `-z linker_flag'. GCC discards it without `$wl',
10511 # but is careful enough not to reorder.
10512 # Supported since Solaris 2.6 (maybe 2.5.1?)
10513 if test "$GCC" = yes; then
10514 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10516 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10520 link_all_deplibs=yes
10524 if test "x$host_vendor" = xsequent; then
10525 # Use $CC to link under sequent, because it throws in some extra .o
10526 # files that make .init and .fini sections work.
10527 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10531 hardcode_libdir_flag_spec='-L$libdir'
10532 hardcode_direct=yes
10533 hardcode_minus_L=yes
10534 hardcode_shlibpath_var=no
10538 case $host_vendor in
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_direct=yes # is this really true???
10544 ## LD is ld it makes a PLAMLIB
10545 ## CC just makes a GrossModule.
10546 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10547 reload_cmds='$CC -r -o $output$reload_objs'
10551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10555 runpath_var='LD_RUN_PATH'
10556 hardcode_shlibpath_var=no
10560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561 hardcode_shlibpath_var=no
10562 export_dynamic_flag_spec='-Bexport'
10566 if test -d /usr/nec; then
10567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_shlibpath_var=no
10569 runpath_var=LD_RUN_PATH
10570 hardcode_runpath_var=yes
10575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10576 no_undefined_flag='${wl}-z,text'
10577 archive_cmds_need_lc=no
10578 hardcode_shlibpath_var=no
10579 runpath_var='LD_RUN_PATH'
10581 if test "$GCC" = yes; then
10582 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 sysv5* | sco3.2v5* | sco5v6*)
10591 # Note: We can NOT use -z defs as we might desire, because we do not
10592 # link with -lc, and that would cause any symbols used from libc to
10593 # always be unresolved, which means just about no library would
10594 # ever link correctly. If we're not using GNU ld we use -z text
10595 # though, which does catch some bad symbols but isn't as heavy-handed
10597 no_undefined_flag='${wl}-z,text'
10598 allow_undefined_flag='${wl}-z,nodefs'
10599 archive_cmds_need_lc=no
10600 hardcode_shlibpath_var=no
10601 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10602 hardcode_libdir_separator=':'
10603 link_all_deplibs=yes
10604 export_dynamic_flag_spec='${wl}-Bexport'
10605 runpath_var='LD_RUN_PATH'
10607 if test "$GCC" = yes; then
10608 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618 hardcode_libdir_flag_spec='-L$libdir'
10619 hardcode_shlibpath_var=no
10627 if test x$host_vendor = xsni; then
10629 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10630 export_dynamic_flag_spec='${wl}-Blargedynsym'
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10637 $as_echo "$ld_shlibs" >&6; }
10638 test "$ld_shlibs" = no && can_build_shared=no
10640 with_gnu_ld=$with_gnu_ld
10657 # Do we need to explicitly link libc?
10659 case "x$archive_cmds_need_lc" in
10661 # Assume -lc should be added
10662 archive_cmds_need_lc=yes
10664 if test "$enable_shared" = yes && test "$GCC" = yes; then
10665 case $archive_cmds in
10667 # FIXME: we may have to deal with multi-command sequences.
10670 # Test whether the compiler implicitly links with -lc since on some
10671 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10672 # to ld, don't add -lc before -lgcc.
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10675 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10676 $as_echo_n "(cached) " >&6
10679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10682 (eval $ac_compile) 2>&5
10684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685 test $ac_status = 0; } 2>conftest.err; then
10688 libobjs=conftest.$ac_objext
10690 wl=$lt_prog_compiler_wl
10691 pic_flag=$lt_prog_compiler_pic
10697 lt_save_allow_undefined_flag=$allow_undefined_flag
10698 allow_undefined_flag=
10699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10700 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703 test $ac_status = 0; }
10705 lt_cv_archive_cmds_need_lc=no
10707 lt_cv_archive_cmds_need_lc=yes
10709 allow_undefined_flag=$lt_save_allow_undefined_flag
10711 cat conftest.err 1>&5
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10717 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10718 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10884 if test "$GCC" = yes; then
10886 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10887 *) lt_awk_arg="/^libraries:/" ;;
10890 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10891 *) lt_sed_strip_eq="s,=/,/,g" ;;
10893 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10894 case $lt_search_path_spec in
10896 # if the path contains ";" then we assume it to be the separator
10897 # otherwise default to the standard path separator (i.e. ":") - it is
10898 # assumed that no part of a normal pathname contains ";" but that should
10899 # okay in the real world where ";" in dirpaths is itself problematic.
10900 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10903 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10906 # Ok, now we have the path, separated by spaces, we can step through it
10907 # and add multilib dir if necessary.
10908 lt_tmp_lt_search_path_spec=
10909 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10910 for lt_sys_path in $lt_search_path_spec; do
10911 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10912 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10914 test -d "$lt_sys_path" && \
10915 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10918 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10919 BEGIN {RS=" "; FS="/|\n";} {
10922 for (lt_i = NF; lt_i > 0; lt_i--) {
10923 if ($lt_i != "" && $lt_i != ".") {
10924 if ($lt_i == "..") {
10927 if (lt_count == 0) {
10928 lt_foo="/" $lt_i lt_foo;
10935 if (lt_foo != "") { lt_freq[lt_foo]++; }
10936 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10938 # AWK program above erroneously prepends '/' to C:/dos/paths
10941 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10942 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10944 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10948 library_names_spec=
10949 libname_spec='lib$name'
10953 postuninstall_cmds=
10957 shlibpath_overrides_runpath=unknown
10959 dynamic_linker="$host_os ld.so"
10960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10961 need_lib_prefix=unknown
10962 hardcode_into_libs=no
10964 # when you set need_version to no, make sure it does not cause -set_version
10965 # flags to be left without arguments
10966 need_version=unknown
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10972 shlibpath_var=LIBPATH
10974 # AIX 3 has no versioning support, so we append a major version to the name.
10975 soname_spec='${libname}${release}${shared_ext}$major'
10982 hardcode_into_libs=yes
10983 if test "$host_cpu" = ia64; then
10984 # AIX 5 supports IA64
10985 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10986 shlibpath_var=LD_LIBRARY_PATH
10988 # With GCC up to 2.95.x, collect2 would create an import file
10989 # for dependence libraries. The import file would start with
10990 # the line `#! .'. This would cause the generated library to
10991 # depend on `.', always an invalid library. This was fixed in
10992 # development snapshots of GCC prior to 3.0.
10994 aix4 | aix4.[01] | aix4.[01].*)
10995 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10997 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11000 can_build_shared=no
11004 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11005 # soname into executable. Probably we can add versioning support to
11006 # collect2, so additional links can be useful in future.
11007 if test "$aix_use_runtimelinking" = yes; then
11008 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11009 # instead of lib<name>.a to let people know that these are not
11010 # typical AIX shared libraries.
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 # We preserve .a as extension for shared libraries through AIX4.2
11014 # and later when we are not doing run time linking.
11015 library_names_spec='${libname}${release}.a $libname.a'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11018 shlibpath_var=LIBPATH
11025 # Since July 2007 AmigaOS4 officially supports .so libraries.
11026 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 library_names_spec='$libname.ixlibrary $libname.a'
11031 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11032 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'
11038 library_names_spec='${libname}${shared_ext}'
11039 dynamic_linker="$host_os ld.so"
11040 shlibpath_var=LIBRARY_PATH
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11048 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11051 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11052 # the default ld.so.conf also contains /usr/contrib/lib and
11053 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11054 # libtool to hard-code these into programs
11057 cygwin* | mingw* | pw32* | cegcc*)
11058 version_type=windows
11063 case $GCC,$cc_basename in
11066 library_names_spec='$libname.dll.a'
11067 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11068 postinstall_cmds='base_file=`basename \${file}`~
11069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11070 dldir=$destdir/`dirname \$dlpath`~
11071 test -d \$dldir || mkdir -p \$dldir~
11072 $install_prog $dir/$dlname \$dldir/$dlname~
11073 chmod a+x \$dldir/$dlname~
11074 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11075 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11078 dlpath=$dir/\$dldll~
11080 shlibpath_overrides_runpath=yes
11084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11090 # MinGW DLLs use traditional 'lib' prefix
11091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11094 # pw32 DLLs use 'pw' prefix rather than 'lib'
11095 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11098 dynamic_linker='Win32 ld.exe'
11103 libname_spec='$name'
11104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11105 library_names_spec='${libname}.dll.lib'
11109 sys_lib_search_path_spec=
11112 for lt_path in $LIB
11115 # Let DOS variable expansion print the short 8.3 style file name.
11116 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11117 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11120 # Convert to MSYS style.
11121 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11124 # Convert to unix form, then to dos form, then back to unix form
11125 # but this time dos style (no spaces!) so that the unix form looks
11126 # like /cygdrive/c/PROGRA~1:/cygdr...
11127 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11128 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11129 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11132 sys_lib_search_path_spec="$LIB"
11133 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11134 # It is most probably a Windows format PATH.
11135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11139 # FIXME: find the short name or the path components, as spaces are
11140 # common. (e.g. "Program Files" -> "PROGRA~1")
11144 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11145 postinstall_cmds='base_file=`basename \${file}`~
11146 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11147 dldir=$destdir/`dirname \$dlpath`~
11148 test -d \$dldir || mkdir -p \$dldir~
11149 $install_prog $dir/$dlname \$dldir/$dlname'
11150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11151 dlpath=$dir/\$dldll~
11153 shlibpath_overrides_runpath=yes
11154 dynamic_linker='Win32 link.exe'
11158 # Assume MSVC wrapper
11159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11160 dynamic_linker='Win32 ld.exe'
11163 # FIXME: first we should search . and the directory the executable is in
11167 darwin* | rhapsody*)
11168 dynamic_linker="$host_os dyld"
11169 version_type=darwin
11172 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11173 soname_spec='${libname}${release}${major}$shared_ext'
11174 shlibpath_overrides_runpath=yes
11175 shlibpath_var=DYLD_LIBRARY_PATH
11176 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11178 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11187 soname_spec='${libname}${release}${shared_ext}$major'
11188 shlibpath_var=LD_LIBRARY_PATH
11195 freebsd* | dragonfly*)
11196 # DragonFly does not have aout. When/if they implement a new
11197 # versioning mechanism, adjust this.
11198 if test -x /usr/bin/objformat; then
11199 objformat=`/usr/bin/objformat`
11202 freebsd[123]*) objformat=aout ;;
11203 *) objformat=elf ;;
11206 version_type=freebsd-$objformat
11207 case $version_type in
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11218 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=yes
11223 freebsd3.[01]* | freebsdelf3.[01]*)
11224 shlibpath_overrides_runpath=yes
11225 hardcode_into_libs=yes
11227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11229 shlibpath_overrides_runpath=no
11230 hardcode_into_libs=yes
11232 *) # from 4.6 on, and DragonFly
11233 shlibpath_overrides_runpath=yes
11234 hardcode_into_libs=yes
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11244 soname_spec='${libname}${release}${shared_ext}$major'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 hardcode_into_libs=yes
11253 dynamic_linker="$host_os runtime_loader"
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LIBRARY_PATH
11257 shlibpath_overrides_runpath=yes
11258 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11259 hardcode_into_libs=yes
11262 hpux9* | hpux10* | hpux11*)
11263 # Give a soname corresponding to the major version so that dld.sl refuses to
11264 # link against other versions.
11271 hardcode_into_libs=yes
11272 dynamic_linker="$host_os dld.so"
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 if test "X$HPUX_IA64_MODE" = X32; then
11278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286 hardcode_into_libs=yes
11287 dynamic_linker="$host_os dld.sl"
11288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 soname_spec='${libname}${release}${shared_ext}$major'
11292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11297 dynamic_linker="$host_os dld.sl"
11298 shlibpath_var=SHLIB_PATH
11299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11304 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11305 postinstall_cmds='chmod 555 $lib'
11306 # or fails outright, so override atomically:
11307 install_override_mode=555
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=no
11319 hardcode_into_libs=yes
11322 irix5* | irix6* | nonstopux*)
11324 nonstopux*) version_type=nonstopux ;;
11326 if test "$lt_cv_prog_gnu_ld" = yes; then
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11337 irix5* | nonstopux*)
11338 libsuff= shlibsuff=
11341 case $LD in # libtool.m4 will add one of these switches to LD
11342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11343 libsuff= shlibsuff= libmagic=32-bit;;
11344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11345 libsuff=32 shlibsuff=N32 libmagic=N32;;
11346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11348 *) libsuff= shlibsuff= libmagic=never-match;;
11352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11353 shlibpath_overrides_runpath=no
11354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11356 hardcode_into_libs=yes
11359 # No shared lib support for Linux oldld, aout, or coff.
11360 linux*oldld* | linux*aout* | linux*coff*)
11364 # This must be Linux ELF.
11365 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11372 shlibpath_var=LD_LIBRARY_PATH
11373 shlibpath_overrides_runpath=no
11375 # Some binutils ld are patched to set DT_RUNPATH
11376 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11377 $as_echo_n "(cached) " >&6
11379 lt_cv_shlibpath_overrides_runpath=no
11380 save_LDFLAGS=$LDFLAGS
11381 save_libdir=$libdir
11382 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11383 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h. */
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11397 lt_cv_shlibpath_overrides_runpath=yes
11400 rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 LDFLAGS=$save_LDFLAGS
11403 libdir=$save_libdir
11407 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11409 # This implies no fast_install, which is unacceptable.
11410 # Some rework will be needed to allow for fast_install
11411 # before this can be enabled.
11412 hardcode_into_libs=yes
11414 # Append ld.so.conf contents to the search path
11415 if test -f /etc/ld.so.conf; then
11416 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' ' '`
11417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11420 # We used to test for /lib/ld.so.1 and disable shared libraries on
11421 # powerpc, because MkLinux only supported shared libraries with the
11422 # GNU dynamic linker. Since this was broken with cross compilers,
11423 # most powerpc-linux boxes support dynamic linking these days and
11424 # people can always --disable-shared, the test was removed, and we
11425 # assume the GNU/Linux dynamic linker is in use.
11426 dynamic_linker='GNU/Linux ld.so'
11433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11436 dynamic_linker='NetBSD (a.out) ld.so'
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 dynamic_linker='NetBSD ld.elf_so'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 shlibpath_overrides_runpath=yes
11444 hardcode_into_libs=yes
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459 soname_spec='${libname}${release}${shared_ext}$major'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=no
11462 hardcode_into_libs=yes
11463 dynamic_linker='ldqnx.so'
11468 sys_lib_dlsearch_path_spec="/usr/lib"
11470 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11472 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11473 *) need_version=no ;;
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11480 openbsd2.[89] | openbsd2.[89].*)
11481 shlibpath_overrides_runpath=no
11484 shlibpath_overrides_runpath=yes
11488 shlibpath_overrides_runpath=yes
11493 libname_spec='$name'
11496 library_names_spec='$libname${shared_ext} $libname.a'
11497 dynamic_linker='OS/2 ld.exe'
11498 shlibpath_var=LIBPATH
11501 osf3* | osf4* | osf5*)
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 hardcode_into_libs=yes
11525 # ldd complains unless libraries are executable
11526 postinstall_cmds='chmod +x $lib'
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath=yes
11535 if test "$with_gnu_ld" = yes; then
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 case $host_vendor in
11548 shlibpath_overrides_runpath=no
11550 runpath_var=LD_RUN_PATH
11558 shlibpath_overrides_runpath=no
11559 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11565 if test -d /usr/nec ;then
11567 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11568 soname_spec='$libname${shared_ext}.$major'
11569 shlibpath_var=LD_LIBRARY_PATH
11573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11574 version_type=freebsd-elf
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11582 if test "$with_gnu_ld" = yes; then
11583 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11585 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11592 sys_lib_dlsearch_path_spec='/usr/lib'
11596 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 shlibpath_var=LD_LIBRARY_PATH
11602 shlibpath_overrides_runpath=no
11603 hardcode_into_libs=yes
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11618 $as_echo "$dynamic_linker" >&6; }
11619 test "$dynamic_linker" = no && can_build_shared=no
11621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11622 if test "$GCC" = yes; then
11623 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11626 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11627 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11629 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11630 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728 test -n "$runpath_var" ||
11729 test "X$hardcode_automatic" = "Xyes" ; then
11731 # We can hardcode non-existent directories.
11732 if test "$hardcode_direct" != no &&
11733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734 # have to relink, otherwise we might link with an installed library
11735 # when we should be linking with a yet-to-be-installed one
11736 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11737 test "$hardcode_minus_L" != no; then
11738 # Linking always hardcodes the temporary library directory.
11739 hardcode_action=relink
11741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742 hardcode_action=immediate
11745 # We cannot hardcode anything, or else we can only hardcode existing
11747 hardcode_action=unsupported
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11752 if test "$hardcode_action" = relink ||
11753 test "$inherit_rpath" = yes; then
11754 # Fast installation is not supported
11755 enable_fast_install=no
11756 elif test "$shlibpath_overrides_runpath" = yes ||
11757 test "$enable_shared" = no; then
11758 # Fast installation is not necessary
11759 enable_fast_install=needless
11767 if test "x$enable_dlopen" != xyes; then
11768 enable_dlopen=unknown
11769 enable_dlopen_self=unknown
11770 enable_dlopen_self_static=unknown
11777 lt_cv_dlopen="load_add_on"
11779 lt_cv_dlopen_self=yes
11782 mingw* | pw32* | cegcc*)
11783 lt_cv_dlopen="LoadLibrary"
11788 lt_cv_dlopen="dlopen"
11793 # if libdl is installed we need to link against it
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if ${ac_cv_lib_dl_dlopen+:} false; then :
11797 $as_echo_n "(cached) " >&6
11799 ac_check_lib_save_LIBS=$LIBS
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11804 /* Override any GCC internal prototype to avoid an error.
11805 Use char because int might match the return type of a GCC
11806 builtin and then its argument prototype would still apply. */
11819 if ac_fn_c_try_link "$LINENO"; then :
11820 ac_cv_lib_dl_dlopen=yes
11822 ac_cv_lib_dl_dlopen=no
11824 rm -f core conftest.err conftest.$ac_objext \
11825 conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_lib_save_LIBS
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11829 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11830 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11834 lt_cv_dlopen="dyld"
11836 lt_cv_dlopen_self=yes
11843 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11844 if test "x$ac_cv_func_shl_load" = xyes; then :
11845 lt_cv_dlopen="shl_load"
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11848 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11849 if ${ac_cv_lib_dld_shl_load+:} false; then :
11850 $as_echo_n "(cached) " >&6
11852 ac_check_lib_save_LIBS=$LIBS
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11867 return shl_load ();
11872 if ac_fn_c_try_link "$LINENO"; then :
11873 ac_cv_lib_dld_shl_load=yes
11875 ac_cv_lib_dld_shl_load=no
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11882 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11883 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11886 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11887 if test "x$ac_cv_func_dlopen" = xyes; then :
11888 lt_cv_dlopen="dlopen"
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11892 if ${ac_cv_lib_dl_dlopen+:} false; then :
11893 $as_echo_n "(cached) " >&6
11895 ac_check_lib_save_LIBS=$LIBS
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11915 if ac_fn_c_try_link "$LINENO"; then :
11916 ac_cv_lib_dl_dlopen=yes
11918 ac_cv_lib_dl_dlopen=no
11920 rm -f core conftest.err conftest.$ac_objext \
11921 conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11926 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11927 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11930 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11931 if ${ac_cv_lib_svld_dlopen+:} false; then :
11932 $as_echo_n "(cached) " >&6
11934 ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-lsvld $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h. */
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11954 if ac_fn_c_try_link "$LINENO"; then :
11955 ac_cv_lib_svld_dlopen=yes
11957 ac_cv_lib_svld_dlopen=no
11959 rm -f core conftest.err conftest.$ac_objext \
11960 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11964 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11965 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11969 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11970 if ${ac_cv_lib_dld_dld_link+:} false; then :
11971 $as_echo_n "(cached) " >&6
11973 ac_check_lib_save_LIBS=$LIBS
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h. */
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11988 return dld_link ();
11993 if ac_fn_c_try_link "$LINENO"; then :
11994 ac_cv_lib_dld_dld_link=yes
11996 ac_cv_lib_dld_dld_link=no
11998 rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12003 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12004 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12005 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12026 if test "x$lt_cv_dlopen" != xno; then
12032 case $lt_cv_dlopen in
12034 save_CPPFLAGS="$CPPFLAGS"
12035 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12037 save_LDFLAGS="$LDFLAGS"
12038 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12041 LIBS="$lt_cv_dlopen_libs $LIBS"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12044 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12045 if ${lt_cv_dlopen_self+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if test "$cross_compiling" = yes; then :
12049 lt_cv_dlopen_self=cross
12051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12052 lt_status=$lt_dlunknown
12053 cat > conftest.$ac_ext <<_LT_EOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12064 # define LT_DLGLOBAL RTLD_GLOBAL
12067 # define LT_DLGLOBAL DL_GLOBAL
12069 # define LT_DLGLOBAL 0
12073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12074 find out it does not work in some platform. */
12075 #ifndef LT_DLLAZY_OR_NOW
12077 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12080 # define LT_DLLAZY_OR_NOW DL_LAZY
12083 # define LT_DLLAZY_OR_NOW RTLD_NOW
12086 # define LT_DLLAZY_OR_NOW DL_NOW
12088 # define LT_DLLAZY_OR_NOW 0
12095 /* When -fvisbility=hidden is used, assume the code has been annotated
12096 correspondingly for the symbols needed. */
12097 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12098 int fnord () __attribute__((visibility("default")));
12101 int fnord () { return 42; }
12104 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12105 int status = $lt_dlunknown;
12109 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12112 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12113 else puts (dlerror ());
12115 /* dlclose (self); */
12123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12124 (eval $ac_link) 2>&5
12126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12128 (./conftest; exit; ) >&5 2>/dev/null
12130 case x$lt_status in
12131 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12132 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12133 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12136 # compilation failed
12137 lt_cv_dlopen_self=no
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12145 $as_echo "$lt_cv_dlopen_self" >&6; }
12147 if test "x$lt_cv_dlopen_self" = xyes; then
12148 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12150 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12151 if ${lt_cv_dlopen_self_static+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 if test "$cross_compiling" = yes; then :
12155 lt_cv_dlopen_self_static=cross
12157 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158 lt_status=$lt_dlunknown
12159 cat > conftest.$ac_ext <<_LT_EOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12170 # define LT_DLGLOBAL RTLD_GLOBAL
12173 # define LT_DLGLOBAL DL_GLOBAL
12175 # define LT_DLGLOBAL 0
12179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180 find out it does not work in some platform. */
12181 #ifndef LT_DLLAZY_OR_NOW
12183 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12186 # define LT_DLLAZY_OR_NOW DL_LAZY
12189 # define LT_DLLAZY_OR_NOW RTLD_NOW
12192 # define LT_DLLAZY_OR_NOW DL_NOW
12194 # define LT_DLLAZY_OR_NOW 0
12201 /* When -fvisbility=hidden is used, assume the code has been annotated
12202 correspondingly for the symbols needed. */
12203 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12204 int fnord () __attribute__((visibility("default")));
12207 int fnord () { return 42; }
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12218 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12219 else puts (dlerror ());
12221 /* dlclose (self); */
12229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12230 (eval $ac_link) 2>&5
12232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12234 (./conftest; exit; ) >&5 2>/dev/null
12236 case x$lt_status in
12237 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12238 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12239 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12242 # compilation failed
12243 lt_cv_dlopen_self_static=no
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12251 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12254 CPPFLAGS="$save_CPPFLAGS"
12255 LDFLAGS="$save_LDFLAGS"
12260 case $lt_cv_dlopen_self in
12261 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12262 *) enable_dlopen_self=unknown ;;
12265 case $lt_cv_dlopen_self_static in
12266 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12267 *) enable_dlopen_self_static=unknown ;;
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12290 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12291 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12292 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12293 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295 $as_echo "yes" >&6; }
12297 # FIXME - insert some real tests, host_os isn't really good enough
12300 if test -n "$STRIP" ; then
12301 striplib="$STRIP -x"
12302 old_striplib="$STRIP -S"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12304 $as_echo "yes" >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12328 # Report which library types will actually be built
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12330 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12332 $as_echo "$can_build_shared" >&6; }
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12335 $as_echo_n "checking whether to build shared libraries... " >&6; }
12336 test "$can_build_shared" = "no" && enable_shared=no
12338 # On AIX, shared libraries and static libraries use the same namespace, and
12339 # are all built from PIC.
12342 test "$enable_shared" = yes && enable_static=no
12343 if test -n "$RANLIB"; then
12344 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12345 postinstall_cmds='$RANLIB $lib'
12350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12351 test "$enable_shared" = yes && enable_static=no
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12356 $as_echo "$enable_shared" >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12359 $as_echo_n "checking whether to build static libraries... " >&6; }
12360 # Make sure either enable_shared or enable_static is yes.
12361 test "$enable_shared" = yes || enable_static=yes
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12363 $as_echo "$enable_static" >&6; }
12370 ac_cpp='$CPP $CPPFLAGS'
12371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12377 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12378 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12379 (test "X$CXX" != "Xg++"))) ; then
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12386 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12387 if test -z "$CXXCPP"; then
12388 if ${ac_cv_prog_CXXCPP+:} false; then :
12389 $as_echo_n "(cached) " >&6
12391 # Double quotes because CXXCPP needs to be expanded
12392 for CXXCPP in "$CXX -E" "/lib/cpp"
12394 ac_preproc_ok=false
12395 for ac_cxx_preproc_warn_flag in '' yes
12397 # Use a header file that comes with gcc, so configuring glibc
12398 # with a fresh cross-compiler works.
12399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400 # <limits.h> exists even on freestanding compilers.
12401 # On the NeXT, cc -E runs the code through the compiler's parser,
12402 # not just through cpp. "Syntax error" is here to catch this case.
12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h. */
12406 # include <limits.h>
12408 # include <assert.h>
12412 if ac_fn_cxx_try_cpp "$LINENO"; then :
12415 # Broken: fails on valid input.
12418 rm -f conftest.err conftest.i conftest.$ac_ext
12420 # OK, works on sane cases. Now check whether nonexistent headers
12421 # can be detected and how.
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424 #include <ac_nonexistent.h>
12426 if ac_fn_cxx_try_cpp "$LINENO"; then :
12427 # Broken: success on invalid input.
12430 # Passes both tests.
12434 rm -f conftest.err conftest.i conftest.$ac_ext
12437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12438 rm -f conftest.i conftest.err conftest.$ac_ext
12439 if $ac_preproc_ok; then :
12444 ac_cv_prog_CXXCPP=$CXXCPP
12447 CXXCPP=$ac_cv_prog_CXXCPP
12449 ac_cv_prog_CXXCPP=$CXXCPP
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12452 $as_echo "$CXXCPP" >&6; }
12453 ac_preproc_ok=false
12454 for ac_cxx_preproc_warn_flag in '' yes
12456 # Use a header file that comes with gcc, so configuring glibc
12457 # with a fresh cross-compiler works.
12458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12459 # <limits.h> exists even on freestanding compilers.
12460 # On the NeXT, cc -E runs the code through the compiler's parser,
12461 # not just through cpp. "Syntax error" is here to catch this case.
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12465 # include <limits.h>
12467 # include <assert.h>
12471 if ac_fn_cxx_try_cpp "$LINENO"; then :
12474 # Broken: fails on valid input.
12477 rm -f conftest.err conftest.i conftest.$ac_ext
12479 # OK, works on sane cases. Now check whether nonexistent headers
12480 # can be detected and how.
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12483 #include <ac_nonexistent.h>
12485 if ac_fn_cxx_try_cpp "$LINENO"; then :
12486 # Broken: success on invalid input.
12489 # Passes both tests.
12493 rm -f conftest.err conftest.i conftest.$ac_ext
12496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12497 rm -f conftest.i conftest.err conftest.$ac_ext
12498 if $ac_preproc_ok; then :
12501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12503 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12504 See \`config.log' for more details" "$LINENO" 5 ; }
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12514 _lt_caught_CXX_error=yes
12518 ac_cpp='$CXXCPP $CPPFLAGS'
12519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12523 archive_cmds_need_lc_CXX=no
12524 allow_undefined_flag_CXX=
12525 always_export_symbols_CXX=no
12526 archive_expsym_cmds_CXX=
12527 compiler_needs_object_CXX=no
12528 export_dynamic_flag_spec_CXX=
12529 hardcode_direct_CXX=no
12530 hardcode_direct_absolute_CXX=no
12531 hardcode_libdir_flag_spec_CXX=
12532 hardcode_libdir_flag_spec_ld_CXX=
12533 hardcode_libdir_separator_CXX=
12534 hardcode_minus_L_CXX=no
12535 hardcode_shlibpath_var_CXX=unsupported
12536 hardcode_automatic_CXX=no
12537 inherit_rpath_CXX=no
12539 module_expsym_cmds_CXX=
12540 link_all_deplibs_CXX=unknown
12541 old_archive_cmds_CXX=$old_archive_cmds
12542 reload_flag_CXX=$reload_flag
12543 reload_cmds_CXX=$reload_cmds
12544 no_undefined_flag_CXX=
12545 whole_archive_flag_spec_CXX=
12546 enable_shared_with_static_runtimes_CXX=no
12548 # Source file extension for C++ test sources.
12551 # Object file extension for compiled C++ test sources.
12555 # No sense in running all these tests if we already determined that
12556 # the CXX compiler isn't working. Some variables (like enable_shared)
12557 # are currently assumed to apply to all compilers on this platform,
12558 # and will be corrupted by setting them based on a non-working compiler.
12559 if test "$_lt_caught_CXX_error" != yes; then
12560 # Code to be used in simple compile tests
12561 lt_simple_compile_test_code="int some_variable = 0;"
12563 # Code to be used in simple link tests
12564 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12573 # If no C compiler was specified, use CC.
12576 # If no C compiler flags were specified, use CFLAGS.
12577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12579 # Allow CC to be a program name with arguments.
12583 # save warnings/boilerplate of simple test code
12584 ac_outfile=conftest.$ac_objext
12585 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12586 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587 _lt_compiler_boilerplate=`cat conftest.err`
12590 ac_outfile=conftest.$ac_objext
12591 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12592 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12593 _lt_linker_boilerplate=`cat conftest.err`
12597 # Allow CC to be a program name with arguments.
12599 lt_save_CFLAGS=$CFLAGS
12603 lt_save_with_gnu_ld=$with_gnu_ld
12604 lt_save_path_LD=$lt_cv_path_LD
12605 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12606 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12608 $as_unset lt_cv_prog_gnu_ld
12610 if test -n "${lt_cv_path_LDCXX+set}"; then
12611 lt_cv_path_LD=$lt_cv_path_LDCXX
12613 $as_unset lt_cv_path_LD
12615 test -z "${LDCXX+set}" || LD=$LDCXX
12620 for cc_temp in $compiler""; do
12622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12628 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12631 if test -n "$compiler"; then
12632 # We don't want -fno-exception when compiling C++ code, so set the
12633 # no_builtin_flag separately
12634 if test "$GXX" = yes; then
12635 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12637 lt_prog_compiler_no_builtin_flag_CXX=
12640 if test "$GXX" = yes; then
12641 # Set up default GNU C++ configuration
12645 # Check whether --with-gnu-ld was given.
12646 if test "${with_gnu_ld+set}" = set; then :
12647 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12653 if test "$GCC" = yes; then
12654 # Check if gcc -print-prog-name=ld gives a path.
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12656 $as_echo_n "checking for ld used by $CC... " >&6; }
12659 # gcc leaves a trailing carriage return which upsets mingw
12660 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12662 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12665 # Accept absolute paths.
12667 re_direlt='/[^/][^/]*/\.\./'
12668 # Canonicalize the pathname of ld
12669 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12670 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12671 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12673 test -z "$LD" && LD="$ac_prog"
12676 # If it fails, then pretend we aren't using GCC.
12680 # If it is relative, then search for the first ld in PATH.
12681 with_gnu_ld=unknown
12684 elif test "$with_gnu_ld" = yes; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12686 $as_echo_n "checking for GNU ld... " >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12689 $as_echo_n "checking for non-GNU ld... " >&6; }
12691 if ${lt_cv_path_LD+:} false; then :
12692 $as_echo_n "(cached) " >&6
12694 if test -z "$LD"; then
12695 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12696 for ac_dir in $PATH; do
12698 test -z "$ac_dir" && ac_dir=.
12699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12700 lt_cv_path_LD="$ac_dir/$ac_prog"
12701 # Check to see if the program is GNU ld. I'd rather use --version,
12702 # but apparently some variants of GNU ld only accept -v.
12703 # Break only if it was the GNU/non-GNU ld that we prefer.
12704 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12705 *GNU* | *'with BFD'*)
12706 test "$with_gnu_ld" != no && break
12709 test "$with_gnu_ld" != yes && break
12716 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12720 LD="$lt_cv_path_LD"
12721 if test -n "$LD"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12723 $as_echo "$LD" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12728 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12730 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12731 if ${lt_cv_prog_gnu_ld+:} false; then :
12732 $as_echo_n "(cached) " >&6
12734 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12735 case `$LD -v 2>&1 </dev/null` in
12736 *GNU* | *'with BFD'*)
12737 lt_cv_prog_gnu_ld=yes
12740 lt_cv_prog_gnu_ld=no
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12745 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12746 with_gnu_ld=$lt_cv_prog_gnu_ld
12754 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12755 # archiving commands below assume that GNU ld is being used.
12756 if test "$with_gnu_ld" = yes; then
12757 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12758 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'
12760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12763 # If archive_cmds runs LD, not CC, wlarc should be empty
12764 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12765 # investigate it a little bit more. (MM)
12768 # ancient GNU ld didn't support --whole-archive et. al.
12769 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12770 $GREP 'no-whole-archive' > /dev/null; then
12771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12773 whole_archive_flag_spec_CXX=
12779 # A generic and very simple default shared library creation
12780 # command for GNU C++ for the case where it uses the native
12781 # linker, instead of GNU ld. If possible, this setting should
12782 # overridden to take advantage of the native linker features on
12783 # the platform it is being used on.
12784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12787 # Commands to make compiler produce verbose output that lists
12788 # what "hidden" libraries, object files and flags are used when
12789 # linking a shared library.
12790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12798 # PORTME: fill in a description of your system's C++ link characteristics
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12804 # FIXME: insert proper C++ library support
12808 if test "$host_cpu" = ia64; then
12809 # On IA64, the linker does run time linking by default, so we don't
12810 # have to do anything special.
12811 aix_use_runtimelinking=no
12812 exp_sym_flag='-Bexport'
12815 aix_use_runtimelinking=no
12817 # Test if we are trying to use run time linking or normal
12818 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12819 # need to do runtime linking.
12820 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12821 for ld_flag in $LDFLAGS; do
12824 aix_use_runtimelinking=yes
12832 exp_sym_flag='-bexport'
12833 no_entry_flag='-bnoentry'
12836 # When large executables or shared objects are built, AIX ld can
12837 # have problems creating the table of contents. If linking a library
12838 # or program results in "error TOC overflow" add -mminimal-toc to
12839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12842 archive_cmds_CXX=''
12843 hardcode_direct_CXX=yes
12844 hardcode_direct_absolute_CXX=yes
12845 hardcode_libdir_separator_CXX=':'
12846 link_all_deplibs_CXX=yes
12847 file_list_spec_CXX='${wl}-f,'
12849 if test "$GXX" = yes; then
12850 case $host_os in aix4.[012]|aix4.[012].*)
12851 # We only want to do this on AIX 4.2 and lower, the check
12852 # below for broken collect2 doesn't work under 4.3+
12853 collect2name=`${CC} -print-prog-name=collect2`
12854 if test -f "$collect2name" &&
12855 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12857 # We have reworked collect2
12860 # We have old collect2
12861 hardcode_direct_CXX=unsupported
12862 # It fails to find uninstalled libraries when the uninstalled
12863 # path is not listed in the libpath. Setting hardcode_minus_L
12864 # to unsupported forces relinking
12865 hardcode_minus_L_CXX=yes
12866 hardcode_libdir_flag_spec_CXX='-L$libdir'
12867 hardcode_libdir_separator_CXX=
12870 shared_flag='-shared'
12871 if test "$aix_use_runtimelinking" = yes; then
12872 shared_flag="$shared_flag "'${wl}-G'
12876 if test "$host_cpu" = ia64; then
12877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12878 # chokes on -Wl,-G. The following line is correct:
12881 if test "$aix_use_runtimelinking" = yes; then
12882 shared_flag='${wl}-G'
12884 shared_flag='${wl}-bM:SRE'
12889 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12890 # It seems that -bexpall does not export symbols beginning with
12891 # underscore (_), so it is better to generate a list of symbols to
12893 always_export_symbols_CXX=yes
12894 if test "$aix_use_runtimelinking" = yes; then
12895 # Warning - without using the other runtime loading flags (-brtl),
12896 # -berok will link without error, but may produce a broken library.
12897 allow_undefined_flag_CXX='-berok'
12898 # Determine the default libpath from the value encoded in an empty
12900 if test "${lt_cv_aix_libpath+set}" = set; then
12901 aix_libpath=$lt_cv_aix_libpath
12903 if ${lt_cv_aix_libpath__CXX+:} false; then :
12904 $as_echo_n "(cached) " >&6
12906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12917 if ac_fn_cxx_try_link "$LINENO"; then :
12919 lt_aix_libpath_sed='
12920 /Import File Strings/,/^$/ {
12922 s/^0 *\([^ ]*\) *$/\1/
12926 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12927 # Check for a 64-bit object if we didn't find anything.
12928 if test -z "$lt_cv_aix_libpath__CXX"; then
12929 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 if test -z "$lt_cv_aix_libpath__CXX"; then
12935 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12940 aix_libpath=$lt_cv_aix_libpath__CXX
12943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12945 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"
12947 if test "$host_cpu" = ia64; then
12948 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12949 allow_undefined_flag_CXX="-z nodefs"
12950 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"
12952 # Determine the default libpath from the value encoded in an
12953 # empty executable.
12954 if test "${lt_cv_aix_libpath+set}" = set; then
12955 aix_libpath=$lt_cv_aix_libpath
12957 if ${lt_cv_aix_libpath__CXX+:} false; then :
12958 $as_echo_n "(cached) " >&6
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12971 if ac_fn_cxx_try_link "$LINENO"; then :
12973 lt_aix_libpath_sed='
12974 /Import File Strings/,/^$/ {
12976 s/^0 *\([^ ]*\) *$/\1/
12980 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981 # Check for a 64-bit object if we didn't find anything.
12982 if test -z "$lt_cv_aix_libpath__CXX"; then
12983 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 if test -z "$lt_cv_aix_libpath__CXX"; then
12989 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12994 aix_libpath=$lt_cv_aix_libpath__CXX
12997 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12998 # Warning - without using the other run time loading flags,
12999 # -berok will link without error, but may produce a broken library.
13000 no_undefined_flag_CXX=' ${wl}-bernotok'
13001 allow_undefined_flag_CXX=' ${wl}-berok'
13002 if test "$with_gnu_ld" = yes; then
13003 # We only use this code for GNU lds that support --whole-archive.
13004 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13006 # Exported symbols can be pulled into shared objects from archives
13007 whole_archive_flag_spec_CXX='$convenience'
13009 archive_cmds_need_lc_CXX=yes
13010 # This is similar to how AIX traditionally builds its shared
13012 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'
13018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13019 allow_undefined_flag_CXX=unsupported
13020 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13021 # support --undefined. This deserves some investigation. FIXME
13022 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029 case $cc_basename in
13031 # FIXME: insert proper C++ library support
13037 cygwin* | mingw* | pw32* | cegcc*)
13038 case $GXX,$cc_basename in
13041 # hardcode_libdir_flag_spec is actually meaningless, as there is
13042 # no search path for DLLs.
13043 hardcode_libdir_flag_spec_CXX=' '
13044 allow_undefined_flag_CXX=unsupported
13045 always_export_symbols_CXX=yes
13046 file_list_spec_CXX='@'
13047 # Tell ltmain to make .lib files, not .a files.
13049 # Tell ltmain to make .dll files, not .so files.
13051 # FIXME: Setting linknames here is a bad hack.
13052 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13053 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13054 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13056 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13058 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13060 # The linker will not automatically build a static lib if we build a DLL.
13061 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13062 enable_shared_with_static_runtimes_CXX=yes
13064 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13065 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13066 lt_tool_outputfile="@TOOL_OUTPUT@"~
13067 case $lt_outputfile in
13070 lt_outputfile="$lt_outputfile.exe"
13071 lt_tool_outputfile="$lt_tool_outputfile.exe"
13074 func_to_tool_file "$lt_outputfile"~
13075 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13076 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13077 $RM "$lt_outputfile.manifest";
13082 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13083 # as there is no search path for DLLs.
13084 hardcode_libdir_flag_spec_CXX='-L$libdir'
13085 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13086 allow_undefined_flag_CXX=unsupported
13087 always_export_symbols_CXX=no
13088 enable_shared_with_static_runtimes_CXX=yes
13090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13091 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'
13092 # If the export-symbols file already is a .def file (1st line
13093 # is EXPORTS), use it as is; otherwise, prepend...
13094 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13095 cp $export_symbols $output_objdir/$soname.def;
13097 echo EXPORTS > $output_objdir/$soname.def;
13098 cat $export_symbols >> $output_objdir/$soname.def;
13100 $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'
13107 darwin* | rhapsody*)
13110 archive_cmds_need_lc_CXX=no
13111 hardcode_direct_CXX=no
13112 hardcode_automatic_CXX=yes
13113 hardcode_shlibpath_var_CXX=unsupported
13114 if test "$lt_cv_ld_force_load" = "yes"; then
13115 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\"`'
13117 whole_archive_flag_spec_CXX=''
13119 link_all_deplibs_CXX=yes
13120 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13121 case $cc_basename in
13122 ifort*) _lt_dar_can_shared=yes ;;
13123 *) _lt_dar_can_shared=$GCC ;;
13125 if test "$_lt_dar_can_shared" = "yes"; then
13126 output_verbose_link_cmd=func_echo_all
13127 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}"
13128 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129 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}"
13130 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}"
13131 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13132 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}"
13133 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}"
13143 case $cc_basename in
13145 # FIXME: insert proper C++ library support
13149 # Green Hills C++ Compiler
13150 # FIXME: insert proper C++ library support
13154 # FIXME: insert proper C++ library support
13161 # C++ shared libraries reported to be fairly broken before
13167 archive_cmds_need_lc_CXX=no
13170 freebsd* | dragonfly*)
13171 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13180 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13181 link_all_deplibs_CXX=yes
13185 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13186 hardcode_libdir_separator_CXX=:
13187 export_dynamic_flag_spec_CXX='${wl}-E'
13188 hardcode_direct_CXX=yes
13189 hardcode_minus_L_CXX=yes # Not in the search PATH,
13190 # but as the default
13191 # location of the library.
13193 case $cc_basename in
13195 # FIXME: insert proper C++ library support
13199 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'
13200 # Commands to make compiler produce verbose output that lists
13201 # what "hidden" libraries, object files and flags are used when
13202 # linking a shared library.
13204 # There doesn't appear to be a way to prevent this compiler from
13205 # explicitly linking system object files so we need to strip them
13206 # from the output so that they don't get included in the library
13208 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"'
13211 if test "$GXX" = yes; then
13212 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'
13214 # FIXME: insert proper C++ library support
13222 if test $with_gnu_ld = no; then
13223 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13224 hardcode_libdir_separator_CXX=:
13230 export_dynamic_flag_spec_CXX='${wl}-E'
13236 hardcode_direct_CXX=no
13237 hardcode_shlibpath_var_CXX=no
13240 hardcode_direct_CXX=yes
13241 hardcode_direct_absolute_CXX=yes
13242 hardcode_minus_L_CXX=yes # Not in the search PATH,
13243 # but as the default
13244 # location of the library.
13248 case $cc_basename in
13250 # FIXME: insert proper C++ library support
13256 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13259 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13262 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13269 # There doesn't appear to be a way to prevent this compiler from
13270 # explicitly linking system object files so we need to strip them
13271 # from the output so that they don't get included in the library
13273 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"'
13276 if test "$GXX" = yes; then
13277 if test $with_gnu_ld = no; then
13280 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13283 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13286 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'
13291 # FIXME: insert proper C++ library support
13299 hardcode_direct_CXX=no
13300 hardcode_shlibpath_var_CXX=no
13301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302 export_dynamic_flag_spec_CXX='${wl}-E'
13303 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13304 # Instead, shared libraries are loaded at an image base (0x10000000 by
13305 # default) and relocated if they conflict, which is a slow very memory
13306 # consuming and fragmenting process. To avoid this, we pick a random,
13307 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13308 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13309 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'
13310 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'
13313 case $cc_basename in
13316 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'
13318 # Archives containing C++ object files must be created using
13319 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13320 # necessary to make sure instantiated templates are included
13322 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13325 if test "$GXX" = yes; then
13326 if test "$with_gnu_ld" = no; then
13327 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'
13329 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'
13332 link_all_deplibs_CXX=yes
13335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_CXX=:
13337 inherit_rpath_CXX=yes
13340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13341 case $cc_basename in
13343 # Kuck and Associates, Inc. (KAI) C++ Compiler
13345 # KCC will only create a shared library if the output file
13346 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13347 # to its proper name (with version) after linking.
13348 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'
13349 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'
13350 # Commands to make compiler produce verbose output that lists
13351 # what "hidden" libraries, object files and flags are used when
13352 # linking a shared library.
13354 # There doesn't appear to be a way to prevent this compiler from
13355 # explicitly linking system object files so we need to strip them
13356 # from the output so that they don't get included in the library
13358 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"'
13360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13363 # Archives containing C++ object files must be created using
13364 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13365 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13370 # version 8.0 and above of icpc choke on multiply defined symbols
13371 # if we add $predep_objects and $postdep_objects, however 7.1 and
13372 # earlier do not add the objects themselves.
13373 case `$CC -V 2>&1` in
13375 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13376 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'
13378 *) # Version 8.0 or newer
13381 ia64*) tmp_idyn=' -i_dynamic';;
13383 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384 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'
13387 archive_cmds_need_lc_CXX=no
13388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13389 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13390 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13393 # Portland Group C++ compiler
13395 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13396 prelink_cmds_CXX='tpldir=Template.dir~
13398 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13399 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13400 old_archive_cmds_CXX='tpldir=Template.dir~
13402 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13403 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13405 archive_cmds_CXX='tpldir=Template.dir~
13407 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13409 archive_expsym_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 ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13414 *) # Version 6 and above use weak symbols
13415 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13416 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'
13420 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422 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'
13426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13427 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'
13429 runpath_var=LD_RUN_PATH
13430 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13431 hardcode_libdir_separator_CXX=:
13433 # Commands to make compiler produce verbose output that lists
13434 # what "hidden" libraries, object files and flags are used when
13435 # linking a shared library.
13437 # There doesn't appear to be a way to prevent this compiler from
13438 # explicitly linking system object files so we need to strip them
13439 # from the output so that they don't get included in the library
13441 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'
13443 xl* | mpixl* | bgxl*)
13444 # IBM XL 8.0 on PPC, with GNU ld
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448 if test "x$supports_anon_versioning" = xyes; then
13449 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13451 echo "local: *; };" >> $output_objdir/$libname.ver~
13452 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13456 case `$CC -V 2>&1 | sed 5q` in
13459 no_undefined_flag_CXX=' -zdefs'
13460 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461 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'
13462 hardcode_libdir_flag_spec_CXX='-R$libdir'
13463 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'
13464 compiler_needs_object_CXX=yes
13466 # Not sure whether something based on
13467 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13469 output_verbose_link_cmd='func_echo_all'
13471 # Archives containing C++ object files must be created using
13472 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13473 # necessary to make sure instantiated templates are included
13475 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13483 # FIXME: insert proper C++ library support
13488 # FIXME: insert proper C++ library support
13493 case $cc_basename in
13495 # FIXME: insert proper C++ library support
13499 # FIXME: insert proper C++ library support
13506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13507 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13509 hardcode_libdir_flag_spec_CXX='-R$libdir'
13510 hardcode_direct_CXX=yes
13511 hardcode_shlibpath_var_CXX=no
13513 # Workaround some broken pre-1.5 toolchains
13514 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13522 # C++ shared libraries are fairly broken
13527 if test -f /usr/libexec/ld.so; then
13528 hardcode_direct_CXX=yes
13529 hardcode_shlibpath_var_CXX=no
13530 hardcode_direct_absolute_CXX=yes
13531 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13534 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13535 export_dynamic_flag_spec_CXX='${wl}-E'
13536 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13538 output_verbose_link_cmd=func_echo_all
13544 osf3* | osf4* | osf5*)
13545 case $cc_basename in
13547 # Kuck and Associates, Inc. (KAI) C++ Compiler
13549 # KCC will only create a shared library if the output file
13550 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551 # to its proper name (with version) after linking.
13552 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'
13554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13555 hardcode_libdir_separator_CXX=:
13557 # Archives containing C++ object files must be created using
13558 # the KAI C++ compiler.
13560 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13561 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13565 # Rational C++ 2.4.1
13566 # FIXME: insert proper C++ library support
13572 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13573 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'
13574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13577 allow_undefined_flag_CXX=' -expect_unresolved \*'
13578 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'
13579 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13580 echo "-hidden">> $lib.exp~
13581 $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~
13583 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13587 hardcode_libdir_separator_CXX=:
13589 # Commands to make compiler produce verbose output that lists
13590 # what "hidden" libraries, object files and flags are used when
13591 # linking a shared library.
13593 # There doesn't appear to be a way to prevent this compiler from
13594 # explicitly linking system object files so we need to strip them
13595 # from the output so that they don't get included in the library
13597 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"'
13600 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13601 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13604 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'
13607 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'
13611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13612 hardcode_libdir_separator_CXX=:
13614 # Commands to make compiler produce verbose output that lists
13615 # what "hidden" libraries, object files and flags are used when
13616 # linking a shared library.
13617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13620 # FIXME: insert proper C++ library support
13628 # FIXME: insert proper C++ library support
13633 case $cc_basename in
13636 # FIXME: insert proper C++ library support
13641 # FIXME: insert proper C++ library support
13645 # FIXME: insert proper C++ library support
13652 case $cc_basename in
13654 # Sun C++ 4.2, 5.x and Centerline C++
13655 archive_cmds_need_lc_CXX=yes
13656 no_undefined_flag_CXX=' -zdefs'
13657 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659 $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'
13661 hardcode_libdir_flag_spec_CXX='-R$libdir'
13662 hardcode_shlibpath_var_CXX=no
13664 solaris2.[0-5] | solaris2.[0-5].*) ;;
13666 # The compiler driver will combine and reorder linker options,
13667 # but understands `-z linker_flag'.
13668 # Supported since Solaris 2.6 (maybe 2.5.1?)
13669 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13672 link_all_deplibs_CXX=yes
13674 output_verbose_link_cmd='func_echo_all'
13676 # Archives containing C++ object files must be created using
13677 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13678 # necessary to make sure instantiated templates are included
13680 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13683 # Green Hills C++ Compiler
13684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13686 # The C++ compiler must be used to create the archive.
13687 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13690 # GNU C++ compiler with Solaris linker
13691 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13692 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13693 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13694 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13695 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13696 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13698 # Commands to make compiler produce verbose output that lists
13699 # what "hidden" libraries, object files and flags are used when
13700 # linking a shared library.
13701 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13703 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13705 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13709 # Commands to make compiler produce verbose output that lists
13710 # what "hidden" libraries, object files and flags are used when
13711 # linking a shared library.
13712 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13715 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13717 solaris2.[0-5] | solaris2.[0-5].*) ;;
13719 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13728 no_undefined_flag_CXX='${wl}-z,text'
13729 archive_cmds_need_lc_CXX=no
13730 hardcode_shlibpath_var_CXX=no
13731 runpath_var='LD_RUN_PATH'
13733 case $cc_basename in
13735 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745 sysv5* | sco3.2v5* | sco5v6*)
13746 # Note: We can NOT use -z defs as we might desire, because we do not
13747 # link with -lc, and that would cause any symbols used from libc to
13748 # always be unresolved, which means just about no library would
13749 # ever link correctly. If we're not using GNU ld we use -z text
13750 # though, which does catch some bad symbols but isn't as heavy-handed
13752 no_undefined_flag_CXX='${wl}-z,text'
13753 allow_undefined_flag_CXX='${wl}-z,nodefs'
13754 archive_cmds_need_lc_CXX=no
13755 hardcode_shlibpath_var_CXX=no
13756 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13757 hardcode_libdir_separator_CXX=':'
13758 link_all_deplibs_CXX=yes
13759 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13760 runpath_var='LD_RUN_PATH'
13762 case $cc_basename in
13764 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13767 '"$old_archive_cmds_CXX"
13768 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13769 '"$reload_cmds_CXX"
13772 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13779 case $cc_basename in
13781 # NonStop-UX NCC 3.20
13782 # FIXME: insert proper C++ library support
13786 # FIXME: insert proper C++ library support
13793 # FIXME: insert proper C++ library support
13798 # FIXME: insert proper C++ library support
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13804 $as_echo "$ld_shlibs_CXX" >&6; }
13805 test "$ld_shlibs_CXX" = no && can_build_shared=no
13811 ## There is no encapsulation within the following macros, do not change
13812 ## the running order or otherwise move them around unless you know exactly
13813 ## what you are doing...
13814 # Dependencies to place before and after the object being linked:
13815 predep_objects_CXX=
13816 postdep_objects_CXX=
13819 compiler_lib_search_path_CXX=
13821 cat > conftest.$ac_ext <<_LT_EOF
13825 Foo (void) { a = 0; }
13832 _lt_libdeps_save_CFLAGS=$CFLAGS
13833 case "$CC $CFLAGS " in #(
13834 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13835 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13839 (eval $ac_compile) 2>&5
13841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13842 test $ac_status = 0; }; then
13843 # Parse the compiler output and extract the necessary
13844 # objects, libraries and library flags.
13846 # Sentinel used to keep track of whether or not we are before
13847 # the conftest object file.
13848 pre_test_object_deps_done=no
13850 for p in `eval "$output_verbose_link_cmd"`; do
13851 case ${prev}${p} in
13854 # Some compilers place space between "-{L,R}" and the path.
13855 # Remove the space.
13856 if test $p = "-L" ||
13857 test $p = "-R"; then
13862 # Expand the sysroot to ease extracting the directories later.
13863 if test -z "$prev"; then
13865 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13866 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13867 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13871 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13873 if test "$pre_test_object_deps_done" = no; then
13876 # Internal compiler library paths should come after those
13877 # provided the user. The postdeps already come after the
13878 # user supplied libs so there is no need to process them.
13879 if test -z "$compiler_lib_search_path_CXX"; then
13880 compiler_lib_search_path_CXX="${prev}${p}"
13882 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13885 # The "-l" case would never come before the object being
13886 # linked, so don't bother handling this case.
13889 if test -z "$postdeps_CXX"; then
13890 postdeps_CXX="${prev}${p}"
13892 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13898 *.lto.$objext) ;; # Ignore GCC LTO objects
13900 # This assumes that the test object file only shows up
13901 # once in the compiler output.
13902 if test "$p" = "conftest.$objext"; then
13903 pre_test_object_deps_done=yes
13907 if test "$pre_test_object_deps_done" = no; then
13908 if test -z "$predep_objects_CXX"; then
13909 predep_objects_CXX="$p"
13911 predep_objects_CXX="$predep_objects_CXX $p"
13914 if test -z "$postdep_objects_CXX"; then
13915 postdep_objects_CXX="$p"
13917 postdep_objects_CXX="$postdep_objects_CXX $p"
13922 *) ;; # Ignore the rest.
13930 echo "libtool.m4: error: problem compiling CXX test program"
13933 $RM -f confest.$objext
13934 CFLAGS=$_lt_libdeps_save_CFLAGS
13936 # PORTME: override above test on systems where it is broken
13939 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13940 # hack all around it, let's just trust "g++" to DTRT.
13941 predep_objects_CXX=
13942 postdep_objects_CXX=
13947 case `$CC -V 2>&1 | sed 5q` in
13951 # The more standards-conforming stlport4 library is
13952 # incompatible with the Cstd library. Avoid specifying
13953 # it if it's in CXXFLAGS. Ignore libCrun as
13954 # -library=stlport4 depends on it.
13955 case " $CXX $CXXFLAGS " in
13956 *" -library=stlport4 "*)
13957 solaris_use_stlport4=yes
13961 if test "$solaris_use_stlport4" != yes; then
13962 postdeps_CXX='-library=Cstd -library=Crun'
13969 case $cc_basename in
13971 # The more standards-conforming stlport4 library is
13972 # incompatible with the Cstd library. Avoid specifying
13973 # it if it's in CXXFLAGS. Ignore libCrun as
13974 # -library=stlport4 depends on it.
13975 case " $CXX $CXXFLAGS " in
13976 *" -library=stlport4 "*)
13977 solaris_use_stlport4=yes
13981 # Adding this requires a known-good setup of shared libraries for
13982 # Sun compiler versions before 5.6, else PIC objects from an old
13983 # archive will be linked into the output, leading to subtle bugs.
13984 if test "$solaris_use_stlport4" != yes; then
13985 postdeps_CXX='-library=Cstd -library=Crun'
13993 case " $postdeps_CXX " in
13994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13996 compiler_lib_search_dirs_CXX=
13997 if test -n "${compiler_lib_search_path_CXX}"; then
13998 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14031 lt_prog_compiler_wl_CXX=
14032 lt_prog_compiler_pic_CXX=
14033 lt_prog_compiler_static_CXX=
14036 # C++ specific cases for pic, static, wl, etc.
14037 if test "$GXX" = yes; then
14038 lt_prog_compiler_wl_CXX='-Wl,'
14039 lt_prog_compiler_static_CXX='-static'
14043 # All AIX code is PIC.
14044 if test "$host_cpu" = ia64; then
14045 # AIX 5 now supports IA64 processor
14046 lt_prog_compiler_static_CXX='-Bstatic'
14053 # see comment about AmigaOS4 .so support
14054 lt_prog_compiler_pic_CXX='-fPIC'
14057 # FIXME: we need at least 68020 code to build shared libraries, but
14058 # adding the `-m68020' flag to GCC prevents building anything better,
14060 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14065 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14066 # PIC is the default for these OSes.
14068 mingw* | cygwin* | os2* | pw32* | cegcc*)
14069 # This hack is so that the source file can tell whether it is being
14070 # built for inclusion in a dll (and should export symbols for example).
14071 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14072 # (--disable-auto-import) libraries
14073 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14075 darwin* | rhapsody*)
14076 # PIC is the default on this platform
14077 # Common symbols not allowed in MH_DYLIB files
14078 lt_prog_compiler_pic_CXX='-fno-common'
14081 # DJGPP does not support shared libraries at all
14082 lt_prog_compiler_pic_CXX=
14085 # PIC is the default for Haiku.
14086 # The "-static" flag exists, but is broken.
14087 lt_prog_compiler_static_CXX=
14090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14091 # Instead, we relocate shared libraries at runtime.
14094 if test -d /usr/nec; then
14095 lt_prog_compiler_pic_CXX=-Kconform_pic
14099 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14100 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14101 # sets the default TLS model and affects inlining.
14106 lt_prog_compiler_pic_CXX='-fPIC'
14111 # QNX uses GNU C++, but need to define -shared option too, otherwise
14112 # it will coredump.
14113 lt_prog_compiler_pic_CXX='-fPIC -shared'
14116 lt_prog_compiler_pic_CXX='-fPIC'
14122 # All AIX code is PIC.
14123 if test "$host_cpu" = ia64; then
14124 # AIX 5 now supports IA64 processor
14125 lt_prog_compiler_static_CXX='-Bstatic'
14127 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14131 case $cc_basename in
14133 # Green Hills C++ Compiler
14134 # _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"
14138 mingw* | cygwin* | os2* | pw32* | cegcc*)
14139 # This hack is so that the source file can tell whether it is being
14140 # built for inclusion in a dll (and should export symbols for example).
14141 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14144 case $cc_basename in
14146 lt_prog_compiler_pic_CXX='-KPIC'
14149 # Green Hills C++ Compiler
14150 lt_prog_compiler_pic_CXX='-pic'
14156 freebsd* | dragonfly*)
14157 # FreeBSD uses GNU C++
14159 hpux9* | hpux10* | hpux11*)
14160 case $cc_basename in
14162 lt_prog_compiler_wl_CXX='-Wl,'
14163 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14164 if test "$host_cpu" != ia64; then
14165 lt_prog_compiler_pic_CXX='+Z'
14169 lt_prog_compiler_wl_CXX='-Wl,'
14170 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14176 lt_prog_compiler_pic_CXX='+Z'
14185 # This is c89, which is MS Visual C++ (no shared libs)
14186 # Anyone wants to do a port?
14188 irix5* | irix6* | nonstopux*)
14189 case $cc_basename in
14191 lt_prog_compiler_wl_CXX='-Wl,'
14192 lt_prog_compiler_static_CXX='-non_shared'
14193 # CC pic flag -KPIC is the default.
14199 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14200 case $cc_basename in
14203 lt_prog_compiler_wl_CXX='--backend -Wl,'
14204 lt_prog_compiler_pic_CXX='-fPIC'
14207 # old Intel C++ for x86_64 which still supported -KPIC.
14208 lt_prog_compiler_wl_CXX='-Wl,'
14209 lt_prog_compiler_pic_CXX='-KPIC'
14210 lt_prog_compiler_static_CXX='-static'
14213 # Intel C++, used to be incompatible with GCC.
14214 # ICC 10 doesn't accept -KPIC any more.
14215 lt_prog_compiler_wl_CXX='-Wl,'
14216 lt_prog_compiler_pic_CXX='-fPIC'
14217 lt_prog_compiler_static_CXX='-static'
14220 # Portland Group C++ compiler
14221 lt_prog_compiler_wl_CXX='-Wl,'
14222 lt_prog_compiler_pic_CXX='-fpic'
14223 lt_prog_compiler_static_CXX='-Bstatic'
14227 # Make sure the PIC flag is empty. It appears that all Alpha
14228 # Linux and Compaq Tru64 Unix objects are PIC.
14229 lt_prog_compiler_pic_CXX=
14230 lt_prog_compiler_static_CXX='-non_shared'
14232 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14233 # IBM XL 8.0, 9.0 on PPC and BlueGene
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_pic_CXX='-qpic'
14236 lt_prog_compiler_static_CXX='-qstaticlink'
14239 case `$CC -V 2>&1 | sed 5q` in
14242 lt_prog_compiler_pic_CXX='-KPIC'
14243 lt_prog_compiler_static_CXX='-Bstatic'
14244 lt_prog_compiler_wl_CXX='-Qoption ld '
14255 case $cc_basename in
14257 lt_prog_compiler_pic_CXX='-W c,exportall'
14266 # QNX uses GNU C++, but need to define -shared option too, otherwise
14267 # it will coredump.
14268 lt_prog_compiler_pic_CXX='-fPIC -shared'
14270 osf3* | osf4* | osf5*)
14271 case $cc_basename in
14273 lt_prog_compiler_wl_CXX='--backend -Wl,'
14276 # Rational C++ 2.4.1
14277 lt_prog_compiler_pic_CXX='-pic'
14280 # Digital/Compaq C++
14281 lt_prog_compiler_wl_CXX='-Wl,'
14282 # Make sure the PIC flag is empty. It appears that all Alpha
14283 # Linux and Compaq Tru64 Unix objects are PIC.
14284 lt_prog_compiler_pic_CXX=
14285 lt_prog_compiler_static_CXX='-non_shared'
14294 case $cc_basename in
14296 # Sun C++ 4.2, 5.x and Centerline C++
14297 lt_prog_compiler_pic_CXX='-KPIC'
14298 lt_prog_compiler_static_CXX='-Bstatic'
14299 lt_prog_compiler_wl_CXX='-Qoption ld '
14302 # Green Hills C++ Compiler
14303 lt_prog_compiler_pic_CXX='-PIC'
14310 case $cc_basename in
14313 lt_prog_compiler_pic_CXX='-pic'
14314 lt_prog_compiler_static_CXX='-Bstatic'
14318 lt_prog_compiler_pic_CXX='-pic'
14324 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14325 case $cc_basename in
14327 lt_prog_compiler_wl_CXX='-Wl,'
14328 lt_prog_compiler_pic_CXX='-KPIC'
14329 lt_prog_compiler_static_CXX='-Bstatic'
14334 case $cc_basename in
14336 # NonStop-UX NCC 3.20
14337 lt_prog_compiler_pic_CXX='-KPIC'
14346 lt_prog_compiler_can_build_shared_CXX=no
14352 # For platforms which do not support PIC, -DPIC is meaningless:
14354 lt_prog_compiler_pic_CXX=
14357 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14363 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14364 $as_echo_n "(cached) " >&6
14366 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14369 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14370 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14373 # Check to make sure the PIC flag actually works.
14375 if test -n "$lt_prog_compiler_pic_CXX"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14378 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14379 $as_echo_n "(cached) " >&6
14381 lt_cv_prog_compiler_pic_works_CXX=no
14382 ac_outfile=conftest.$ac_objext
14383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14384 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14385 # Insert the option either (1) after the last *FLAGS variable, or
14386 # (2) before a word containing "conftest.", or (3) at the end.
14387 # Note that $ac_compile itself does not contain backslashes and begins
14388 # with a dollar sign (not a hyphen), so the echo should work correctly.
14389 # The option is referenced via a variable to avoid confusing sed.
14390 lt_compile=`echo "$ac_compile" | $SED \
14391 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14393 -e 's:$: $lt_compiler_flag:'`
14394 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14395 (eval "$lt_compile" 2>conftest.err)
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 if (exit $ac_status) && test -s "$ac_outfile"; then
14400 # The compiler can only warn and ignore the option if not recognized
14401 # So say no if there are warnings other than the usual output.
14402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14403 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14404 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14405 lt_cv_prog_compiler_pic_works_CXX=yes
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14415 case $lt_prog_compiler_pic_CXX in
14417 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14420 lt_prog_compiler_pic_CXX=
14421 lt_prog_compiler_can_build_shared_CXX=no
14431 # Check to make sure the static flag actually works.
14433 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14435 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14436 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14437 $as_echo_n "(cached) " >&6
14439 lt_cv_prog_compiler_static_works_CXX=no
14440 save_LDFLAGS="$LDFLAGS"
14441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14444 # The linker can only warn and ignore the option if not recognized
14445 # So say no if there are warnings
14446 if test -s conftest.err; then
14447 # Append any errors to the config.log.
14448 cat conftest.err 1>&5
14449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14451 if diff conftest.exp conftest.er2 >/dev/null; then
14452 lt_cv_prog_compiler_static_works_CXX=yes
14455 lt_cv_prog_compiler_static_works_CXX=yes
14459 LDFLAGS="$save_LDFLAGS"
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14463 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14465 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14468 lt_prog_compiler_static_CXX=
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14476 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14477 $as_echo_n "(cached) " >&6
14479 lt_cv_prog_compiler_c_o_CXX=no
14480 $RM -r conftest 2>/dev/null
14484 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486 lt_compiler_flag="-o out/conftest2.$ac_objext"
14487 # Insert the option either (1) after the last *FLAGS variable, or
14488 # (2) before a word containing "conftest.", or (3) at the end.
14489 # Note that $ac_compile itself does not contain backslashes and begins
14490 # with a dollar sign (not a hyphen), so the echo should work correctly.
14491 lt_compile=`echo "$ac_compile" | $SED \
14492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494 -e 's:$: $lt_compiler_flag:'`
14495 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14496 (eval "$lt_compile" 2>out/conftest.err)
14498 cat out/conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14502 # The compiler can only warn and ignore the option if not recognized
14503 # So say no if there are warnings
14504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14505 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507 lt_cv_prog_compiler_c_o_CXX=yes
14512 # SGI C++ compiler will create directory out/ii_files/ for
14513 # template instantiation
14514 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14515 $RM out/* && rmdir out
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14522 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14529 $as_echo_n "(cached) " >&6
14531 lt_cv_prog_compiler_c_o_CXX=no
14532 $RM -r conftest 2>/dev/null
14536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538 lt_compiler_flag="-o out/conftest2.$ac_objext"
14539 # Insert the option either (1) after the last *FLAGS variable, or
14540 # (2) before a word containing "conftest.", or (3) at the end.
14541 # Note that $ac_compile itself does not contain backslashes and begins
14542 # with a dollar sign (not a hyphen), so the echo should work correctly.
14543 lt_compile=`echo "$ac_compile" | $SED \
14544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546 -e 's:$: $lt_compiler_flag:'`
14547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14548 (eval "$lt_compile" 2>out/conftest.err)
14550 cat out/conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14554 # The compiler can only warn and ignore the option if not recognized
14555 # So say no if there are warnings
14556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559 lt_cv_prog_compiler_c_o_CXX=yes
14564 # SGI C++ compiler will create directory out/ii_files/ for
14565 # template instantiation
14566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567 $RM out/* && rmdir out
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14579 hard_links="nottested"
14580 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14581 # do not overwrite the value of need_locks provided by the user
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14583 $as_echo_n "checking if we can lock with hard links... " >&6; }
14586 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14588 ln conftest.a conftest.b 2>&5 || hard_links=no
14589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14591 $as_echo "$hard_links" >&6; }
14592 if test "$hard_links" = no; then
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14594 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14606 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14607 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14610 # If we're using GNU nm, then we don't want the "-C" option.
14611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14612 # Also, AIX nm treats weak defined symbols like other global defined
14613 # symbols, whereas GNU nm marks them as "W".
14614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14615 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'
14617 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'
14621 export_symbols_cmds_CXX="$ltdll_cmds"
14623 cygwin* | mingw* | cegcc*)
14624 case $cc_basename in
14627 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'
14628 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14638 $as_echo "$ld_shlibs_CXX" >&6; }
14639 test "$ld_shlibs_CXX" = no && can_build_shared=no
14641 with_gnu_ld_CXX=$with_gnu_ld
14649 # Do we need to explicitly link libc?
14651 case "x$archive_cmds_need_lc_CXX" in
14653 # Assume -lc should be added
14654 archive_cmds_need_lc_CXX=yes
14656 if test "$enable_shared" = yes && test "$GCC" = yes; then
14657 case $archive_cmds_CXX in
14659 # FIXME: we may have to deal with multi-command sequences.
14662 # Test whether the compiler implicitly links with -lc since on some
14663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14664 # to ld, don't add -lc before -lgcc.
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14666 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14667 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14668 $as_echo_n "(cached) " >&6
14671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14674 (eval $ac_compile) 2>&5
14676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14677 test $ac_status = 0; } 2>conftest.err; then
14680 libobjs=conftest.$ac_objext
14682 wl=$lt_prog_compiler_wl_CXX
14683 pic_flag=$lt_prog_compiler_pic_CXX
14689 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14690 allow_undefined_flag_CXX=
14691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14692 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695 test $ac_status = 0; }
14697 lt_cv_archive_cmds_need_lc_CXX=no
14699 lt_cv_archive_cmds_need_lc_CXX=yes
14701 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14703 cat conftest.err 1>&5
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14709 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14710 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14783 library_names_spec=
14784 libname_spec='lib$name'
14788 postuninstall_cmds=
14792 shlibpath_overrides_runpath=unknown
14794 dynamic_linker="$host_os ld.so"
14795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14796 need_lib_prefix=unknown
14797 hardcode_into_libs=no
14799 # when you set need_version to no, make sure it does not cause -set_version
14800 # flags to be left without arguments
14801 need_version=unknown
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14807 shlibpath_var=LIBPATH
14809 # AIX 3 has no versioning support, so we append a major version to the name.
14810 soname_spec='${libname}${release}${shared_ext}$major'
14817 hardcode_into_libs=yes
14818 if test "$host_cpu" = ia64; then
14819 # AIX 5 supports IA64
14820 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14821 shlibpath_var=LD_LIBRARY_PATH
14823 # With GCC up to 2.95.x, collect2 would create an import file
14824 # for dependence libraries. The import file would start with
14825 # the line `#! .'. This would cause the generated library to
14826 # depend on `.', always an invalid library. This was fixed in
14827 # development snapshots of GCC prior to 3.0.
14829 aix4 | aix4.[01] | aix4.[01].*)
14830 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14832 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14835 can_build_shared=no
14839 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14840 # soname into executable. Probably we can add versioning support to
14841 # collect2, so additional links can be useful in future.
14842 if test "$aix_use_runtimelinking" = yes; then
14843 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14844 # instead of lib<name>.a to let people know that these are not
14845 # typical AIX shared libraries.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 # We preserve .a as extension for shared libraries through AIX4.2
14849 # and later when we are not doing run time linking.
14850 library_names_spec='${libname}${release}.a $libname.a'
14851 soname_spec='${libname}${release}${shared_ext}$major'
14853 shlibpath_var=LIBPATH
14860 # Since July 2007 AmigaOS4 officially supports .so libraries.
14861 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 library_names_spec='$libname.ixlibrary $libname.a'
14866 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14867 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'
14873 library_names_spec='${libname}${shared_ext}'
14874 dynamic_linker="$host_os ld.so"
14875 shlibpath_var=LIBRARY_PATH
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882 soname_spec='${libname}${release}${shared_ext}$major'
14883 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14884 shlibpath_var=LD_LIBRARY_PATH
14885 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14886 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14887 # the default ld.so.conf also contains /usr/contrib/lib and
14888 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14889 # libtool to hard-code these into programs
14892 cygwin* | mingw* | pw32* | cegcc*)
14893 version_type=windows
14898 case $GCC,$cc_basename in
14901 library_names_spec='$libname.dll.a'
14902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14903 postinstall_cmds='base_file=`basename \${file}`~
14904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14905 dldir=$destdir/`dirname \$dlpath`~
14906 test -d \$dldir || mkdir -p \$dldir~
14907 $install_prog $dir/$dlname \$dldir/$dlname~
14908 chmod a+x \$dldir/$dlname~
14909 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14910 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14913 dlpath=$dir/\$dldll~
14915 shlibpath_overrides_runpath=yes
14919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14924 # MinGW DLLs use traditional 'lib' prefix
14925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14928 # pw32 DLLs use 'pw' prefix rather than 'lib'
14929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14932 dynamic_linker='Win32 ld.exe'
14937 libname_spec='$name'
14938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14939 library_names_spec='${libname}.dll.lib'
14943 sys_lib_search_path_spec=
14946 for lt_path in $LIB
14949 # Let DOS variable expansion print the short 8.3 style file name.
14950 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14951 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14954 # Convert to MSYS style.
14955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14958 # Convert to unix form, then to dos form, then back to unix form
14959 # but this time dos style (no spaces!) so that the unix form looks
14960 # like /cygdrive/c/PROGRA~1:/cygdr...
14961 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14962 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14963 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14966 sys_lib_search_path_spec="$LIB"
14967 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14968 # It is most probably a Windows format PATH.
14969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14973 # FIXME: find the short name or the path components, as spaces are
14974 # common. (e.g. "Program Files" -> "PROGRA~1")
14978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14979 postinstall_cmds='base_file=`basename \${file}`~
14980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14981 dldir=$destdir/`dirname \$dlpath`~
14982 test -d \$dldir || mkdir -p \$dldir~
14983 $install_prog $dir/$dlname \$dldir/$dlname'
14984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14985 dlpath=$dir/\$dldll~
14987 shlibpath_overrides_runpath=yes
14988 dynamic_linker='Win32 link.exe'
14992 # Assume MSVC wrapper
14993 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14994 dynamic_linker='Win32 ld.exe'
14997 # FIXME: first we should search . and the directory the executable is in
15001 darwin* | rhapsody*)
15002 dynamic_linker="$host_os dyld"
15003 version_type=darwin
15006 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15007 soname_spec='${libname}${release}${major}$shared_ext'
15008 shlibpath_overrides_runpath=yes
15009 shlibpath_var=DYLD_LIBRARY_PATH
15010 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15012 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 shlibpath_var=LD_LIBRARY_PATH
15028 freebsd* | dragonfly*)
15029 # DragonFly does not have aout. When/if they implement a new
15030 # versioning mechanism, adjust this.
15031 if test -x /usr/bin/objformat; then
15032 objformat=`/usr/bin/objformat`
15035 freebsd[123]*) objformat=aout ;;
15036 *) objformat=elf ;;
15039 version_type=freebsd-$objformat
15040 case $version_type in
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15051 shlibpath_var=LD_LIBRARY_PATH
15054 shlibpath_overrides_runpath=yes
15056 freebsd3.[01]* | freebsdelf3.[01]*)
15057 shlibpath_overrides_runpath=yes
15058 hardcode_into_libs=yes
15060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15062 shlibpath_overrides_runpath=no
15063 hardcode_into_libs=yes
15065 *) # from 4.6 on, and DragonFly
15066 shlibpath_overrides_runpath=yes
15067 hardcode_into_libs=yes
15076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15077 soname_spec='${libname}${release}${shared_ext}$major'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 hardcode_into_libs=yes
15086 dynamic_linker="$host_os runtime_loader"
15087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15088 soname_spec='${libname}${release}${shared_ext}$major'
15089 shlibpath_var=LIBRARY_PATH
15090 shlibpath_overrides_runpath=yes
15091 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15092 hardcode_into_libs=yes
15095 hpux9* | hpux10* | hpux11*)
15096 # Give a soname corresponding to the major version so that dld.sl refuses to
15097 # link against other versions.
15104 hardcode_into_libs=yes
15105 dynamic_linker="$host_os dld.so"
15106 shlibpath_var=LD_LIBRARY_PATH
15107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109 soname_spec='${libname}${release}${shared_ext}$major'
15110 if test "X$HPUX_IA64_MODE" = X32; then
15111 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15113 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15115 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15119 hardcode_into_libs=yes
15120 dynamic_linker="$host_os dld.sl"
15121 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124 soname_spec='${libname}${release}${shared_ext}$major'
15125 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15130 dynamic_linker="$host_os dld.sl"
15131 shlibpath_var=SHLIB_PATH
15132 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15137 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15138 postinstall_cmds='chmod 555 $lib'
15139 # or fails outright, so override atomically:
15140 install_override_mode=555
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15148 soname_spec='${libname}${release}${shared_ext}$major'
15149 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15150 shlibpath_var=LD_LIBRARY_PATH
15151 shlibpath_overrides_runpath=no
15152 hardcode_into_libs=yes
15155 irix5* | irix6* | nonstopux*)
15157 nonstopux*) version_type=nonstopux ;;
15159 if test "$lt_cv_prog_gnu_ld" = yes; then
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15170 irix5* | nonstopux*)
15171 libsuff= shlibsuff=
15174 case $LD in # libtool.m4 will add one of these switches to LD
15175 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15176 libsuff= shlibsuff= libmagic=32-bit;;
15177 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15178 libsuff=32 shlibsuff=N32 libmagic=N32;;
15179 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15180 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15181 *) libsuff= shlibsuff= libmagic=never-match;;
15185 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15186 shlibpath_overrides_runpath=no
15187 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15188 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15189 hardcode_into_libs=yes
15192 # No shared lib support for Linux oldld, aout, or coff.
15193 linux*oldld* | linux*aout* | linux*coff*)
15197 # This must be Linux ELF.
15198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203 soname_spec='${libname}${release}${shared_ext}$major'
15204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=no
15208 # Some binutils ld are patched to set DT_RUNPATH
15209 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15210 $as_echo_n "(cached) " >&6
15212 lt_cv_shlibpath_overrides_runpath=no
15213 save_LDFLAGS=$LDFLAGS
15214 save_libdir=$libdir
15215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15228 if ac_fn_cxx_try_link "$LINENO"; then :
15229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15230 lt_cv_shlibpath_overrides_runpath=yes
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235 LDFLAGS=$save_LDFLAGS
15236 libdir=$save_libdir
15240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15242 # This implies no fast_install, which is unacceptable.
15243 # Some rework will be needed to allow for fast_install
15244 # before this can be enabled.
15245 hardcode_into_libs=yes
15247 # Append ld.so.conf contents to the search path
15248 if test -f /etc/ld.so.conf; then
15249 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' ' '`
15250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15253 # We used to test for /lib/ld.so.1 and disable shared libraries on
15254 # powerpc, because MkLinux only supported shared libraries with the
15255 # GNU dynamic linker. Since this was broken with cross compilers,
15256 # most powerpc-linux boxes support dynamic linking these days and
15257 # people can always --disable-shared, the test was removed, and we
15258 # assume the GNU/Linux dynamic linker is in use.
15259 dynamic_linker='GNU/Linux ld.so'
15266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15269 dynamic_linker='NetBSD (a.out) ld.so'
15271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 dynamic_linker='NetBSD ld.elf_so'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
15277 hardcode_into_libs=yes
15282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=yes
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 shlibpath_overrides_runpath=no
15295 hardcode_into_libs=yes
15296 dynamic_linker='ldqnx.so'
15301 sys_lib_dlsearch_path_spec="/usr/lib"
15303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15305 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15306 *) need_version=no ;;
15308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15313 openbsd2.[89] | openbsd2.[89].*)
15314 shlibpath_overrides_runpath=no
15317 shlibpath_overrides_runpath=yes
15321 shlibpath_overrides_runpath=yes
15326 libname_spec='$name'
15329 library_names_spec='$libname${shared_ext} $libname.a'
15330 dynamic_linker='OS/2 ld.exe'
15331 shlibpath_var=LIBPATH
15334 osf3* | osf4* | osf5*)
15338 soname_spec='${libname}${release}${shared_ext}$major'
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=yes
15357 hardcode_into_libs=yes
15358 # ldd complains unless libraries are executable
15359 postinstall_cmds='chmod +x $lib'
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=yes
15368 if test "$with_gnu_ld" = yes; then
15376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377 soname_spec='${libname}${release}${shared_ext}$major'
15378 shlibpath_var=LD_LIBRARY_PATH
15379 case $host_vendor in
15381 shlibpath_overrides_runpath=no
15383 runpath_var=LD_RUN_PATH
15391 shlibpath_overrides_runpath=no
15392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15398 if test -d /usr/nec ;then
15400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15401 soname_spec='$libname${shared_ext}.$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15407 version_type=freebsd-elf
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 shlibpath_var=LD_LIBRARY_PATH
15413 shlibpath_overrides_runpath=yes
15414 hardcode_into_libs=yes
15415 if test "$with_gnu_ld" = yes; then
15416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15425 sys_lib_dlsearch_path_spec='/usr/lib'
15429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=no
15436 hardcode_into_libs=yes
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 shlibpath_var=LD_LIBRARY_PATH
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15451 $as_echo "$dynamic_linker" >&6; }
15452 test "$dynamic_linker" = no && can_build_shared=no
15454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15455 if test "$GCC" = yes; then
15456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15459 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15460 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15462 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15463 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15505 hardcode_action_CXX=
15506 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15507 test -n "$runpath_var_CXX" ||
15508 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15510 # We can hardcode non-existent directories.
15511 if test "$hardcode_direct_CXX" != no &&
15512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15513 # have to relink, otherwise we might link with an installed library
15514 # when we should be linking with a yet-to-be-installed one
15515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15516 test "$hardcode_minus_L_CXX" != no; then
15517 # Linking always hardcodes the temporary library directory.
15518 hardcode_action_CXX=relink
15520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15521 hardcode_action_CXX=immediate
15524 # We cannot hardcode anything, or else we can only hardcode existing
15526 hardcode_action_CXX=unsupported
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15529 $as_echo "$hardcode_action_CXX" >&6; }
15531 if test "$hardcode_action_CXX" = relink ||
15532 test "$inherit_rpath_CXX" = yes; then
15533 # Fast installation is not supported
15534 enable_fast_install=no
15535 elif test "$shlibpath_overrides_runpath" = yes ||
15536 test "$enable_shared" = no; then
15537 # Fast installation is not necessary
15538 enable_fast_install=needless
15547 fi # test -n "$compiler"
15550 CFLAGS=$lt_save_CFLAGS
15554 with_gnu_ld=$lt_save_with_gnu_ld
15555 lt_cv_path_LDCXX=$lt_cv_path_LD
15556 lt_cv_path_LD=$lt_save_path_LD
15557 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15558 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15559 fi # test "$_lt_caught_CXX_error" != yes
15562 ac_cpp='$CPP $CPPFLAGS'
15563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15579 ac_config_commands="$ac_config_commands libtool"
15584 # Only expand once:
15589 # Add configure option --enable-maintainer-mode which enables dependency
15590 # checking and generation useful to package maintainers. This is made an
15591 # option to avoid confusing end users.
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15595 # Check whether --enable-maintainer-mode was given.
15596 if test "${enable_maintainer_mode+set}" = set; then :
15597 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15599 USE_MAINTAINER_MODE=no
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15603 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15604 if test $USE_MAINTAINER_MODE = yes; then
15605 MAINTAINER_MODE_TRUE=
15606 MAINTAINER_MODE_FALSE='#'
15608 MAINTAINER_MODE_TRUE='#'
15609 MAINTAINER_MODE_FALSE=
15612 MAINT=$MAINTAINER_MODE_TRUE
15616 # If the C compiler supports the keyword inline, do nothing. Otherwise
15617 # define inline to __inline__ or __inline if it accepts one of those,
15618 # otherwise define inline to be empty.
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15620 $as_echo_n "checking for inline... " >&6; }
15621 if ${ac_cv_c_inline+:} false; then :
15622 $as_echo_n "(cached) " >&6
15625 for ac_kw in inline __inline__ __inline; do
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15628 #ifndef __cplusplus
15630 static $ac_kw foo_t static_foo () {return 0; }
15631 $ac_kw foo_t foo () {return 0; }
15635 if ac_fn_c_try_compile "$LINENO"; then :
15636 ac_cv_c_inline=$ac_kw
15638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15639 test "$ac_cv_c_inline" != no && break
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15644 $as_echo "$ac_cv_c_inline" >&6; }
15646 case $ac_cv_c_inline in
15649 case $ac_cv_c_inline in
15651 *) ac_val=$ac_cv_c_inline;;
15653 cat >>confdefs.h <<_ACEOF
15654 #ifndef __cplusplus
15655 #define inline $ac_val
15663 # If words are stored with the most significant byte first (like
15664 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15667 if ${ac_cv_c_bigendian+:} false; then :
15668 $as_echo_n "(cached) " >&6
15670 ac_cv_c_bigendian=unknown
15671 # See if we're dealing with a universal compiler.
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h. */
15674 #ifndef __APPLE_CC__
15675 not a universal capable compiler
15680 if ac_fn_c_try_compile "$LINENO"; then :
15682 # Check for potential -arch flags. It is not universal unless
15683 # there are at least two -arch flags with different values.
15686 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15687 if test -n "$ac_prev"; then
15689 i?86 | x86_64 | ppc | ppc64)
15690 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15693 ac_cv_c_bigendian=universal
15699 elif test "x$ac_word" = "x-arch"; then
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 if test $ac_cv_c_bigendian = unknown; then
15706 # See if sys/param.h defines the BYTE_ORDER macro.
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #include <sys/types.h>
15710 #include <sys/param.h>
15715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15716 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15718 bogus endian macros
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726 # It does; now see whether it defined to BIG_ENDIAN or not.
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #include <sys/types.h>
15730 #include <sys/param.h>
15735 #if BYTE_ORDER != BIG_ENDIAN
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744 ac_cv_c_bigendian=yes
15746 ac_cv_c_bigendian=no
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 if test $ac_cv_c_bigendian = unknown; then
15753 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15756 #include <limits.h>
15761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15762 bogus endian macros
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770 # It does; now see whether it defined to _BIG_ENDIAN or not.
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15773 #include <limits.h>
15778 #ifndef _BIG_ENDIAN
15786 if ac_fn_c_try_compile "$LINENO"; then :
15787 ac_cv_c_bigendian=yes
15789 ac_cv_c_bigendian=no
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15795 if test $ac_cv_c_bigendian = unknown; then
15796 # Compile a test program.
15797 if test "$cross_compiling" = yes; then :
15798 # Try to guess by grepping values from an object file.
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15801 short int ascii_mm[] =
15802 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15803 short int ascii_ii[] =
15804 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15805 int use_ascii (int i) {
15806 return ascii_mm[i] + ascii_ii[i];
15808 short int ebcdic_ii[] =
15809 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15810 short int ebcdic_mm[] =
15811 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15812 int use_ebcdic (int i) {
15813 return ebcdic_mm[i] + ebcdic_ii[i];
15820 return use_ascii (foo) == use_ebcdic (foo);
15825 if ac_fn_c_try_compile "$LINENO"; then :
15826 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15827 ac_cv_c_bigendian=yes
15829 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15830 if test "$ac_cv_c_bigendian" = unknown; then
15831 ac_cv_c_bigendian=no
15833 # finding both strings is unlikely to happen, but who knows?
15834 ac_cv_c_bigendian=unknown
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 $ac_includes_default
15847 /* Are we little or big endian? From Harbison&Steele. */
15851 char c[sizeof (long int)];
15854 return u.c[sizeof (long int) - 1] == 1;
15860 if ac_fn_c_try_run "$LINENO"; then :
15861 ac_cv_c_bigendian=no
15863 ac_cv_c_bigendian=yes
15865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15866 conftest.$ac_objext conftest.beam conftest.$ac_ext
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15872 $as_echo "$ac_cv_c_bigendian" >&6; }
15873 case $ac_cv_c_bigendian in #(
15875 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15881 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15885 as_fn_error $? "unknown endianness
15886 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15891 # Find math library
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15895 $as_echo_n "checking for sqrt in -lm... " >&6; }
15896 if ${ac_cv_lib_m_sqrt+:} false; then :
15897 $as_echo_n "(cached) " >&6
15899 ac_check_lib_save_LIBS=$LIBS
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15919 if ac_fn_c_try_link "$LINENO"; then :
15920 ac_cv_lib_m_sqrt=yes
15922 ac_cv_lib_m_sqrt=no
15924 rm -f core conftest.err conftest.$ac_objext \
15925 conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15929 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15930 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
15934 LIBS="$LIB_MATH $LIBS"
15942 if test ! "$with_jpeg" = 'no'
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
15945 $as_echo_n "checking for JPEG support ... " >&6; }
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15950 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
15951 if test "x$ac_cv_header_jconfig_h" = xyes; then :
15952 passed=`expr $passed + 1`
15954 failed=`expr $failed + 1`
15958 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
15959 if test "x$ac_cv_header_jerror_h" = xyes; then :
15960 passed=`expr $passed + 1`
15962 failed=`expr $failed + 1`
15966 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
15967 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
15968 passed=`expr $passed + 1`
15970 failed=`expr $failed + 1`
15974 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15975 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
15976 passed=`expr $passed + 1`
15978 failed=`expr $failed + 1`
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15983 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15984 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
15985 $as_echo_n "(cached) " >&6
15987 ac_check_lib_save_LIBS=$LIBS
15988 LIBS="-ljpeg $LIBS"
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15992 /* Override any GCC internal prototype to avoid an error.
15993 Use char because int might match the return type of a GCC
15994 builtin and then its argument prototype would still apply. */
15998 char jpeg_read_header ();
16002 return jpeg_read_header ();
16007 if ac_fn_c_try_link "$LINENO"; then :
16008 ac_cv_lib_jpeg_jpeg_read_header=yes
16010 ac_cv_lib_jpeg_jpeg_read_header=no
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 LIBS=$ac_check_lib_save_LIBS
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
16017 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
16018 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
16019 passed=`expr $passed + 1`
16021 failed=`expr $failed + 1`
16025 # Test for compatible JPEG library
16026 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
16028 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
16029 if ${ac_cv_jpeg_version_ok+:} false; then :
16030 $as_echo_n "(cached) " >&6
16032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h. */
16035 #include <stdlib.h>
16036 #include <jpeglib.h>
16042 #if JPEG_LIB_VERSION < 62
16043 #error IJG JPEG library must be version 6b or newer!
16051 if ac_fn_c_try_compile "$LINENO"; then :
16052 ac_cv_jpeg_version_ok='yes'
16054 ac_cv_jpeg_version_ok='no'
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
16059 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
16060 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16062 $as_echo "yes" >&6; }
16063 passed=`expr $passed + 1`
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16067 failed=`expr $failed + 1`
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
16071 $as_echo_n "checking if JPEG package is complete... " >&6; }
16072 if test $passed -gt 0
16074 if test $failed -gt 0
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16077 $as_echo "no -- some components failed test" >&6; }
16078 have_jpeg='no (failed tests)'
16081 LIBS="$LIB_JPEG $LIBS"
16083 $as_echo "#define HasJPEG 1" >>confdefs.h
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16086 $as_echo "yes" >&6; }
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16094 if test "$have_jpeg" = 'yes'; then
16108 if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
16112 $as_echo_n "checking for ZLIB support ... " >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16117 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
16118 if test "x$ac_cv_header_zconf_h" = xyes; then :
16119 passed=`expr $passed + 1`
16121 failed=`expr $failed + 1`
16125 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16126 if test "x$ac_cv_header_zlib_h" = xyes; then :
16127 passed=`expr $passed + 1`
16129 failed=`expr $failed + 1`
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
16134 $as_echo_n "checking for compress in -lz... " >&6; }
16135 if ${ac_cv_lib_z_compress+:} false; then :
16136 $as_echo_n "(cached) " >&6
16138 ac_check_lib_save_LIBS=$LIBS
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16143 /* Override any GCC internal prototype to avoid an error.
16144 Use char because int might match the return type of a GCC
16145 builtin and then its argument prototype would still apply. */
16153 return compress ();
16158 if ac_fn_c_try_link "$LINENO"; then :
16159 ac_cv_lib_z_compress=yes
16161 ac_cv_lib_z_compress=no
16163 rm -f core conftest.err conftest.$ac_objext \
16164 conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
16168 $as_echo "$ac_cv_lib_z_compress" >&6; }
16169 if test "x$ac_cv_lib_z_compress" = xyes; then :
16170 passed=`expr $passed + 1`
16172 failed=`expr $failed + 1`
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
16176 $as_echo_n "checking for uncompress in -lz... " >&6; }
16177 if ${ac_cv_lib_z_uncompress+:} false; then :
16178 $as_echo_n "(cached) " >&6
16180 ac_check_lib_save_LIBS=$LIBS
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 /* Override any GCC internal prototype to avoid an error.
16186 Use char because int might match the return type of a GCC
16187 builtin and then its argument prototype would still apply. */
16191 char uncompress ();
16195 return uncompress ();
16200 if ac_fn_c_try_link "$LINENO"; then :
16201 ac_cv_lib_z_uncompress=yes
16203 ac_cv_lib_z_uncompress=no
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
16210 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16211 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
16212 passed=`expr $passed + 1`
16214 failed=`expr $failed + 1`
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16218 $as_echo_n "checking for deflate in -lz... " >&6; }
16219 if ${ac_cv_lib_z_deflate+:} false; then :
16220 $as_echo_n "(cached) " >&6
16222 ac_check_lib_save_LIBS=$LIBS
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16242 if ac_fn_c_try_link "$LINENO"; then :
16243 ac_cv_lib_z_deflate=yes
16245 ac_cv_lib_z_deflate=no
16247 rm -f core conftest.err conftest.$ac_objext \
16248 conftest$ac_exeext conftest.$ac_ext
16249 LIBS=$ac_check_lib_save_LIBS
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16252 $as_echo "$ac_cv_lib_z_deflate" >&6; }
16253 if test "x$ac_cv_lib_z_deflate" = xyes; then :
16254 passed=`expr $passed + 1`
16256 failed=`expr $failed + 1`
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16260 $as_echo_n "checking for inflate in -lz... " >&6; }
16261 if ${ac_cv_lib_z_inflate+:} false; then :
16262 $as_echo_n "(cached) " >&6
16264 ac_check_lib_save_LIBS=$LIBS
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h. */
16269 /* Override any GCC internal prototype to avoid an error.
16270 Use char because int might match the return type of a GCC
16271 builtin and then its argument prototype would still apply. */
16284 if ac_fn_c_try_link "$LINENO"; then :
16285 ac_cv_lib_z_inflate=yes
16287 ac_cv_lib_z_inflate=no
16289 rm -f core conftest.err conftest.$ac_objext \
16290 conftest$ac_exeext conftest.$ac_ext
16291 LIBS=$ac_check_lib_save_LIBS
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16294 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16295 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16296 passed=`expr $passed + 1`
16298 failed=`expr $failed + 1`
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
16302 $as_echo_n "checking for gzseek in -lz... " >&6; }
16303 if ${ac_cv_lib_z_gzseek+:} false; then :
16304 $as_echo_n "(cached) " >&6
16306 ac_check_lib_save_LIBS=$LIBS
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16311 /* Override any GCC internal prototype to avoid an error.
16312 Use char because int might match the return type of a GCC
16313 builtin and then its argument prototype would still apply. */
16326 if ac_fn_c_try_link "$LINENO"; then :
16327 ac_cv_lib_z_gzseek=yes
16329 ac_cv_lib_z_gzseek=no
16331 rm -f core conftest.err conftest.$ac_objext \
16332 conftest$ac_exeext conftest.$ac_ext
16333 LIBS=$ac_check_lib_save_LIBS
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
16336 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
16337 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
16338 passed=`expr $passed + 1`
16340 failed=`expr $failed + 1`
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
16344 $as_echo_n "checking for gztell in -lz... " >&6; }
16345 if ${ac_cv_lib_z_gztell+:} false; then :
16346 $as_echo_n "(cached) " >&6
16348 ac_check_lib_save_LIBS=$LIBS
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16353 /* Override any GCC internal prototype to avoid an error.
16354 Use char because int might match the return type of a GCC
16355 builtin and then its argument prototype would still apply. */
16368 if ac_fn_c_try_link "$LINENO"; then :
16369 ac_cv_lib_z_gztell=yes
16371 ac_cv_lib_z_gztell=no
16373 rm -f core conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 LIBS=$ac_check_lib_save_LIBS
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
16378 $as_echo "$ac_cv_lib_z_gztell" >&6; }
16379 if test "x$ac_cv_lib_z_gztell" = xyes; then :
16380 passed=`expr $passed + 1`
16382 failed=`expr $failed + 1`
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
16386 $as_echo_n "checking if ZLIB package is complete... " >&6; }
16387 if test $passed -gt 0
16389 if test $failed -gt 0
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16392 $as_echo "no -- some components failed test" >&6; }
16393 have_zlib='no (failed tests)'
16396 LIBS="$LIB_ZLIB $LIBS"
16398 $as_echo "#define HasZLIB 1" >>confdefs.h
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401 $as_echo "yes" >&6; }
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 $as_echo "no" >&6; }
16409 if test "$have_zlib" = 'yes'; then
16424 if test ! "$with_tiff" = 'no'
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
16427 $as_echo_n "checking for TIFF support ... " >&6; }
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16432 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16433 if test "x$ac_cv_header_tiff_h" = xyes; then :
16434 passed=`expr $passed + 1`
16436 failed=`expr $failed + 1`
16440 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16441 if test "x$ac_cv_header_tiffio_h" = xyes; then :
16442 passed=`expr $passed + 1`
16444 failed=`expr $failed + 1`
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
16449 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
16450 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
16451 $as_echo_n "(cached) " >&6
16453 ac_check_lib_save_LIBS=$LIBS
16454 LIBS="-ltiff $LIBS"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16468 return TIFFOpen ();
16473 if ac_fn_c_try_link "$LINENO"; then :
16474 ac_cv_lib_tiff_TIFFOpen=yes
16476 ac_cv_lib_tiff_TIFFOpen=no
16478 rm -f core conftest.err conftest.$ac_objext \
16479 conftest$ac_exeext conftest.$ac_ext
16480 LIBS=$ac_check_lib_save_LIBS
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16483 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16484 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
16485 passed=`expr $passed + 1`
16487 failed=`expr $failed + 1`
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16491 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16492 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16493 $as_echo_n "(cached) " >&6
16495 ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ltiff $LIBS"
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16500 /* Override any GCC internal prototype to avoid an error.
16501 Use char because int might match the return type of a GCC
16502 builtin and then its argument prototype would still apply. */
16506 char TIFFClientOpen ();
16510 return TIFFClientOpen ();
16515 if ac_fn_c_try_link "$LINENO"; then :
16516 ac_cv_lib_tiff_TIFFClientOpen=yes
16518 ac_cv_lib_tiff_TIFFClientOpen=no
16520 rm -f core conftest.err conftest.$ac_objext \
16521 conftest$ac_exeext conftest.$ac_ext
16522 LIBS=$ac_check_lib_save_LIBS
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16525 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16526 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16527 passed=`expr $passed + 1`
16529 failed=`expr $failed + 1`
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
16533 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
16534 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
16535 $as_echo_n "(cached) " >&6
16537 ac_check_lib_save_LIBS=$LIBS
16538 LIBS="-ltiff $LIBS"
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16542 /* Override any GCC internal prototype to avoid an error.
16543 Use char because int might match the return type of a GCC
16544 builtin and then its argument prototype would still apply. */
16548 char TIFFIsByteSwapped ();
16552 return TIFFIsByteSwapped ();
16557 if ac_fn_c_try_link "$LINENO"; then :
16558 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
16560 ac_cv_lib_tiff_TIFFIsByteSwapped=no
16562 rm -f core conftest.err conftest.$ac_objext \
16563 conftest$ac_exeext conftest.$ac_ext
16564 LIBS=$ac_check_lib_save_LIBS
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
16567 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
16568 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
16569 passed=`expr $passed + 1`
16571 failed=`expr $failed + 1`
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
16575 $as_echo_n "checking if TIFF package is complete... " >&6; }
16576 if test $passed -gt 0
16578 if test $failed -gt 0
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16581 $as_echo "no -- some components failed test" >&6; }
16582 have_tiff='no (failed tests)'
16585 LIBS="$LIB_TIFF $LIBS"
16587 $as_echo "#define HasTIFF 1" >>confdefs.h
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16590 $as_echo "yes" >&6; }
16592 for ac_header in tiffconf.h
16594 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
16595 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
16596 cat >>confdefs.h <<_ACEOF
16597 #define HAVE_TIFFCONF_H 1
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607 $as_echo "no" >&6; }
16610 if test "$have_tiff" = 'yes'; then
16620 # Libraries that the LCMS library depends on
16621 LCMS_LIB_DEPLIBS="$LIB_MATH"
16622 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/ */ /g'`
16625 # Libraries that the jpegicc program depends on
16626 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH"
16627 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/ */ /g'`
16630 # Libraries that the tifficc program depends on
16631 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH"
16632 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/ */ /g'`
16638 # Perform substitutions
16640 ac_config_files="$ac_config_files Makefile"
16642 ac_config_files="$ac_config_files lcms2.pc"
16644 ac_config_files="$ac_config_files include/Makefile"
16646 ac_config_files="$ac_config_files src/Makefile"
16648 ac_config_files="$ac_config_files utils/tificc/Makefile"
16650 ac_config_files="$ac_config_files utils/transicc/Makefile"
16652 ac_config_files="$ac_config_files utils/linkicc/Makefile"
16654 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
16656 ac_config_files="$ac_config_files utils/psicc/Makefile"
16658 ac_config_files="$ac_config_files testbed/Makefile"
16660 cat >confcache <<\_ACEOF
16661 # This file is a shell script that caches the results of configure
16662 # tests run on this system so they can be shared between configure
16663 # scripts and configure runs, see configure's option --config-cache.
16664 # It is not useful on other systems. If it contains results you don't
16665 # want to keep, you may remove or edit it.
16667 # config.status only pays attention to the cache file if you give it
16668 # the --recheck option to rerun configure.
16670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16672 # following values.
16676 # The following way of writing the cache mishandles newlines in values,
16677 # but we know of no workaround that is simple, portable, and efficient.
16678 # So, we kill variables containing newlines.
16679 # Ultrix sh set writes to stderr and can't be redirected directly,
16680 # and sets the high bit in the cache file unless we assign to the vars.
16682 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16683 eval ac_val=\$$ac_var
16687 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16691 _ | IFS | as_nl) ;; #(
16692 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16693 *) { eval $ac_var=; unset $ac_var;} ;;
16699 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16700 *${as_nl}ac_space=\ *)
16701 # `set' does not quote correctly, so add quotes: double-quote
16702 # substitution turns \\\\ into \\, and sed turns \\ into \.
16705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16708 # `set' quotes correctly as required by POSIX, so do not add quotes.
16709 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16718 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16720 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16723 if test -w "$cache_file"; then
16724 if test "x$cache_file" != "x/dev/null"; then
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16726 $as_echo "$as_me: updating cache $cache_file" >&6;}
16727 if test ! -f "$cache_file" || test -h "$cache_file"; then
16728 cat confcache >"$cache_file"
16730 case $cache_file in #(
16732 mv -f confcache "$cache_file"$$ &&
16733 mv -f "$cache_file"$$ "$cache_file" ;; #(
16735 mv -f confcache "$cache_file" ;;
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16747 # Let make expand exec_prefix.
16748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16750 # Transform confdefs.h into DEFS.
16751 # Protect against shell expansion while executing Makefile rules.
16752 # Protect against Makefile macro expansion.
16754 # If the first sed substitution is executed (which looks for macros that
16755 # take arguments), then branch to the quote section. Otherwise,
16756 # look for a macro that doesn't take arguments.
16766 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16768 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16772 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16785 DEFS=`sed -n "$ac_script" confdefs.h`
16791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16792 # 1. Remove the extension, and $U if already installed.
16793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16794 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16796 # will be set to the directory where LIBOBJS objects are built.
16797 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16798 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16800 LIBOBJS=$ac_libobjs
16802 LTLIBOBJS=$ac_ltlibobjs
16805 if test -n "$EXEEXT"; then
16807 am__EXEEXT_FALSE='#'
16809 am__EXEEXT_TRUE='#'
16813 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16814 as_fn_error $? "conditional \"AMDEP\" was never defined.
16815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16818 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16822 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16825 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16826 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16830 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
16831 as_fn_error $? "conditional \"HasJPEG\" was never defined.
16832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16834 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
16835 as_fn_error $? "conditional \"HasZLIB\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16838 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
16839 as_fn_error $? "conditional \"HasTIFF\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 : "${CONFIG_STATUS=./config.status}"
16845 ac_clean_files_save=$ac_clean_files
16846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16848 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16850 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16852 # Generated by $as_me.
16853 # Run this file to recreate the current configuration.
16854 # Compiler output produced by configure, useful for debugging
16855 # configure, is in config.log if it exists.
16858 ac_cs_recheck=false
16861 SHELL=\${CONFIG_SHELL-$SHELL}
16864 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16865 ## -------------------- ##
16866 ## M4sh Initialization. ##
16867 ## -------------------- ##
16869 # Be more Bourne compatible
16870 DUALCASE=1; export DUALCASE # for MKS sh
16871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16875 # is contrary to our usage. Disable this feature.
16876 alias -g '${1+"$@"}'='"$@"'
16877 setopt NO_GLOB_SUBST
16879 case `(set -o) 2>/dev/null` in #(
16891 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16892 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16895 # Prefer a ksh shell builtin over an external printf program on Solaris,
16896 # but without wasting forks for bash or zsh.
16897 if test -z "$BASH_VERSION$ZSH_VERSION" \
16898 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16899 as_echo='print -r --'
16900 as_echo_n='print -rn --'
16901 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16902 as_echo='printf %s\n'
16903 as_echo_n='printf %s'
16905 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16906 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16907 as_echo_n='/usr/ucb/echo -n'
16909 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16910 as_echo_n_body='eval
16914 expr "X$arg" : "X\\(.*\\)$as_nl";
16915 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16917 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16919 export as_echo_n_body
16920 as_echo_n='sh -c $as_echo_n_body as_echo'
16922 export as_echo_body
16923 as_echo='sh -c $as_echo_body as_echo'
16926 # The user is always right.
16927 if test "${PATH_SEPARATOR+set}" != set; then
16929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16930 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16937 # We need space, tab and new line, in precisely that order. Quoting is
16938 # there to prevent editors from complaining about space-tab.
16939 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16940 # splitting by setting IFS to empty value.)
16943 # Find who we are. Look in the path if we contain no directory separator.
16946 *[\\/]* ) as_myself=$0 ;;
16947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16951 test -z "$as_dir" && as_dir=.
16952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16958 # We did not find ourselves, most probably we were run as `sh COMMAND'
16959 # in which case we are not to be found in the path.
16960 if test "x$as_myself" = x; then
16963 if test ! -f "$as_myself"; then
16964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16968 # Unset variables that we do not need and which cause bugs (e.g. in
16969 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16970 # suppresses any "Segmentation fault" message there. '((' could
16971 # trigger a bug in pdksh 5.2.14.
16972 for as_var in BASH_ENV ENV MAIL MAILPATH
16973 do eval test x\${$as_var+set} = xset \
16974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16990 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16991 # ----------------------------------------
16992 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16993 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16994 # script with STATUS, using 1 if that was 0.
16997 as_status=$1; test $as_status -eq 0 && as_status=1
16999 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17002 $as_echo "$as_me: error: $2" >&2
17003 as_fn_exit $as_status
17007 # as_fn_set_status STATUS
17008 # -----------------------
17009 # Set $? to STATUS, without forking.
17010 as_fn_set_status ()
17013 } # as_fn_set_status
17015 # as_fn_exit STATUS
17016 # -----------------
17017 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17021 as_fn_set_status $1
17027 # Portably unset VAR.
17030 { eval $1=; unset $1;}
17032 as_unset=as_fn_unset
17033 # as_fn_append VAR VALUE
17034 # ----------------------
17035 # Append the text in VALUE to the end of the definition contained in VAR. Take
17036 # advantage of any shell optimizations that allow amortized linear growth over
17037 # repeated appends, instead of the typical quadratic growth present in naive
17039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17040 eval 'as_fn_append ()
17051 # as_fn_arith ARG...
17052 # ------------------
17053 # Perform arithmetic evaluation on the ARGs, and store the result in the
17054 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17055 # must be portable across $(()) and expr.
17056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17057 eval 'as_fn_arith ()
17064 as_val=`expr "$@" || test $? -eq 1`
17069 if expr a : '\(a\)' >/dev/null 2>&1 &&
17070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17077 as_basename=basename
17082 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17088 as_me=`$as_basename -- "$0" ||
17089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17090 X"$0" : 'X\(//\)$' \| \
17091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17093 sed '/^.*\/\([^/][^/]*\)\/*$/{
17107 # Avoid depending upon Character Ranges.
17108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17111 as_cr_digits='0123456789'
17112 as_cr_alnum=$as_cr_Letters$as_cr_digits
17114 ECHO_C= ECHO_N= ECHO_T=
17115 case `echo -n x` in #(((((
17117 case `echo 'xy\c'` in
17118 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17127 rm -f conf$$ conf$$.exe conf$$.file
17128 if test -d conf$$.dir; then
17129 rm -f conf$$.dir/conf$$.file
17132 mkdir conf$$.dir 2>/dev/null
17134 if (echo >conf$$.file) 2>/dev/null; then
17135 if ln -s conf$$.file conf$$ 2>/dev/null; then
17137 # ... but there are two gotchas:
17138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17140 # In both cases, we have to default to `cp -p'.
17141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17143 elif ln conf$$.file conf$$ 2>/dev/null; then
17151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17152 rmdir conf$$.dir 2>/dev/null
17157 # Create "$as_dir" as a directory, including parents if necessary.
17162 -*) as_dir=./$as_dir;;
17164 test -d "$as_dir" || eval $as_mkdir_p || {
17168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17169 *) as_qdir=$as_dir;;
17171 as_dirs="'$as_qdir' $as_dirs"
17172 as_dir=`$as_dirname -- "$as_dir" ||
17173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174 X"$as_dir" : 'X\(//\)[^/]' \| \
17175 X"$as_dir" : 'X\(//\)$' \| \
17176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17177 $as_echo X"$as_dir" |
17178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17182 /^X\(\/\/\)[^/].*/{
17195 test -d "$as_dir" && break
17197 test -z "$as_dirs" || eval "mkdir $as_dirs"
17198 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17202 if mkdir -p . 2>/dev/null; then
17203 as_mkdir_p='mkdir -p "$as_dir"'
17205 test -d ./-p && rmdir ./-p
17209 if test -x / >/dev/null 2>&1; then
17210 as_test_x='test -x'
17212 if ls -dL / >/dev/null 2>&1; then
17219 if test -d "$1"; then
17225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17226 ???[sx]*):;;*)false;;esac;fi
17230 as_executable_p=$as_test_x
17232 # Sed expression to map a string onto a valid CPP name.
17233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17235 # Sed expression to map a string onto a valid variable name.
17236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17240 ## ----------------------------------- ##
17241 ## Main body of $CONFIG_STATUS script. ##
17242 ## ----------------------------------- ##
17244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 # Save the log message, to keep $0 and so on meaningful, and to
17248 # report actual input values of CONFIG_FILES etc. instead of their
17249 # values after options handling.
17251 This file was extended by lcms2 $as_me 2.3, which was
17252 generated by GNU Autoconf 2.68. Invocation command line was
17254 CONFIG_FILES = $CONFIG_FILES
17255 CONFIG_HEADERS = $CONFIG_HEADERS
17256 CONFIG_LINKS = $CONFIG_LINKS
17257 CONFIG_COMMANDS = $CONFIG_COMMANDS
17260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17265 case $ac_config_files in *"
17266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17272 # Files that config.status was made for.
17273 config_files="$ac_config_files"
17274 config_commands="$ac_config_commands"
17278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17280 \`$as_me' instantiates files and other configuration actions
17281 from templates according to the current configuration. Unless the files
17282 and actions are specified as TAGs, all are instantiated by default.
17284 Usage: $0 [OPTION]... [TAG]...
17286 -h, --help print this help, then exit
17287 -V, --version print version number and configuration settings, then exit
17288 --config print configuration, then exit
17289 -q, --quiet, --silent
17290 do not print progress messages
17291 -d, --debug don't remove temporary files
17292 --recheck update $as_me by reconfiguring in the same conditions
17293 --file=FILE[:TEMPLATE]
17294 instantiate the configuration file FILE
17296 Configuration files:
17299 Configuration commands:
17302 Report bugs to the package provider."
17305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17308 lcms2 config.status 2.3
17309 configured by $0, generated by GNU Autoconf 2.68,
17310 with options \\"\$ac_cs_config\\"
17312 Copyright (C) 2010 Free Software Foundation, Inc.
17313 This config.status script is free software; the Free Software Foundation
17314 gives unlimited permission to copy, distribute and modify it."
17321 test -n "\$AWK" || AWK=awk
17324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325 # The default lists apply if the user does not specify any file.
17331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17348 # Handling of the options.
17349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17352 $as_echo "$ac_cs_version"; exit ;;
17353 --config | --confi | --conf | --con | --co | --c )
17354 $as_echo "$ac_cs_config"; exit ;;
17355 --debug | --debu | --deb | --de | --d | -d )
17357 --file | --fil | --fi | --f )
17360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17361 '') as_fn_error $? "missing file argument" ;;
17363 as_fn_append CONFIG_FILES " '$ac_optarg'"
17364 ac_need_defaults=false;;
17365 --he | --h | --help | --hel | -h )
17366 $as_echo "$ac_cs_usage"; exit ;;
17367 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17368 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17371 # This is an error.
17372 -*) as_fn_error $? "unrecognized option: \`$1'
17373 Try \`$0 --help' for more information." ;;
17375 *) as_fn_append ac_config_targets " $1"
17376 ac_need_defaults=false ;;
17382 ac_configure_extra_args=
17384 if $ac_cs_silent; then
17386 ac_configure_extra_args="$ac_configure_extra_args --silent"
17390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17391 if \$ac_cs_recheck; then
17392 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17394 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17395 CONFIG_SHELL='$SHELL'
17396 export CONFIG_SHELL
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17405 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17406 ## Running $as_me. ##
17412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17419 # The HP-UX ksh and POSIX shell print the target directory to stdout
17420 # if CDPATH is set.
17421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17423 sed_quote_subst='$sed_quote_subst'
17424 double_quote_subst='$double_quote_subst'
17425 delay_variable_subst='$delay_variable_subst'
17426 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17427 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17428 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17429 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17430 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17431 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17432 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17435 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17436 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17465 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17482 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"`'
17483 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17484 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17493 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17517 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17518 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17519 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17520 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17521 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17522 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17523 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17524 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17525 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17526 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17527 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17528 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17529 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17530 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17531 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17532 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17533 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17534 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17535 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17536 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17537 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17538 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17539 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17540 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17541 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17542 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17543 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17544 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17545 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17546 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17547 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17548 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17549 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17550 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17551 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17552 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17553 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17554 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17555 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17556 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17557 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17558 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17559 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17560 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17561 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17562 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17563 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17564 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17565 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17566 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17567 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17568 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17569 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17570 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17571 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17572 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17573 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17574 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17575 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17576 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17577 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17578 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17579 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17580 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17581 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17582 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17583 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17585 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17586 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17587 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17588 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17589 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17590 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17591 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17592 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17593 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17594 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17595 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17596 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17597 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17598 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17599 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17600 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17601 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17602 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17603 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17605 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17606 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17607 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17608 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17609 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17610 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17611 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17614 LTCFLAGS='$LTCFLAGS'
17615 compiler='$compiler_DEFAULT'
17617 # A function that is used when there is no print builtin or printf.
17618 func_fallback_echo ()
17620 eval 'cat <<_LTECHO_EOF
17625 # Quote evaled strings.
17641 deplibs_check_method \
17645 sharedlib_from_linklib_cmd \
17648 archiver_list_spec \
17654 lt_cv_sys_global_symbol_pipe \
17655 lt_cv_sys_global_symbol_to_cdecl \
17656 lt_cv_sys_global_symbol_to_c_name_address \
17657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17658 nm_file_list_spec \
17659 lt_prog_compiler_no_builtin_flag \
17660 lt_prog_compiler_pic \
17661 lt_prog_compiler_wl \
17662 lt_prog_compiler_static \
17663 lt_cv_prog_compiler_c_o \
17672 export_dynamic_flag_spec \
17673 whole_archive_flag_spec \
17674 compiler_needs_object \
17676 allow_undefined_flag \
17677 no_undefined_flag \
17678 hardcode_libdir_flag_spec \
17679 hardcode_libdir_flag_spec_ld \
17680 hardcode_libdir_separator \
17684 variables_saved_for_relink \
17686 library_names_spec \
17688 install_override_mode \
17692 compiler_lib_search_dirs \
17697 compiler_lib_search_path \
17701 lt_prog_compiler_no_builtin_flag_CXX \
17702 lt_prog_compiler_pic_CXX \
17703 lt_prog_compiler_wl_CXX \
17704 lt_prog_compiler_static_CXX \
17705 lt_cv_prog_compiler_c_o_CXX \
17706 export_dynamic_flag_spec_CXX \
17707 whole_archive_flag_spec_CXX \
17708 compiler_needs_object_CXX \
17710 allow_undefined_flag_CXX \
17711 no_undefined_flag_CXX \
17712 hardcode_libdir_flag_spec_CXX \
17713 hardcode_libdir_flag_spec_ld_CXX \
17714 hardcode_libdir_separator_CXX \
17715 exclude_expsyms_CXX \
17716 include_expsyms_CXX \
17717 file_list_spec_CXX \
17718 compiler_lib_search_dirs_CXX \
17719 predep_objects_CXX \
17720 postdep_objects_CXX \
17723 compiler_lib_search_path_CXX; do
17724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17725 *[\\\\\\\`\\"\\\$]*)
17726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17734 # Double-quote double-evaled strings.
17735 for var in reload_cmds \
17736 old_postinstall_cmds \
17737 old_postuninstall_cmds \
17739 extract_expsyms_cmds \
17740 old_archive_from_new_cmds \
17741 old_archive_from_expsyms_cmds \
17743 archive_expsym_cmds \
17745 module_expsym_cmds \
17746 export_symbols_cmds \
17750 postuninstall_cmds \
17752 sys_lib_search_path_spec \
17753 sys_lib_dlsearch_path_spec \
17755 old_archive_cmds_CXX \
17756 old_archive_from_new_cmds_CXX \
17757 old_archive_from_expsyms_cmds_CXX \
17759 archive_expsym_cmds_CXX \
17761 module_expsym_cmds_CXX \
17762 export_symbols_cmds_CXX \
17764 postlink_cmds_CXX; do
17765 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17766 *[\\\\\\\`\\"\\\$]*)
17767 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17770 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17775 ac_aux_dir='$ac_aux_dir'
17776 xsi_shell='$xsi_shell'
17777 lt_shell_append='$lt_shell_append'
17779 # See if we are running on zsh, and set the options which allow our
17780 # commands through without removal of \ escapes INIT.
17781 if test -n "\${ZSH_VERSION+set}" ; then
17782 setopt NO_GLOB_SUBST
17788 TIMESTAMP='$TIMESTAMP'
17799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801 # Handling of arguments.
17802 for ac_config_target in $ac_config_targets
17804 case $ac_config_target in
17805 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17806 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17807 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17808 "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
17809 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17810 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17811 "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
17812 "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
17813 "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
17814 "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
17815 "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
17816 "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
17818 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17823 # If the user did not use the arguments to specify the items to instantiate,
17824 # then the envvar interface is used. Set only those that are not.
17825 # We use the long form for the default assignment because of an extremely
17826 # bizarre bug on SunOS 4.1.3.
17827 if $ac_need_defaults; then
17828 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17829 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17832 # Have a temporary directory for convenience. Make it in the build tree
17833 # simply because there is no reason against having it here, and in addition,
17834 # creating and moving files from /tmp can sometimes cause problems.
17835 # Hook for its removal unless debugging.
17836 # Note that there is a small window in which the directory will not be cleaned:
17837 # after its creation but before its name has been assigned to `$tmp'.
17841 trap 'exit_status=$?
17842 : "${ac_tmp:=$tmp}"
17843 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17845 trap 'as_fn_exit 1' 1 2 13 15
17847 # Create a (secure) tmp directory for tmp files.
17850 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17854 tmp=./conf$$-$RANDOM
17855 (umask 077 && mkdir "$tmp")
17856 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17859 # Set up the scripts for CONFIG_FILES section.
17860 # No need to generate them if there are no CONFIG_FILES.
17861 # This happens for instance with `./config.status config.h'.
17862 if test -n "$CONFIG_FILES"; then
17865 ac_cr=`echo X | tr X '\015'`
17866 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17867 # But we know of no other shell where ac_cr would be empty at this
17868 # point, so we can use a bashism as a fallback.
17869 if test "x$ac_cr" = x; then
17870 eval ac_cr=\$\'\\r\'
17872 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17876 ac_cs_awk_cr=$ac_cr
17879 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17884 echo "cat >conf$$subs.awk <<_ACEOF" &&
17885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17887 } >conf$$subs.sh ||
17888 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17891 for ac_last_try in false false false false false :; do
17892 . ./conf$$subs.sh ||
17893 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17896 if test $ac_delim_n = $ac_delim_num; then
17898 elif $ac_last_try; then
17899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17904 rm -f conf$$subs.sh
17906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17907 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17911 s/^/S["/; s/!.*/"]=/
17921 s/\(.\{148\}\)..*/\1/
17923 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17928 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17935 s/\(.\{148\}\)..*/\1/
17937 s/["\\]/\\&/g; s/^/"/; s/$/"/
17941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17946 ' <conf$$subs.awk | sed '
17951 ' >>$CONFIG_STATUS || ac_write_fail=1
17952 rm -f conf$$subs.awk
17953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17955 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17956 for (key in S) S_is_set[key] = 1
17962 nfields = split(line, field, "@")
17964 len = length(field[1])
17965 for (i = 2; i < nfields; i++) {
17967 keylen = length(key)
17968 if (S_is_set[key]) {
17970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17971 len += length(value) + length(field[++i])
17982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17983 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17987 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17988 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17991 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17992 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17993 # trailing colons and then remove the whole line if VPATH becomes empty
17994 # (actually we leave an empty line to preserve line numbers).
17995 if test "x$srcdir" = x.; then
17996 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 fi # test -n "$CONFIG_FILES"
18018 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
18023 :[FHLC]) ac_mode=$ac_tag; continue;;
18025 case $ac_mode$ac_tag in
18027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18028 :[FH]-) ac_tag=-:-;;
18029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18046 -) ac_f="$ac_tmp/stdin";;
18047 *) # Look for the file first in the build tree, then in the source tree
18048 # (if the path is not absolute). The absolute path cannot be DOS-style,
18049 # because $ac_f cannot contain `:'.
18053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18058 as_fn_append ac_file_inputs " '$ac_f'"
18061 # Let's still pretend it is `configure' which instantiates (i.e., don't
18062 # use $as_me), people would be surprised to read:
18063 # /* config.h. Generated by config.status. */
18064 configure_input='Generated from '`
18065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18067 if test x"$ac_file" != x-; then
18068 configure_input="$ac_file. $configure_input"
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18070 $as_echo "$as_me: creating $ac_file" >&6;}
18072 # Neutralize special characters interpreted by sed in replacement strings.
18073 case $configure_input in #(
18074 *\&* | *\|* | *\\* )
18075 ac_sed_conf_input=`$as_echo "$configure_input" |
18076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18077 *) ac_sed_conf_input=$configure_input;;
18081 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18087 ac_dir=`$as_dirname -- "$ac_file" ||
18088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089 X"$ac_file" : 'X\(//\)[^/]' \| \
18090 X"$ac_file" : 'X\(//\)$' \| \
18091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18092 $as_echo X"$ac_file" |
18093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18097 /^X\(\/\/\)[^/].*/{
18110 as_dir="$ac_dir"; as_fn_mkdir_p
18114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18117 # A ".." for each directory in $ac_dir_suffix.
18118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18119 case $ac_top_builddir_sub in
18120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18124 ac_abs_top_builddir=$ac_pwd
18125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18126 # for backward compatibility:
18127 ac_top_builddir=$ac_top_build_prefix
18130 .) # We are building in place.
18132 ac_top_srcdir=$ac_top_builddir_sub
18133 ac_abs_top_srcdir=$ac_pwd ;;
18134 [\\/]* | ?:[\\/]* ) # Absolute name.
18135 ac_srcdir=$srcdir$ac_dir_suffix;
18136 ac_top_srcdir=$srcdir
18137 ac_abs_top_srcdir=$srcdir ;;
18138 *) # Relative name.
18139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18140 ac_top_srcdir=$ac_top_build_prefix$srcdir
18141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18156 ac_MKDIR_P=$MKDIR_P
18158 [\\/$]* | ?:[\\/]* ) ;;
18159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164 # If the template does not know about datarootdir, expand it.
18165 # FIXME: This hack should be removed a few years after 2.60.
18166 ac_datarootdir_hack=; ac_datarootdir_seen=
18177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18178 *datarootdir*) ac_datarootdir_seen=yes;;
18179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18184 ac_datarootdir_hack='
18185 s&@datadir@&$datadir&g
18186 s&@docdir@&$docdir&g
18187 s&@infodir@&$infodir&g
18188 s&@localedir@&$localedir&g
18189 s&@mandir@&$mandir&g
18190 s&\\\${datarootdir}&$datarootdir&g' ;;
18194 # Neutralize VPATH when `$srcdir' = `.'.
18195 # Shell code in configure.ac might set extrasub.
18196 # FIXME: do we really want to maintain this feature?
18197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198 ac_sed_extra="$ac_vpsub
18201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18204 s|@configure_input@|$ac_sed_conf_input|;t t
18205 s&@top_builddir@&$ac_top_builddir_sub&;t t
18206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18207 s&@srcdir@&$ac_srcdir&;t t
18208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18209 s&@top_srcdir@&$ac_top_srcdir&;t t
18210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18211 s&@builddir@&$ac_builddir&;t t
18212 s&@abs_builddir@&$ac_abs_builddir&;t t
18213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18214 s&@INSTALL@&$ac_INSTALL&;t t
18215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18216 $ac_datarootdir_hack
18218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18224 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18226 which seems to be undefined. Please make sure it is defined" >&5
18227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18228 which seems to be undefined. Please make sure it is defined" >&2;}
18230 rm -f "$ac_tmp/stdin"
18232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18239 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18240 $as_echo "$as_me: executing $ac_file commands" >&6;}
18245 case $ac_file$ac_mode in
18246 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18247 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18248 # are listed without --file. Let's play safe and only enable the eval
18249 # if we detect the quoting.
18250 case $CONFIG_FILES in
18251 *\'*) eval set x "$CONFIG_FILES" ;;
18252 *) set x $CONFIG_FILES ;;
18257 # Strip MF so we end up with the name of the file.
18258 mf=`echo "$mf" | sed -e 's/:.*$//'`
18259 # Check whether this is an Automake generated Makefile or not.
18260 # We used to match only the files named `Makefile.in', but
18261 # some people rename them; so instead we look at the file content.
18262 # Grep'ing the first line is not enough: some people post-process
18263 # each Makefile.in and add a new line on top of each file to say so.
18264 # Grep'ing the whole file is not good either: AIX grep has a line
18265 # limit of 2048, but all sed's we know have understand at least 4000.
18266 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18267 dirpart=`$as_dirname -- "$mf" ||
18268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18269 X"$mf" : 'X\(//\)[^/]' \| \
18270 X"$mf" : 'X\(//\)$' \| \
18271 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18277 /^X\(\/\/\)[^/].*/{
18293 # Extract the definition of DEPDIR, am__include, and am__quote
18294 # from the Makefile without running `make'.
18295 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18296 test -z "$DEPDIR" && continue
18297 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18298 test -z "am__include" && continue
18299 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18300 # When using ansi2knr, U may be empty or an underscore; expand it
18301 U=`sed -n 's/^U = //p' < "$mf"`
18302 # Find all dependency output files, they are included files with
18303 # $(DEPDIR) in their names. We invoke sed twice because it is the
18304 # simplest approach to changing $(DEPDIR) to its actual value in the
18306 for file in `sed -n "
18307 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18308 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18309 # Make sure the directory exists.
18310 test -f "$dirpart/$file" && continue
18311 fdir=`$as_dirname -- "$file" ||
18312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313 X"$file" : 'X\(//\)[^/]' \| \
18314 X"$file" : 'X\(//\)$' \| \
18315 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18316 $as_echo X"$file" |
18317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18321 /^X\(\/\/\)[^/].*/{
18334 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18335 # echo "creating $dirpart/$file"
18336 echo '# dummy' > "$dirpart/$file"
18343 # See if we are running on zsh, and set the options which allow our
18344 # commands through without removal of \ escapes.
18345 if test -n "${ZSH_VERSION+set}" ; then
18346 setopt NO_GLOB_SUBST
18349 cfgfile="${ofile}T"
18350 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18353 cat <<_LT_EOF >> "$cfgfile"
18356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18361 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18362 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18364 # Written by Gordon Matzigkeit, 1996
18366 # This file is part of GNU Libtool.
18368 # GNU Libtool is free software; you can redistribute it and/or
18369 # modify it under the terms of the GNU General Public License as
18370 # published by the Free Software Foundation; either version 2 of
18371 # the License, or (at your option) any later version.
18373 # As a special exception to the GNU General Public License,
18374 # if you distribute this file as part of a program or library that
18375 # is built using GNU Libtool, you may include this file under the
18376 # same distribution terms that you use for the rest of that program.
18378 # GNU Libtool is distributed in the hope that it will be useful,
18379 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18381 # GNU General Public License for more details.
18383 # You should have received a copy of the GNU General Public License
18384 # along with GNU Libtool; see the file COPYING. If not, a copy
18385 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18386 # obtained by writing to the Free Software Foundation, Inc.,
18387 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18390 # The names of the tagged configurations supported by this script.
18391 available_tags="CXX "
18393 # ### BEGIN LIBTOOL CONFIG
18395 # Whether or not to build shared libraries.
18396 build_libtool_libs=$enable_shared
18398 # Whether or not to build static libraries.
18399 build_old_libs=$enable_static
18401 # Assembler program.
18404 # DLL creation program.
18405 DLLTOOL=$lt_DLLTOOL
18407 # Object dumper program.
18408 OBJDUMP=$lt_OBJDUMP
18410 # Which release of libtool.m4 was used?
18411 macro_version=$macro_version
18412 macro_revision=$macro_revision
18414 # What type of objects to build.
18417 # Whether or not to optimize for fast installation.
18418 fast_install=$enable_fast_install
18420 # Shell to use when invoking shell scripts.
18423 # An echo program that protects backslashes.
18427 host_alias=$host_alias
18431 # The build system.
18432 build_alias=$build_alias
18436 # A sed program that does not truncate output.
18439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18440 Xsed="\$SED -e 1s/^X//"
18442 # A grep program that handles long lines.
18448 # A literal string matcher.
18451 # A BSD- or MS-compatible name lister.
18454 # Whether we need soft or hard links.
18457 # What is the maximum length of a command?
18458 max_cmd_len=$max_cmd_len
18460 # Object file suffix (normally "o").
18463 # Executable file suffix (normally "").
18466 # whether the shell understands "unset".
18469 # turn spaces into newlines.
18472 # turn newlines into spaces.
18475 # convert \$build file names to \$host format.
18476 to_host_file_cmd=$lt_cv_to_host_file_cmd
18478 # convert \$build files to toolchain format.
18479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18481 # Method to check whether dependent libraries are shared objects.
18482 deplibs_check_method=$lt_deplibs_check_method
18484 # Command to use when deplibs_check_method = "file_magic".
18485 file_magic_cmd=$lt_file_magic_cmd
18487 # How to find potential files when deplibs_check_method = "file_magic".
18488 file_magic_glob=$lt_file_magic_glob
18490 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18491 want_nocaseglob=$lt_want_nocaseglob
18493 # Command to associate shared and link libraries.
18494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18499 # Flags to create an archive.
18500 AR_FLAGS=$lt_AR_FLAGS
18502 # How to feed a file listing to the archiver.
18503 archiver_list_spec=$lt_archiver_list_spec
18505 # A symbol stripping program.
18508 # Commands used to install an old-style archive.
18510 old_postinstall_cmds=$lt_old_postinstall_cmds
18511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18513 # Whether to use a lock for old archive extraction.
18514 lock_old_archive_extraction=$lock_old_archive_extraction
18519 # LTCC compiler flags.
18520 LTCFLAGS=$lt_CFLAGS
18522 # Take the output of nm and produce a listing of raw symbols and C names.
18523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18525 # Transform the output of nm in a proper C declaration.
18526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18528 # Transform the output of nm in a C name address pair.
18529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18531 # Transform the output of nm in a C name address pair when lib prefix is needed.
18532 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18534 # Specify filename containing input files for \$NM.
18535 nm_file_list_spec=$lt_nm_file_list_spec
18537 # The root where to search for dependent libraries,and in which our libraries should be installed.
18538 lt_sysroot=$lt_sysroot
18540 # The name of the directory that contains temporary libtool files.
18543 # Used to examine libraries when file_magic_cmd begins with "file".
18544 MAGIC_CMD=$MAGIC_CMD
18546 # Must we lock files when doing compilation?
18547 need_locks=$lt_need_locks
18550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18553 DSYMUTIL=$lt_DSYMUTIL
18555 # Tool to change global to local symbols on Mac OS X.
18558 # Tool to manipulate fat objects and archives on Mac OS X.
18561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18565 OTOOL64=$lt_OTOOL64
18567 # Old archive suffix (normally "a").
18570 # Shared library suffix (normally ".so").
18571 shrext_cmds=$lt_shrext_cmds
18573 # The commands to extract the exported symbol list from a shared archive.
18574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18576 # Variables whose values should be saved in libtool wrapper scripts and
18577 # restored at link time.
18578 variables_saved_for_relink=$lt_variables_saved_for_relink
18580 # Do we need the "lib" prefix for modules?
18581 need_lib_prefix=$need_lib_prefix
18583 # Do we need a version for libraries?
18584 need_version=$need_version
18586 # Library versioning type.
18587 version_type=$version_type
18589 # Shared library runtime path variable.
18590 runpath_var=$runpath_var
18592 # Shared library path variable.
18593 shlibpath_var=$shlibpath_var
18595 # Is shlibpath searched before the hard-coded library search path?
18596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18598 # Format of library name prefix.
18599 libname_spec=$lt_libname_spec
18601 # List of archive names. First name is the real one, the rest are links.
18602 # The last name is the one that the linker finds with -lNAME
18603 library_names_spec=$lt_library_names_spec
18605 # The coded name of the library, if different from the real name.
18606 soname_spec=$lt_soname_spec
18608 # Permission mode override for installation of shared libraries.
18609 install_override_mode=$lt_install_override_mode
18611 # Command to use after installation of a shared archive.
18612 postinstall_cmds=$lt_postinstall_cmds
18614 # Command to use after uninstallation of a shared archive.
18615 postuninstall_cmds=$lt_postuninstall_cmds
18617 # Commands used to finish a libtool library installation in a directory.
18618 finish_cmds=$lt_finish_cmds
18620 # As "finish_cmds", except a single script fragment to be evaled but
18622 finish_eval=$lt_finish_eval
18624 # Whether we should hardcode library paths into libraries.
18625 hardcode_into_libs=$hardcode_into_libs
18627 # Compile-time system search path for libraries.
18628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18630 # Run-time system search path for libraries.
18631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18633 # Whether dlopen is supported.
18634 dlopen_support=$enable_dlopen
18636 # Whether dlopen of programs is supported.
18637 dlopen_self=$enable_dlopen_self
18639 # Whether dlopen of statically linked programs is supported.
18640 dlopen_self_static=$enable_dlopen_self_static
18642 # Commands to strip libraries.
18643 old_striplib=$lt_old_striplib
18644 striplib=$lt_striplib
18647 # The linker used to build libraries.
18650 # How to create reloadable object files.
18651 reload_flag=$lt_reload_flag
18652 reload_cmds=$lt_reload_cmds
18654 # Commands used to build an old-style archive.
18655 old_archive_cmds=$lt_old_archive_cmds
18657 # A language specific compiler.
18660 # Is the compiler the GNU compiler?
18663 # Compiler flag to turn off builtin functions.
18664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18666 # Additional compiler flags for building library objects.
18667 pic_flag=$lt_lt_prog_compiler_pic
18669 # How to pass a linker flag through the compiler.
18670 wl=$lt_lt_prog_compiler_wl
18672 # Compiler flag to prevent dynamic linking.
18673 link_static_flag=$lt_lt_prog_compiler_static
18675 # Does compiler simultaneously support -c and -o options?
18676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18678 # Whether or not to add -lc for building shared libraries.
18679 build_libtool_need_lc=$archive_cmds_need_lc
18681 # Whether or not to disallow shared libs when runtime libs are static.
18682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18684 # Compiler flag to allow reflexive dlopens.
18685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18687 # Compiler flag to generate shared objects directly from archives.
18688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18690 # Whether the compiler copes with passing no objects directly.
18691 compiler_needs_object=$lt_compiler_needs_object
18693 # Create an old-style archive from a shared archive.
18694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18696 # Create a temporary old-style archive to link instead of a shared archive.
18697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18699 # Commands used to build a shared archive.
18700 archive_cmds=$lt_archive_cmds
18701 archive_expsym_cmds=$lt_archive_expsym_cmds
18703 # Commands used to build a loadable module if different from building
18704 # a shared archive.
18705 module_cmds=$lt_module_cmds
18706 module_expsym_cmds=$lt_module_expsym_cmds
18708 # Whether we are building with GNU ld or not.
18709 with_gnu_ld=$lt_with_gnu_ld
18711 # Flag that allows shared libraries with undefined symbols to be built.
18712 allow_undefined_flag=$lt_allow_undefined_flag
18714 # Flag that enforces no undefined symbols.
18715 no_undefined_flag=$lt_no_undefined_flag
18717 # Flag to hardcode \$libdir into a binary during linking.
18718 # This must work even if \$libdir does not exist
18719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18721 # If ld is used when linking, flag to hardcode \$libdir into a binary
18722 # during linking. This must work even if \$libdir does not exist.
18723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18725 # Whether we need a single "-rpath" flag with a separated argument.
18726 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18728 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18729 # DIR into the resulting binary.
18730 hardcode_direct=$hardcode_direct
18732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18733 # DIR into the resulting binary and the resulting library dependency is
18734 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18735 # library is relocated.
18736 hardcode_direct_absolute=$hardcode_direct_absolute
18738 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18739 # into the resulting binary.
18740 hardcode_minus_L=$hardcode_minus_L
18742 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18743 # into the resulting binary.
18744 hardcode_shlibpath_var=$hardcode_shlibpath_var
18746 # Set to "yes" if building a shared library automatically hardcodes DIR
18747 # into the library and all subsequent libraries and executables linked
18749 hardcode_automatic=$hardcode_automatic
18751 # Set to yes if linker adds runtime paths of dependent libraries
18752 # to runtime path list.
18753 inherit_rpath=$inherit_rpath
18755 # Whether libtool must link a program against all its dependency libraries.
18756 link_all_deplibs=$link_all_deplibs
18758 # Set to "yes" if exported symbols are required.
18759 always_export_symbols=$always_export_symbols
18761 # The commands to list exported symbols.
18762 export_symbols_cmds=$lt_export_symbols_cmds
18764 # Symbols that should not be listed in the preloaded symbols.
18765 exclude_expsyms=$lt_exclude_expsyms
18767 # Symbols that must always be exported.
18768 include_expsyms=$lt_include_expsyms
18770 # Commands necessary for linking programs (against libraries) with templates.
18771 prelink_cmds=$lt_prelink_cmds
18773 # Commands necessary for finishing linking programs.
18774 postlink_cmds=$lt_postlink_cmds
18776 # Specify filename containing input files.
18777 file_list_spec=$lt_file_list_spec
18779 # How to hardcode a shared library path into an executable.
18780 hardcode_action=$hardcode_action
18782 # The directories searched by this compiler when creating a shared library.
18783 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18785 # Dependencies to place before and after the objects being linked to
18786 # create a shared library.
18787 predep_objects=$lt_predep_objects
18788 postdep_objects=$lt_postdep_objects
18789 predeps=$lt_predeps
18790 postdeps=$lt_postdeps
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path
18796 # ### END LIBTOOL CONFIG
18802 cat <<\_LT_EOF >> "$cfgfile"
18803 # AIX sometimes has problems with the GCC collect2 program. For some
18804 # reason, if we set the COLLECT_NAMES environment variable, the problems
18805 # vanish in a puff of smoke.
18806 if test "X${COLLECT_NAMES+set}" != Xset; then
18808 export COLLECT_NAMES
18815 ltmain="$ac_aux_dir/ltmain.sh"
18818 # We use sed instead of cat because bash on DJGPP gets confused if
18819 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18820 # text mode, it properly converts lines to CR/LF. This bash problem
18821 # is reportedly fixed, but why not run on old versions too?
18822 sed '$q' "$ltmain" >> "$cfgfile" \
18823 || (rm -f "$cfgfile"; exit 1)
18825 if test x"$xsi_shell" = xyes; then
18826 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18830 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18831 \ * ) func_dirname_result="${3}" ;;\
18833 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18834 && mv -f "$cfgfile.tmp" "$cfgfile" \
18835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836 test 0 -eq $? || _lt_function_replace_fail=:
18839 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18842 \ func_basename_result="${1##*/}"\
18843 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18844 && mv -f "$cfgfile.tmp" "$cfgfile" \
18845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18846 test 0 -eq $? || _lt_function_replace_fail=:
18849 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18850 func_dirname_and_basename ()\
18853 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18854 \ * ) func_dirname_result="${3}" ;;\
18856 \ func_basename_result="${1##*/}"\
18857 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18858 && mv -f "$cfgfile.tmp" "$cfgfile" \
18859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18863 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18866 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18867 \ # positional parameters, so assign one to ordinary parameter first.\
18868 \ func_stripname_result=${3}\
18869 \ func_stripname_result=${func_stripname_result#"${1}"}\
18870 \ func_stripname_result=${func_stripname_result%"${2}"}\
18871 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18872 && mv -f "$cfgfile.tmp" "$cfgfile" \
18873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18874 test 0 -eq $? || _lt_function_replace_fail=:
18877 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18878 func_split_long_opt ()\
18880 \ func_split_long_opt_name=${1%%=*}\
18881 \ func_split_long_opt_arg=${1#*=}\
18882 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18883 && mv -f "$cfgfile.tmp" "$cfgfile" \
18884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18885 test 0 -eq $? || _lt_function_replace_fail=:
18888 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18889 func_split_short_opt ()\
18891 \ func_split_short_opt_arg=${1#??}\
18892 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18893 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18894 && mv -f "$cfgfile.tmp" "$cfgfile" \
18895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18896 test 0 -eq $? || _lt_function_replace_fail=:
18899 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18903 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18904 \ *) func_lo2o_result=${1} ;;\
18906 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18907 && mv -f "$cfgfile.tmp" "$cfgfile" \
18908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18909 test 0 -eq $? || _lt_function_replace_fail=:
18912 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18915 func_xform_result=${1%.*}.lo\
18916 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18917 && mv -f "$cfgfile.tmp" "$cfgfile" \
18918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18919 test 0 -eq $? || _lt_function_replace_fail=:
18922 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18925 func_arith_result=$(( $* ))\
18926 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18927 && mv -f "$cfgfile.tmp" "$cfgfile" \
18928 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18929 test 0 -eq $? || _lt_function_replace_fail=:
18932 sed -e '/^func_len ()$/,/^} # func_len /c\
18935 func_len_result=${#1}\
18936 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18937 && mv -f "$cfgfile.tmp" "$cfgfile" \
18938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18939 test 0 -eq $? || _lt_function_replace_fail=:
18943 if test x"$lt_shell_append" = xyes; then
18944 sed -e '/^func_append ()$/,/^} # func_append /c\
18947 eval "${1}+=\\${2}"\
18948 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18949 && mv -f "$cfgfile.tmp" "$cfgfile" \
18950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18951 test 0 -eq $? || _lt_function_replace_fail=:
18954 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18955 func_append_quoted ()\
18957 \ func_quote_for_eval "${2}"\
18958 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18959 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18960 && mv -f "$cfgfile.tmp" "$cfgfile" \
18961 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18962 test 0 -eq $? || _lt_function_replace_fail=:
18965 # Save a `func_append' function call where possible by direct use of '+='
18966 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18967 && mv -f "$cfgfile.tmp" "$cfgfile" \
18968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969 test 0 -eq $? || _lt_function_replace_fail=:
18971 # Save a `func_append' function call even when '+=' is not available
18972 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18973 && mv -f "$cfgfile.tmp" "$cfgfile" \
18974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18975 test 0 -eq $? || _lt_function_replace_fail=:
18978 if test x"$_lt_function_replace_fail" = x":"; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18980 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18984 mv -f "$cfgfile" "$ofile" ||
18985 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18989 cat <<_LT_EOF >> "$ofile"
18991 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18993 # The linker used to build libraries.
18996 # How to create reloadable object files.
18997 reload_flag=$lt_reload_flag_CXX
18998 reload_cmds=$lt_reload_cmds_CXX
19000 # Commands used to build an old-style archive.
19001 old_archive_cmds=$lt_old_archive_cmds_CXX
19003 # A language specific compiler.
19004 CC=$lt_compiler_CXX
19006 # Is the compiler the GNU compiler?
19009 # Compiler flag to turn off builtin functions.
19010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19012 # Additional compiler flags for building library objects.
19013 pic_flag=$lt_lt_prog_compiler_pic_CXX
19015 # How to pass a linker flag through the compiler.
19016 wl=$lt_lt_prog_compiler_wl_CXX
19018 # Compiler flag to prevent dynamic linking.
19019 link_static_flag=$lt_lt_prog_compiler_static_CXX
19021 # Does compiler simultaneously support -c and -o options?
19022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19024 # Whether or not to add -lc for building shared libraries.
19025 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19027 # Whether or not to disallow shared libs when runtime libs are static.
19028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19030 # Compiler flag to allow reflexive dlopens.
19031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19033 # Compiler flag to generate shared objects directly from archives.
19034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19036 # Whether the compiler copes with passing no objects directly.
19037 compiler_needs_object=$lt_compiler_needs_object_CXX
19039 # Create an old-style archive from a shared archive.
19040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19042 # Create a temporary old-style archive to link instead of a shared archive.
19043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19045 # Commands used to build a shared archive.
19046 archive_cmds=$lt_archive_cmds_CXX
19047 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19049 # Commands used to build a loadable module if different from building
19050 # a shared archive.
19051 module_cmds=$lt_module_cmds_CXX
19052 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19054 # Whether we are building with GNU ld or not.
19055 with_gnu_ld=$lt_with_gnu_ld_CXX
19057 # Flag that allows shared libraries with undefined symbols to be built.
19058 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19060 # Flag that enforces no undefined symbols.
19061 no_undefined_flag=$lt_no_undefined_flag_CXX
19063 # Flag to hardcode \$libdir into a binary during linking.
19064 # This must work even if \$libdir does not exist
19065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19067 # If ld is used when linking, flag to hardcode \$libdir into a binary
19068 # during linking. This must work even if \$libdir does not exist.
19069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19071 # Whether we need a single "-rpath" flag with a separated argument.
19072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19075 # DIR into the resulting binary.
19076 hardcode_direct=$hardcode_direct_CXX
19078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19079 # DIR into the resulting binary and the resulting library dependency is
19080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19081 # library is relocated.
19082 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19085 # into the resulting binary.
19086 hardcode_minus_L=$hardcode_minus_L_CXX
19088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19089 # into the resulting binary.
19090 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19092 # Set to "yes" if building a shared library automatically hardcodes DIR
19093 # into the library and all subsequent libraries and executables linked
19095 hardcode_automatic=$hardcode_automatic_CXX
19097 # Set to yes if linker adds runtime paths of dependent libraries
19098 # to runtime path list.
19099 inherit_rpath=$inherit_rpath_CXX
19101 # Whether libtool must link a program against all its dependency libraries.
19102 link_all_deplibs=$link_all_deplibs_CXX
19104 # Set to "yes" if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_CXX
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19110 # Symbols that should not be listed in the preloaded symbols.
19111 exclude_expsyms=$lt_exclude_expsyms_CXX
19113 # Symbols that must always be exported.
19114 include_expsyms=$lt_include_expsyms_CXX
19116 # Commands necessary for linking programs (against libraries) with templates.
19117 prelink_cmds=$lt_prelink_cmds_CXX
19119 # Commands necessary for finishing linking programs.
19120 postlink_cmds=$lt_postlink_cmds_CXX
19122 # Specify filename containing input files.
19123 file_list_spec=$lt_file_list_spec_CXX
19125 # How to hardcode a shared library path into an executable.
19126 hardcode_action=$hardcode_action_CXX
19128 # The directories searched by this compiler when creating a shared library.
19129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19131 # Dependencies to place before and after the objects being linked to
19132 # create a shared library.
19133 predep_objects=$lt_predep_objects_CXX
19134 postdep_objects=$lt_postdep_objects_CXX
19135 predeps=$lt_predeps_CXX
19136 postdeps=$lt_postdeps_CXX
19138 # The library search path used internally by the compiler when linking
19139 # a shared library.
19140 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19142 # ### END LIBTOOL TAG CONFIG: CXX
19153 ac_clean_files=$ac_clean_files_save
19155 test $ac_write_fail = 0 ||
19156 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19159 # configure is writing to config.log, and then calls config.status.
19160 # config.status does its own redirection, appending to config.log.
19161 # Unfortunately, on DOS this fails, as config.log is still kept open
19162 # by configure, so config.status won't be able to write to it; its
19163 # output is simply discarded. So we exec the FD to /dev/null,
19164 # effectively closing config.log, so it can be properly (re)opened and
19165 # appended to by config.status. When coming back to configure, we
19166 # need to make the FD available again.
19167 if test "$no_create" != yes; then
19169 ac_config_status_args=
19170 test "$silent" = yes &&
19171 ac_config_status_args="$ac_config_status_args --quiet"
19173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19176 # would make configure fail if this is the last instruction.
19177 $ac_cs_success || as_fn_exit 1
19179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}