2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for wimlib 0.6.2.
5 @%:@ Report bugs to <ebiggers3@gmail.com>.
8 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in @%:@(
173 set -o posix ;; @%:@(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
225 case $as_dir in @%:@(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: ebiggers3@gmail.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 @%:@ Portably unset VAR.
301 { eval $1=; unset $1;}
305 @%:@ as_fn_set_status STATUS
306 @%:@ -----------------------
307 @%:@ Set @S|@? to STATUS, without forking.
311 } @%:@ as_fn_set_status
313 @%:@ as_fn_exit STATUS
314 @%:@ -----------------
315 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 @%:@ as_fn_executable_p FILE
372 @%:@ -----------------------
373 @%:@ Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } @%:@ as_fn_executable_p
378 @%:@ as_fn_append VAR VALUE
379 @%:@ ----------------------
380 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381 @%:@ advantage of any shell optimizations that allow amortized linear growth over
382 @%:@ repeated appends, instead of the typical quadratic growth present in naive
383 @%:@ implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
396 @%:@ as_fn_arith ARG...
397 @%:@ ------------------
398 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400 @%:@ must be portable across @S|@(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415 @%:@ ----------------------------------------
416 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 @%:@ script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in @%:@(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='wimlib'
592 PACKAGE_TARNAME='wimlib'
593 PACKAGE_VERSION='0.6.2'
594 PACKAGE_STRING='wimlib 0.6.2'
595 PACKAGE_BUGREPORT='ebiggers3@gmail.com'
598 ac_unique_file="src/wim.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
706 INSTALL_STRIP_PROGRAM
748 program_transform_name
761 enable_option_checking
762 enable_dependency_tracking
774 enable_error_messages
775 enable_custom_memory_allocator
777 enable_verify_compression
782 ac_precious_vars='build_alias
793 # Initialize some variables set by options.
795 ac_init_version=false
796 ac_unrecognized_opts=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858 # Accept the important Cygnus configure options, so we can diagnose typos.
860 case $ac_dashdash$ac_option in
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
882 cache_file=config.cache ;;
884 -datadir | --datadir | --datadi | --datad)
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
910 eval enable_$ac_useropt=no ;;
912 -docdir | --docdir | --docdi | --doc | --do)
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
936 eval enable_$ac_useropt=\$ac_optarg ;;
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
951 -help | --help | --hel | --he | -h)
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967 htmldir=$ac_optarg ;;
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
981 -libdir | --libdir | --libdi | --libd)
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
993 -localedir | --localedir | --localedi | --localed | --locale)
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1072 -psdir | --psdir | --psdi | --psd | --ps)
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 sbindir=$ac_optarg ;;
1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089 | --sharedst | --shareds | --shared | --share | --shar \
1091 ac_prev=sharedstatedir ;;
1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 sharedstatedir=$ac_optarg ;;
1098 -site | --site | --sit)
1100 -site=* | --site=* | --sit=*)
1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106 srcdir=$ac_optarg ;;
1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109 | --syscon | --sysco | --sysc | --sys | --sy)
1110 ac_prev=sysconfdir ;;
1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113 sysconfdir=$ac_optarg ;;
1115 -target | --target | --targe | --targ | --tar | --ta | --t)
1116 ac_prev=target_alias ;;
1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118 target_alias=$ac_optarg ;;
1120 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 -version | --version | --versio | --versi | --vers | -V)
1124 ac_init_version=: ;;
1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error $? "invalid package name: $ac_useropt"
1131 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in
1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138 ac_unrecognized_sep=', ';;
1140 eval with_$ac_useropt=\$ac_optarg ;;
1142 -without-* | --without-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval with_$ac_useropt=no ;;
1159 # Obsolete; use --with-x.
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177 Try \`$0 --help' for more information"
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 case $ac_envvar in #(
1184 '' | [0-9]* | *[!_$as_cr_alnum]* )
1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 as_fn_error $? "missing argument to $ac_option"
1206 if test -n "$ac_unrecognized_opts"; then
1207 case $enable_option_checking in
1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214 # Check all directory arguments for consistency.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1221 # Remove trailing slashes.
1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225 eval $ac_var=\$ac_val;;
1227 # Be sure to have absolute directory names.
1229 [\\/$]* | ?:[\\/]* ) continue;;
1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1235 # There might be people who depend on the old broken behavior: `$host'
1236 # used to hold the argument of --host etc.
1237 # FIXME: To remove some day.
1240 target=$target_alias
1242 # FIXME: To remove some day.
1243 if test "x$host_alias" != x; then
1244 if test "x$build_alias" = x; then
1245 cross_compiling=maybe
1246 elif test "x$build_alias" != "x$host_alias"; then
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error $? "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error $? "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures wimlib 0.6.2 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking ...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 @<:@@S|@ac_default_prefix@:>@
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/wimlib@:>@
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of wimlib 0.6.2:";;
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-dependency-tracking
1410 do not reject slow dependency extractors
1411 --disable-dependency-tracking
1412 speeds up one-time build
1413 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1414 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1415 --enable-fast-install@<:@=PKGS@:>@
1416 optimize for fast installation @<:@default=yes@:>@
1417 --disable-libtool-lock avoid locking (might break parallel builds)
1418 --disable-rpath do not hardcode runtime library paths
1419 --enable-debug include lots of debugging messages
1420 --enable-more-debug include even more debugging messages
1421 --disable-error-messages
1422 do not compile in error messsages
1423 --disable-custom-memory-allocator
1424 do not support the use of custom memory allocation
1426 --disable-assertions do not include assertions
1427 --disable-verify-compression
1428 disable checking if blocks we compress can be
1429 correctly decompressed
1430 --enable-ssse3-sha1 use assembly language implementation of SHA1 from
1431 Intel, accelerated with vector instructions
1432 (SSSE3-enabled CPU required)
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1439 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442 --with-gnu-ld assume the C compiler uses GNU ld default=no
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1445 --without-fuse build without libfuse. This will disable the ability
1447 --without-libcrypto build in the SHA1 algorithm, rather than use
1448 external libcrypto from OpenSSL (default is
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1461 Use these variables to override the choices made by `configure' or to help
1462 it to find libraries and programs with nonstandard names/locations.
1464 Report bugs to <ebiggers3@gmail.com>.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" ||
1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481 # A ".." for each directory in $ac_dir_suffix.
1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483 case $ac_top_builddir_sub in
1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488 ac_abs_top_builddir=$ac_pwd
1489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490 # for backward compatibility:
1491 ac_top_builddir=$ac_top_build_prefix
1494 .) # We are building in place.
1496 ac_top_srcdir=$ac_top_builddir_sub
1497 ac_abs_top_srcdir=$ac_pwd ;;
1498 [\\/]* | ?:[\\/]* ) # Absolute name.
1499 ac_srcdir=$srcdir$ac_dir_suffix;
1500 ac_top_srcdir=$srcdir
1501 ac_abs_top_srcdir=$srcdir ;;
1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504 ac_top_srcdir=$ac_top_build_prefix$srcdir
1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509 cd "$ac_dir" || { ac_status=$?; continue; }
1510 # Check for guested configure.
1511 if test -f "$ac_srcdir/configure.gnu"; then
1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514 elif test -f "$ac_srcdir/configure"; then
1516 $SHELL "$ac_srcdir/configure" --help=recursive
1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 cd "$ac_pwd" || { ac_status=$?; break; }
1524 test -n "$ac_init_help" && exit $ac_status
1525 if $ac_init_version; then
1527 wimlib configure 0.6.2
1528 generated by GNU Autoconf 2.69
1530 Copyright (C) 2012 Free Software Foundation, Inc.
1531 This configure script is free software; the Free Software Foundation
1532 gives unlimited permission to copy, distribute and modify it.
1537 ## ------------------------ ##
1538 ## Autoconf initialization. ##
1539 ## ------------------------ ##
1541 @%:@ ac_fn_c_try_compile LINENO
1542 @%:@ --------------------------
1543 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1544 ac_fn_c_try_compile ()
1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547 rm -f conftest.$ac_objext
1548 if { { ac_try="$ac_compile"
1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551 *) ac_try_echo=$ac_try;;
1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554 $as_echo "$ac_try_echo"; } >&5
1555 (eval "$ac_compile") 2>conftest.err
1557 if test -s conftest.err; then
1558 grep -v '^ *+' conftest.err >conftest.er1
1559 cat conftest.er1 >&5
1560 mv -f conftest.er1 conftest.err
1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563 test $ac_status = 0; } && {
1564 test -z "$ac_c_werror_flag" ||
1565 test ! -s conftest.err
1566 } && test -s conftest.$ac_objext; then :
1569 $as_echo "$as_me: failed program was:" >&5
1570 sed 's/^/| /' conftest.$ac_ext >&5
1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575 as_fn_set_status $ac_retval
1577 } @%:@ ac_fn_c_try_compile
1579 @%:@ ac_fn_c_try_run LINENO
1580 @%:@ ----------------------
1581 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1582 @%:@ that executables *can* be run.
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 if { { ac_try="$ac_link"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593 (eval "$ac_link") 2>&5
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1597 { { case "(($ac_try" in
1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599 *) ac_try_echo=$ac_try;;
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603 (eval "$ac_try") 2>&5
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; }; }; then :
1609 $as_echo "$as_me: program exited with status $ac_status" >&5
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1613 ac_retval=$ac_status
1615 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1619 } @%:@ ac_fn_c_try_run
1621 @%:@ ac_fn_c_try_cpp LINENO
1622 @%:@ ----------------------
1623 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1656 } @%:@ ac_fn_c_try_cpp
1658 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 @%:@ -------------------------------------------------------
1660 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1661 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 $as_echo_n "checking for $2... " >&6; }
1667 if eval \${$3+:} false; then :
1668 $as_echo_n "(cached) " >&6
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1675 if ac_fn_c_try_compile "$LINENO"; then :
1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } @%:@ ac_fn_c_check_header_compile
1689 @%:@ ac_fn_c_try_link LINENO
1690 @%:@ -----------------------
1691 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } @%:@ ac_fn_c_try_link
1735 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1736 @%:@ ----------------------------------
1737 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1738 ac_fn_c_check_func ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (); below.
1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1755 <limits.h> exists even on freestanding compilers. */
1758 # include <limits.h>
1760 # include <assert.h>
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"; then :
1792 rm -f core conftest.err conftest.$ac_objext \
1793 conftest$ac_exeext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } @%:@ ac_fn_c_check_func
1801 cat >config.log <<_ACEOF
1802 This file contains any messages produced by compilers while
1803 running configure, to aid debugging if configure makes a mistake.
1805 It was created by wimlib $as_me 0.6.2, which was
1806 generated by GNU Autoconf 2.69. Invocation command line was
1818 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1824 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1827 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1830 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1831 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 test -z "$as_dir" && as_dir=.
1842 $as_echo "PATH: $as_dir"
1858 # Keep a trace of the command line.
1859 # Strip out --no-create and --no-recursion so they do not pile up.
1860 # Strip out --silent because we don't want to record it for future runs.
1861 # Also quote any args containing shell meta-characters.
1862 # Make two passes to allow for proper duplicate-argument suppression.
1866 ac_must_keep_next=false
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1895 -* ) ac_must_keep_next=true ;;
1898 as_fn_append ac_configure_args " '$ac_arg'"
1903 { ac_configure_args0=; unset ac_configure_args0;}
1904 { ac_configure_args1=; unset ac_configure_args1;}
1906 # When interrupted or exit'd, cleanup temporary files, and complete
1907 # config.log. We remove comments because anyway the quotes in there
1908 # would cause problems or look ugly.
1909 # WARNING: Use '\'' to represent an apostrophe within the trap.
1910 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1911 trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1916 $as_echo "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1920 # The following way of writing the cache mishandles newlines in values,
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1927 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 $as_echo "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1956 for ac_var in $ac_subst_vars
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1966 if test -n "$ac_subst_files"; then
1967 $as_echo "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1971 for ac_var in $ac_subst_files
1973 eval ac_val=\$$ac_var
1975 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 $as_echo "$ac_var='\''$ac_val'\''"
1982 if test -s confdefs.h; then
1983 $as_echo "## ----------- ##
1990 test "$ac_signal" != 0 &&
1991 $as_echo "$as_me: caught signal $ac_signal"
1992 $as_echo "$as_me: exit $exit_status"
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2006 $as_echo "/* confdefs.h */" > confdefs.h
2008 # Predefined preprocessor variables.
2010 cat >>confdefs.h <<_ACEOF
2011 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2014 cat >>confdefs.h <<_ACEOF
2015 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2018 cat >>confdefs.h <<_ACEOF
2019 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2022 cat >>confdefs.h <<_ACEOF
2023 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2026 cat >>confdefs.h <<_ACEOF
2027 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2030 cat >>confdefs.h <<_ACEOF
2031 @%:@define PACKAGE_URL "$PACKAGE_URL"
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2039 if test -n "$CONFIG_SITE"; then
2040 # We do not want a PATH search for config.site.
2041 case $CONFIG_SITE in @%:@((
2042 -*) ac_site_file1=./$CONFIG_SITE;;
2043 */*) ac_site_file1=$CONFIG_SITE;;
2044 *) ac_site_file1=./$CONFIG_SITE;;
2046 elif test "x$prefix" != xNONE; then
2047 ac_site_file1=$prefix/share/config.site
2048 ac_site_file2=$prefix/etc/config.site
2050 ac_site_file1=$ac_default_prefix/share/config.site
2051 ac_site_file2=$ac_default_prefix/etc/config.site
2053 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2055 test "x$ac_site_file" = xNONE && continue
2056 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2058 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2059 sed 's/^/| /' "$ac_site_file" >&5
2061 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2063 as_fn_error $? "failed to load site script $ac_site_file
2064 See \`config.log' for more details" "$LINENO" 5; }
2068 if test -r "$cache_file"; then
2069 # Some versions of bash will fail to source /dev/null (special files
2070 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2071 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2073 $as_echo "$as_me: loading cache $cache_file" >&6;}
2075 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2076 *) . "./$cache_file";;
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2081 $as_echo "$as_me: creating cache $cache_file" >&6;}
2085 # Check that the precious variables saved in the cache have kept the same
2087 ac_cache_corrupted=false
2088 for ac_var in $ac_precious_vars; do
2089 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2090 eval ac_new_set=\$ac_env_${ac_var}_set
2091 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2092 eval ac_new_val=\$ac_env_${ac_var}_value
2093 case $ac_old_set,$ac_new_set in
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2096 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2097 ac_cache_corrupted=: ;;
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2100 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2101 ac_cache_corrupted=: ;;
2104 if test "x$ac_old_val" != "x$ac_new_val"; then
2105 # differences in whitespace do not lead to failure.
2106 ac_old_val_w=`echo x $ac_old_val`
2107 ac_new_val_w=`echo x $ac_new_val`
2108 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2110 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2111 ac_cache_corrupted=:
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2114 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2115 eval $ac_var=\$ac_old_val
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2118 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2120 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2123 # Pass precious variables to config.status.
2124 if test "$ac_new_set" = set; then
2126 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2127 *) ac_arg=$ac_var=$ac_new_val ;;
2129 case " $ac_configure_args " in
2130 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2131 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2135 if $ac_cache_corrupted; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2139 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2140 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2142 ## -------------------- ##
2143 ## Main body of script. ##
2144 ## -------------------- ##
2147 ac_cpp='$CPP $CPPFLAGS'
2148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2154 am__api_version='1.12'
2157 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2158 if test -f "$ac_dir/install-sh"; then
2160 ac_install_sh="$ac_aux_dir/install-sh -c"
2162 elif test -f "$ac_dir/install.sh"; then
2164 ac_install_sh="$ac_aux_dir/install.sh -c"
2166 elif test -f "$ac_dir/shtool"; then
2168 ac_install_sh="$ac_aux_dir/shtool install -c"
2172 if test -z "$ac_aux_dir"; then
2173 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2176 # These three variables are undocumented and unsupported,
2177 # and are intended to be withdrawn in a future Autoconf release.
2178 # They can cause serious problems if a builder's source tree is in a directory
2179 # whose full name contains unusual characters.
2180 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2185 # Find a good install program. We prefer a C program (faster),
2186 # so one script is as good as another. But avoid the broken or
2187 # incompatible versions:
2188 # SysV /etc/install, /usr/sbin/install
2189 # SunOS /usr/etc/install
2190 # IRIX /sbin/install
2192 # AmigaOS /C/install, which installs bootblocks on floppy discs
2193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2196 # OS/2's system install, which has a completely different semantic
2197 # ./install, which can be erroneously created by make from ./install.sh.
2198 # Reject install programs that cannot install multiple files.
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2201 if test -z "$INSTALL"; then
2202 if ${ac_cv_path_install+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 test -z "$as_dir" && as_dir=.
2210 # Account for people who put trailing slashes in PATH elements.
2211 case $as_dir/ in @%:@((
2212 ./ | .// | /[cC]/* | \
2213 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2214 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2217 # OSF1 and SCO ODT 3.0 have their own names for install.
2218 # Don't use installbsd from OSF since it installs stuff as root
2220 for ac_prog in ginstall scoinst install; do
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2223 if test $ac_prog = install &&
2224 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2225 # AIX install. It has an incompatible calling convention.
2227 elif test $ac_prog = install &&
2228 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # program-specific install script used by HP pwplus--don't use.
2232 rm -rf conftest.one conftest.two conftest.dir
2233 echo one > conftest.one
2234 echo two > conftest.two
2236 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2237 test -s conftest.one && test -s conftest.two &&
2238 test -s conftest.dir/conftest.one &&
2239 test -s conftest.dir/conftest.two
2241 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2254 rm -rf conftest.one conftest.two conftest.dir
2257 if test "${ac_cv_path_install+set}" = set; then
2258 INSTALL=$ac_cv_path_install
2260 # As a last resort, use the slow shell script. Don't cache a
2261 # value for INSTALL within a source directory, because that will
2262 # break other packages using the cache if that directory is
2263 # removed, or if the value is a relative name.
2264 INSTALL=$ac_install_sh
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2268 $as_echo "$INSTALL" >&6; }
2270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2271 # It thinks the first close brace ends the variable substitution.
2272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2279 $as_echo_n "checking whether build environment is sane... " >&6; }
2280 # Reject unsafe characters in $srcdir or the absolute working directory
2281 # name. Accept space and tab only in the latter.
2285 *[\\\"\#\$\&\'\`$am_lf]*)
2286 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2289 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2290 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2293 # Do 'set' in a subshell so we don't clobber the current shell's
2294 # arguments. Must try -L first in case configure is actually a
2295 # symlink; some systems play weird games with the mod time of symlinks
2296 # (eg FreeBSD returns the mod time of the symlink's containing
2300 for am_try in 1 2; do
2301 echo "timestamp, slept: $am_has_slept" > conftest.file
2302 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2303 if test "$*" = "X"; then
2305 set X `ls -t "$srcdir/configure" conftest.file`
2307 if test "$*" != "X $srcdir/configure conftest.file" \
2308 && test "$*" != "X conftest.file $srcdir/configure"; then
2310 # If neither matched, then we have a broken ls. This can happen
2311 # if, for instance, CONFIG_SHELL is bash and it inherits a
2312 # broken ls alias from the environment. This has actually
2313 # happened. Such a system could not be considered "sane".
2314 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2315 alias in your environment" "$LINENO" 5
2317 if test "$2" = conftest.file || test $am_try -eq 2; then
2324 test "$2" = conftest.file
2330 as_fn_error $? "newly created file is older than distributed files!
2331 Check your system clock" "$LINENO" 5
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2334 $as_echo "yes" >&6; }
2335 # If we didn't sleep, we still need to ensure time stamps of config.status and
2336 # generated files are strictly newer.
2338 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2345 test "$program_prefix" != NONE &&
2346 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2347 # Use a double $ so make ignores it.
2348 test "$program_suffix" != NONE &&
2349 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2350 # Double any \ or $.
2351 # By default was `s,x,x', remove it if useless.
2352 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2353 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2355 # expand $ac_aux_dir to an absolute path
2356 am_aux_dir=`cd $ac_aux_dir && pwd`
2358 if test x"${MISSING+set}" != xset; then
2361 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2363 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2366 # Use eval to expand $SHELL
2367 if eval "$MISSING --run true"; then
2368 am_missing_run="$MISSING --run "
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2372 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2375 if test x"${install_sh}" != xset; then
2378 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2380 install_sh="\${SHELL} $am_aux_dir/install-sh"
2384 # Installed binaries are usually stripped using 'strip' when the user
2385 # run "make install-strip". However 'strip' might not be the right
2386 # tool to use in cross-compilation environments, therefore Automake
2387 # will honor the 'STRIP' environment variable to overrule this program.
2388 if test "$cross_compiling" != no; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}strip; ac_word=$2
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2393 $as_echo_n "checking for $ac_word... " >&6; }
2394 if ${ac_cv_prog_STRIP+:} false; then :
2395 $as_echo_n "(cached) " >&6
2397 if test -n "$STRIP"; then
2398 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 STRIP=$ac_cv_prog_STRIP
2418 if test -n "$STRIP"; then
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2420 $as_echo "$STRIP" >&6; }
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2423 $as_echo "no" >&6; }
2428 if test -z "$ac_cv_prog_STRIP"; then
2430 # Extract the first word of "strip", so it can be a program name with args.
2431 set dummy strip; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 if test -n "$ac_ct_STRIP"; then
2438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_STRIP="strip"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2458 if test -n "$ac_ct_STRIP"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2460 $as_echo "$ac_ct_STRIP" >&6; }
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2466 if test "x$ac_ct_STRIP" = x; then
2469 case $cross_compiling:$ac_tool_warned in
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2478 STRIP="$ac_cv_prog_STRIP"
2482 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2485 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2486 if test -z "$MKDIR_P"; then
2487 if ${ac_cv_path_mkdir+:} false; then :
2488 $as_echo_n "(cached) " >&6
2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2494 test -z "$as_dir" && as_dir=.
2495 for ac_prog in mkdir gmkdir; do
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2498 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2499 'mkdir (GNU coreutils) '* | \
2500 'mkdir (coreutils) '* | \
2501 'mkdir (fileutils) '4.1*)
2502 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2512 test -d ./--version && rmdir ./--version
2513 if test "${ac_cv_path_mkdir+set}" = set; then
2514 MKDIR_P="$ac_cv_path_mkdir -p"
2516 # As a last resort, use the slow shell script. Don't cache a
2517 # value for MKDIR_P within a source directory, because that will
2518 # break other packages using the cache if that directory is
2519 # removed, or if the value is a relative name.
2520 MKDIR_P="$ac_install_sh -d"
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2524 $as_echo "$MKDIR_P" >&6; }
2528 [\\/$]* | ?:[\\/]*) ;;
2529 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2532 for ac_prog in gawk mawk nawk awk
2534 # Extract the first word of "$ac_prog", so it can be a program name with args.
2535 set dummy $ac_prog; ac_word=$2
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2537 $as_echo_n "checking for $ac_word... " >&6; }
2538 if ${ac_cv_prog_AWK+:} false; then :
2539 $as_echo_n "(cached) " >&6
2541 if test -n "$AWK"; then
2542 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2551 ac_cv_prog_AWK="$ac_prog"
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test -n "$AWK"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2564 $as_echo "$AWK" >&6; }
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2567 $as_echo "no" >&6; }
2571 test -n "$AWK" && break
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2575 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2577 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2578 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 cat >conftest.make <<\_ACEOF
2584 @echo '@@@%%%=$(MAKE)=@@@%%%'
2586 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2587 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2589 eval ac_cv_prog_make_${ac_make}_set=yes;;
2591 eval ac_cv_prog_make_${ac_make}_set=no;;
2595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2602 SET_MAKE="MAKE=${MAKE-make}"
2605 rm -rf .tst 2>/dev/null
2606 mkdir .tst 2>/dev/null
2607 if test -d .tst; then
2612 rmdir .tst 2>/dev/null
2614 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2615 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2616 # is not polluted with repeated "-I."
2617 am__isrc=' -I$(srcdir)'
2618 # test to see if srcdir already configured
2619 if test -f $srcdir/config.status; then
2620 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624 # test whether we have cygpath
2625 if test -z "$CYGPATH_W"; then
2626 if (cygpath --version) >/dev/null 2>/dev/null; then
2627 CYGPATH_W='cygpath -w'
2634 # Define the identity of the package.
2639 cat >>confdefs.h <<_ACEOF
2640 @%:@define PACKAGE "$PACKAGE"
2644 cat >>confdefs.h <<_ACEOF
2645 @%:@define VERSION "$VERSION"
2648 # Some tools Automake needs.
2650 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2653 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2656 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2659 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2662 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2664 # We need awk for the "check" target. The system "awk" is bad on
2666 # Always define AMTAR for backward compatibility. Yes, it's still used
2667 # in the wild :-( We should find a proper way to deprecate it ...
2670 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2677 DEPDIR="${am__leading_dot}deps"
2679 ac_config_commands="$ac_config_commands depfiles"
2682 am_make=${MAKE-make}
2683 cat > confinc << 'END'
2685 @echo this is the am__doit target
2688 # If we don't find an include directive, just comment out the code.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2690 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2694 # First try GNU make style include.
2695 echo "include confinc" > confmf
2696 # Ignore all kinds of additional output from 'make'.
2697 case `$am_make -s -f confmf 2> /dev/null` in #(
2698 *the\ am__doit\ target*)
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706 echo '.include "confinc"' > confmf
2707 case `$am_make -s -f confmf 2> /dev/null` in #(
2708 *the\ am__doit\ target*)
2709 am__include=.include
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2718 $as_echo "$_am_result" >&6; }
2719 rm -f confinc confmf
2721 @%:@ Check whether --enable-dependency-tracking was given.
2722 if test "${enable_dependency_tracking+set}" = set; then :
2723 enableval=$enable_dependency_tracking;
2726 if test "x$enable_dependency_tracking" != xno; then
2727 am_depcomp="$ac_aux_dir/depcomp"
2731 if test "x$enable_dependency_tracking" != xno; then
2741 ac_cpp='$CPP $CPPFLAGS'
2742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_CC+:} false; then :
2751 $as_echo_n "(cached) " >&6
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2784 if test -z "$ac_cv_prog_CC"; then
2786 # Extract the first word of "gcc", so it can be a program name with args.
2787 set dummy gcc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2791 $as_echo_n "(cached) " >&6
2793 if test -n "$ac_ct_CC"; then
2794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC="gcc"
2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2814 if test -n "$ac_ct_CC"; then
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2816 $as_echo "$ac_ct_CC" >&6; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2819 $as_echo "no" >&6; }
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2829 ac_tool_warned=yes ;;
2837 if test -z "$CC"; then
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}cc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_CC="${ac_tool_prefix}cc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2878 if test -z "$CC"; then
2879 # Extract the first word of "cc", so it can be a program name with args.
2880 set dummy cc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2898 ac_prog_rejected=yes
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test $ac_prog_rejected = yes; then
2910 # We found a bogon in the path, so make sure we never use it.
2911 set dummy $ac_cv_prog_CC
2913 if test $@%:@ != 0; then
2914 # We chose a different compiler from the bogus one.
2915 # However, it has the same basename, so the bogon will be chosen
2916 # first if we set CC to just the basename; use the full file name.
2918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2924 if test -n "$CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2926 $as_echo "$CC" >&6; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2934 if test -z "$CC"; then
2935 if test -n "$ac_tool_prefix"; then
2936 for ac_prog in cl.exe
2938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if ${ac_cv_prog_CC+:} false; then :
2943 $as_echo_n "(cached) " >&6
2945 if test -n "$CC"; then
2946 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 if test -n "$CC"; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2975 test -n "$CC" && break
2978 if test -z "$CC"; then
2980 for ac_prog in cl.exe
2982 # Extract the first word of "$ac_prog", so it can be a program name with args.
2983 set dummy $ac_prog; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 if test -n "$ac_ct_CC"; then
2990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_ac_ct_CC="$ac_prog"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3010 if test -n "$ac_ct_CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3012 $as_echo "$ac_ct_CC" >&6; }
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3019 test -n "$ac_ct_CC" && break
3022 if test "x$ac_ct_CC" = x; then
3025 case $cross_compiling:$ac_tool_warned in
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3038 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "no acceptable C compiler found in \$PATH
3041 See \`config.log' for more details" "$LINENO" 5; }
3043 # Provide some information about the compiler.
3044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3047 for ac_option in --version -v -V -qversion; do
3048 { { ac_try="$ac_compiler $ac_option >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3057 if test -s conftest.err; then
3059 ... rest of stderr output deleted ...
3060 10q' conftest.err >conftest.er1
3061 cat conftest.er1 >&5
3063 rm -f conftest.er1 conftest.err
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085 $as_echo_n "checking whether the C compiler works... " >&6; }
3086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # The possible output files:
3089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3092 for ac_file in $ac_files
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3101 if { { ac_try="$ac_link_default"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_link_default") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3117 for ac_file in $ac_files ''
3119 test -f "$ac_file" || continue
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3124 # We found the default executable, but exeext='' is most
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3142 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147 if test -z "$ac_file"; then :
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 $as_echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3155 as_fn_error 77 "C compiler cannot create executables
3156 See \`config.log' for more details" "$LINENO" 5; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3159 $as_echo "yes" >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3162 $as_echo_n "checking for C compiler default output file name... " >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3164 $as_echo "$ac_file" >&6; }
3165 ac_exeext=$ac_cv_exeext
3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3168 ac_clean_files=$ac_clean_files_save
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3170 $as_echo_n "checking for suffix of executables... " >&6; }
3171 if { { ac_try="$ac_link"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_link") 2>&5
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; then :
3182 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3183 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3184 # work properly (i.e., refer to `conftest.exe'), while it won't with
3186 for ac_file in conftest.exe conftest conftest.*; do
3187 test -f "$ac_file" || continue
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3198 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3199 See \`config.log' for more details" "$LINENO" 5; }
3201 rm -f conftest conftest$ac_cv_exeext
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3203 $as_echo "$ac_cv_exeext" >&6; }
3205 rm -f conftest.$ac_ext
3206 EXEEXT=$ac_cv_exeext
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3210 @%:@include <stdio.h>
3214 FILE *f = fopen ("conftest.out", "w");
3215 return ferror (f) || fclose (f) != 0;
3221 ac_clean_files="$ac_clean_files conftest.out"
3222 # Check that the compiler produces executables we can run. If not, either
3223 # the compiler is broken, or we cross compile.
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3225 $as_echo_n "checking whether we are cross compiling... " >&6; }
3226 if test "$cross_compiling" != yes; then
3227 { { ac_try="$ac_link"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }
3238 if { ac_try='./conftest$ac_cv_exeext'
3239 { { case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_try") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; }; then
3251 if test "$cross_compiling" = maybe; then
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot run C compiled programs.
3257 If you meant to cross compile, use \`--host'.
3258 See \`config.log' for more details" "$LINENO" 5; }
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3263 $as_echo "$cross_compiling" >&6; }
3265 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3268 $as_echo_n "checking for suffix of object files... " >&6; }
3269 if ${ac_cv_objext+:} false; then :
3270 $as_echo_n "(cached) " >&6
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 rm -f conftest.o conftest.obj
3284 if { { ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compile") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; then :
3295 for ac_file in conftest.o conftest.obj conftest.*; do
3296 test -f "$ac_file" || continue;
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3299 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3315 $as_echo "$ac_cv_objext" >&6; }
3316 OBJEXT=$ac_cv_objext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3319 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3320 if ${ac_cv_c_compiler_gnu+:} false; then :
3321 $as_echo_n "(cached) " >&6
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3337 if ac_fn_c_try_compile "$LINENO"; then :
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3347 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3348 if test $ac_compiler_gnu = yes; then
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3356 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3357 if ${ac_cv_prog_cc_g+:} false; then :
3358 $as_echo_n "(cached) " >&6
3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3375 if ac_fn_c_try_compile "$LINENO"; then :
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3390 if ac_fn_c_try_compile "$LINENO"; then :
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3406 if ac_fn_c_try_compile "$LINENO"; then :
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_c_werror_flag=$ac_save_c_werror_flag
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3417 $as_echo "$ac_cv_prog_cc_g" >&6; }
3418 if test "$ac_test_CFLAGS" = set; then
3419 CFLAGS=$ac_save_CFLAGS
3420 elif test $ac_cv_prog_cc_g = yes; then
3421 if test "$GCC" = yes; then
3427 if test "$GCC" = yes; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3434 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3435 if ${ac_cv_prog_cc_c89+:} false; then :
3436 $as_echo_n "(cached) " >&6
3438 ac_cv_prog_cc_c89=no
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3459 s = g (p, va_arg (v,int));
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465 function prototypes and stuff, but not '\xHH' hex character constants.
3466 These don't provoke an error unfortunately, instead are silently treated
3467 as 'x'. The following induces an error, until -std is added to get
3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469 array size at least. It's necessary to write '\x00'==0 to get something
3470 that's true only with -std. */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474 inside strings and character constants. */
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 CC="$ac_save_CC $ac_arg"
3496 if ac_fn_c_try_compile "$LINENO"; then :
3497 ac_cv_prog_cc_c89=$ac_arg
3499 rm -f core conftest.err conftest.$ac_objext
3500 test "x$ac_cv_prog_cc_c89" != "xno" && break
3502 rm -f conftest.$ac_ext
3507 case "x$ac_cv_prog_cc_c89" in
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510 $as_echo "none needed" >&6; } ;;
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513 $as_echo "unsupported" >&6; } ;;
3515 CC="$CC $ac_cv_prog_cc_c89"
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3519 if test "x$ac_cv_prog_cc_c89" != xno; then :
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 depcc="$CC" am_compiler_list=
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3532 $as_echo_n "checking dependency style of $depcc... " >&6; }
3533 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3534 $as_echo_n "(cached) " >&6
3536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3537 # We make a subdir and do the tests there. Otherwise we can end up
3538 # making bogus files that we don't know about and never remove. For
3539 # instance it was reported that on HP-UX the gcc test will end up
3540 # making a dummy file named 'D' -- because '-MD' means "put the output
3544 # Copy depcomp to subdir because otherwise we won't find it if we're
3545 # using a relative directory.
3546 cp "$am_depcomp" conftest.dir
3548 # We will build objects and dependencies in a subdirectory because
3549 # it helps to detect inapplicable dependency modes. For instance
3550 # both Tru64's cc and ICC support -MD to output dependencies as a
3551 # side effect of compilation, but ICC will put the dependencies in
3552 # the current directory while Tru64 will put them in the object
3556 am_cv_CC_dependencies_compiler_type=none
3557 if test "$am_compiler_list" = ""; then
3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 case " $depcc " in #(
3562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3565 for depmode in $am_compiler_list; do
3566 # Setup a source with many dependencies, because some compilers
3567 # like to wrap large dependency lists on column 80 (with \), and
3568 # we should not choose a depcomp mode which is confused by this.
3570 # We need to recreate these files for each test, as the compiler may
3571 # overwrite some of them when testing with obscure command lines.
3572 # This happens at least with the AIX C compiler.
3574 for i in 1 2 3 4 5 6; do
3575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3576 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3577 # Solaris 10 /bin/sh.
3578 echo '/* dummy */' > sub/conftst$i.h
3580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3583 # mode. It turns out that the SunPro C++ compiler does not properly
3584 # handle '-M -o', and we need to detect this. Also, some Intel
3585 # versions had trouble with output in subdirs.
3586 am__obj=sub/conftest.${OBJEXT-o}
3587 am__minus_obj="-o $am__obj"
3590 # This depmode causes a compiler race in universal mode.
3591 test "$am__universal" = false || continue
3594 # After this tag, mechanisms are not by side-effect, so they'll
3595 # only be used when explicitly requested.
3596 if test "x$enable_dependency_tracking" = xyes; then
3602 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3603 # This compiler won't grok '-c -o', but also, the minuso test has
3604 # not run yet. These depmodes are late enough in the game, and
3605 # so weak that their functioning should not be impacted.
3606 am__obj=conftest.${OBJEXT-o}
3611 if depmode=$depmode \
3612 source=sub/conftest.c object=$am__obj \
3613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3615 >/dev/null 2>conftest.err &&
3616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3620 # icc doesn't choke on unknown options, it will just issue warnings
3621 # or remarks (even with -Werror). So we grep stderr for any message
3622 # that says an option was ignored or not supported.
3623 # When given -MP, icc 7.0 and 7.1 complain thusly:
3624 # icc: Command line warning: ignoring option '-M'; no argument required
3625 # The diagnosis changed in icc 8.0:
3626 # icc: Command line remark: option '-MP' not supported
3627 if (grep 'ignoring option' conftest.err ||
3628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3629 am_cv_CC_dependencies_compiler_type=$depmode
3638 am_cv_CC_dependencies_compiler_type=none
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3643 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3644 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3647 test "x$enable_dependency_tracking" != xno \
3648 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3650 am__fastdepCC_FALSE='#'
3652 am__fastdepCC_TRUE='#'
3653 am__fastdepCC_FALSE=
3659 ac_cpp='$CPP $CPPFLAGS'
3660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3664 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3665 # On Suns, sometimes $CPP names a directory.
3666 if test -n "$CPP" && test -d "$CPP"; then
3669 if test -z "$CPP"; then
3670 if ${ac_cv_prog_CPP+:} false; then :
3671 $as_echo_n "(cached) " >&6
3673 # Double quotes because CPP needs to be expanded
3674 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3677 for ac_c_preproc_warn_flag in '' yes
3679 # Use a header file that comes with gcc, so configuring glibc
3680 # with a fresh cross-compiler works.
3681 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3682 # <limits.h> exists even on freestanding compilers.
3683 # On the NeXT, cc -E runs the code through the compiler's parser,
3684 # not just through cpp. "Syntax error" is here to catch this case.
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3688 @%:@ include <limits.h>
3690 @%:@ include <assert.h>
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3697 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.i conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether nonexistent headers
3703 # can be detected and how.
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 @%:@include <ac_nonexistent.h>
3708 if ac_fn_c_try_cpp "$LINENO"; then :
3709 # Broken: success on invalid input.
3712 # Passes both tests.
3716 rm -f conftest.err conftest.i conftest.$ac_ext
3719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3720 rm -f conftest.i conftest.err conftest.$ac_ext
3721 if $ac_preproc_ok; then :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3734 $as_echo "$CPP" >&6; }
3736 for ac_c_preproc_warn_flag in '' yes
3738 # Use a header file that comes with gcc, so configuring glibc
3739 # with a fresh cross-compiler works.
3740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741 # <limits.h> exists even on freestanding compilers.
3742 # On the NeXT, cc -E runs the code through the compiler's parser,
3743 # not just through cpp. "Syntax error" is here to catch this case.
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3747 @%:@ include <limits.h>
3749 @%:@ include <assert.h>
3753 if ac_fn_c_try_cpp "$LINENO"; then :
3756 # Broken: fails on valid input.
3759 rm -f conftest.err conftest.i conftest.$ac_ext
3761 # OK, works on sane cases. Now check whether nonexistent headers
3762 # can be detected and how.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3765 @%:@include <ac_nonexistent.h>
3767 if ac_fn_c_try_cpp "$LINENO"; then :
3768 # Broken: success on invalid input.
3771 # Passes both tests.
3775 rm -f conftest.err conftest.i conftest.$ac_ext
3778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779 rm -f conftest.i conftest.err conftest.$ac_ext
3780 if $ac_preproc_ok; then :
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3786 See \`config.log' for more details" "$LINENO" 5; }
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3797 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3798 if ${ac_cv_path_GREP+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -z "$GREP"; then
3802 ac_path_GREP_found=false
3803 # Loop through the user's path and test for each of PROGNAME-LIST
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 test -z "$as_dir" && as_dir=.
3809 for ac_prog in grep ggrep; do
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3812 as_fn_executable_p "$ac_path_GREP" || continue
3813 # Check for GNU ac_path_GREP and select it if it is found.
3814 # Check for GNU $ac_path_GREP
3815 case `"$ac_path_GREP" --version 2>&1` in
3817 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3820 $as_echo_n 0123456789 >"conftest.in"
3823 cat "conftest.in" "conftest.in" >"conftest.tmp"
3824 mv "conftest.tmp" "conftest.in"
3825 cp "conftest.in" "conftest.nl"
3826 $as_echo 'GREP' >> "conftest.nl"
3827 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3828 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3829 as_fn_arith $ac_count + 1 && ac_count=$as_val
3830 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3831 # Best one so far, save it but keep looking for a better one
3832 ac_cv_path_GREP="$ac_path_GREP"
3833 ac_path_GREP_max=$ac_count
3835 # 10*(2^10) chars as input seems more than enough
3836 test $ac_count -gt 10 && break
3838 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 $ac_path_GREP_found && break 3
3846 if test -z "$ac_cv_path_GREP"; then
3847 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3850 ac_cv_path_GREP=$GREP
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3855 $as_echo "$ac_cv_path_GREP" >&6; }
3856 GREP="$ac_cv_path_GREP"
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3860 $as_echo_n "checking for egrep... " >&6; }
3861 if ${ac_cv_path_EGREP+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3865 then ac_cv_path_EGREP="$GREP -E"
3867 if test -z "$EGREP"; then
3868 ac_path_EGREP_found=false
3869 # Loop through the user's path and test for each of PROGNAME-LIST
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874 test -z "$as_dir" && as_dir=.
3875 for ac_prog in egrep; do
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3878 as_fn_executable_p "$ac_path_EGREP" || continue
3879 # Check for GNU ac_path_EGREP and select it if it is found.
3880 # Check for GNU $ac_path_EGREP
3881 case `"$ac_path_EGREP" --version 2>&1` in
3883 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3886 $as_echo_n 0123456789 >"conftest.in"
3889 cat "conftest.in" "conftest.in" >"conftest.tmp"
3890 mv "conftest.tmp" "conftest.in"
3891 cp "conftest.in" "conftest.nl"
3892 $as_echo 'EGREP' >> "conftest.nl"
3893 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3895 as_fn_arith $ac_count + 1 && ac_count=$as_val
3896 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3897 # Best one so far, save it but keep looking for a better one
3898 ac_cv_path_EGREP="$ac_path_EGREP"
3899 ac_path_EGREP_max=$ac_count
3901 # 10*(2^10) chars as input seems more than enough
3902 test $ac_count -gt 10 && break
3904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907 $ac_path_EGREP_found && break 3
3912 if test -z "$ac_cv_path_EGREP"; then
3913 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3916 ac_cv_path_EGREP=$EGREP
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3922 $as_echo "$ac_cv_path_EGREP" >&6; }
3923 EGREP="$ac_cv_path_EGREP"
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3927 $as_echo_n "checking for ANSI C header files... " >&6; }
3928 if ${ac_cv_header_stdc+:} false; then :
3929 $as_echo_n "(cached) " >&6
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_header_stdc=yes
3949 ac_cv_header_stdc=no
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953 if test $ac_cv_header_stdc = yes; then
3954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3961 $EGREP "memchr" >/dev/null 2>&1; then :
3964 ac_cv_header_stdc=no
3970 if test $ac_cv_header_stdc = yes; then
3971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 $EGREP "free" >/dev/null 2>&1; then :
3981 ac_cv_header_stdc=no
3987 if test $ac_cv_header_stdc = yes; then
3988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3989 if test "$cross_compiling" = yes; then :
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3996 #if ((' ' & 0x0FF) == 0x020)
3997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4000 # define ISLOWER(c) \
4001 (('a' <= (c) && (c) <= 'i') \
4002 || ('j' <= (c) && (c) <= 'r') \
4003 || ('s' <= (c) && (c) <= 'z'))
4004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4012 for (i = 0; i < 256; i++)
4013 if (XOR (islower (i), ISLOWER (i))
4014 || toupper (i) != TOUPPER (i))
4019 if ac_fn_c_try_run "$LINENO"; then :
4022 ac_cv_header_stdc=no
4024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4025 conftest.$ac_objext conftest.beam conftest.$ac_ext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4031 $as_echo "$ac_cv_header_stdc" >&6; }
4032 if test $ac_cv_header_stdc = yes; then
4034 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
4038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4039 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4045 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4046 cat >>confdefs.h <<_ACEOF
4047 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4056 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4057 if ${ac_cv_c_bigendian+:} false; then :
4058 $as_echo_n "(cached) " >&6
4060 ac_cv_c_bigendian=unknown
4061 # See if we're dealing with a universal compiler.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #ifndef __APPLE_CC__
4065 not a universal capable compiler
4070 if ac_fn_c_try_compile "$LINENO"; then :
4072 # Check for potential -arch flags. It is not universal unless
4073 # there are at least two -arch flags with different values.
4076 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4077 if test -n "$ac_prev"; then
4079 i?86 | x86_64 | ppc | ppc64)
4080 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4083 ac_cv_c_bigendian=universal
4089 elif test "x$ac_word" = "x-arch"; then
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 if test $ac_cv_c_bigendian = unknown; then
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <sys/types.h>
4100 #include <sys/param.h>
4105 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4106 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 # It does; now see whether it defined to BIG_ENDIAN or not.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119 #include <sys/types.h>
4120 #include <sys/param.h>
4125 #if BYTE_ORDER != BIG_ENDIAN
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_c_bigendian=yes
4136 ac_cv_c_bigendian=no
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 if test $ac_cv_c_bigendian = unknown; then
4143 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4151 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 # It does; now see whether it defined to _BIG_ENDIAN or not.
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_c_bigendian=yes
4179 ac_cv_c_bigendian=no
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 if test $ac_cv_c_bigendian = unknown; then
4186 # Compile a test program.
4187 if test "$cross_compiling" = yes; then :
4188 # Try to guess by grepping values from an object file.
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 short int ascii_mm[] =
4192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4193 short int ascii_ii[] =
4194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195 int use_ascii (int i) {
4196 return ascii_mm[i] + ascii_ii[i];
4198 short int ebcdic_ii[] =
4199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200 short int ebcdic_mm[] =
4201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4202 int use_ebcdic (int i) {
4203 return ebcdic_mm[i] + ebcdic_ii[i];
4210 return use_ascii (foo) == use_ebcdic (foo);
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4217 ac_cv_c_bigendian=yes
4219 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4220 if test "$ac_cv_c_bigendian" = unknown; then
4221 ac_cv_c_bigendian=no
4223 # finding both strings is unlikely to happen, but who knows?
4224 ac_cv_c_bigendian=unknown
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 $ac_includes_default
4237 /* Are we little or big endian? From Harbison&Steele. */
4241 char c[sizeof (long int)];
4244 return u.c[sizeof (long int) - 1] == 1;
4250 if ac_fn_c_try_run "$LINENO"; then :
4251 ac_cv_c_bigendian=no
4253 ac_cv_c_bigendian=yes
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4262 $as_echo "$ac_cv_c_bigendian" >&6; }
4263 case $ac_cv_c_bigendian in #(
4265 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
4271 $as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4275 as_fn_error $? "unknown endianness
4276 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4282 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4287 macro_version='2.4.2'
4288 macro_revision='1.3337'
4302 ltmain="$ac_aux_dir/ltmain.sh"
4304 # Make sure we can run config.sub.
4305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4306 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4309 $as_echo_n "checking build system type... " >&6; }
4310 if ${ac_cv_build+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 ac_build_alias=$build_alias
4314 test "x$ac_build_alias" = x &&
4315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4316 test "x$ac_build_alias" = x &&
4317 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4319 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4323 $as_echo "$ac_cv_build" >&6; }
4324 case $ac_cv_build in
4326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4329 ac_save_IFS=$IFS; IFS='-'
4335 # Remember, the first character of IFS is used to create $*,
4336 # except with old shells:
4339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4343 $as_echo_n "checking host system type... " >&6; }
4344 if ${ac_cv_host+:} false; then :
4345 $as_echo_n "(cached) " >&6
4347 if test "x$host_alias" = x; then
4348 ac_cv_host=$ac_cv_build
4350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4351 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4356 $as_echo "$ac_cv_host" >&6; }
4359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4362 ac_save_IFS=$IFS; IFS='-'
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4375 # Backslashify metacharacters that are still active within
4376 # double-quoted strings.
4377 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4379 # Same as above, but do not quote variable references.
4380 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4382 # Sed substitution to delay expansion of an escaped shell variable in a
4383 # double_quote_subst'ed string.
4384 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4386 # Sed substitution to delay expansion of an escaped single quote.
4387 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4389 # Sed substitution to avoid accidental globbing in evaled expressions
4390 no_glob_subst='s/\*/\\\*/g'
4392 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4393 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4394 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4397 $as_echo_n "checking how to print strings... " >&6; }
4398 # Test print first, because it will be a builtin if present.
4399 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4400 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4402 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4405 # Use this function as a fallback that always works.
4406 func_fallback_echo ()
4408 eval 'cat <<_LTECHO_EOF
4412 ECHO='func_fallback_echo'
4415 # func_echo_all arg...
4416 # Invoke $ECHO with all args, space-separated.
4423 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4424 $as_echo "printf" >&6; } ;;
4425 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4426 $as_echo "print -r" >&6; } ;;
4427 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4428 $as_echo "cat" >&6; } ;;
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4445 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4446 if ${ac_cv_path_SED+:} false; then :
4447 $as_echo_n "(cached) " >&6
4449 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4450 for ac_i in 1 2 3 4 5 6 7; do
4451 ac_script="$ac_script$as_nl$ac_script"
4453 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4454 { ac_script=; unset ac_script;}
4455 if test -z "$SED"; then
4456 ac_path_SED_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in sed gsed; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4466 as_fn_executable_p "$ac_path_SED" || continue
4467 # Check for GNU ac_path_SED and select it if it is found.
4468 # Check for GNU $ac_path_SED
4469 case `"$ac_path_SED" --version 2>&1` in
4471 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4474 $as_echo_n 0123456789 >"conftest.in"
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo '' >> "conftest.nl"
4481 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 if test $ac_count -gt ${ac_path_SED_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_SED="$ac_path_SED"
4487 ac_path_SED_max=$ac_count
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495 $ac_path_SED_found && break 3
4500 if test -z "$ac_cv_path_SED"; then
4501 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4509 $as_echo "$ac_cv_path_SED" >&6; }
4510 SED="$ac_cv_path_SED"
4513 test -z "$SED" && SED=sed
4514 Xsed="$SED -e 1s/^X//"
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4527 $as_echo_n "checking for fgrep... " >&6; }
4528 if ${ac_cv_path_FGREP+:} false; then :
4529 $as_echo_n "(cached) " >&6
4531 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4532 then ac_cv_path_FGREP="$GREP -F"
4534 if test -z "$FGREP"; then
4535 ac_path_FGREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 test -z "$as_dir" && as_dir=.
4542 for ac_prog in fgrep; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4545 as_fn_executable_p "$ac_path_FGREP" || continue
4546 # Check for GNU ac_path_FGREP and select it if it is found.
4547 # Check for GNU $ac_path_FGREP
4548 case `"$ac_path_FGREP" --version 2>&1` in
4550 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4553 $as_echo_n 0123456789 >"conftest.in"
4556 cat "conftest.in" "conftest.in" >"conftest.tmp"
4557 mv "conftest.tmp" "conftest.in"
4558 cp "conftest.in" "conftest.nl"
4559 $as_echo 'FGREP' >> "conftest.nl"
4560 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4562 as_fn_arith $ac_count + 1 && ac_count=$as_val
4563 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4564 # Best one so far, save it but keep looking for a better one
4565 ac_cv_path_FGREP="$ac_path_FGREP"
4566 ac_path_FGREP_max=$ac_count
4568 # 10*(2^10) chars as input seems more than enough
4569 test $ac_count -gt 10 && break
4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 $ac_path_FGREP_found && break 3
4579 if test -z "$ac_cv_path_FGREP"; then
4580 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4583 ac_cv_path_FGREP=$FGREP
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4589 $as_echo "$ac_cv_path_FGREP" >&6; }
4590 FGREP="$ac_cv_path_FGREP"
4593 test -z "$GREP" && GREP=grep
4613 @%:@ Check whether --with-gnu-ld was given.
4614 if test "${with_gnu_ld+set}" = set; then :
4615 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4621 if test "$GCC" = yes; then
4622 # Check if gcc -print-prog-name=ld gives a path.
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4624 $as_echo_n "checking for ld used by $CC... " >&6; }
4627 # gcc leaves a trailing carriage return which upsets mingw
4628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4633 # Accept absolute paths.
4635 re_direlt='/[^/][^/]*/\.\./'
4636 # Canonicalize the pathname of ld
4637 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4638 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4639 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4641 test -z "$LD" && LD="$ac_prog"
4644 # If it fails, then pretend we aren't using GCC.
4648 # If it is relative, then search for the first ld in PATH.
4652 elif test "$with_gnu_ld" = yes; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4654 $as_echo_n "checking for GNU ld... " >&6; }
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4657 $as_echo_n "checking for non-GNU ld... " >&6; }
4659 if ${lt_cv_path_LD+:} false; then :
4660 $as_echo_n "(cached) " >&6
4662 if test -z "$LD"; then
4663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4664 for ac_dir in $PATH; do
4666 test -z "$ac_dir" && ac_dir=.
4667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4668 lt_cv_path_LD="$ac_dir/$ac_prog"
4669 # Check to see if the program is GNU ld. I'd rather use --version,
4670 # but apparently some variants of GNU ld only accept -v.
4671 # Break only if it was the GNU/non-GNU ld that we prefer.
4672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4673 *GNU* | *'with BFD'*)
4674 test "$with_gnu_ld" != no && break
4677 test "$with_gnu_ld" != yes && break
4684 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4689 if test -n "$LD"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4691 $as_echo "$LD" >&6; }
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4696 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4698 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4699 if ${lt_cv_prog_gnu_ld+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4703 case `$LD -v 2>&1 </dev/null` in
4704 *GNU* | *'with BFD'*)
4705 lt_cv_prog_gnu_ld=yes
4708 lt_cv_prog_gnu_ld=no
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4713 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4714 with_gnu_ld=$lt_cv_prog_gnu_ld
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4725 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4726 if ${lt_cv_path_NM+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -n "$NM"; then
4730 # Let the user override the test.
4733 lt_nm_to_check="${ac_tool_prefix}nm"
4734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4735 lt_nm_to_check="$lt_nm_to_check nm"
4737 for lt_tmp_nm in $lt_nm_to_check; do
4738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4741 test -z "$ac_dir" && ac_dir=.
4742 tmp_nm="$ac_dir/$lt_tmp_nm"
4743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4744 # Check to see if the nm accepts a BSD-compat flag.
4745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4746 # nm: unknown option "B" ignored
4747 # Tru64's nm complains that /dev/null is an invalid object file
4748 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4749 */dev/null* | *'Invalid file or object type'*)
4750 lt_cv_path_NM="$tmp_nm -B"
4754 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4756 lt_cv_path_NM="$tmp_nm -p"
4760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4761 continue # so that we can try to find one that supports BSD flags
4770 : ${lt_cv_path_NM=no}
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4774 $as_echo "$lt_cv_path_NM" >&6; }
4775 if test "$lt_cv_path_NM" != "no"; then
4778 # Didn't find any BSD compatible name lister, look for dumpbin.
4779 if test -n "$DUMPBIN"; then :
4780 # Let the user override the test.
4782 if test -n "$ac_tool_prefix"; then
4783 for ac_prog in dumpbin "link -dump"
4785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_DUMPBIN+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 if test -n "$DUMPBIN"; then
4793 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4812 DUMPBIN=$ac_cv_prog_DUMPBIN
4813 if test -n "$DUMPBIN"; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4815 $as_echo "$DUMPBIN" >&6; }
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4822 test -n "$DUMPBIN" && break
4825 if test -z "$DUMPBIN"; then
4826 ac_ct_DUMPBIN=$DUMPBIN
4827 for ac_prog in dumpbin "link -dump"
4829 # Extract the first word of "$ac_prog", so it can be a program name with args.
4830 set dummy $ac_prog; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 if test -n "$ac_ct_DUMPBIN"; then
4837 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4857 if test -n "$ac_ct_DUMPBIN"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4859 $as_echo "$ac_ct_DUMPBIN" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 test -n "$ac_ct_DUMPBIN" && break
4869 if test "x$ac_ct_DUMPBIN" = x; then
4872 case $cross_compiling:$ac_tool_warned in
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4876 ac_tool_warned=yes ;;
4878 DUMPBIN=$ac_ct_DUMPBIN
4882 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4884 DUMPBIN="$DUMPBIN -symbols"
4892 if test "$DUMPBIN" != ":"; then
4896 test -z "$NM" && NM=nm
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4904 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4905 if ${lt_cv_nm_interface+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 lt_cv_nm_interface="BSD nm"
4909 echo "int some_variable = 0;" > conftest.$ac_ext
4910 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4911 (eval "$ac_compile" 2>conftest.err)
4912 cat conftest.err >&5
4913 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4914 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4915 cat conftest.err >&5
4916 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4917 cat conftest.out >&5
4918 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4919 lt_cv_nm_interface="MS dumpbin"
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4924 $as_echo "$lt_cv_nm_interface" >&6; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4927 $as_echo_n "checking whether ln -s works... " >&6; }
4929 if test "$LN_S" = "ln -s"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4931 $as_echo "yes" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4934 $as_echo "no, using $LN_S" >&6; }
4937 # find the maximum length of command line arguments
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4939 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4940 if ${lt_cv_sys_max_cmd_len+:} false; then :
4941 $as_echo_n "(cached) " >&6
4948 # On DJGPP, this test can blow up pretty badly due to problems in libc
4949 # (any single argument exceeding 2000 bytes causes a buffer overrun
4950 # during glob expansion). Even if it were fixed, the result of this
4951 # check would be larger than it should be.
4952 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4956 # Under GNU Hurd, this test is not required because there is
4957 # no limit to the length of command line arguments.
4958 # Libtool will interpret -1 as no limit whatsoever
4959 lt_cv_sys_max_cmd_len=-1;
4962 cygwin* | mingw* | cegcc*)
4963 # On Win9x/ME, this test blows up -- it succeeds, but takes
4964 # about 5 minutes as the teststring grows exponentially.
4965 # Worse, since 9x/ME are not pre-emptively multitasking,
4966 # you end up with a "frozen" computer, even though with patience
4967 # the test eventually succeeds (with a max line length of 256k).
4968 # Instead, let's just punt: use the minimum linelength reported by
4969 # all of the supported platforms: 8192 (on NT/2K/XP).
4970 lt_cv_sys_max_cmd_len=8192;
4974 # On MiNT this can take a long time and run out of memory.
4975 lt_cv_sys_max_cmd_len=8192;
4979 # On AmigaOS with pdksh, this test takes hours, literally.
4980 # So we just punt and use a minimum line length of 8192.
4981 lt_cv_sys_max_cmd_len=8192;
4984 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4985 # This has been around since 386BSD, at least. Likely further.
4986 if test -x /sbin/sysctl; then
4987 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4988 elif test -x /usr/sbin/sysctl; then
4989 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4991 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4993 # And add a safety zone
4994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4995 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4999 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5000 lt_cv_sys_max_cmd_len=196608
5004 # The test takes a long time on OS/2.
5005 lt_cv_sys_max_cmd_len=8192
5009 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5010 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5011 # nice to cause kernel panics so lets avoid the loop below.
5012 # First set a reasonable default.
5013 lt_cv_sys_max_cmd_len=16384
5015 if test -x /sbin/sysconfig; then
5016 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5017 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5022 lt_cv_sys_max_cmd_len=102400
5024 sysv5* | sco5v6* | sysv4.2uw2*)
5025 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5026 if test -n "$kargmax"; then
5027 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5029 lt_cv_sys_max_cmd_len=32768
5033 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5034 if test -n "$lt_cv_sys_max_cmd_len"; then
5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5038 # Make teststring a little bigger before we do anything with it.
5039 # a 1K string should be a reasonable start.
5040 for i in 1 2 3 4 5 6 7 8 ; do
5041 teststring=$teststring$teststring
5043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5044 # If test is not a shell built-in, we'll probably end up computing a
5045 # maximum length that is only half of the actual maximum length, but
5047 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5048 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5049 test $i != 17 # 1/2 MB should be enough
5052 teststring=$teststring$teststring
5054 # Only check the string length outside the loop.
5055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5057 # Add a significant safety factor because C++ compilers can tack on
5058 # massive amounts of additional arguments before passing them to the
5059 # linker. It appears as though 1/2 is a usable value.
5060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5067 if test -n $lt_cv_sys_max_cmd_len ; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5069 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5072 $as_echo "none" >&6; }
5074 max_cmd_len=$lt_cv_sys_max_cmd_len
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5086 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5087 # Try some XSI features
5090 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5092 && eval 'test $(( 1 + 1 )) -eq 2 \
5093 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5096 $as_echo "$xsi_shell" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5100 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5102 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5104 && lt_shell_append=yes
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5106 $as_echo "$lt_shell_append" >&6; }
5109 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5119 # test EBCDIC or ASCII
5120 case `echo X|tr X '\101'` in
5121 A) # ASCII based system
5122 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5123 lt_SP2NL='tr \040 \012'
5124 lt_NL2SP='tr \015\012 \040\040'
5126 *) # EBCDIC based system
5127 lt_SP2NL='tr \100 \n'
5128 lt_NL2SP='tr \r\n \100\100'
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5141 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5142 if ${lt_cv_to_host_file_cmd+:} false; then :
5143 $as_echo_n "(cached) " >&6
5148 *-*-mingw* ) # actually msys
5149 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5152 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5154 * ) # otherwise, assume *nix
5155 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5161 *-*-mingw* ) # actually msys
5162 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5165 lt_cv_to_host_file_cmd=func_convert_file_noop
5167 * ) # otherwise, assume *nix
5168 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5172 * ) # unhandled hosts (and "normal" native builds)
5173 lt_cv_to_host_file_cmd=func_convert_file_noop
5179 to_host_file_cmd=$lt_cv_to_host_file_cmd
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5181 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5188 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5189 if ${lt_cv_to_tool_file_cmd+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 #assume ordinary cross tools, or native build.
5193 lt_cv_to_tool_file_cmd=func_convert_file_noop
5197 *-*-mingw* ) # actually msys
5198 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5206 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5208 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5215 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5216 if ${lt_cv_ld_reload_flag+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 lt_cv_ld_reload_flag='-r'
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5222 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5223 reload_flag=$lt_cv_ld_reload_flag
5224 case $reload_flag in
5226 *) reload_flag=" $reload_flag" ;;
5228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5230 cygwin* | mingw* | pw32* | cegcc*)
5231 if test "$GCC" != yes; then
5236 if test "$GCC" = yes; then
5237 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_OBJDUMP+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$OBJDUMP"; then
5261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 OBJDUMP=$ac_cv_prog_OBJDUMP
5281 if test -n "$OBJDUMP"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5283 $as_echo "$OBJDUMP" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5291 if test -z "$ac_cv_prog_OBJDUMP"; then
5292 ac_ct_OBJDUMP=$OBJDUMP
5293 # Extract the first word of "objdump", so it can be a program name with args.
5294 set dummy objdump; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5298 $as_echo_n "(cached) " >&6
5300 if test -n "$ac_ct_OBJDUMP"; then
5301 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5321 if test -n "$ac_ct_OBJDUMP"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5323 $as_echo "$ac_ct_OBJDUMP" >&6; }
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5329 if test "x$ac_ct_OBJDUMP" = x; then
5332 case $cross_compiling:$ac_tool_warned in
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5338 OBJDUMP=$ac_ct_OBJDUMP
5341 OBJDUMP="$ac_cv_prog_OBJDUMP"
5344 test -z "$OBJDUMP" && OBJDUMP=objdump
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5355 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5356 if ${lt_cv_deplibs_check_method+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 lt_cv_file_magic_cmd='$MAGIC_CMD'
5360 lt_cv_file_magic_test_file=
5361 lt_cv_deplibs_check_method='unknown'
5362 # Need to set the preceding variable on all platforms that support
5363 # interlibrary dependencies.
5364 # 'none' -- dependencies not supported.
5365 # `unknown' -- same as none, but documents that we really don't know.
5366 # 'pass_all' -- all dependencies passed with no checks.
5367 # 'test_compile' -- check by making test program.
5368 # 'file_magic [[regex]]' -- check by looking for files in library path
5369 # which responds to the $file_magic_cmd with a given extended regex.
5370 # If you have `file' or equivalent on your system and you're not sure
5371 # whether `pass_all' will *always* work, you probably want this one.
5375 lt_cv_deplibs_check_method=pass_all
5379 lt_cv_deplibs_check_method=pass_all
5383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5384 lt_cv_file_magic_cmd='/usr/bin/file -L'
5385 lt_cv_file_magic_test_file=/shlib/libc.so
5389 # func_win32_libid is a shell function defined in ltmain.sh
5390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5391 lt_cv_file_magic_cmd='func_win32_libid'
5395 # Base MSYS/MinGW do not provide the 'file' command needed by
5396 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5397 # unless we find 'file', for example because we are cross-compiling.
5398 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5399 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401 lt_cv_file_magic_cmd='func_win32_libid'
5403 # Keep this pattern in sync with the one in func_win32_libid.
5404 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5405 lt_cv_file_magic_cmd='$OBJDUMP -f'
5410 # use the weaker test based on 'objdump'. See mingw*.
5411 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5412 lt_cv_file_magic_cmd='$OBJDUMP -f'
5415 darwin* | rhapsody*)
5416 lt_cv_deplibs_check_method=pass_all
5419 freebsd* | dragonfly*)
5420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5423 # Not sure whether the presence of OpenBSD here was a mistake.
5424 # Let's accept both of them until this is cleared up.
5425 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5426 lt_cv_file_magic_cmd=/usr/bin/file
5427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5431 lt_cv_deplibs_check_method=pass_all
5436 lt_cv_deplibs_check_method=pass_all
5440 lt_cv_deplibs_check_method=pass_all
5443 hpux10.20* | hpux11*)
5444 lt_cv_file_magic_cmd=/usr/bin/file
5447 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5448 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5451 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]'
5452 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5455 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5456 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5462 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5466 irix5* | irix6* | nonstopux*)
5468 *-32|*"-32 ") libmagic=32-bit;;
5469 *-n32|*"-n32 ") libmagic=N32;;
5470 *-64|*"-64 ") libmagic=64-bit;;
5471 *) libmagic=never-match;;
5473 lt_cv_deplibs_check_method=pass_all
5476 # This must be glibc/ELF.
5477 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5478 lt_cv_deplibs_check_method=pass_all
5482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5491 lt_cv_file_magic_cmd=/usr/bin/file
5492 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5496 lt_cv_deplibs_check_method=pass_all
5500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5507 osf3* | osf4* | osf5*)
5508 lt_cv_deplibs_check_method=pass_all
5512 lt_cv_deplibs_check_method=pass_all
5516 lt_cv_deplibs_check_method=pass_all
5519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5520 lt_cv_deplibs_check_method=pass_all
5524 case $host_vendor in
5526 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]'
5527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5530 lt_cv_deplibs_check_method=pass_all
5533 lt_cv_file_magic_cmd='/bin/file'
5534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5537 lt_cv_file_magic_cmd='/bin/file'
5538 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5539 lt_cv_file_magic_test_file=/lib/libc.so
5542 lt_cv_deplibs_check_method=pass_all
5545 lt_cv_deplibs_check_method=pass_all
5551 lt_cv_deplibs_check_method=pass_all
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5557 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5561 if test "$build" = "$host"; then
5564 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5567 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5573 file_magic_cmd=$lt_cv_file_magic_cmd
5574 deplibs_check_method=$lt_cv_deplibs_check_method
5575 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_DLLTOOL+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$DLLTOOL"; then
5607 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 DLLTOOL=$ac_cv_prog_DLLTOOL
5627 if test -n "$DLLTOOL"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5629 $as_echo "$DLLTOOL" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_DLLTOOL"; then
5638 ac_ct_DLLTOOL=$DLLTOOL
5639 # Extract the first word of "dlltool", so it can be a program name with args.
5640 set dummy dlltool; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$ac_ct_DLLTOOL"; then
5647 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5667 if test -n "$ac_ct_DLLTOOL"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5669 $as_echo "$ac_ct_DLLTOOL" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_DLLTOOL" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5684 DLLTOOL=$ac_ct_DLLTOOL
5687 DLLTOOL="$ac_cv_prog_DLLTOOL"
5690 test -z "$DLLTOOL" && DLLTOOL=dlltool
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5702 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5703 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 lt_cv_sharedlib_from_linklib_cmd='unknown'
5709 cygwin* | mingw* | pw32* | cegcc*)
5710 # two different shell functions defined in ltmain.sh
5711 # decide which to use based on capabilities of $DLLTOOL
5712 case `$DLLTOOL --help 2>&1` in
5713 *--identify-strict*)
5714 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5717 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5722 # fallback: assume linklib IS sharedlib
5723 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5729 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5730 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5731 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5739 if test -n "$ac_tool_prefix"; then
5742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_AR+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 if test -n "$AR"; then
5750 ac_cv_prog_AR="$AR" # Let the user override the test.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 if test -n "$AR"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5772 $as_echo "$AR" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5779 test -n "$AR" && break
5782 if test -z "$AR"; then
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5791 $as_echo_n "(cached) " >&6
5793 if test -n "$ac_ct_AR"; then
5794 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_ac_ct_AR="$ac_prog"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5813 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5814 if test -n "$ac_ct_AR"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5816 $as_echo "$ac_ct_AR" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5823 test -n "$ac_ct_AR" && break
5826 if test "x$ac_ct_AR" = x; then
5829 case $cross_compiling:$ac_tool_warned in
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5833 ac_tool_warned=yes ;;
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5853 $as_echo_n "checking for archiver @FILE support... " >&6; }
5854 if ${lt_cv_ar_at_file+:} false; then :
5855 $as_echo_n "(cached) " >&6
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_c_try_compile "$LINENO"; then :
5870 echo conftest.$ac_objext > conftest.lst
5871 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5873 (eval $lt_ar_try) 2>&5
5875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5876 test $ac_status = 0; }
5877 if test "$ac_status" -eq 0; then
5878 # Ensure the archiver fails upon bogus file names.
5879 rm -f conftest.$ac_objext libconftest.a
5880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5881 (eval $lt_ar_try) 2>&5
5883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5884 test $ac_status = 0; }
5885 if test "$ac_status" -ne 0; then
5889 rm -f conftest.* libconftest.a
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5896 $as_echo "$lt_cv_ar_at_file" >&6; }
5898 if test "x$lt_cv_ar_at_file" = xno; then
5901 archiver_list_spec=$lt_cv_ar_at_file
5910 if test -n "$ac_tool_prefix"; then
5911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5912 set dummy ${ac_tool_prefix}strip; ac_word=$2
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5914 $as_echo_n "checking for $ac_word... " >&6; }
5915 if ${ac_cv_prog_STRIP+:} false; then :
5916 $as_echo_n "(cached) " >&6
5918 if test -n "$STRIP"; then
5919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 test -z "$as_dir" && as_dir=.
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 STRIP=$ac_cv_prog_STRIP
5939 if test -n "$STRIP"; then
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5941 $as_echo "$STRIP" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5944 $as_echo "no" >&6; }
5949 if test -z "$ac_cv_prog_STRIP"; then
5951 # Extract the first word of "strip", so it can be a program name with args.
5952 set dummy strip; ac_word=$2
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5954 $as_echo_n "checking for $ac_word... " >&6; }
5955 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 if test -n "$ac_ct_STRIP"; then
5959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5968 ac_cv_prog_ac_ct_STRIP="strip"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5979 if test -n "$ac_ct_STRIP"; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5981 $as_echo "$ac_ct_STRIP" >&6; }
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5984 $as_echo "no" >&6; }
5987 if test "x$ac_ct_STRIP" = x; then
5990 case $cross_compiling:$ac_tool_warned in
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5994 ac_tool_warned=yes ;;
5999 STRIP="$ac_cv_prog_STRIP"
6002 test -z "$STRIP" && STRIP=:
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_RANLIB+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 if test -n "$RANLIB"; then
6018 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 RANLIB=$ac_cv_prog_RANLIB
6038 if test -n "$RANLIB"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6040 $as_echo "$RANLIB" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_RANLIB"; then
6049 ac_ct_RANLIB=$RANLIB
6050 # Extract the first word of "ranlib", so it can be a program name with args.
6051 set dummy ranlib; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$ac_ct_RANLIB"; then
6058 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_ac_ct_RANLIB="ranlib"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6078 if test -n "$ac_ct_RANLIB"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6080 $as_echo "$ac_ct_RANLIB" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_RANLIB" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6095 RANLIB=$ac_ct_RANLIB
6098 RANLIB="$ac_cv_prog_RANLIB"
6101 test -z "$RANLIB" && RANLIB=:
6108 # Determine commands to create old-style static archives.
6109 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6110 old_postinstall_cmds='chmod 644 $oldlib'
6111 old_postuninstall_cmds=
6113 if test -n "$RANLIB"; then
6116 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6119 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6122 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6127 lock_old_archive_extraction=yes ;;
6129 lock_old_archive_extraction=no ;;
6170 # If no C compiler was specified, use CC.
6173 # If no C compiler flags were specified, use CFLAGS.
6174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6176 # Allow CC to be a program name with arguments.
6180 # Check for command to grab the raw symbol name followed by C symbol from nm.
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6182 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6183 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6184 $as_echo_n "(cached) " >&6
6187 # These are sane defaults that work on at least a few old systems.
6188 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6190 # Character class describing NM global symbol codes.
6191 symcode='[BCDEGRST]'
6193 # Regexp to match symbols that can be accessed directly from C.
6194 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6196 # Define system-specific variables.
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 symcode='[ABCDGISTW]'
6205 if test "$host_cpu" = ia64; then
6206 symcode='[ABCDEGRST]'
6210 symcode='[BCDEGRST]'
6213 symcode='[BCDEGQRST]'
6224 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6232 # If we're using GNU nm, then use its standard symbol codes.
6233 case `$NM -V 2>&1` in
6234 *GNU* | *'with BFD'*)
6235 symcode='[ABCDGIRSTW]' ;;
6238 # Transform an extracted symbol line into a proper C declaration.
6239 # Some systems (esp. on ia64) link data and code symbols differently,
6240 # so use this general approach.
6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6243 # Transform an extracted symbol line into symbol name and symbol address
6244 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6245 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'"
6247 # Handle CRLF in mingw tool chain
6251 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255 # Try without a prefix underscore, then with it.
6256 for ac_symprfx in "" "_"; do
6258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6259 symxfrm="\\1 $ac_symprfx\\2 \\2"
6261 # Write the raw and C identifiers.
6262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6263 # Fake it for dumpbin and say T for any non-static function
6264 # and D for any global variable.
6265 # Also find C++ and __fastcall symbols from MSVC++,
6266 # which start with @ or ?.
6267 lt_cv_sys_global_symbol_pipe="$AWK '"\
6268 " {last_section=section; section=\$ 3};"\
6269 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6270 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6271 " \$ 0!~/External *\|/{next};"\
6272 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6273 " {if(hide[section]) next};"\
6274 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6275 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6276 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6277 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6278 " ' prfx=^$ac_symprfx"
6280 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6282 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6284 # Check to see that the pipe works correctly.
6288 cat > conftest.$ac_ext <<_LT_EOF
6293 void nm_test_func(void);
6294 void nm_test_func(void){}
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 # Now try to grab the symbols.
6308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6309 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; } && test -s "$nlist"; then
6313 # Try sorting and uniquifying the output.
6314 if sort "$nlist" | uniq > "$nlist"T; then
6315 mv -f "$nlist"T "$nlist"
6320 # Make sure that we snagged all the symbols we need.
6321 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6322 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6323 cat <<_LT_EOF > conftest.$ac_ext
6324 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6325 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6326 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6327 relocations are performed -- see ld's documentation on pseudo-relocs. */
6328 # define LT@&t@_DLSYM_CONST
6329 #elif defined(__osf__)
6330 /* This system does not cope well with relocations in const data. */
6331 # define LT@&t@_DLSYM_CONST
6333 # define LT@&t@_DLSYM_CONST const
6341 # Now generate the symbol file.
6342 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6344 cat <<_LT_EOF >> conftest.$ac_ext
6346 /* The mapping between symbol names and symbols. */
6347 LT@&t@_DLSYM_CONST struct {
6351 lt__PROGRAM__LTX_preloaded_symbols[] =
6353 { "@PROGRAM@", (void *) 0 },
6355 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6356 cat <<\_LT_EOF >> conftest.$ac_ext
6360 /* This works around a problem in FreeBSD linker */
6361 #ifdef FREEBSD_WORKAROUND
6362 static const void *lt_preloaded_setup() {
6363 return lt__PROGRAM__LTX_preloaded_symbols;
6371 # Now try linking the two files.
6372 mv conftest.$ac_objext conftstm.$ac_objext
6373 lt_globsym_save_LIBS=$LIBS
6374 lt_globsym_save_CFLAGS=$CFLAGS
6375 LIBS="conftstm.$ac_objext"
6376 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6378 (eval $ac_link) 2>&5
6380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6381 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6384 LIBS=$lt_globsym_save_LIBS
6385 CFLAGS=$lt_globsym_save_CFLAGS
6387 echo "cannot find nm_test_func in $nlist" >&5
6390 echo "cannot find nm_test_var in $nlist" >&5
6393 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6396 echo "$progname: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6399 rm -rf conftest* conftst*
6401 # Do not use the global_symbol_pipe unless it works.
6402 if test "$pipe_works" = yes; then
6405 lt_cv_sys_global_symbol_pipe=
6411 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6412 lt_cv_sys_global_symbol_to_cdecl=
6414 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6416 $as_echo "failed" >&6; }
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6419 $as_echo "ok" >&6; }
6422 # Response file support.
6423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6424 nm_file_list_spec='@'
6425 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6426 nm_file_list_spec='@'
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6456 $as_echo_n "checking for sysroot... " >&6; }
6458 @%:@ Check whether --with-sysroot was given.
6459 if test "${with_sysroot+set}" = set; then :
6460 withval=$with_sysroot;
6467 case ${with_sysroot} in #(
6469 if test "$GCC" = yes; then
6470 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6474 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6480 $as_echo "${with_sysroot}" >&6; }
6481 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6486 $as_echo "${lt_sysroot:-no}" >&6; }
6492 @%:@ Check whether --enable-libtool-lock was given.
6493 if test "${enable_libtool_lock+set}" = set; then :
6494 enableval=$enable_libtool_lock;
6497 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6499 # Some flags need to be propagated to the compiler or linker for good
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.$ac_objext` in
6522 # Find out which ABI we are using.
6523 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525 (eval $ac_compile) 2>&5
6527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528 test $ac_status = 0; }; then
6529 if test "$lt_cv_prog_gnu_ld" = yes; then
6530 case `/usr/bin/file conftest.$ac_objext` in
6532 LD="${LD-ld} -melf32bsmip"
6535 LD="${LD-ld} -melf32bmipn32"
6538 LD="${LD-ld} -melf64bmip"
6542 case `/usr/bin/file conftest.$ac_objext` in
6558 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6559 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6560 # Find out which ABI we are using.
6561 echo 'int i;' > conftest.$ac_ext
6562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563 (eval $ac_compile) 2>&5
6565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566 test $ac_status = 0; }; then
6567 case `/usr/bin/file conftest.o` in
6570 x86_64-*kfreebsd*-gnu)
6571 LD="${LD-ld} -m elf_i386_fbsd"
6574 LD="${LD-ld} -m elf_i386"
6576 ppc64-*linux*|powerpc64-*linux*)
6577 LD="${LD-ld} -m elf32ppclinux"
6580 LD="${LD-ld} -m elf_s390"
6583 LD="${LD-ld} -m elf32_sparc"
6589 x86_64-*kfreebsd*-gnu)
6590 LD="${LD-ld} -m elf_x86_64_fbsd"
6593 LD="${LD-ld} -m elf_x86_64"
6595 ppc*-*linux*|powerpc*-*linux*)
6596 LD="${LD-ld} -m elf64ppc"
6598 s390*-*linux*|s390*-*tpf*)
6599 LD="${LD-ld} -m elf64_s390"
6602 LD="${LD-ld} -m elf64_sparc"
6612 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6613 SAVE_CFLAGS="$CFLAGS"
6614 CFLAGS="$CFLAGS -belf"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6616 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6617 if ${lt_cv_cc_needs_belf+:} false; then :
6618 $as_echo_n "(cached) " >&6
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6637 if ac_fn_c_try_link "$LINENO"; then :
6638 lt_cv_cc_needs_belf=yes
6640 lt_cv_cc_needs_belf=no
6642 rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6645 ac_cpp='$CPP $CPPFLAGS'
6646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6652 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6653 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6654 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6655 CFLAGS="$SAVE_CFLAGS"
6659 # Find out which ABI we are using.
6660 echo 'int i;' > conftest.$ac_ext
6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6662 (eval $ac_compile) 2>&5
6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6665 test $ac_status = 0; }; then
6666 case `/usr/bin/file conftest.o` in
6668 case $lt_cv_prog_gnu_ld in
6672 LD="${LD-ld} -m elf_x86_64"
6675 LD="${LD-ld} -m elf64_sparc"
6678 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6679 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6684 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6696 need_locks="$enable_libtool_lock"
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}mt; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$MANIFEST_TOOL"; then
6707 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6727 if test -n "$MANIFEST_TOOL"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6729 $as_echo "$MANIFEST_TOOL" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6738 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6739 # Extract the first word of "mt", so it can be a program name with args.
6740 set dummy mt; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$ac_ct_MANIFEST_TOOL"; then
6747 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6767 if test -n "$ac_ct_MANIFEST_TOOL"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6769 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6778 case $cross_compiling:$ac_tool_warned in
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6784 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6787 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6790 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6792 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6793 if ${lt_cv_path_mainfest_tool+:} false; then :
6794 $as_echo_n "(cached) " >&6
6796 lt_cv_path_mainfest_tool=no
6797 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6798 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6799 cat conftest.err >&5
6800 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6801 lt_cv_path_mainfest_tool=yes
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6806 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6807 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6817 rhapsody* | darwin*)
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$DSYMUTIL"; then
6827 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6836 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6847 if test -n "$DSYMUTIL"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6849 $as_echo "$DSYMUTIL" >&6; }
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6857 if test -z "$ac_cv_prog_DSYMUTIL"; then
6858 ac_ct_DSYMUTIL=$DSYMUTIL
6859 # Extract the first word of "dsymutil", so it can be a program name with args.
6860 set dummy dsymutil; 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_DSYMUTIL+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$ac_ct_DSYMUTIL"; then
6867 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6887 if test -n "$ac_ct_DSYMUTIL"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6889 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6895 if test "x$ac_ct_DSYMUTIL" = 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 ;;
6904 DSYMUTIL=$ac_ct_DSYMUTIL
6907 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6910 if test -n "$ac_tool_prefix"; then
6911 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if ${ac_cv_prog_NMEDIT+:} false; then :
6916 $as_echo_n "(cached) " >&6
6918 if test -n "$NMEDIT"; then
6919 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925 test -z "$as_dir" && as_dir=.
6926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6928 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 NMEDIT=$ac_cv_prog_NMEDIT
6939 if test -n "$NMEDIT"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6941 $as_echo "$NMEDIT" >&6; }
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6949 if test -z "$ac_cv_prog_NMEDIT"; then
6950 ac_ct_NMEDIT=$NMEDIT
6951 # Extract the first word of "nmedit", so it can be a program name with args.
6952 set dummy nmedit; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6956 $as_echo_n "(cached) " >&6
6958 if test -n "$ac_ct_NMEDIT"; then
6959 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6979 if test -n "$ac_ct_NMEDIT"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6981 $as_echo "$ac_ct_NMEDIT" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6987 if test "x$ac_ct_NMEDIT" = x; then
6990 case $cross_compiling:$ac_tool_warned in
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6996 NMEDIT=$ac_ct_NMEDIT
6999 NMEDIT="$ac_cv_prog_NMEDIT"
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_prog_LIPO+:} false; then :
7008 $as_echo_n "(cached) " >&6
7010 if test -n "$LIPO"; then
7011 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 LIPO=$ac_cv_prog_LIPO
7031 if test -n "$LIPO"; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7033 $as_echo "$LIPO" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7041 if test -z "$ac_cv_prog_LIPO"; then
7043 # Extract the first word of "lipo", so it can be a program name with args.
7044 set dummy lipo; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$ac_ct_LIPO"; then
7051 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7060 ac_cv_prog_ac_ct_LIPO="lipo"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7071 if test -n "$ac_ct_LIPO"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7073 $as_echo "$ac_ct_LIPO" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7079 if test "x$ac_ct_LIPO" = x; then
7082 case $cross_compiling:$ac_tool_warned in
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7086 ac_tool_warned=yes ;;
7091 LIPO="$ac_cv_prog_LIPO"
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}otool; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if ${ac_cv_prog_OTOOL+:} false; then :
7100 $as_echo_n "(cached) " >&6
7102 if test -n "$OTOOL"; then
7103 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 OTOOL=$ac_cv_prog_OTOOL
7123 if test -n "$OTOOL"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7125 $as_echo "$OTOOL" >&6; }
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7133 if test -z "$ac_cv_prog_OTOOL"; then
7135 # Extract the first word of "otool", so it can be a program name with args.
7136 set dummy otool; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$ac_ct_OTOOL"; then
7143 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_ac_ct_OTOOL="otool"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7163 if test -n "$ac_ct_OTOOL"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7165 $as_echo "$ac_ct_OTOOL" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_ct_OTOOL" = x; then
7174 case $cross_compiling:$ac_tool_warned in
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7183 OTOOL="$ac_cv_prog_OTOOL"
7186 if test -n "$ac_tool_prefix"; then
7187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_OTOOL64+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 if test -n "$OTOOL64"; then
7195 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 for ac_exec_ext in '' $ac_executable_extensions; do
7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 OTOOL64=$ac_cv_prog_OTOOL64
7215 if test -n "$OTOOL64"; then
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7217 $as_echo "$OTOOL64" >&6; }
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7225 if test -z "$ac_cv_prog_OTOOL64"; then
7226 ac_ct_OTOOL64=$OTOOL64
7227 # Extract the first word of "otool64", so it can be a program name with args.
7228 set dummy otool64; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$ac_ct_OTOOL64"; then
7235 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244 ac_cv_prog_ac_ct_OTOOL64="otool64"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7255 if test -n "$ac_ct_OTOOL64"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7257 $as_echo "$ac_ct_OTOOL64" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test "x$ac_ct_OTOOL64" = x; then
7266 case $cross_compiling:$ac_tool_warned in
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7272 OTOOL64=$ac_ct_OTOOL64
7275 OTOOL64="$ac_cv_prog_OTOOL64"
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7305 $as_echo_n "checking for -single_module linker flag... " >&6; }
7306 if ${lt_cv_apple_cc_single_mod+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 lt_cv_apple_cc_single_mod=no
7310 if test -z "${LT_MULTI_MODULE}"; then
7311 # By default we will add the -single_module flag. You can override
7312 # by either setting the environment variable LT_MULTI_MODULE
7313 # non-empty at configure time, or by adding -multi_module to the
7315 rm -rf libconftest.dylib*
7316 echo "int foo(void){return 1;}" > conftest.c
7317 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7318 -dynamiclib -Wl,-single_module conftest.c" >&5
7319 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7320 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7322 # If there is a non-empty error log, and "single_module"
7323 # appears in it, assume the flag caused a linker warning
7324 if test -s conftest.err && $GREP single_module conftest.err; then
7325 cat conftest.err >&5
7326 # Otherwise, if the output was created with a 0 exit code from
7327 # the compiler, it worked.
7328 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7329 lt_cv_apple_cc_single_mod=yes
7331 cat conftest.err >&5
7333 rm -rf libconftest.dylib*
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7338 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7341 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7342 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7343 $as_echo_n "(cached) " >&6
7345 lt_cv_ld_exported_symbols_list=no
7346 save_LDFLAGS=$LDFLAGS
7347 echo "_main" > conftest.sym
7348 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7360 if ac_fn_c_try_link "$LINENO"; then :
7361 lt_cv_ld_exported_symbols_list=yes
7363 lt_cv_ld_exported_symbols_list=no
7365 rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
7367 LDFLAGS="$save_LDFLAGS"
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7371 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7374 $as_echo_n "checking for -force_load linker flag... " >&6; }
7375 if ${lt_cv_ld_force_load+:} false; then :
7376 $as_echo_n "(cached) " >&6
7378 lt_cv_ld_force_load=no
7379 cat > conftest.c << _LT_EOF
7380 int forced_loaded() { return 2;}
7382 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7383 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7384 echo "$AR cru libconftest.a conftest.o" >&5
7385 $AR cru libconftest.a conftest.o 2>&5
7386 echo "$RANLIB libconftest.a" >&5
7387 $RANLIB libconftest.a 2>&5
7388 cat > conftest.c << _LT_EOF
7389 int main() { return 0;}
7391 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7392 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7394 if test -s conftest.err && $GREP force_load conftest.err; then
7395 cat conftest.err >&5
7396 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7397 lt_cv_ld_force_load=yes
7399 cat conftest.err >&5
7401 rm -f conftest.err libconftest.a conftest conftest.c
7402 rm -rf conftest.dSYM
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7406 $as_echo "$lt_cv_ld_force_load" >&6; }
7408 rhapsody* | darwin1.[012])
7409 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7411 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7412 darwin*) # darwin 5.x on
7413 # if running on 10.5 or later, the deployment target defaults
7414 # to the OS version, if on x86, and 10.4, the deployment
7415 # target defaults to 10.4. Don't you love it?
7416 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7417 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7418 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7420 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7422 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7427 _lt_dar_single_mod='$single_module'
7429 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7430 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7432 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7434 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7435 _lt_dsymutil='~$DSYMUTIL $lib || :'
7442 for ac_header in dlfcn.h
7444 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7446 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7447 cat >>confdefs.h <<_ACEOF
7448 @%:@define HAVE_DLFCN_H 1
7469 @%:@ Check whether --enable-shared was given.
7470 if test "${enable_shared+set}" = set; then :
7471 enableval=$enable_shared; p=${PACKAGE-default}
7473 yes) enable_shared=yes ;;
7474 no) enable_shared=no ;;
7477 # Look at the argument we got. We use all the common list separators.
7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479 for pkg in $enableval; do
7481 if test "X$pkg" = "X$p"; then
7500 @%:@ Check whether --enable-static was given.
7501 if test "${enable_static+set}" = set; then :
7502 enableval=$enable_static; p=${PACKAGE-default}
7504 yes) enable_static=yes ;;
7505 no) enable_static=no ;;
7508 # Look at the argument we got. We use all the common list separators.
7509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7510 for pkg in $enableval; do
7512 if test "X$pkg" = "X$p"; then
7532 @%:@ Check whether --with-pic was given.
7533 if test "${with_pic+set}" = set; then :
7534 withval=$with_pic; lt_p=${PACKAGE-default}
7536 yes|no) pic_mode=$withval ;;
7539 # Look at the argument we got. We use all the common list separators.
7540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7541 for lt_pkg in $withval; do
7543 if test "X$lt_pkg" = "X$lt_p"; then
7555 test -z "$pic_mode" && pic_mode=default
7563 @%:@ Check whether --enable-fast-install was given.
7564 if test "${enable_fast_install+set}" = set; then :
7565 enableval=$enable_fast_install; p=${PACKAGE-default}
7567 yes) enable_fast_install=yes ;;
7568 no) enable_fast_install=no ;;
7570 enable_fast_install=no
7571 # Look at the argument we got. We use all the common list separators.
7572 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7573 for pkg in $enableval; do
7575 if test "X$pkg" = "X$p"; then
7576 enable_fast_install=yes
7583 enable_fast_install=yes
7596 # This can be used to rebuild libtool when needed
7597 LIBTOOL_DEPS="$ltmain"
7599 # Always use our own libtool.
7600 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7631 test -z "$LN_S" && LN_S="ln -s"
7646 if test -n "${ZSH_VERSION+set}" ; then
7647 setopt NO_GLOB_SUBST
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7651 $as_echo_n "checking for objdir... " >&6; }
7652 if ${lt_cv_objdir+:} false; then :
7653 $as_echo_n "(cached) " >&6
7655 rm -f .libs 2>/dev/null
7656 mkdir .libs 2>/dev/null
7657 if test -d .libs; then
7660 # MS-DOS does not allow filenames that begin with a dot.
7663 rmdir .libs 2>/dev/null
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7666 $as_echo "$lt_cv_objdir" >&6; }
7667 objdir=$lt_cv_objdir
7673 cat >>confdefs.h <<_ACEOF
7674 @%:@define LT_OBJDIR "$lt_cv_objdir/"
7682 # AIX sometimes has problems with the GCC collect2 program. For some
7683 # reason, if we set the COLLECT_NAMES environment variable, the problems
7684 # vanish in a puff of smoke.
7685 if test "X${COLLECT_NAMES+set}" != Xset; then
7687 export COLLECT_NAMES
7694 can_build_shared=yes
7696 # All known linkers require a `.a' archive for static linking (except MSVC,
7697 # which needs '.lib').
7700 with_gnu_ld="$lt_cv_prog_gnu_ld"
7703 old_CFLAGS="$CFLAGS"
7705 # Set sane defaults for various variables
7706 test -z "$CC" && CC=cc
7707 test -z "$LTCC" && LTCC=$CC
7708 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7709 test -z "$LD" && LD=ld
7710 test -z "$ac_objext" && ac_objext=o
7712 for cc_temp in $compiler""; do
7714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7720 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7723 # Only perform the check for file, if the check method requires it
7724 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7725 case $deplibs_check_method in
7727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7729 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7730 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7731 $as_echo_n "(cached) " >&6
7735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7738 lt_save_MAGIC_CMD="$MAGIC_CMD"
7739 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741 for ac_dir in $ac_dummy; do
7743 test -z "$ac_dir" && ac_dir=.
7744 if test -f $ac_dir/${ac_tool_prefix}file; then
7745 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7746 if test -n "$file_magic_test_file"; then
7747 case $deplibs_check_method in
7749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752 $EGREP "$file_magic_regex" > /dev/null; then
7757 *** Warning: the command libtool uses to detect shared libraries,
7758 *** $file_magic_cmd, produces output that libtool cannot recognize.
7759 *** The result is that libtool may fail to recognize shared libraries
7760 *** as such. This will affect the creation of libtool libraries that
7761 *** depend on shared libraries, but programs linked with such libtool
7762 *** libraries will work regardless of this problem. Nevertheless, you
7763 *** may want to report the problem to your system manager and/or to
7764 *** bug-libtool@gnu.org
7774 MAGIC_CMD="$lt_save_MAGIC_CMD"
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if test -n "$MAGIC_CMD"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782 $as_echo "$MAGIC_CMD" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7792 if test -z "$lt_cv_path_MAGIC_CMD"; then
7793 if test -n "$ac_tool_prefix"; then
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7795 $as_echo_n "checking for file... " >&6; }
7796 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7797 $as_echo_n "(cached) " >&6
7801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7804 lt_save_MAGIC_CMD="$MAGIC_CMD"
7805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7807 for ac_dir in $ac_dummy; do
7809 test -z "$ac_dir" && ac_dir=.
7810 if test -f $ac_dir/file; then
7811 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7812 if test -n "$file_magic_test_file"; then
7813 case $deplibs_check_method in
7815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7818 $EGREP "$file_magic_regex" > /dev/null; then
7823 *** Warning: the command libtool uses to detect shared libraries,
7824 *** $file_magic_cmd, produces output that libtool cannot recognize.
7825 *** The result is that libtool may fail to recognize shared libraries
7826 *** as such. This will affect the creation of libtool libraries that
7827 *** depend on shared libraries, but programs linked with such libtool
7828 *** libraries will work regardless of this problem. Nevertheless, you
7829 *** may want to report the problem to your system manager and/or to
7830 *** bug-libtool@gnu.org
7840 MAGIC_CMD="$lt_save_MAGIC_CMD"
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if test -n "$MAGIC_CMD"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7848 $as_echo "$MAGIC_CMD" >&6; }
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7864 # Use C for the default configuration in the libtool script
7868 ac_cpp='$CPP $CPPFLAGS'
7869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7874 # Source file extension for C test sources.
7877 # Object file extension for compiled C test sources.
7881 # Code to be used in simple compile tests
7882 lt_simple_compile_test_code="int some_variable = 0;"
7884 # Code to be used in simple link tests
7885 lt_simple_link_test_code='int main(){return(0);}'
7893 # If no C compiler was specified, use CC.
7896 # If no C compiler flags were specified, use CFLAGS.
7897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7899 # Allow CC to be a program name with arguments.
7902 # Save the default compiler, since it gets overwritten when the other
7903 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7904 compiler_DEFAULT=$CC
7906 # save warnings/boilerplate of simple test code
7907 ac_outfile=conftest.$ac_objext
7908 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7910 _lt_compiler_boilerplate=`cat conftest.err`
7913 ac_outfile=conftest.$ac_objext
7914 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7916 _lt_linker_boilerplate=`cat conftest.err`
7921 ## There is no encapsulation within the following macros, do not change
7922 ## the running order or otherwise move them around unless you know exactly
7923 ## what you are doing...
7924 if test -n "$compiler"; then
7926 lt_prog_compiler_no_builtin_flag=
7928 if test "$GCC" = yes; then
7929 case $cc_basename in
7931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7938 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 lt_cv_prog_compiler_rtti_exceptions=no
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7944 lt_compiler_flag="-fno-rtti -fno-exceptions"
7945 # Insert the option either (1) after the last *FLAGS variable, or
7946 # (2) before a word containing "conftest.", or (3) at the end.
7947 # Note that $ac_compile itself does not contain backslashes and begins
7948 # with a dollar sign (not a hyphen), so the echo should work correctly.
7949 # The option is referenced via a variable to avoid confusing sed.
7950 lt_compile=`echo "$ac_compile" | $SED \
7951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7953 -e 's:$: $lt_compiler_flag:'`
7954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7955 (eval "$lt_compile" 2>conftest.err)
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 if (exit $ac_status) && test -s "$ac_outfile"; then
7960 # The compiler can only warn and ignore the option if not recognized
7961 # So say no if there are warnings other than the usual output.
7962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7965 lt_cv_prog_compiler_rtti_exceptions=yes
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7975 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7987 lt_prog_compiler_wl=
7988 lt_prog_compiler_pic=
7989 lt_prog_compiler_static=
7992 if test "$GCC" = yes; then
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_static='-static'
7998 # All AIX code is PIC.
7999 if test "$host_cpu" = ia64; then
8000 # AIX 5 now supports IA64 processor
8001 lt_prog_compiler_static='-Bstatic'
8008 # see comment about AmigaOS4 .so support
8009 lt_prog_compiler_pic='-fPIC'
8012 # FIXME: we need at least 68020 code to build shared libraries, but
8013 # adding the `-m68020' flag to GCC prevents building anything better,
8015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021 # PIC is the default for these OSes.
8024 mingw* | cygwin* | pw32* | os2* | cegcc*)
8025 # This hack is so that the source file can tell whether it is being
8026 # built for inclusion in a dll (and should export symbols for example).
8027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028 # (--disable-auto-import) libraries
8029 lt_prog_compiler_pic='-DDLL_EXPORT'
8032 darwin* | rhapsody*)
8033 # PIC is the default on this platform
8034 # Common symbols not allowed in MH_DYLIB files
8035 lt_prog_compiler_pic='-fno-common'
8039 # PIC is the default for Haiku.
8040 # The "-static" flag exists, but is broken.
8041 lt_prog_compiler_static=
8045 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8046 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8047 # sets the default TLS model and affects inlining.
8053 lt_prog_compiler_pic='-fPIC'
8059 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8060 # Instead, we relocate shared libraries at runtime.
8064 # Just because we use GCC doesn't mean we suddenly get shared libraries
8065 # on systems that don't support them.
8066 lt_prog_compiler_can_build_shared=no
8071 # QNX uses GNU C++, but need to define -shared option too, otherwise
8073 lt_prog_compiler_pic='-fPIC -shared'
8077 if test -d /usr/nec; then
8078 lt_prog_compiler_pic=-Kconform_pic
8083 lt_prog_compiler_pic='-fPIC'
8087 case $cc_basename in
8088 nvcc*) # Cuda Compiler Driver 2.2
8089 lt_prog_compiler_wl='-Xlinker '
8090 if test -n "$lt_prog_compiler_pic"; then
8091 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8096 # PORTME Check for flag to pass linker flags through the system compiler.
8099 lt_prog_compiler_wl='-Wl,'
8100 if test "$host_cpu" = ia64; then
8101 # AIX 5 now supports IA64 processor
8102 lt_prog_compiler_static='-Bstatic'
8104 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8108 mingw* | cygwin* | pw32* | os2* | cegcc*)
8109 # This hack is so that the source file can tell whether it is being
8110 # built for inclusion in a dll (and should export symbols for example).
8111 lt_prog_compiler_pic='-DDLL_EXPORT'
8114 hpux9* | hpux10* | hpux11*)
8115 lt_prog_compiler_wl='-Wl,'
8116 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8123 lt_prog_compiler_pic='+Z'
8126 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8127 lt_prog_compiler_static='${wl}-a ${wl}archive'
8130 irix5* | irix6* | nonstopux*)
8131 lt_prog_compiler_wl='-Wl,'
8132 # PIC (with -KPIC) is the default.
8133 lt_prog_compiler_static='-non_shared'
8136 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8137 case $cc_basename in
8138 # old Intel for x86_64 which still supported -KPIC.
8140 lt_prog_compiler_wl='-Wl,'
8141 lt_prog_compiler_pic='-KPIC'
8142 lt_prog_compiler_static='-static'
8144 # icc used to be incompatible with GCC.
8145 # ICC 10 doesn't accept -KPIC any more.
8147 lt_prog_compiler_wl='-Wl,'
8148 lt_prog_compiler_pic='-fPIC'
8149 lt_prog_compiler_static='-static'
8151 # Lahey Fortran 8.1.
8153 lt_prog_compiler_wl='-Wl,'
8154 lt_prog_compiler_pic='--shared'
8155 lt_prog_compiler_static='--static'
8158 # NAG Fortran compiler
8159 lt_prog_compiler_wl='-Wl,-Wl,,'
8160 lt_prog_compiler_pic='-PIC'
8161 lt_prog_compiler_static='-Bstatic'
8163 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8164 # Portland Group compilers (*not* the Pentium gcc compiler,
8165 # which looks to be a dead project)
8166 lt_prog_compiler_wl='-Wl,'
8167 lt_prog_compiler_pic='-fpic'
8168 lt_prog_compiler_static='-Bstatic'
8171 lt_prog_compiler_wl='-Wl,'
8172 # All Alpha code is PIC.
8173 lt_prog_compiler_static='-non_shared'
8175 xl* | bgxl* | bgf* | mpixl*)
8176 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-qpic'
8179 lt_prog_compiler_static='-qstaticlink'
8182 case `$CC -V 2>&1 | sed 5q` in
8183 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8184 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8185 lt_prog_compiler_pic='-KPIC'
8186 lt_prog_compiler_static='-Bstatic'
8187 lt_prog_compiler_wl=''
8189 *Sun\ F* | *Sun*Fortran*)
8190 lt_prog_compiler_pic='-KPIC'
8191 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_wl='-Qoption ld '
8196 lt_prog_compiler_pic='-KPIC'
8197 lt_prog_compiler_static='-Bstatic'
8198 lt_prog_compiler_wl='-Wl,'
8200 *Intel*\ [CF]*Compiler*)
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-fPIC'
8203 lt_prog_compiler_static='-static'
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-fpic'
8208 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_pic='-KPIC'
8217 lt_prog_compiler_static='-Bstatic'
8221 # QNX uses GNU C++, but need to define -shared option too, otherwise
8223 lt_prog_compiler_pic='-fPIC -shared'
8226 osf3* | osf4* | osf5*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # All OSF/1 code is PIC.
8229 lt_prog_compiler_static='-non_shared'
8233 lt_prog_compiler_static='-non_shared'
8237 lt_prog_compiler_pic='-KPIC'
8238 lt_prog_compiler_static='-Bstatic'
8239 case $cc_basename in
8240 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8241 lt_prog_compiler_wl='-Qoption ld ';;
8243 lt_prog_compiler_wl='-Wl,';;
8248 lt_prog_compiler_wl='-Qoption ld '
8249 lt_prog_compiler_pic='-PIC'
8250 lt_prog_compiler_static='-Bstatic'
8253 sysv4 | sysv4.2uw2* | sysv4.3*)
8254 lt_prog_compiler_wl='-Wl,'
8255 lt_prog_compiler_pic='-KPIC'
8256 lt_prog_compiler_static='-Bstatic'
8260 if test -d /usr/nec ;then
8261 lt_prog_compiler_pic='-Kconform_pic'
8262 lt_prog_compiler_static='-Bstatic'
8266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8267 lt_prog_compiler_wl='-Wl,'
8268 lt_prog_compiler_pic='-KPIC'
8269 lt_prog_compiler_static='-Bstatic'
8273 lt_prog_compiler_wl='-Wl,'
8274 lt_prog_compiler_can_build_shared=no
8278 lt_prog_compiler_pic='-pic'
8279 lt_prog_compiler_static='-Bstatic'
8283 lt_prog_compiler_can_build_shared=no
8289 # For platforms which do not support PIC, -DPIC is meaningless:
8291 lt_prog_compiler_pic=
8294 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8299 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8300 if ${lt_cv_prog_compiler_pic+:} false; then :
8301 $as_echo_n "(cached) " >&6
8303 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8306 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8307 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8310 # Check to make sure the PIC flag actually works.
8312 if test -n "$lt_prog_compiler_pic"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8315 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8316 $as_echo_n "(cached) " >&6
8318 lt_cv_prog_compiler_pic_works=no
8319 ac_outfile=conftest.$ac_objext
8320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8321 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8322 # Insert the option either (1) after the last *FLAGS variable, or
8323 # (2) before a word containing "conftest.", or (3) at the end.
8324 # Note that $ac_compile itself does not contain backslashes and begins
8325 # with a dollar sign (not a hyphen), so the echo should work correctly.
8326 # The option is referenced via a variable to avoid confusing sed.
8327 lt_compile=`echo "$ac_compile" | $SED \
8328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8330 -e 's:$: $lt_compiler_flag:'`
8331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8332 (eval "$lt_compile" 2>conftest.err)
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 if (exit $ac_status) && test -s "$ac_outfile"; then
8337 # The compiler can only warn and ignore the option if not recognized
8338 # So say no if there are warnings other than the usual output.
8339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8342 lt_cv_prog_compiler_pic_works=yes
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8349 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8351 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8352 case $lt_prog_compiler_pic in
8354 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8357 lt_prog_compiler_pic=
8358 lt_prog_compiler_can_build_shared=no
8374 # Check to make sure the static flag actually works.
8376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379 if ${lt_cv_prog_compiler_static_works+:} false; then :
8380 $as_echo_n "(cached) " >&6
8382 lt_cv_prog_compiler_static_works=no
8383 save_LDFLAGS="$LDFLAGS"
8384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387 # The linker can only warn and ignore the option if not recognized
8388 # So say no if there are warnings
8389 if test -s conftest.err; then
8390 # Append any errors to the config.log.
8391 cat conftest.err 1>&5
8392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394 if diff conftest.exp conftest.er2 >/dev/null; then
8395 lt_cv_prog_compiler_static_works=yes
8398 lt_cv_prog_compiler_static_works=yes
8402 LDFLAGS="$save_LDFLAGS"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8408 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8411 lt_prog_compiler_static=
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if ${lt_cv_prog_compiler_c_o+:} false; then :
8423 $as_echo_n "(cached) " >&6
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>out/conftest.err)
8444 cat out/conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477 if ${lt_cv_prog_compiler_c_o+:} false; then :
8478 $as_echo_n "(cached) " >&6
8480 lt_cv_prog_compiler_c_o=no
8481 $RM -r conftest 2>/dev/null
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="-o out/conftest2.$ac_objext"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497 (eval "$lt_compile" 2>out/conftest.err)
8499 cat out/conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_c_o=yes
8513 # SGI C++ compiler will create directory out/ii_files/ for
8514 # template instantiation
8515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516 $RM out/* && rmdir out
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8528 hard_links="nottested"
8529 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530 # do not overwrite the value of need_locks provided by the user
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532 $as_echo_n "checking if we can lock with hard links... " >&6; }
8535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8537 ln conftest.a conftest.b 2>&5 || hard_links=no
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540 $as_echo "$hard_links" >&6; }
8541 if test "$hard_links" = no; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8559 allow_undefined_flag=
8560 always_export_symbols=no
8562 archive_expsym_cmds=
8563 compiler_needs_object=no
8564 enable_shared_with_static_runtimes=no
8565 export_dynamic_flag_spec=
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567 hardcode_automatic=no
8569 hardcode_direct_absolute=no
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_separator=
8573 hardcode_shlibpath_var=unsupported
8575 link_all_deplibs=unknown
8578 old_archive_from_new_cmds=
8579 old_archive_from_expsyms_cmds=
8580 thread_safe_flag_spec=
8581 whole_archive_flag_spec=
8582 # include_expsyms should be a list of space-separated symbols to be *always*
8583 # included in the symbol list
8585 # exclude_expsyms can be an extended regexp of symbols to exclude
8586 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8587 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8588 # as well as any symbol that contains `d'.
8589 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8590 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8591 # platforms (ab)use it in PIC code, but their linkers get confused if
8592 # the symbol is explicitly referenced. Since portable code cannot
8593 # rely on this symbol name, it's probably fine to never include it in
8594 # preloaded symbol tables.
8595 # Exclude shared library initialization/finalization symbols.
8596 extract_expsyms_cmds=
8599 cygwin* | mingw* | pw32* | cegcc*)
8600 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8601 # When not using gcc, we currently assume that we are using
8602 # Microsoft Visual C++.
8603 if test "$GCC" != yes; then
8608 # we just hope/assume this is gcc and not c89 (= MSVC++)
8618 # On some targets, GNU ld is compatible enough with the native linker
8619 # that we're better off using the native interface for both.
8620 lt_use_gnu_ld_interface=no
8621 if test "$with_gnu_ld" = yes; then
8624 # The AIX port of GNU ld has always aspired to compatibility
8625 # with the native linker. However, as the warning in the GNU ld
8626 # block says, versions before 2.19.5* couldn't really create working
8627 # shared libraries, regardless of the interface used.
8628 case `$LD -v 2>&1` in
8629 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8630 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8631 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8633 lt_use_gnu_ld_interface=yes
8638 lt_use_gnu_ld_interface=yes
8643 if test "$lt_use_gnu_ld_interface" = yes; then
8644 # If archive_cmds runs LD, not CC, wlarc should be empty
8647 # Set some defaults for GNU ld with shared library support. These
8648 # are reset later if shared libraries are not supported. Putting them
8649 # here allows them to be overridden if necessary.
8650 runpath_var=LD_RUN_PATH
8651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652 export_dynamic_flag_spec='${wl}--export-dynamic'
8653 # ancient GNU ld didn't support --whole-archive et. al.
8654 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8655 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8657 whole_archive_flag_spec=
8659 supports_anon_versioning=no
8660 case `$LD -v 2>&1` in
8661 *GNU\ gold*) supports_anon_versioning=yes ;;
8662 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8663 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8664 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8665 *\ 2.11.*) ;; # other 2.11 versions
8666 *) supports_anon_versioning=yes ;;
8669 # See if GNU ld supports shared libraries.
8672 # On AIX/PPC, the GNU linker is very broken
8673 if test "$host_cpu" != ia64; then
8677 *** Warning: the GNU linker, at least up to release 2.19, is reported
8678 *** to be unable to reliably create shared libraries on AIX.
8679 *** Therefore, libtool is disabling shared libraries support. If you
8680 *** really care for shared libraries, you may want to install binutils
8681 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8682 *** You will then need to restart the configuration process.
8691 # see comment about AmigaOS4 .so support
8692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8693 archive_expsym_cmds=''
8696 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)'
8697 hardcode_libdir_flag_spec='-L$libdir'
8698 hardcode_minus_L=yes
8704 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8705 allow_undefined_flag=unsupported
8706 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8707 # support --undefined. This deserves some investigation. FIXME
8708 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714 cygwin* | mingw* | pw32* | cegcc*)
8715 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8716 # as there is no search path for DLLs.
8717 hardcode_libdir_flag_spec='-L$libdir'
8718 export_dynamic_flag_spec='${wl}--export-all-symbols'
8719 allow_undefined_flag=unsupported
8720 always_export_symbols=no
8721 enable_shared_with_static_runtimes=yes
8722 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'
8723 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 # If the export-symbols file already is a .def file (1st line
8728 # is EXPORTS), use it as is; otherwise, prepend...
8729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730 cp $export_symbols $output_objdir/$soname.def;
8732 echo EXPORTS > $output_objdir/$soname.def;
8733 cat $export_symbols >> $output_objdir/$soname.def;
8735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 link_all_deplibs=yes
8748 hardcode_shlibpath_var=no
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 export_dynamic_flag_spec='${wl}-E'
8751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752 # Instead, shared libraries are loaded at an image base (0x10000000 by
8753 # default) and relocated if they conflict, which is a slow very memory
8754 # consuming and fragmenting process. To avoid this, we pick a random,
8755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758 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'
8761 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8763 if test "$host_os" = linux-dietlibc; then
8764 case $cc_basename in
8765 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8768 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769 && test "$tmp_diet" = no
8771 tmp_addflag=' $pic_flag'
8772 tmp_sharedflag='-shared'
8773 case $cc_basename,$host_cpu in
8774 pgcc*) # Portland Group C compiler
8775 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'
8776 tmp_addflag=' $pic_flag'
8778 pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group f77 and f90 compilers
8780 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'
8781 tmp_addflag=' $pic_flag -Mnomain' ;;
8782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8783 tmp_addflag=' -i_dynamic' ;;
8784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8785 tmp_addflag=' -i_dynamic -nofor_main' ;;
8786 ifc* | ifort*) # Intel Fortran compiler
8787 tmp_addflag=' -nofor_main' ;;
8788 lf95*) # Lahey Fortran 8.1
8789 whole_archive_flag_spec=
8790 tmp_sharedflag='--shared' ;;
8791 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792 tmp_sharedflag='-qmkshrobj'
8794 nvcc*) # Cuda Compiler Driver 2.2
8795 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'
8796 compiler_needs_object=yes
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ C*) # Sun C 5.9
8801 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'
8802 compiler_needs_object=yes
8803 tmp_sharedflag='-G' ;;
8804 *Sun\ F*) # Sun Fortran 8.3
8805 tmp_sharedflag='-G' ;;
8807 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8816 case $cc_basename in
8817 xlf* | bgf* | bgxlf* | mpixlf*)
8818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8822 if test "x$supports_anon_versioning" = xyes; then
8823 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8825 echo "local: *; };" >> $output_objdir/$libname.ver~
8826 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8837 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8840 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8846 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8850 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8851 *** create shared libraries on Solaris systems. Therefore, libtool
8852 *** is disabling shared libraries support. We urge you to upgrade GNU
8853 *** binutils to release 2.9.1 or newer. Another option is to modify
8854 *** your PATH or compiler configuration so that the native linker is
8855 *** used, and then restart.
8858 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8860 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8867 case `$LD -v 2>&1` in
8868 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8872 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8873 *** reliably create shared libraries on SCO systems. Therefore, libtool
8874 *** is disabling shared libraries support. We urge you to upgrade GNU
8875 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8876 *** your PATH or compiler configuration so that the native linker is
8877 *** used, and then restart.
8882 # For security reasons, it is highly recommended that you always
8883 # use absolute paths for naming shared libraries, and exclude the
8884 # DT_RUNPATH tag from executables and libraries. But doing so
8885 # requires that you compile everything twice, which is a pain.
8886 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8905 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8914 if test "$ld_shlibs" = no; then
8916 hardcode_libdir_flag_spec=
8917 export_dynamic_flag_spec=
8918 whole_archive_flag_spec=
8921 # PORTME fill in a description of your system's linker (not GNU ld)
8924 allow_undefined_flag=unsupported
8925 always_export_symbols=yes
8926 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'
8927 # Note: this linker hardcodes the directories in LIBPATH if there
8928 # are no directories specified by -L.
8929 hardcode_minus_L=yes
8930 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8931 # Neither direct hardcoding nor static linking is supported with a
8933 hardcode_direct=unsupported
8938 if test "$host_cpu" = ia64; then
8939 # On IA64, the linker does run time linking by default, so we don't
8940 # have to do anything special.
8941 aix_use_runtimelinking=no
8942 exp_sym_flag='-Bexport'
8945 # If we're using GNU nm, then we don't want the "-C" option.
8946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8947 # Also, AIX nm treats weak defined symbols like other global
8948 # defined symbols, whereas GNU nm marks them as "W".
8949 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8950 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'
8952 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'
8954 aix_use_runtimelinking=no
8956 # Test if we are trying to use run time linking or normal
8957 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8958 # need to do runtime linking.
8959 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8960 for ld_flag in $LDFLAGS; do
8961 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8962 aix_use_runtimelinking=yes
8969 exp_sym_flag='-bexport'
8970 no_entry_flag='-bnoentry'
8973 # When large executables or shared objects are built, AIX ld can
8974 # have problems creating the table of contents. If linking a library
8975 # or program results in "error TOC overflow" add -mminimal-toc to
8976 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8977 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8981 hardcode_direct_absolute=yes
8982 hardcode_libdir_separator=':'
8983 link_all_deplibs=yes
8984 file_list_spec='${wl}-f,'
8986 if test "$GCC" = yes; then
8987 case $host_os in aix4.[012]|aix4.[012].*)
8988 # We only want to do this on AIX 4.2 and lower, the check
8989 # below for broken collect2 doesn't work under 4.3+
8990 collect2name=`${CC} -print-prog-name=collect2`
8991 if test -f "$collect2name" &&
8992 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8994 # We have reworked collect2
8997 # We have old collect2
8998 hardcode_direct=unsupported
8999 # It fails to find uninstalled libraries when the uninstalled
9000 # path is not listed in the libpath. Setting hardcode_minus_L
9001 # to unsupported forces relinking
9002 hardcode_minus_L=yes
9003 hardcode_libdir_flag_spec='-L$libdir'
9004 hardcode_libdir_separator=
9008 shared_flag='-shared'
9009 if test "$aix_use_runtimelinking" = yes; then
9010 shared_flag="$shared_flag "'${wl}-G'
9014 if test "$host_cpu" = ia64; then
9015 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9016 # chokes on -Wl,-G. The following line is correct:
9019 if test "$aix_use_runtimelinking" = yes; then
9020 shared_flag='${wl}-G'
9022 shared_flag='${wl}-bM:SRE'
9027 export_dynamic_flag_spec='${wl}-bexpall'
9028 # It seems that -bexpall does not export symbols beginning with
9029 # underscore (_), so it is better to generate a list of symbols to export.
9030 always_export_symbols=yes
9031 if test "$aix_use_runtimelinking" = yes; then
9032 # Warning - without using the other runtime loading flags (-brtl),
9033 # -berok will link without error, but may produce a broken library.
9034 allow_undefined_flag='-berok'
9035 # Determine the default libpath from the value encoded in an
9037 if test "${lt_cv_aix_libpath+set}" = set; then
9038 aix_libpath=$lt_cv_aix_libpath
9040 if ${lt_cv_aix_libpath_+:} false; then :
9041 $as_echo_n "(cached) " >&6
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044 /* end confdefs.h. */
9054 if ac_fn_c_try_link "$LINENO"; then :
9056 lt_aix_libpath_sed='
9057 /Import File Strings/,/^$/ {
9059 s/^0 *\([^ ]*\) *$/\1/
9063 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064 # Check for a 64-bit object if we didn't find anything.
9065 if test -z "$lt_cv_aix_libpath_"; then
9066 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 if test -z "$lt_cv_aix_libpath_"; then
9072 lt_cv_aix_libpath_="/usr/lib:/lib"
9077 aix_libpath=$lt_cv_aix_libpath_
9080 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081 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"
9083 if test "$host_cpu" = ia64; then
9084 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9085 allow_undefined_flag="-z nodefs"
9086 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"
9088 # Determine the default libpath from the value encoded in an
9090 if test "${lt_cv_aix_libpath+set}" = set; then
9091 aix_libpath=$lt_cv_aix_libpath
9093 if ${lt_cv_aix_libpath_+:} false; then :
9094 $as_echo_n "(cached) " >&6
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9107 if ac_fn_c_try_link "$LINENO"; then :
9109 lt_aix_libpath_sed='
9110 /Import File Strings/,/^$/ {
9112 s/^0 *\([^ ]*\) *$/\1/
9116 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9117 # Check for a 64-bit object if we didn't find anything.
9118 if test -z "$lt_cv_aix_libpath_"; then
9119 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 if test -z "$lt_cv_aix_libpath_"; then
9125 lt_cv_aix_libpath_="/usr/lib:/lib"
9130 aix_libpath=$lt_cv_aix_libpath_
9133 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9134 # Warning - without using the other run time loading flags,
9135 # -berok will link without error, but may produce a broken library.
9136 no_undefined_flag=' ${wl}-bernotok'
9137 allow_undefined_flag=' ${wl}-berok'
9138 if test "$with_gnu_ld" = yes; then
9139 # We only use this code for GNU lds that support --whole-archive.
9140 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9142 # Exported symbols can be pulled into shared objects from archives
9143 whole_archive_flag_spec='$convenience'
9145 archive_cmds_need_lc=yes
9146 # This is similar to how AIX traditionally builds its shared libraries.
9147 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'
9155 # see comment about AmigaOS4 .so support
9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 archive_expsym_cmds=''
9160 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)'
9161 hardcode_libdir_flag_spec='-L$libdir'
9162 hardcode_minus_L=yes
9168 export_dynamic_flag_spec=-rdynamic
9171 cygwin* | mingw* | pw32* | cegcc*)
9172 # When not using gcc, we currently assume that we are using
9173 # Microsoft Visual C++.
9174 # hardcode_libdir_flag_spec is actually meaningless, as there is
9175 # no search path for DLLs.
9176 case $cc_basename in
9179 hardcode_libdir_flag_spec=' '
9180 allow_undefined_flag=unsupported
9181 always_export_symbols=yes
9183 # Tell ltmain to make .lib files, not .a files.
9185 # Tell ltmain to make .dll files, not .so files.
9187 # FIXME: Setting linknames here is a bad hack.
9188 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9189 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9190 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9192 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9194 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9196 # The linker will not automatically build a static lib if we build a DLL.
9197 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9198 enable_shared_with_static_runtimes=yes
9199 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9202 old_postinstall_cmds='chmod 644 $oldlib'
9203 postlink_cmds='lt_outputfile="@OUTPUT@"~
9204 lt_tool_outputfile="@TOOL_OUTPUT@"~
9205 case $lt_outputfile in
9208 lt_outputfile="$lt_outputfile.exe"
9209 lt_tool_outputfile="$lt_tool_outputfile.exe"
9212 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9213 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9214 $RM "$lt_outputfile.manifest";
9218 # Assume MSVC wrapper
9219 hardcode_libdir_flag_spec=' '
9220 allow_undefined_flag=unsupported
9221 # Tell ltmain to make .lib files, not .a files.
9223 # Tell ltmain to make .dll files, not .so files.
9225 # FIXME: Setting linknames here is a bad hack.
9226 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9227 # The linker will automatically build a .lib file if we build a DLL.
9228 old_archive_from_new_cmds='true'
9229 # FIXME: Should let the user specify the lib program.
9230 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9231 enable_shared_with_static_runtimes=yes
9236 darwin* | rhapsody*)
9239 archive_cmds_need_lc=no
9241 hardcode_automatic=yes
9242 hardcode_shlibpath_var=unsupported
9243 if test "$lt_cv_ld_force_load" = "yes"; then
9244 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\"`'
9247 whole_archive_flag_spec=''
9249 link_all_deplibs=yes
9250 allow_undefined_flag="$_lt_dar_allow_undefined"
9251 case $cc_basename in
9252 ifort*) _lt_dar_can_shared=yes ;;
9253 *) _lt_dar_can_shared=$GCC ;;
9255 if test "$_lt_dar_can_shared" = "yes"; then
9256 output_verbose_link_cmd=func_echo_all
9257 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9258 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9259 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}"
9260 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}"
9269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-L$libdir'
9271 hardcode_shlibpath_var=no
9274 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9275 # support. Future versions do this automatically, but an explicit c++rt0.o
9276 # does not break anything, and helps significantly (at the cost of a little
9279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9280 hardcode_libdir_flag_spec='-R$libdir'
9282 hardcode_shlibpath_var=no
9285 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9289 hardcode_minus_L=yes
9290 hardcode_shlibpath_var=no
9293 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9294 freebsd* | dragonfly*)
9295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9296 hardcode_libdir_flag_spec='-R$libdir'
9298 hardcode_shlibpath_var=no
9302 if test "$GCC" = yes; then
9303 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'
9305 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'
9307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9308 hardcode_libdir_separator=:
9311 # hardcode_minus_L: Not really in the search PATH,
9312 # but as the default location of the library.
9313 hardcode_minus_L=yes
9314 export_dynamic_flag_spec='${wl}-E'
9318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9319 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9323 if test "$with_gnu_ld" = no; then
9324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325 hardcode_libdir_separator=:
9327 hardcode_direct_absolute=yes
9328 export_dynamic_flag_spec='${wl}-E'
9329 # hardcode_minus_L: Not really in the search PATH,
9330 # but as the default location of the library.
9331 hardcode_minus_L=yes
9336 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9339 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9345 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9351 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9358 # Older versions of the 11.00 compiler do not understand -b yet
9359 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9361 $as_echo_n "checking if $CC understands -b... " >&6; }
9362 if ${lt_cv_prog_compiler__b+:} false; then :
9363 $as_echo_n "(cached) " >&6
9365 lt_cv_prog_compiler__b=no
9366 save_LDFLAGS="$LDFLAGS"
9367 LDFLAGS="$LDFLAGS -b"
9368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9370 # The linker can only warn and ignore the option if not recognized
9371 # So say no if there are warnings
9372 if test -s conftest.err; then
9373 # Append any errors to the config.log.
9374 cat conftest.err 1>&5
9375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9377 if diff conftest.exp conftest.er2 >/dev/null; then
9378 lt_cv_prog_compiler__b=yes
9381 lt_cv_prog_compiler__b=yes
9385 LDFLAGS="$save_LDFLAGS"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9389 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9391 if test x"$lt_cv_prog_compiler__b" = xyes; then
9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9394 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9400 if test "$with_gnu_ld" = no; then
9401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9402 hardcode_libdir_separator=:
9407 hardcode_shlibpath_var=no
9411 hardcode_direct_absolute=yes
9412 export_dynamic_flag_spec='${wl}-E'
9414 # hardcode_minus_L: Not really in the search PATH,
9415 # but as the default location of the library.
9416 hardcode_minus_L=yes
9422 irix5* | irix6* | nonstopux*)
9423 if test "$GCC" = yes; then
9424 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'
9425 # Try to use the -exported_symbol ld option, if it does not
9426 # work, assume that -exports_file does not work either and
9427 # implicitly export all symbols.
9428 # This should be the same for all languages, so no per-tag cache variable.
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9430 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9431 if ${lt_cv_irix_exported_symbol+:} false; then :
9432 $as_echo_n "(cached) " >&6
9434 save_LDFLAGS="$LDFLAGS"
9435 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438 int foo (void) { return 0; }
9440 if ac_fn_c_try_link "$LINENO"; then :
9441 lt_cv_irix_exported_symbol=yes
9443 lt_cv_irix_exported_symbol=no
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LDFLAGS="$save_LDFLAGS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9450 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9451 if test "$lt_cv_irix_exported_symbol" = yes; then
9452 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'
9455 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'
9456 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'
9458 archive_cmds_need_lc='no'
9459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460 hardcode_libdir_separator=:
9462 link_all_deplibs=yes
9466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9469 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9471 hardcode_libdir_flag_spec='-R$libdir'
9473 hardcode_shlibpath_var=no
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480 hardcode_libdir_separator=:
9481 hardcode_shlibpath_var=no
9488 if test -f /usr/libexec/ld.so; then
9490 hardcode_shlibpath_var=no
9491 hardcode_direct_absolute=yes
9492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9494 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9495 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9496 export_dynamic_flag_spec='${wl}-E'
9499 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501 hardcode_libdir_flag_spec='-R$libdir'
9504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_minus_L=yes
9517 allow_undefined_flag=unsupported
9518 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'
9519 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9523 if test "$GCC" = yes; then
9524 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9525 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'
9527 allow_undefined_flag=' -expect_unresolved \*'
9528 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'
9530 archive_cmds_need_lc='no'
9531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9532 hardcode_libdir_separator=:
9535 osf4* | osf5*) # as osf3* with the addition of -msym flag
9536 if test "$GCC" = yes; then
9537 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9538 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'
9539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541 allow_undefined_flag=' -expect_unresolved \*'
9542 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'
9543 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~
9544 $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'
9546 # Both c and cxx compiler support -rpath directly
9547 hardcode_libdir_flag_spec='-rpath $libdir'
9549 archive_cmds_need_lc='no'
9550 hardcode_libdir_separator=:
9554 no_undefined_flag=' -z defs'
9555 if test "$GCC" = yes; then
9557 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9559 $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'
9561 case `$CC -V 2>&1` in
9564 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9566 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9570 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9571 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9572 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9576 hardcode_libdir_flag_spec='-R$libdir'
9577 hardcode_shlibpath_var=no
9579 solaris2.[0-5] | solaris2.[0-5].*) ;;
9581 # The compiler driver will combine and reorder linker options,
9582 # but understands `-z linker_flag'. GCC discards it without `$wl',
9583 # but is careful enough not to reorder.
9584 # Supported since Solaris 2.6 (maybe 2.5.1?)
9585 if test "$GCC" = yes; then
9586 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9588 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9592 link_all_deplibs=yes
9596 if test "x$host_vendor" = xsequent; then
9597 # Use $CC to link under sequent, because it throws in some extra .o
9598 # files that make .init and .fini sections work.
9599 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='-L$libdir'
9605 hardcode_minus_L=yes
9606 hardcode_shlibpath_var=no
9610 case $host_vendor in
9612 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613 hardcode_direct=yes # is this really true???
9616 ## LD is ld it makes a PLAMLIB
9617 ## CC just makes a GrossModule.
9618 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9619 reload_cmds='$CC -r -o $output$reload_objs'
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9627 runpath_var='LD_RUN_PATH'
9628 hardcode_shlibpath_var=no
9632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9633 hardcode_shlibpath_var=no
9634 export_dynamic_flag_spec='-Bexport'
9638 if test -d /usr/nec; then
9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640 hardcode_shlibpath_var=no
9641 runpath_var=LD_RUN_PATH
9642 hardcode_runpath_var=yes
9647 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9648 no_undefined_flag='${wl}-z,text'
9649 archive_cmds_need_lc=no
9650 hardcode_shlibpath_var=no
9651 runpath_var='LD_RUN_PATH'
9653 if test "$GCC" = yes; then
9654 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9655 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9658 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9662 sysv5* | sco3.2v5* | sco5v6*)
9663 # Note: We can NOT use -z defs as we might desire, because we do not
9664 # link with -lc, and that would cause any symbols used from libc to
9665 # always be unresolved, which means just about no library would
9666 # ever link correctly. If we're not using GNU ld we use -z text
9667 # though, which does catch some bad symbols but isn't as heavy-handed
9669 no_undefined_flag='${wl}-z,text'
9670 allow_undefined_flag='${wl}-z,nodefs'
9671 archive_cmds_need_lc=no
9672 hardcode_shlibpath_var=no
9673 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9674 hardcode_libdir_separator=':'
9675 link_all_deplibs=yes
9676 export_dynamic_flag_spec='${wl}-Bexport'
9677 runpath_var='LD_RUN_PATH'
9679 if test "$GCC" = yes; then
9680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9681 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_libdir_flag_spec='-L$libdir'
9691 hardcode_shlibpath_var=no
9699 if test x$host_vendor = xsni; then
9701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9702 export_dynamic_flag_spec='${wl}-Blargedynsym'
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9709 $as_echo "$ld_shlibs" >&6; }
9710 test "$ld_shlibs" = no && can_build_shared=no
9712 with_gnu_ld=$with_gnu_ld
9729 # Do we need to explicitly link libc?
9731 case "x$archive_cmds_need_lc" in
9733 # Assume -lc should be added
9734 archive_cmds_need_lc=yes
9736 if test "$enable_shared" = yes && test "$GCC" = yes; then
9737 case $archive_cmds in
9739 # FIXME: we may have to deal with multi-command sequences.
9742 # Test whether the compiler implicitly links with -lc since on some
9743 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9744 # to ld, don't add -lc before -lgcc.
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9746 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9747 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9748 $as_echo_n "(cached) " >&6
9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9754 (eval $ac_compile) 2>&5
9756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9757 test $ac_status = 0; } 2>conftest.err; then
9760 libobjs=conftest.$ac_objext
9762 wl=$lt_prog_compiler_wl
9763 pic_flag=$lt_prog_compiler_pic
9769 lt_save_allow_undefined_flag=$allow_undefined_flag
9770 allow_undefined_flag=
9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9772 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; }
9777 lt_cv_archive_cmds_need_lc=no
9779 lt_cv_archive_cmds_need_lc=yes
9781 allow_undefined_flag=$lt_save_allow_undefined_flag
9783 cat conftest.err 1>&5
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9789 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9790 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9949 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9951 if test "$GCC" = yes; then
9953 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9954 *) lt_awk_arg="/^libraries:/" ;;
9957 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9958 *) lt_sed_strip_eq="s,=/,/,g" ;;
9960 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9961 case $lt_search_path_spec in
9963 # if the path contains ";" then we assume it to be the separator
9964 # otherwise default to the standard path separator (i.e. ":") - it is
9965 # assumed that no part of a normal pathname contains ";" but that should
9966 # okay in the real world where ";" in dirpaths is itself problematic.
9967 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9973 # Ok, now we have the path, separated by spaces, we can step through it
9974 # and add multilib dir if necessary.
9975 lt_tmp_lt_search_path_spec=
9976 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9977 for lt_sys_path in $lt_search_path_spec; do
9978 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9979 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9981 test -d "$lt_sys_path" && \
9982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9985 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9986 BEGIN {RS=" "; FS="/|\n";} {
9989 for (lt_i = NF; lt_i > 0; lt_i--) {
9990 if ($lt_i != "" && $lt_i != ".") {
9991 if ($lt_i == "..") {
9994 if (lt_count == 0) {
9995 lt_foo="/" $lt_i lt_foo;
10002 if (lt_foo != "") { lt_freq[lt_foo]++; }
10003 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10005 # AWK program above erroneously prepends '/' to C:/dos/paths
10008 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10009 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10011 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10013 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10015 library_names_spec=
10016 libname_spec='lib$name'
10020 postuninstall_cmds=
10024 shlibpath_overrides_runpath=unknown
10026 dynamic_linker="$host_os ld.so"
10027 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10028 need_lib_prefix=unknown
10029 hardcode_into_libs=no
10031 # when you set need_version to no, make sure it does not cause -set_version
10032 # flags to be left without arguments
10033 need_version=unknown
10037 version_type=linux # correct to gnu/linux during the next big refactor
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10039 shlibpath_var=LIBPATH
10041 # AIX 3 has no versioning support, so we append a major version to the name.
10042 soname_spec='${libname}${release}${shared_ext}$major'
10046 version_type=linux # correct to gnu/linux during the next big refactor
10049 hardcode_into_libs=yes
10050 if test "$host_cpu" = ia64; then
10051 # AIX 5 supports IA64
10052 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10053 shlibpath_var=LD_LIBRARY_PATH
10055 # With GCC up to 2.95.x, collect2 would create an import file
10056 # for dependence libraries. The import file would start with
10057 # the line `#! .'. This would cause the generated library to
10058 # depend on `.', always an invalid library. This was fixed in
10059 # development snapshots of GCC prior to 3.0.
10061 aix4 | aix4.[01] | aix4.[01].*)
10062 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10064 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10067 can_build_shared=no
10071 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10072 # soname into executable. Probably we can add versioning support to
10073 # collect2, so additional links can be useful in future.
10074 if test "$aix_use_runtimelinking" = yes; then
10075 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10076 # instead of lib<name>.a to let people know that these are not
10077 # typical AIX shared libraries.
10078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 # We preserve .a as extension for shared libraries through AIX4.2
10081 # and later when we are not doing run time linking.
10082 library_names_spec='${libname}${release}.a $libname.a'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LIBPATH
10092 # Since July 2007 AmigaOS4 officially supports .so libraries.
10093 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 library_names_spec='$libname.ixlibrary $libname.a'
10098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10099 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'
10105 library_names_spec='${libname}${shared_ext}'
10106 dynamic_linker="$host_os ld.so"
10107 shlibpath_var=LIBRARY_PATH
10111 version_type=linux # correct to gnu/linux during the next big refactor
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec='${libname}${release}${shared_ext}$major'
10115 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10118 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10119 # the default ld.so.conf also contains /usr/contrib/lib and
10120 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10121 # libtool to hard-code these into programs
10124 cygwin* | mingw* | pw32* | cegcc*)
10125 version_type=windows
10130 case $GCC,$cc_basename in
10133 library_names_spec='$libname.dll.a'
10134 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10135 postinstall_cmds='base_file=`basename \${file}`~
10136 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10137 dldir=$destdir/`dirname \$dlpath`~
10138 test -d \$dldir || mkdir -p \$dldir~
10139 $install_prog $dir/$dlname \$dldir/$dlname~
10140 chmod a+x \$dldir/$dlname~
10141 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10142 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10144 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10145 dlpath=$dir/\$dldll~
10147 shlibpath_overrides_runpath=yes
10151 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10152 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10154 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10157 # MinGW DLLs use traditional 'lib' prefix
10158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161 # pw32 DLLs use 'pw' prefix rather than 'lib'
10162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10165 dynamic_linker='Win32 ld.exe'
10170 libname_spec='$name'
10171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10172 library_names_spec='${libname}.dll.lib'
10176 sys_lib_search_path_spec=
10179 for lt_path in $LIB
10182 # Let DOS variable expansion print the short 8.3 style file name.
10183 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10184 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10187 # Convert to MSYS style.
10188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10191 # Convert to unix form, then to dos form, then back to unix form
10192 # but this time dos style (no spaces!) so that the unix form looks
10193 # like /cygdrive/c/PROGRA~1:/cygdr...
10194 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10195 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10196 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10199 sys_lib_search_path_spec="$LIB"
10200 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10201 # It is most probably a Windows format PATH.
10202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10206 # FIXME: find the short name or the path components, as spaces are
10207 # common. (e.g. "Program Files" -> "PROGRA~1")
10211 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10212 postinstall_cmds='base_file=`basename \${file}`~
10213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10214 dldir=$destdir/`dirname \$dlpath`~
10215 test -d \$dldir || mkdir -p \$dldir~
10216 $install_prog $dir/$dlname \$dldir/$dlname'
10217 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10218 dlpath=$dir/\$dldll~
10220 shlibpath_overrides_runpath=yes
10221 dynamic_linker='Win32 link.exe'
10225 # Assume MSVC wrapper
10226 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10227 dynamic_linker='Win32 ld.exe'
10230 # FIXME: first we should search . and the directory the executable is in
10234 darwin* | rhapsody*)
10235 dynamic_linker="$host_os dyld"
10236 version_type=darwin
10239 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10240 soname_spec='${libname}${release}${major}$shared_ext'
10241 shlibpath_overrides_runpath=yes
10242 shlibpath_var=DYLD_LIBRARY_PATH
10243 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10245 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10250 version_type=linux # correct to gnu/linux during the next big refactor
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10254 soname_spec='${libname}${release}${shared_ext}$major'
10255 shlibpath_var=LD_LIBRARY_PATH
10258 freebsd* | dragonfly*)
10259 # DragonFly does not have aout. When/if they implement a new
10260 # versioning mechanism, adjust this.
10261 if test -x /usr/bin/objformat; then
10262 objformat=`/usr/bin/objformat`
10265 freebsd[23].*) objformat=aout ;;
10266 *) objformat=elf ;;
10269 version_type=freebsd-$objformat
10270 case $version_type in
10272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10281 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=yes
10286 freebsd3.[01]* | freebsdelf3.[01]*)
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10290 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10291 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10295 *) # from 4.6 on, and DragonFly
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10303 version_type=linux # correct to gnu/linux during the next big refactor
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
10310 hardcode_into_libs=yes
10314 version_type=linux # correct to gnu/linux during the next big refactor
10317 dynamic_linker="$host_os runtime_loader"
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LIBRARY_PATH
10321 shlibpath_overrides_runpath=yes
10322 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10323 hardcode_into_libs=yes
10326 hpux9* | hpux10* | hpux11*)
10327 # Give a soname corresponding to the major version so that dld.sl refuses to
10328 # link against other versions.
10335 hardcode_into_libs=yes
10336 dynamic_linker="$host_os dld.so"
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 if test "X$HPUX_IA64_MODE" = X32; then
10342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 hardcode_into_libs=yes
10351 dynamic_linker="$host_os dld.sl"
10352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 dynamic_linker="$host_os dld.sl"
10362 shlibpath_var=SHLIB_PATH
10363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10368 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10369 postinstall_cmds='chmod 555 $lib'
10370 # or fails outright, so override atomically:
10371 install_override_mode=555
10375 version_type=linux # correct to gnu/linux during the next big refactor
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=no
10383 hardcode_into_libs=yes
10386 irix5* | irix6* | nonstopux*)
10388 nonstopux*) version_type=nonstopux ;;
10390 if test "$lt_cv_prog_gnu_ld" = yes; then
10391 version_type=linux # correct to gnu/linux during the next big refactor
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10401 irix5* | nonstopux*)
10402 libsuff= shlibsuff=
10405 case $LD in # libtool.m4 will add one of these switches to LD
10406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10407 libsuff= shlibsuff= libmagic=32-bit;;
10408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10409 libsuff=32 shlibsuff=N32 libmagic=N32;;
10410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10412 *) libsuff= shlibsuff= libmagic=never-match;;
10416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10417 shlibpath_overrides_runpath=no
10418 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10419 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10420 hardcode_into_libs=yes
10423 # No shared lib support for Linux oldld, aout, or coff.
10424 linux*oldld* | linux*aout* | linux*coff*)
10428 # This must be glibc/ELF.
10429 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10430 version_type=linux # correct to gnu/linux during the next big refactor
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 soname_spec='${libname}${release}${shared_ext}$major'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 shlibpath_overrides_runpath=no
10439 # Some binutils ld are patched to set DT_RUNPATH
10440 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10441 $as_echo_n "(cached) " >&6
10443 lt_cv_shlibpath_overrides_runpath=no
10444 save_LDFLAGS=$LDFLAGS
10445 save_libdir=$libdir
10446 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10447 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10459 if ac_fn_c_try_link "$LINENO"; then :
10460 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10461 lt_cv_shlibpath_overrides_runpath=yes
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 LDFLAGS=$save_LDFLAGS
10467 libdir=$save_libdir
10471 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10473 # This implies no fast_install, which is unacceptable.
10474 # Some rework will be needed to allow for fast_install
10475 # before this can be enabled.
10476 hardcode_into_libs=yes
10478 # Append ld.so.conf contents to the search path
10479 if test -f /etc/ld.so.conf; then
10480 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' ' '`
10481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10484 # We used to test for /lib/ld.so.1 and disable shared libraries on
10485 # powerpc, because MkLinux only supported shared libraries with the
10486 # GNU dynamic linker. Since this was broken with cross compilers,
10487 # most powerpc-linux boxes support dynamic linking these days and
10488 # people can always --disable-shared, the test was removed, and we
10489 # assume the GNU/Linux dynamic linker is in use.
10490 dynamic_linker='GNU/Linux ld.so'
10497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10500 dynamic_linker='NetBSD (a.out) ld.so'
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 dynamic_linker='NetBSD ld.elf_so'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10512 version_type=linux # correct to gnu/linux during the next big refactor
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 shlibpath_var=LD_LIBRARY_PATH
10525 shlibpath_overrides_runpath=no
10526 hardcode_into_libs=yes
10527 dynamic_linker='ldqnx.so'
10532 sys_lib_dlsearch_path_spec="/usr/lib"
10534 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10536 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10537 *) need_version=no ;;
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10544 openbsd2.[89] | openbsd2.[89].*)
10545 shlibpath_overrides_runpath=no
10548 shlibpath_overrides_runpath=yes
10552 shlibpath_overrides_runpath=yes
10557 libname_spec='$name'
10560 library_names_spec='$libname${shared_ext} $libname.a'
10561 dynamic_linker='OS/2 ld.exe'
10562 shlibpath_var=LIBPATH
10565 osf3* | osf4* | osf5*)
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10573 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10581 version_type=linux # correct to gnu/linux during the next big refactor
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10589 # ldd complains unless libraries are executable
10590 postinstall_cmds='chmod +x $lib'
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10596 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10597 shlibpath_var=LD_LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 if test "$with_gnu_ld" = yes; then
10606 version_type=linux # correct to gnu/linux during the next big refactor
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 case $host_vendor in
10612 shlibpath_overrides_runpath=no
10614 runpath_var=LD_RUN_PATH
10622 shlibpath_overrides_runpath=no
10623 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10629 if test -d /usr/nec ;then
10630 version_type=linux # correct to gnu/linux during the next big refactor
10631 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10632 soname_spec='$libname${shared_ext}.$major'
10633 shlibpath_var=LD_LIBRARY_PATH
10637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10638 version_type=freebsd-elf
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=yes
10645 hardcode_into_libs=yes
10646 if test "$with_gnu_ld" = yes; then
10647 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10649 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10656 sys_lib_dlsearch_path_spec='/usr/lib'
10660 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10661 version_type=linux # correct to gnu/linux during the next big refactor
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=no
10667 hardcode_into_libs=yes
10671 version_type=linux # correct to gnu/linux during the next big refactor
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LD_LIBRARY_PATH
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10682 $as_echo "$dynamic_linker" >&6; }
10683 test "$dynamic_linker" = no && can_build_shared=no
10685 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10686 if test "$GCC" = yes; then
10687 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10690 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10691 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10693 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10694 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10789 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10791 if test -n "$hardcode_libdir_flag_spec" ||
10792 test -n "$runpath_var" ||
10793 test "X$hardcode_automatic" = "Xyes" ; then
10795 # We can hardcode non-existent directories.
10796 if test "$hardcode_direct" != no &&
10797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10798 # have to relink, otherwise we might link with an installed library
10799 # when we should be linking with a yet-to-be-installed one
10800 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10801 test "$hardcode_minus_L" != no; then
10802 # Linking always hardcodes the temporary library directory.
10803 hardcode_action=relink
10805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10806 hardcode_action=immediate
10809 # We cannot hardcode anything, or else we can only hardcode existing
10811 hardcode_action=unsupported
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10814 $as_echo "$hardcode_action" >&6; }
10816 if test "$hardcode_action" = relink ||
10817 test "$inherit_rpath" = yes; then
10818 # Fast installation is not supported
10819 enable_fast_install=no
10820 elif test "$shlibpath_overrides_runpath" = yes ||
10821 test "$enable_shared" = no; then
10822 # Fast installation is not necessary
10823 enable_fast_install=needless
10831 if test "x$enable_dlopen" != xyes; then
10832 enable_dlopen=unknown
10833 enable_dlopen_self=unknown
10834 enable_dlopen_self_static=unknown
10841 lt_cv_dlopen="load_add_on"
10843 lt_cv_dlopen_self=yes
10846 mingw* | pw32* | cegcc*)
10847 lt_cv_dlopen="LoadLibrary"
10852 lt_cv_dlopen="dlopen"
10857 # if libdl is installed we need to link against it
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10859 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10860 if ${ac_cv_lib_dl_dlopen+:} false; then :
10861 $as_echo_n "(cached) " >&6
10863 ac_check_lib_save_LIBS=$LIBS
10865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10868 /* Override any GCC internal prototype to avoid an error.
10869 Use char because int might match the return type of a GCC
10870 builtin and then its argument prototype would still apply. */
10883 if ac_fn_c_try_link "$LINENO"; then :
10884 ac_cv_lib_dl_dlopen=yes
10886 ac_cv_lib_dl_dlopen=no
10888 rm -f core conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10890 LIBS=$ac_check_lib_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10894 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898 lt_cv_dlopen="dyld"
10900 lt_cv_dlopen_self=yes
10907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10908 if test "x$ac_cv_func_shl_load" = xyes; then :
10909 lt_cv_dlopen="shl_load"
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10912 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10913 if ${ac_cv_lib_dld_shl_load+:} false; then :
10914 $as_echo_n "(cached) " >&6
10916 ac_check_lib_save_LIBS=$LIBS
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10921 /* Override any GCC internal prototype to avoid an error.
10922 Use char because int might match the return type of a GCC
10923 builtin and then its argument prototype would still apply. */
10931 return shl_load ();
10936 if ac_fn_c_try_link "$LINENO"; then :
10937 ac_cv_lib_dld_shl_load=yes
10939 ac_cv_lib_dld_shl_load=no
10941 rm -f core conftest.err conftest.$ac_objext \
10942 conftest$ac_exeext conftest.$ac_ext
10943 LIBS=$ac_check_lib_save_LIBS
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10946 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10947 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10950 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10951 if test "x$ac_cv_func_dlopen" = xyes; then :
10952 lt_cv_dlopen="dlopen"
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10956 if ${ac_cv_lib_dl_dlopen+:} false; then :
10957 $as_echo_n "(cached) " >&6
10959 ac_check_lib_save_LIBS=$LIBS
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10964 /* Override any GCC internal prototype to avoid an error.
10965 Use char because int might match the return type of a GCC
10966 builtin and then its argument prototype would still apply. */
10979 if ac_fn_c_try_link "$LINENO"; then :
10980 ac_cv_lib_dl_dlopen=yes
10982 ac_cv_lib_dl_dlopen=no
10984 rm -f core conftest.err conftest.$ac_objext \
10985 conftest$ac_exeext conftest.$ac_ext
10986 LIBS=$ac_check_lib_save_LIBS
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10990 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10991 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10994 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10995 if ${ac_cv_lib_svld_dlopen+:} false; then :
10996 $as_echo_n "(cached) " >&6
10998 ac_check_lib_save_LIBS=$LIBS
10999 LIBS="-lsvld $LIBS"
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11018 if ac_fn_c_try_link "$LINENO"; then :
11019 ac_cv_lib_svld_dlopen=yes
11021 ac_cv_lib_svld_dlopen=no
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS=$ac_check_lib_save_LIBS
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11028 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11029 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11033 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11034 if ${ac_cv_lib_dld_dld_link+:} false; then :
11035 $as_echo_n "(cached) " >&6
11037 ac_check_lib_save_LIBS=$LIBS
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11052 return dld_link ();
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_dld_dld_link=yes
11060 ac_cv_lib_dld_dld_link=no
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11067 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11068 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11069 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11090 if test "x$lt_cv_dlopen" != xno; then
11096 case $lt_cv_dlopen in
11098 save_CPPFLAGS="$CPPFLAGS"
11099 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11101 save_LDFLAGS="$LDFLAGS"
11102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11105 LIBS="$lt_cv_dlopen_libs $LIBS"
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11108 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11109 if ${lt_cv_dlopen_self+:} false; then :
11110 $as_echo_n "(cached) " >&6
11112 if test "$cross_compiling" = yes; then :
11113 lt_cv_dlopen_self=cross
11115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11116 lt_status=$lt_dlunknown
11117 cat > conftest.$ac_ext <<_LT_EOF
11118 #line $LINENO "configure"
11119 #include "confdefs.h"
11128 # define LT_DLGLOBAL RTLD_GLOBAL
11131 # define LT_DLGLOBAL DL_GLOBAL
11133 # define LT_DLGLOBAL 0
11137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11138 find out it does not work in some platform. */
11139 #ifndef LT_DLLAZY_OR_NOW
11141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11144 # define LT_DLLAZY_OR_NOW DL_LAZY
11147 # define LT_DLLAZY_OR_NOW RTLD_NOW
11150 # define LT_DLLAZY_OR_NOW DL_NOW
11152 # define LT_DLLAZY_OR_NOW 0
11159 /* When -fvisbility=hidden is used, assume the code has been annotated
11160 correspondingly for the symbols needed. */
11161 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11162 int fnord () __attribute__((visibility("default")));
11165 int fnord () { return 42; }
11168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11169 int status = $lt_dlunknown;
11173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11177 else puts (dlerror ());
11179 /* dlclose (self); */
11187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11188 (eval $ac_link) 2>&5
11190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11191 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11192 (./conftest; exit; ) >&5 2>/dev/null
11194 case x$lt_status in
11195 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11196 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11197 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11200 # compilation failed
11201 lt_cv_dlopen_self=no
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11209 $as_echo "$lt_cv_dlopen_self" >&6; }
11211 if test "x$lt_cv_dlopen_self" = xyes; then
11212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11214 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11215 if ${lt_cv_dlopen_self_static+:} false; then :
11216 $as_echo_n "(cached) " >&6
11218 if test "$cross_compiling" = yes; then :
11219 lt_cv_dlopen_self_static=cross
11221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11222 lt_status=$lt_dlunknown
11223 cat > conftest.$ac_ext <<_LT_EOF
11224 #line $LINENO "configure"
11225 #include "confdefs.h"
11234 # define LT_DLGLOBAL RTLD_GLOBAL
11237 # define LT_DLGLOBAL DL_GLOBAL
11239 # define LT_DLGLOBAL 0
11243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11244 find out it does not work in some platform. */
11245 #ifndef LT_DLLAZY_OR_NOW
11247 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW DL_LAZY
11253 # define LT_DLLAZY_OR_NOW RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW DL_NOW
11258 # define LT_DLLAZY_OR_NOW 0
11265 /* When -fvisbility=hidden is used, assume the code has been annotated
11266 correspondingly for the symbols needed. */
11267 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11268 int fnord () __attribute__((visibility("default")));
11271 int fnord () { return 42; }
11274 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11275 int status = $lt_dlunknown;
11279 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11282 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11283 else puts (dlerror ());
11285 /* dlclose (self); */
11293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11294 (eval $ac_link) 2>&5
11296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11297 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11298 (./conftest; exit; ) >&5 2>/dev/null
11300 case x$lt_status in
11301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11306 # compilation failed
11307 lt_cv_dlopen_self_static=no
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11315 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11318 CPPFLAGS="$save_CPPFLAGS"
11319 LDFLAGS="$save_LDFLAGS"
11324 case $lt_cv_dlopen_self in
11325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11326 *) enable_dlopen_self=unknown ;;
11329 case $lt_cv_dlopen_self_static in
11330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11331 *) enable_dlopen_self_static=unknown ;;
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11354 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11355 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11357 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11361 # FIXME - insert some real tests, host_os isn't really good enough
11364 if test -n "$STRIP" ; then
11365 striplib="$STRIP -x"
11366 old_striplib="$STRIP -S"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11368 $as_echo "yes" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376 $as_echo "no" >&6; }
11392 # Report which library types will actually be built
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11394 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11396 $as_echo "$can_build_shared" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11399 $as_echo_n "checking whether to build shared libraries... " >&6; }
11400 test "$can_build_shared" = "no" && enable_shared=no
11402 # On AIX, shared libraries and static libraries use the same namespace, and
11403 # are all built from PIC.
11406 test "$enable_shared" = yes && enable_static=no
11407 if test -n "$RANLIB"; then
11408 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11409 postinstall_cmds='$RANLIB $lib'
11414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11415 test "$enable_shared" = yes && enable_static=no
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11420 $as_echo "$enable_shared" >&6; }
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11423 $as_echo_n "checking whether to build static libraries... " >&6; }
11424 # Make sure either enable_shared or enable_static is yes.
11425 test "$enable_shared" = yes || enable_static=yes
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11427 $as_echo "$enable_static" >&6; }
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11455 ac_config_commands="$ac_config_commands libtool"
11460 # Only expand once:
11463 ac_config_headers="$ac_config_headers config.h"
11465 ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile src/Makefile programs/Makefile"
11468 ac_cpp='$CPP $CPPFLAGS'
11469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472 if test -n "$ac_tool_prefix"; then
11473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11476 $as_echo_n "checking for $ac_word... " >&6; }
11477 if ${ac_cv_prog_CC+:} false; then :
11478 $as_echo_n "(cached) " >&6
11480 if test -n "$CC"; then
11481 ac_cv_prog_CC="$CC" # Let the user override the test.
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501 if test -n "$CC"; then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11503 $as_echo "$CC" >&6; }
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11511 if test -z "$ac_cv_prog_CC"; then
11513 # Extract the first word of "gcc", so it can be a program name with args.
11514 set dummy gcc; ac_word=$2
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11516 $as_echo_n "checking for $ac_word... " >&6; }
11517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11518 $as_echo_n "(cached) " >&6
11520 if test -n "$ac_ct_CC"; then
11521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524 for as_dir in $PATH
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_prog_ac_ct_CC="gcc"
11531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11541 if test -n "$ac_ct_CC"; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11543 $as_echo "$ac_ct_CC" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546 $as_echo "no" >&6; }
11549 if test "x$ac_ct_CC" = x; then
11552 case $cross_compiling:$ac_tool_warned in
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11556 ac_tool_warned=yes ;;
11561 CC="$ac_cv_prog_CC"
11564 if test -z "$CC"; then
11565 if test -n "$ac_tool_prefix"; then
11566 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11567 set dummy ${ac_tool_prefix}cc; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_prog_CC+:} false; then :
11571 $as_echo_n "(cached) " >&6
11573 if test -n "$CC"; then
11574 ac_cv_prog_CC="$CC" # Let the user override the test.
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11580 test -z "$as_dir" && as_dir=.
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583 ac_cv_prog_CC="${ac_tool_prefix}cc"
11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 if test -n "$CC"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11596 $as_echo "$CC" >&6; }
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11605 if test -z "$CC"; then
11606 # Extract the first word of "cc", so it can be a program name with args.
11607 set dummy cc; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609 $as_echo_n "checking for $ac_word... " >&6; }
11610 if ${ac_cv_prog_CC+:} false; then :
11611 $as_echo_n "(cached) " >&6
11613 if test -n "$CC"; then
11614 ac_cv_prog_CC="$CC" # Let the user override the test.
11616 ac_prog_rejected=no
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11624 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11625 ac_prog_rejected=yes
11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11636 if test $ac_prog_rejected = yes; then
11637 # We found a bogon in the path, so make sure we never use it.
11638 set dummy $ac_cv_prog_CC
11640 if test $@%:@ != 0; then
11641 # We chose a different compiler from the bogus one.
11642 # However, it has the same basename, so the bogon will be chosen
11643 # first if we set CC to just the basename; use the full file name.
11645 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11651 if test -n "$CC"; then
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11653 $as_echo "$CC" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11661 if test -z "$CC"; then
11662 if test -n "$ac_tool_prefix"; then
11663 for ac_prog in cl.exe
11665 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if ${ac_cv_prog_CC+:} false; then :
11670 $as_echo_n "(cached) " >&6
11672 if test -n "$CC"; then
11673 ac_cv_prog_CC="$CC" # Let the user override the test.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 if test -n "$CC"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11695 $as_echo "$CC" >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11702 test -n "$CC" && break
11705 if test -z "$CC"; then
11707 for ac_prog in cl.exe
11709 # Extract the first word of "$ac_prog", so it can be a program name with args.
11710 set dummy $ac_prog; ac_word=$2
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712 $as_echo_n "checking for $ac_word... " >&6; }
11713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11714 $as_echo_n "(cached) " >&6
11716 if test -n "$ac_ct_CC"; then
11717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11723 test -z "$as_dir" && as_dir=.
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726 ac_cv_prog_ac_ct_CC="$ac_prog"
11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11737 if test -n "$ac_ct_CC"; then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11739 $as_echo "$ac_ct_CC" >&6; }
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11746 test -n "$ac_ct_CC" && break
11749 if test "x$ac_ct_CC" = x; then
11752 case $cross_compiling:$ac_tool_warned in
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11756 ac_tool_warned=yes ;;
11765 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11767 as_fn_error $? "no acceptable C compiler found in \$PATH
11768 See \`config.log' for more details" "$LINENO" 5; }
11770 # Provide some information about the compiler.
11771 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11774 for ac_option in --version -v -V -qversion; do
11775 { { ac_try="$ac_compiler $ac_option >&5"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11781 $as_echo "$ac_try_echo"; } >&5
11782 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11784 if test -s conftest.err; then
11786 ... rest of stderr output deleted ...
11787 10q' conftest.err >conftest.er1
11788 cat conftest.er1 >&5
11790 rm -f conftest.er1 conftest.err
11791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11792 test $ac_status = 0; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11796 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11797 if ${ac_cv_c_compiler_gnu+:} false; then :
11798 $as_echo_n "(cached) " >&6
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815 ac_compiler_gnu=yes
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11820 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11824 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11825 if test $ac_compiler_gnu = yes; then
11830 ac_test_CFLAGS=${CFLAGS+set}
11831 ac_save_CFLAGS=$CFLAGS
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11833 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11834 if ${ac_cv_prog_cc_g+:} false; then :
11835 $as_echo_n "(cached) " >&6
11837 ac_save_c_werror_flag=$ac_c_werror_flag
11838 ac_c_werror_flag=yes
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11852 if ac_fn_c_try_compile "$LINENO"; then :
11853 ac_cv_prog_cc_g=yes
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11867 if ac_fn_c_try_compile "$LINENO"; then :
11870 ac_c_werror_flag=$ac_save_c_werror_flag
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11883 if ac_fn_c_try_compile "$LINENO"; then :
11884 ac_cv_prog_cc_g=yes
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 ac_c_werror_flag=$ac_save_c_werror_flag
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11894 $as_echo "$ac_cv_prog_cc_g" >&6; }
11895 if test "$ac_test_CFLAGS" = set; then
11896 CFLAGS=$ac_save_CFLAGS
11897 elif test $ac_cv_prog_cc_g = yes; then
11898 if test "$GCC" = yes; then
11904 if test "$GCC" = yes; then
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11911 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11912 if ${ac_cv_prog_cc_c89+:} false; then :
11913 $as_echo_n "(cached) " >&6
11915 ac_cv_prog_cc_c89=no
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #include <stdarg.h>
11922 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11923 struct buf { int x; };
11924 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11925 static char *e (p, i)
11931 static char *f (char * (*g) (char **, int), char **p, ...)
11936 s = g (p, va_arg (v,int));
11941 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11942 function prototypes and stuff, but not '\xHH' hex character constants.
11943 These don't provoke an error unfortunately, instead are silently treated
11944 as 'x'. The following induces an error, until -std is added to get
11945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11946 array size at least. It's necessary to write '\x00'==0 to get something
11947 that's true only with -std. */
11948 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11950 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11951 inside strings and character constants. */
11953 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11955 int test (int i, double x);
11956 struct s1 {int (*f) (int a);};
11957 struct s2 {int (*f) (double a);};
11958 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11964 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11969 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11972 CC="$ac_save_CC $ac_arg"
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974 ac_cv_prog_cc_c89=$ac_arg
11976 rm -f core conftest.err conftest.$ac_objext
11977 test "x$ac_cv_prog_cc_c89" != "xno" && break
11979 rm -f conftest.$ac_ext
11984 case "x$ac_cv_prog_cc_c89" in
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11987 $as_echo "none needed" >&6; } ;;
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11990 $as_echo "unsupported" >&6; } ;;
11992 CC="$CC $ac_cv_prog_cc_c89"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11994 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11996 if test "x$ac_cv_prog_cc_c89" != xno; then :
12001 ac_cpp='$CPP $CPPFLAGS'
12002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12006 depcc="$CC" am_compiler_list=
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12009 $as_echo_n "checking dependency style of $depcc... " >&6; }
12010 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12011 $as_echo_n "(cached) " >&6
12013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12014 # We make a subdir and do the tests there. Otherwise we can end up
12015 # making bogus files that we don't know about and never remove. For
12016 # instance it was reported that on HP-UX the gcc test will end up
12017 # making a dummy file named 'D' -- because '-MD' means "put the output
12019 rm -rf conftest.dir
12021 # Copy depcomp to subdir because otherwise we won't find it if we're
12022 # using a relative directory.
12023 cp "$am_depcomp" conftest.dir
12025 # We will build objects and dependencies in a subdirectory because
12026 # it helps to detect inapplicable dependency modes. For instance
12027 # both Tru64's cc and ICC support -MD to output dependencies as a
12028 # side effect of compilation, but ICC will put the dependencies in
12029 # the current directory while Tru64 will put them in the object
12033 am_cv_CC_dependencies_compiler_type=none
12034 if test "$am_compiler_list" = ""; then
12035 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12037 am__universal=false
12038 case " $depcc " in #(
12039 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12042 for depmode in $am_compiler_list; do
12043 # Setup a source with many dependencies, because some compilers
12044 # like to wrap large dependency lists on column 80 (with \), and
12045 # we should not choose a depcomp mode which is confused by this.
12047 # We need to recreate these files for each test, as the compiler may
12048 # overwrite some of them when testing with obscure command lines.
12049 # This happens at least with the AIX C compiler.
12051 for i in 1 2 3 4 5 6; do
12052 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12053 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12054 # Solaris 10 /bin/sh.
12055 echo '/* dummy */' > sub/conftst$i.h
12057 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12060 # mode. It turns out that the SunPro C++ compiler does not properly
12061 # handle '-M -o', and we need to detect this. Also, some Intel
12062 # versions had trouble with output in subdirs.
12063 am__obj=sub/conftest.${OBJEXT-o}
12064 am__minus_obj="-o $am__obj"
12067 # This depmode causes a compiler race in universal mode.
12068 test "$am__universal" = false || continue
12071 # After this tag, mechanisms are not by side-effect, so they'll
12072 # only be used when explicitly requested.
12073 if test "x$enable_dependency_tracking" = xyes; then
12079 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12080 # This compiler won't grok '-c -o', but also, the minuso test has
12081 # not run yet. These depmodes are late enough in the game, and
12082 # so weak that their functioning should not be impacted.
12083 am__obj=conftest.${OBJEXT-o}
12088 if depmode=$depmode \
12089 source=sub/conftest.c object=$am__obj \
12090 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12091 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12092 >/dev/null 2>conftest.err &&
12093 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12094 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12095 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12096 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12097 # icc doesn't choke on unknown options, it will just issue warnings
12098 # or remarks (even with -Werror). So we grep stderr for any message
12099 # that says an option was ignored or not supported.
12100 # When given -MP, icc 7.0 and 7.1 complain thusly:
12101 # icc: Command line warning: ignoring option '-M'; no argument required
12102 # The diagnosis changed in icc 8.0:
12103 # icc: Command line remark: option '-MP' not supported
12104 if (grep 'ignoring option' conftest.err ||
12105 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12106 am_cv_CC_dependencies_compiler_type=$depmode
12113 rm -rf conftest.dir
12115 am_cv_CC_dependencies_compiler_type=none
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12120 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12124 test "x$enable_dependency_tracking" != xno \
12125 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12126 am__fastdepCC_TRUE=
12127 am__fastdepCC_FALSE='#'
12129 am__fastdepCC_TRUE='#'
12130 am__fastdepCC_FALSE=
12136 if test "X$prefix" = "XNONE"; then
12137 acl_final_prefix="$ac_default_prefix"
12139 acl_final_prefix="$prefix"
12141 if test "X$exec_prefix" = "XNONE"; then
12142 acl_final_exec_prefix='${prefix}'
12144 acl_final_exec_prefix="$exec_prefix"
12146 acl_save_prefix="$prefix"
12147 prefix="$acl_final_prefix"
12148 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12149 prefix="$acl_save_prefix"
12152 @%:@ Check whether --with-gnu-ld was given.
12153 if test "${with_gnu_ld+set}" = set; then :
12154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12159 # Prepare PATH_SEPARATOR.
12160 # The user is always right.
12161 if test "${PATH_SEPARATOR+set}" != set; then
12162 echo "#! /bin/sh" >conf$$.sh
12163 echo "exit 0" >>conf$$.sh
12165 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12173 if test "$GCC" = yes; then
12174 # Check if gcc -print-prog-name=ld gives a path.
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12176 $as_echo_n "checking for ld used by GCC... " >&6; }
12179 # gcc leaves a trailing carriage return which upsets mingw
12180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12185 # Accept absolute paths.
12186 [\\/]* | [A-Za-z]:[\\/]*)
12187 re_direlt='/[^/][^/]*/\.\./'
12188 # Canonicalize the path of ld
12189 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12190 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12191 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12193 test -z "$LD" && LD="$ac_prog"
12196 # If it fails, then pretend we aren't using GCC.
12200 # If it is relative, then search for the first ld in PATH.
12201 with_gnu_ld=unknown
12204 elif test "$with_gnu_ld" = yes; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12206 $as_echo_n "checking for GNU ld... " >&6; }
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12209 $as_echo_n "checking for non-GNU ld... " >&6; }
12211 if ${acl_cv_path_LD+:} false; then :
12212 $as_echo_n "(cached) " >&6
12214 if test -z "$LD"; then
12215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12216 for ac_dir in $PATH; do
12217 test -z "$ac_dir" && ac_dir=.
12218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12219 acl_cv_path_LD="$ac_dir/$ac_prog"
12220 # Check to see if the program is GNU ld. I'd rather use --version,
12221 # but apparently some GNU ld's only accept -v.
12222 # Break only if it was the GNU/non-GNU ld that we prefer.
12223 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12224 *GNU* | *'with BFD'*)
12225 test "$with_gnu_ld" != no && break ;;
12227 test "$with_gnu_ld" != yes && break ;;
12233 acl_cv_path_LD="$LD" # Let the user override the test with a path.
12237 LD="$acl_cv_path_LD"
12238 if test -n "$LD"; then
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12240 $as_echo "$LD" >&6; }
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243 $as_echo "no" >&6; }
12245 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12247 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12248 if ${acl_cv_prog_gnu_ld+:} false; then :
12249 $as_echo_n "(cached) " >&6
12251 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12252 case `$LD -v 2>&1 </dev/null` in
12253 *GNU* | *'with BFD'*)
12254 acl_cv_prog_gnu_ld=yes ;;
12256 acl_cv_prog_gnu_ld=no ;;
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12261 with_gnu_ld=$acl_cv_prog_gnu_ld
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12267 $as_echo_n "checking for shared library run path origin... " >&6; }
12268 if ${acl_cv_rpath+:} false; then :
12269 $as_echo_n "(cached) " >&6
12272 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12273 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12275 rm -f ./conftest.sh
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12280 $as_echo "$acl_cv_rpath" >&6; }
12282 acl_libext="$acl_cv_libext"
12283 acl_shlibext="$acl_cv_shlibext"
12284 acl_libname_spec="$acl_cv_libname_spec"
12285 acl_library_names_spec="$acl_cv_library_names_spec"
12286 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12287 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12288 acl_hardcode_direct="$acl_cv_hardcode_direct"
12289 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12290 @%:@ Check whether --enable-rpath was given.
12291 if test "${enable_rpath+set}" = set; then :
12292 enableval=$enable_rpath; :
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12305 $as_echo_n "checking for 64-bit host... " >&6; }
12306 if ${gl_cv_solaris_64bit+:} false; then :
12307 $as_echo_n "(cached) " >&6
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12318 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12319 gl_cv_solaris_64bit=yes
12321 gl_cv_solaris_64bit=no
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12328 $as_echo "$gl_cv_solaris_64bit" >&6; }
12329 if test $gl_cv_solaris_64bit = yes; then
12330 acl_libdirstem=lib/64
12331 case "$host_cpu" in
12332 sparc*) acl_libdirstem2=lib/sparcv9 ;;
12333 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12338 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12339 if test -n "$searchpath"; then
12340 acl_save_IFS="${IFS= }"; IFS=":"
12341 for searchdir in $searchpath; do
12342 if test -d "$searchdir"; then
12343 case "$searchdir" in
12344 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12346 # Better ignore directories of this form. They are misleading.
12348 *) searchdir=`cd "$searchdir" && pwd`
12349 case "$searchdir" in
12350 */lib64 ) acl_libdirstem=lib64 ;;
12355 IFS="$acl_save_IFS"
12359 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12374 acl_save_prefix="$prefix"
12375 prefix="$acl_final_prefix"
12376 acl_save_exec_prefix="$exec_prefix"
12377 exec_prefix="$acl_final_exec_prefix"
12379 eval additional_includedir=\"$includedir\"
12380 eval additional_libdir=\"$libdir\"
12382 exec_prefix="$acl_save_exec_prefix"
12383 prefix="$acl_save_prefix"
12386 @%:@ Check whether --with-libiconv-prefix was given.
12387 if test "${with_libiconv_prefix+set}" = set; then :
12388 withval=$with_libiconv_prefix;
12389 if test "X$withval" = "Xno"; then
12392 if test "X$withval" = "X"; then
12394 acl_save_prefix="$prefix"
12395 prefix="$acl_final_prefix"
12396 acl_save_exec_prefix="$exec_prefix"
12397 exec_prefix="$acl_final_exec_prefix"
12399 eval additional_includedir=\"$includedir\"
12400 eval additional_libdir=\"$libdir\"
12402 exec_prefix="$acl_save_exec_prefix"
12403 prefix="$acl_save_prefix"
12406 additional_includedir="$withval/include"
12407 additional_libdir="$withval/$acl_libdirstem"
12408 if test "$acl_libdirstem2" != "$acl_libdirstem" \
12409 && ! test -d "$withval/$acl_libdirstem"; then
12410 additional_libdir="$withval/$acl_libdirstem2"
12424 names_already_handled=
12425 names_next_round='iconv '
12426 while test -n "$names_next_round"; do
12427 names_this_round="$names_next_round"
12429 for name in $names_this_round; do
12431 for n in $names_already_handled; do
12432 if test "$n" = "$name"; then
12433 already_handled=yes
12437 if test -z "$already_handled"; then
12438 names_already_handled="$names_already_handled $name"
12439 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12440 eval value=\"\$HAVE_LIB$uppername\"
12441 if test -n "$value"; then
12442 if test "$value" = yes; then
12443 eval value=\"\$LIB$uppername\"
12444 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12445 eval value=\"\$LTLIB$uppername\"
12446 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12455 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12456 if test -n "$acl_shlibext"; then
12457 shrext=".$acl_shlibext" # typically: shrext=.so
12461 if test $use_additional = yes; then
12462 dir="$additional_libdir"
12463 if test -n "$acl_shlibext"; then
12464 if test -f "$dir/$libname$shrext"; then
12466 found_so="$dir/$libname$shrext"
12468 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12469 ver=`(cd "$dir" && \
12470 for f in "$libname$shrext".*; do echo "$f"; done \
12471 | sed -e "s,^$libname$shrext\\\\.,," \
12472 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12473 | sed 1q ) 2>/dev/null`
12474 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12476 found_so="$dir/$libname$shrext.$ver"
12479 eval library_names=\"$acl_library_names_spec\"
12480 for f in $library_names; do
12481 if test -f "$dir/$f"; then
12490 if test "X$found_dir" = "X"; then
12491 if test -f "$dir/$libname.$acl_libext"; then
12493 found_a="$dir/$libname.$acl_libext"
12496 if test "X$found_dir" != "X"; then
12497 if test -f "$dir/$libname.la"; then
12498 found_la="$dir/$libname.la"
12502 if test "X$found_dir" = "X"; then
12503 for x in $LDFLAGS $LTLIBICONV; do
12505 acl_save_prefix="$prefix"
12506 prefix="$acl_final_prefix"
12507 acl_save_exec_prefix="$exec_prefix"
12508 exec_prefix="$acl_final_exec_prefix"
12510 exec_prefix="$acl_save_exec_prefix"
12511 prefix="$acl_save_prefix"
12515 dir=`echo "X$x" | sed -e 's/^X-L//'`
12516 if test -n "$acl_shlibext"; then
12517 if test -f "$dir/$libname$shrext"; then
12519 found_so="$dir/$libname$shrext"
12521 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12522 ver=`(cd "$dir" && \
12523 for f in "$libname$shrext".*; do echo "$f"; done \
12524 | sed -e "s,^$libname$shrext\\\\.,," \
12525 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12526 | sed 1q ) 2>/dev/null`
12527 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12529 found_so="$dir/$libname$shrext.$ver"
12532 eval library_names=\"$acl_library_names_spec\"
12533 for f in $library_names; do
12534 if test -f "$dir/$f"; then
12543 if test "X$found_dir" = "X"; then
12544 if test -f "$dir/$libname.$acl_libext"; then
12546 found_a="$dir/$libname.$acl_libext"
12549 if test "X$found_dir" != "X"; then
12550 if test -f "$dir/$libname.la"; then
12551 found_la="$dir/$libname.la"
12556 if test "X$found_dir" != "X"; then
12561 if test "X$found_dir" != "X"; then
12562 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
12563 if test "X$found_so" != "X"; then
12564 if test "$enable_rpath" = no \
12565 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
12566 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
12567 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12570 for x in $ltrpathdirs; do
12571 if test "X$x" = "X$found_dir"; then
12576 if test -z "$haveit"; then
12577 ltrpathdirs="$ltrpathdirs $found_dir"
12579 if test "$acl_hardcode_direct" = yes; then
12580 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12582 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12585 for x in $rpathdirs; do
12586 if test "X$x" = "X$found_dir"; then
12591 if test -z "$haveit"; then
12592 rpathdirs="$rpathdirs $found_dir"
12596 for x in $LDFLAGS $LIBICONV; do
12598 acl_save_prefix="$prefix"
12599 prefix="$acl_final_prefix"
12600 acl_save_exec_prefix="$exec_prefix"
12601 exec_prefix="$acl_final_exec_prefix"
12603 exec_prefix="$acl_save_exec_prefix"
12604 prefix="$acl_save_prefix"
12606 if test "X$x" = "X-L$found_dir"; then
12611 if test -z "$haveit"; then
12612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
12614 if test "$acl_hardcode_minus_L" != no; then
12615 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
12617 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12623 if test "X$found_a" != "X"; then
12624 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
12626 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
12629 additional_includedir=
12630 case "$found_dir" in
12631 */$acl_libdirstem | */$acl_libdirstem/)
12632 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12633 if test "$name" = 'iconv'; then
12634 LIBICONV_PREFIX="$basedir"
12636 additional_includedir="$basedir/include"
12638 */$acl_libdirstem2 | */$acl_libdirstem2/)
12639 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
12640 if test "$name" = 'iconv'; then
12641 LIBICONV_PREFIX="$basedir"
12643 additional_includedir="$basedir/include"
12646 if test "X$additional_includedir" != "X"; then
12647 if test "X$additional_includedir" != "X/usr/include"; then
12649 if test "X$additional_includedir" = "X/usr/local/include"; then
12650 if test -n "$GCC"; then
12652 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12656 if test -z "$haveit"; then
12657 for x in $CPPFLAGS $INCICONV; do
12659 acl_save_prefix="$prefix"
12660 prefix="$acl_final_prefix"
12661 acl_save_exec_prefix="$exec_prefix"
12662 exec_prefix="$acl_final_exec_prefix"
12664 exec_prefix="$acl_save_exec_prefix"
12665 prefix="$acl_save_prefix"
12667 if test "X$x" = "X-I$additional_includedir"; then
12672 if test -z "$haveit"; then
12673 if test -d "$additional_includedir"; then
12674 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
12680 if test -n "$found_la"; then
12681 save_libdir="$libdir"
12682 case "$found_la" in
12683 */* | *\\*) . "$found_la" ;;
12684 *) . "./$found_la" ;;
12686 libdir="$save_libdir"
12687 for dep in $dependency_libs; do
12690 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12691 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
12692 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
12694 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
12695 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
12696 if test -n "$GCC"; then
12698 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12702 if test -z "$haveit"; then
12704 for x in $LDFLAGS $LIBICONV; do
12706 acl_save_prefix="$prefix"
12707 prefix="$acl_final_prefix"
12708 acl_save_exec_prefix="$exec_prefix"
12709 exec_prefix="$acl_final_exec_prefix"
12711 exec_prefix="$acl_save_exec_prefix"
12712 prefix="$acl_save_prefix"
12714 if test "X$x" = "X-L$additional_libdir"; then
12719 if test -z "$haveit"; then
12720 if test -d "$additional_libdir"; then
12721 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
12725 for x in $LDFLAGS $LTLIBICONV; do
12727 acl_save_prefix="$prefix"
12728 prefix="$acl_final_prefix"
12729 acl_save_exec_prefix="$exec_prefix"
12730 exec_prefix="$acl_final_exec_prefix"
12732 exec_prefix="$acl_save_exec_prefix"
12733 prefix="$acl_save_prefix"
12735 if test "X$x" = "X-L$additional_libdir"; then
12740 if test -z "$haveit"; then
12741 if test -d "$additional_libdir"; then
12742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
12749 dir=`echo "X$dep" | sed -e 's/^X-R//'`
12750 if test "$enable_rpath" != no; then
12752 for x in $rpathdirs; do
12753 if test "X$x" = "X$dir"; then
12758 if test -z "$haveit"; then
12759 rpathdirs="$rpathdirs $dir"
12762 for x in $ltrpathdirs; do
12763 if test "X$x" = "X$dir"; then
12768 if test -z "$haveit"; then
12769 ltrpathdirs="$ltrpathdirs $dir"
12774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12777 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12780 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
12781 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
12787 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
12788 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
12794 if test "X$rpathdirs" != "X"; then
12795 if test -n "$acl_hardcode_libdir_separator"; then
12797 for found_dir in $rpathdirs; do
12798 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
12800 acl_save_libdir="$libdir"
12802 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12803 libdir="$acl_save_libdir"
12804 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12806 for found_dir in $rpathdirs; do
12807 acl_save_libdir="$libdir"
12808 libdir="$found_dir"
12809 eval flag=\"$acl_hardcode_libdir_flag_spec\"
12810 libdir="$acl_save_libdir"
12811 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
12815 if test "X$ltrpathdirs" != "X"; then
12816 for found_dir in $ltrpathdirs; do
12817 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
12832 am_save_CPPFLAGS="$CPPFLAGS"
12834 for element in $INCICONV; do
12836 for x in $CPPFLAGS; do
12838 acl_save_prefix="$prefix"
12839 prefix="$acl_final_prefix"
12840 acl_save_exec_prefix="$exec_prefix"
12841 exec_prefix="$acl_final_exec_prefix"
12843 exec_prefix="$acl_save_exec_prefix"
12844 prefix="$acl_save_prefix"
12846 if test "X$x" = "X$element"; then
12851 if test -z "$haveit"; then
12852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
12858 $as_echo_n "checking for iconv... " >&6; }
12859 if ${am_cv_func_iconv+:} false; then :
12860 $as_echo_n "(cached) " >&6
12863 am_cv_func_iconv="no, consider installing GNU libiconv"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <stdlib.h>
12872 iconv_t cd = iconv_open("","");
12873 iconv(cd,NULL,NULL,NULL,NULL);
12879 if ac_fn_c_try_link "$LINENO"; then :
12880 am_cv_func_iconv=yes
12882 rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 if test "$am_cv_func_iconv" != yes; then
12885 am_save_LIBS="$LIBS"
12886 LIBS="$LIBS $LIBICONV"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <stdlib.h>
12894 iconv_t cd = iconv_open("","");
12895 iconv(cd,NULL,NULL,NULL,NULL);
12901 if ac_fn_c_try_link "$LINENO"; then :
12902 am_cv_lib_iconv=yes
12903 am_cv_func_iconv=yes
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 LIBS="$am_save_LIBS"
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
12912 $as_echo "$am_cv_func_iconv" >&6; }
12913 if test "$am_cv_func_iconv" = yes; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
12915 $as_echo_n "checking for working iconv... " >&6; }
12916 if ${am_cv_func_iconv_works+:} false; then :
12917 $as_echo_n "(cached) " >&6
12920 am_save_LIBS="$LIBS"
12921 if test $am_cv_lib_iconv = yes; then
12922 LIBS="$LIBS $LIBICONV"
12924 if test "$cross_compiling" = yes; then :
12926 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
12927 *) am_cv_func_iconv_works="guessing yes" ;;
12930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12931 /* end confdefs.h. */
12934 #include <string.h>
12937 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
12940 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
12941 if (cd_utf8_to_88591 != (iconv_t)(-1))
12943 static const char input[] = "\342\202\254"; /* EURO SIGN */
12945 const char *inptr = input;
12946 size_t inbytesleft = strlen (input);
12947 char *outptr = buf;
12948 size_t outbytesleft = sizeof (buf);
12949 size_t res = iconv (cd_utf8_to_88591,
12950 (char **) &inptr, &inbytesleft,
12951 &outptr, &outbytesleft);
12956 /* Test against Solaris 10 bug: Failures are not distinguishable from
12957 successful returns. */
12959 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
12960 if (cd_ascii_to_88591 != (iconv_t)(-1))
12962 static const char input[] = "\263";
12964 const char *inptr = input;
12965 size_t inbytesleft = strlen (input);
12966 char *outptr = buf;
12967 size_t outbytesleft = sizeof (buf);
12968 size_t res = iconv (cd_ascii_to_88591,
12969 (char **) &inptr, &inbytesleft,
12970 &outptr, &outbytesleft);
12975 #if 0 /* This bug could be worked around by the caller. */
12976 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
12978 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
12979 if (cd_88591_to_utf8 != (iconv_t)(-1))
12981 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
12983 const char *inptr = input;
12984 size_t inbytesleft = strlen (input);
12985 char *outptr = buf;
12986 size_t outbytesleft = sizeof (buf);
12987 size_t res = iconv (cd_88591_to_utf8,
12988 (char **) &inptr, &inbytesleft,
12989 &outptr, &outbytesleft);
12995 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
12997 if (/* Try standardized names. */
12998 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
12999 /* Try IRIX, OSF/1 names. */
13000 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13001 /* Try AIX names. */
13002 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13003 /* Try HP-UX names. */
13004 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13009 if ac_fn_c_try_run "$LINENO"; then :
13010 am_cv_func_iconv_works=yes
13012 am_cv_func_iconv_works=no
13014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13015 conftest.$ac_objext conftest.beam conftest.$ac_ext
13018 LIBS="$am_save_LIBS"
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13022 $as_echo "$am_cv_func_iconv_works" >&6; }
13023 case "$am_cv_func_iconv_works" in
13024 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13025 *) am_func_iconv=yes ;;
13028 am_func_iconv=no am_cv_lib_iconv=no
13030 if test "$am_func_iconv" = yes; then
13032 $as_echo "@%:@define HAVE_ICONV 1" >>confdefs.h
13035 if test "$am_cv_lib_iconv" = yes; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13037 $as_echo_n "checking how to link with libiconv... " >&6; }
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13039 $as_echo "$LIBICONV" >&6; }
13041 CPPFLAGS="$am_save_CPPFLAGS"
13048 if test "$am_cv_func_iconv" = yes; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
13050 $as_echo_n "checking for iconv declaration... " >&6; }
13051 if ${am_cv_proto_iconv+:} false; then :
13052 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13058 #include <stdlib.h>
13064 #if defined(__STDC__) || defined(__cplusplus)
13065 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13078 if ac_fn_c_try_compile "$LINENO"; then :
13079 am_cv_proto_iconv_arg1=""
13081 am_cv_proto_iconv_arg1="const"
13083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13084 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13087 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
13089 $am_cv_proto_iconv" >&5
13091 $am_cv_proto_iconv" >&6; }
13093 cat >>confdefs.h <<_ACEOF
13094 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
13099 if test "x$am_cv_func_iconv" != "xyes"; then
13100 as_fn_error $? "Cannot find the iconv() function.
13101 iconv() is used to convert between UTF-8 and UTF-16 encodings of WIM
13102 filenames and XML data. Wimlib cannot be compiled without it. iconv()
13103 is available in the latest version of glibc and sometimes in other
13104 libraries." "$LINENO" 5
13107 LIBXML2_LDADD=`pkg-config libxml-2.0 --libs`
13108 LIBXML2_CFLAGS=`pkg-config libxml-2.0 --cflags`
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseFile in -lxml2" >&5
13110 $as_echo_n "checking for xmlParseFile in -lxml2... " >&6; }
13111 if ${ac_cv_lib_xml2_xmlParseFile+:} false; then :
13112 $as_echo_n "(cached) " >&6
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lxml2 $LIBS"
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13125 char xmlParseFile ();
13129 return xmlParseFile ();
13134 if ac_fn_c_try_link "$LINENO"; then :
13135 ac_cv_lib_xml2_xmlParseFile=yes
13137 ac_cv_lib_xml2_xmlParseFile=no
13139 rm -f core conftest.err conftest.$ac_objext \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseFile" >&5
13144 $as_echo "$ac_cv_lib_xml2_xmlParseFile" >&6; }
13145 if test "x$ac_cv_lib_xml2_xmlParseFile" = xyes; then :
13148 as_fn_error $? "\"cannot find libxml2\"" "$LINENO" 5
13151 LIBXML2_LDADD=$LIBXML2_LDADD
13153 LIBXML2_CFLAGS=$LIBXML2_CFLAGS
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging messages" >&5
13157 $as_echo_n "checking whether to include debugging messages... " >&6; }
13158 @%:@ Check whether --enable-debug was given.
13159 if test "${enable_debug+set}" = set; then :
13160 enableval=$enable_debug; ENABLE_DEBUG=$enableval
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG" >&5
13167 $as_echo "$ENABLE_DEBUG" >&6; }
13168 if test "x$ENABLE_DEBUG" = "xyes"; then
13170 $as_echo "@%:@define ENABLE_DEBUG 1" >>confdefs.h
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include more debugging messages" >&5
13175 $as_echo_n "checking whether to include more debugging messages... " >&6; }
13176 @%:@ Check whether --enable-more_debug was given.
13177 if test "${enable_more_debug+set}" = set; then :
13178 enableval=$enable_more_debug; ENABLE_MORE_DEBUG=$enableval
13180 ENABLE_MORE_DEBUG=no
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_MORE_DEBUG" >&5
13185 $as_echo "$ENABLE_MORE_DEBUG" >&6; }
13186 if test "x$ENABLE_MORE_DEBUG" = "xyes"; then
13188 $as_echo "@%:@define ENABLE_MORE_DEBUG 1" >>confdefs.h
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include error messages" >&5
13193 $as_echo_n "checking whether to include error messages... " >&6; }
13194 @%:@ Check whether --enable-error_messages was given.
13195 if test "${enable_error_messages+set}" = set; then :
13196 enableval=$enable_error_messages; ENABLE_ERROR_MESSAGES=$enableval
13198 ENABLE_ERROR_MESSAGES=yes
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ERROR_MESSAGES" >&5
13203 $as_echo "$ENABLE_ERROR_MESSAGES" >&6; }
13204 if test "x$ENABLE_ERROR_MESSAGES" = "xyes"; then
13206 $as_echo "@%:@define ENABLE_ERROR_MESSAGES 1" >>confdefs.h
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support custom memory allocation functions" >&5
13211 $as_echo_n "checking whether to support custom memory allocation functions... " >&6; }
13212 @%:@ Check whether --enable-custom_memory_allocator was given.
13213 if test "${enable_custom_memory_allocator+set}" = set; then :
13214 enableval=$enable_custom_memory_allocator; ENABLE_CUSTOM_MEMORY_ALLOCATOR=$enableval
13216 ENABLE_CUSTOM_MEMORY_ALLOCATOR=yes
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&5
13221 $as_echo "$ENABLE_CUSTOM_MEMORY_ALLOCATOR" >&6; }
13222 if test "x$ENABLE_CUSTOM_MEMORY_ALLOCATOR" = "xyes"; then
13224 $as_echo "@%:@define ENABLE_CUSTOM_MEMORY_ALLOCATOR 1" >>confdefs.h
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include assertions" >&5
13229 $as_echo_n "checking whether to include assertions... " >&6; }
13230 @%:@ Check whether --enable-assertions was given.
13231 if test "${enable_assertions+set}" = set; then :
13232 enableval=$enable_assertions; ENABLE_ASSERTIONS=$enableval
13234 ENABLE_ASSERTIONS=yes
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_ASSERTIONS" >&5
13239 $as_echo "$ENABLE_ASSERTIONS" >&6; }
13240 if test "x$ENABLE_ASSERTIONS" = "xyes"; then
13242 $as_echo "@%:@define ENABLE_ASSERTIONS 1" >>confdefs.h
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include compression verification" >&5
13248 $as_echo_n "checking whether to include compression verification... " >&6; }
13249 @%:@ Check whether --enable-verify_compression was given.
13250 if test "${enable_verify_compression+set}" = set; then :
13251 enableval=$enable_verify_compression; ENABLE_VERIFY_COMPRESSION=$enableval
13253 ENABLE_VERIFY_COMPRESSION=yes
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_VERIFY_COMPRESSION" >&5
13258 $as_echo "$ENABLE_VERIFY_COMPRESSION" >&6; }
13259 if test "x$ENABLE_VERIFY_COMPRESSION" = "xyes"; then
13261 $as_echo "@%:@define ENABLE_VERIFY_COMPRESSION 1" >>confdefs.h
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for mounting WIMs" >&5
13266 $as_echo_n "checking whether to include support for mounting WIMs... " >&6; }
13268 @%:@ Check whether --with-fuse was given.
13269 if test "${with_fuse+set}" = set; then :
13270 withval=$with_fuse; WITH_FUSE=$withval
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_FUSE" >&5
13277 $as_echo "$WITH_FUSE" >&6; }
13278 if test "x$WITH_FUSE" = "xyes"; then
13280 $as_echo "@%:@define WITH_FUSE 1" >>confdefs.h
13283 LIBFUSE_LDADD=`pkg-config --libs fuse`
13284 LIBFUSE_CFLAGS=`pkg-config --cflags fuse`
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main_real in -lfuse" >&5
13287 $as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
13288 if ${ac_cv_lib_fuse_fuse_main_real+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 ac_check_lib_save_LIBS=$LIBS
13292 LIBS="-lfuse $LIBS"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13302 char fuse_main_real ();
13306 return fuse_main_real ();
13311 if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_fuse_fuse_main_real=yes
13314 ac_cv_lib_fuse_fuse_main_real=no
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_lib_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main_real" >&5
13321 $as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
13322 if test "x$ac_cv_lib_fuse_fuse_main_real" = xyes; then :
13325 as_fn_error $? "Cannot find libfuse.
13326 Without libfuse, WIMLIB cannot include support for mounting WIMs. You
13327 should either install libfuse, or configure with --without-fuse to
13328 disable support for mounting WIMs." "$LINENO" 5
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mq_open in -lrt" >&5
13333 $as_echo_n "checking for mq_open in -lrt... " >&6; }
13334 if ${ac_cv_lib_rt_mq_open+:} false; then :
13335 $as_echo_n "(cached) " >&6
13337 ac_check_lib_save_LIBS=$LIBS
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 ac_cv_lib_rt_mq_open=yes
13360 ac_cv_lib_rt_mq_open=no
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13364 LIBS=$ac_check_lib_save_LIBS
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_mq_open" >&5
13367 $as_echo "$ac_cv_lib_rt_mq_open" >&6; }
13368 if test "x$ac_cv_lib_rt_mq_open" = xyes; then :
13371 as_fn_error $? "Cannot find librt for POSIX message queue
13372 functions. Without these functions, WIMLIB cannot include support for
13373 mounting WIMs. You should either update your C library to a recent
13374 version of glibc, or configure with --without-fuse to disable support
13375 for mounting WIMs." "$LINENO" 5
13383 LIBFUSE_LDADD=$LIBFUSE_LDADD
13385 LIBFUSE_CFLAGS=$LIBFUSE_CFLAGS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SSSE3-accelerated SHA1 " >&5
13389 $as_echo_n "checking whether to use SSSE3-accelerated SHA1 ... " >&6; }
13390 @%:@ Check whether --enable-ssse3-sha1 was given.
13391 if test "${enable_ssse3_sha1+set}" = set; then :
13392 enableval=$enable_ssse3_sha1; ENABLE_SSSE3_SHA1=$enableval
13394 ENABLE_SSSE3_SHA1=no
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SSSE3_SHA1" >&5
13400 $as_echo "$ENABLE_SSSE3_SHA1" >&6; }
13401 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13403 $as_echo "@%:@define ENABLE_SSSE3_SHA1 1" >>confdefs.h
13405 SSSE3_SHA1_OBJ=sha1-ssse3.lo
13407 for ac_prog in nasm nasmw
13409 # Extract the first word of "$ac_prog", so it can be a program name with args.
13410 set dummy $ac_prog; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_prog_nasm+:} false; then :
13414 $as_echo_n "(cached) " >&6
13416 if test -n "$nasm"; then
13417 ac_cv_prog_nasm="$nasm" # Let the user override the test.
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13423 test -z "$as_dir" && as_dir=.
13424 for ac_exec_ext in '' $ac_executable_extensions; do
13425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13426 ac_cv_prog_nasm="$ac_prog"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13436 nasm=$ac_cv_prog_nasm
13437 if test -n "$nasm"; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nasm" >&5
13439 $as_echo "$nasm" >&6; }
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13446 test -n "$nasm" && break
13448 test -n "$nasm" || nasm="no"
13450 if test "x$nasm" = "xno" ;
13452 as_fn_error $? "NASM assembler not found" "$LINENO" 5
13460 SSSE3_SHA1_OBJ=$SSSE3_SHA1_OBJ
13463 if test "x$ENABLE_SSSE3_SHA1" = "xyes"; then
13467 @%:@ Check whether --with-libcrypto was given.
13468 if test "${with_libcrypto+set}" = set; then :
13469 withval=$with_libcrypto; WITH_LIBCRYPTO=$withval
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 in -lcrypto" >&5
13472 $as_echo_n "checking for SHA1 in -lcrypto... " >&6; }
13473 if ${ac_cv_lib_crypto_SHA1+:} false; then :
13474 $as_echo_n "(cached) " >&6
13476 ac_check_lib_save_LIBS=$LIBS
13477 LIBS="-lcrypto $LIBS"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13496 if ac_fn_c_try_link "$LINENO"; then :
13497 ac_cv_lib_crypto_SHA1=yes
13499 ac_cv_lib_crypto_SHA1=no
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 LIBS=$ac_check_lib_save_LIBS
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1" >&5
13506 $as_echo "$ac_cv_lib_crypto_SHA1" >&6; }
13507 if test "x$ac_cv_lib_crypto_SHA1" = xyes; then :
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&5
13511 $as_echo "$as_me: WARNING: Cannot find libcrypto: using stand-alone SHA1 code instead of OpenSSL" >&2;}
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SHA1 function from system libcrypto" >&5
13520 $as_echo_n "checking whether to use SHA1 function from system libcrypto... " >&6; }
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LIBCRYPTO" >&5
13522 $as_echo "$WITH_LIBCRYPTO" >&6; }
13524 if test "x$WITH_LIBCRYPTO" = "xyes" -a "x$ENABLE_SSSE3_SHA1" = "xno"; then
13526 $as_echo "@%:@define WITH_LIBCRYPTO 1" >>confdefs.h
13528 LIBCRYPTO_LDADD=`pkg-config --libs libcrypto`
13529 LIBCRYPTO_CFLAGS=`pkg-config --cflags libcrypto`
13534 LIBCRYPTO_LDADD=$LIBCRYPTO_LDADD
13536 LIBCRYPTO_CFLAGS=$LIBCRYPTO_CFLAGS
13538 SHA1_SOURCES=$SHA1_SOURCES
13541 cat >confcache <<\_ACEOF
13542 # This file is a shell script that caches the results of configure
13543 # tests run on this system so they can be shared between configure
13544 # scripts and configure runs, see configure's option --config-cache.
13545 # It is not useful on other systems. If it contains results you don't
13546 # want to keep, you may remove or edit it.
13548 # config.status only pays attention to the cache file if you give it
13549 # the --recheck option to rerun configure.
13551 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13552 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13553 # following values.
13557 # The following way of writing the cache mishandles newlines in values,
13558 # but we know of no workaround that is simple, portable, and efficient.
13559 # So, we kill variables containing newlines.
13560 # Ultrix sh set writes to stderr and can't be redirected directly,
13561 # and sets the high bit in the cache file unless we assign to the vars.
13563 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13564 eval ac_val=\$$ac_var
13568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13569 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13572 _ | IFS | as_nl) ;; #(
13573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13574 *) { eval $ac_var=; unset $ac_var;} ;;
13580 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13581 *${as_nl}ac_space=\ *)
13582 # `set' does not quote correctly, so add quotes: double-quote
13583 # substitution turns \\\\ into \\, and sed turns \\ into \.
13586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13589 # `set' quotes correctly as required by POSIX, so do not add quotes.
13590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13599 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13601 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13604 if test -w "$cache_file"; then
13605 if test "x$cache_file" != "x/dev/null"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13607 $as_echo "$as_me: updating cache $cache_file" >&6;}
13608 if test ! -f "$cache_file" || test -h "$cache_file"; then
13609 cat confcache >"$cache_file"
13611 case $cache_file in #(
13613 mv -f confcache "$cache_file"$$ &&
13614 mv -f "$cache_file"$$ "$cache_file" ;; #(
13616 mv -f confcache "$cache_file" ;;
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13622 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13627 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13628 # Let make expand exec_prefix.
13629 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13631 DEFS=-DHAVE_CONFIG_H
13636 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13637 # 1. Remove the extension, and $U if already installed.
13638 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13639 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13640 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13641 # will be set to the directory where LIBOBJS objects are built.
13642 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13643 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13645 LIB@&t@OBJS=$ac_libobjs
13647 LTLIBOBJS=$ac_ltlibobjs
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13651 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13652 if test -n "$am_sleep_pid"; then
13653 # Hide warnings about reused PIDs.
13654 wait $am_sleep_pid 2>/dev/null
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13657 $as_echo "done" >&6; }
13658 if test -n "$EXEEXT"; then
13660 am__EXEEXT_FALSE='#'
13662 am__EXEEXT_TRUE='#'
13666 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13667 as_fn_error $? "conditional \"AMDEP\" was never defined.
13668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13670 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13671 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13675 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13676 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13680 : "${CONFIG_STATUS=./config.status}"
13682 ac_clean_files_save=$ac_clean_files
13683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13685 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13687 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13689 # Generated by $as_me.
13690 # Run this file to recreate the current configuration.
13691 # Compiler output produced by configure, useful for debugging
13692 # configure, is in config.log if it exists.
13695 ac_cs_recheck=false
13698 SHELL=\${CONFIG_SHELL-$SHELL}
13701 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13702 ## -------------------- ##
13703 ## M4sh Initialization. ##
13704 ## -------------------- ##
13706 # Be more Bourne compatible
13707 DUALCASE=1; export DUALCASE # for MKS sh
13708 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13711 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13712 # is contrary to our usage. Disable this feature.
13713 alias -g '${1+"$@"}'='"$@"'
13714 setopt NO_GLOB_SUBST
13716 case `(set -o) 2>/dev/null` in @%:@(
13718 set -o posix ;; @%:@(
13728 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13729 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13730 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13732 # Prefer a ksh shell builtin over an external printf program on Solaris,
13733 # but without wasting forks for bash or zsh.
13734 if test -z "$BASH_VERSION$ZSH_VERSION" \
13735 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13736 as_echo='print -r --'
13737 as_echo_n='print -rn --'
13738 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13739 as_echo='printf %s\n'
13740 as_echo_n='printf %s'
13742 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13743 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13744 as_echo_n='/usr/ucb/echo -n'
13746 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13747 as_echo_n_body='eval
13751 expr "X$arg" : "X\\(.*\\)$as_nl";
13752 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13754 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13756 export as_echo_n_body
13757 as_echo_n='sh -c $as_echo_n_body as_echo'
13759 export as_echo_body
13760 as_echo='sh -c $as_echo_body as_echo'
13763 # The user is always right.
13764 if test "${PATH_SEPARATOR+set}" != set; then
13766 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13767 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13774 # We need space, tab and new line, in precisely that order. Quoting is
13775 # there to prevent editors from complaining about space-tab.
13776 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13777 # splitting by setting IFS to empty value.)
13780 # Find who we are. Look in the path if we contain no directory separator.
13783 *[\\/]* ) as_myself=$0 ;;
13784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13788 test -z "$as_dir" && as_dir=.
13789 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13795 # We did not find ourselves, most probably we were run as `sh COMMAND'
13796 # in which case we are not to be found in the path.
13797 if test "x$as_myself" = x; then
13800 if test ! -f "$as_myself"; then
13801 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13805 # Unset variables that we do not need and which cause bugs (e.g. in
13806 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13807 # suppresses any "Segmentation fault" message there. '((' could
13808 # trigger a bug in pdksh 5.2.14.
13809 for as_var in BASH_ENV ENV MAIL MAILPATH
13810 do eval test x\${$as_var+set} = xset \
13811 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13827 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13828 @%:@ ----------------------------------------
13829 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13830 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13831 @%:@ script with STATUS, using 1 if that was 0.
13834 as_status=$1; test $as_status -eq 0 && as_status=1
13836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13837 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13839 $as_echo "$as_me: error: $2" >&2
13840 as_fn_exit $as_status
13844 @%:@ as_fn_set_status STATUS
13845 @%:@ -----------------------
13846 @%:@ Set @S|@? to STATUS, without forking.
13847 as_fn_set_status ()
13850 } @%:@ as_fn_set_status
13852 @%:@ as_fn_exit STATUS
13853 @%:@ -----------------
13854 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13858 as_fn_set_status $1
13862 @%:@ as_fn_unset VAR
13863 @%:@ ---------------
13864 @%:@ Portably unset VAR.
13867 { eval $1=; unset $1;}
13869 as_unset=as_fn_unset
13870 @%:@ as_fn_append VAR VALUE
13871 @%:@ ----------------------
13872 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13873 @%:@ advantage of any shell optimizations that allow amortized linear growth over
13874 @%:@ repeated appends, instead of the typical quadratic growth present in naive
13875 @%:@ implementations.
13876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13877 eval 'as_fn_append ()
13888 @%:@ as_fn_arith ARG...
13889 @%:@ ------------------
13890 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13891 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13892 @%:@ must be portable across @S|@(()) and expr.
13893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13894 eval 'as_fn_arith ()
13901 as_val=`expr "$@" || test $? -eq 1`
13906 if expr a : '\(a\)' >/dev/null 2>&1 &&
13907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13914 as_basename=basename
13919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13925 as_me=`$as_basename -- "$0" ||
13926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13927 X"$0" : 'X\(//\)$' \| \
13928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13930 sed '/^.*\/\([^/][^/]*\)\/*$/{
13944 # Avoid depending upon Character Ranges.
13945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13948 as_cr_digits='0123456789'
13949 as_cr_alnum=$as_cr_Letters$as_cr_digits
13951 ECHO_C= ECHO_N= ECHO_T=
13952 case `echo -n x` in @%:@(((((
13954 case `echo 'xy\c'` in
13955 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13957 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13964 rm -f conf$$ conf$$.exe conf$$.file
13965 if test -d conf$$.dir; then
13966 rm -f conf$$.dir/conf$$.file
13969 mkdir conf$$.dir 2>/dev/null
13971 if (echo >conf$$.file) 2>/dev/null; then
13972 if ln -s conf$$.file conf$$ 2>/dev/null; then
13974 # ... but there are two gotchas:
13975 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13976 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13977 # In both cases, we have to default to `cp -pR'.
13978 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13980 elif ln conf$$.file conf$$ 2>/dev/null; then
13988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13989 rmdir conf$$.dir 2>/dev/null
13994 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13999 -*) as_dir=./$as_dir;;
14001 test -d "$as_dir" || eval $as_mkdir_p || {
14005 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14006 *) as_qdir=$as_dir;;
14008 as_dirs="'$as_qdir' $as_dirs"
14009 as_dir=`$as_dirname -- "$as_dir" ||
14010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14011 X"$as_dir" : 'X\(//\)[^/]' \| \
14012 X"$as_dir" : 'X\(//\)$' \| \
14013 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14014 $as_echo X"$as_dir" |
14015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14019 /^X\(\/\/\)[^/].*/{
14032 test -d "$as_dir" && break
14034 test -z "$as_dirs" || eval "mkdir $as_dirs"
14035 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14038 } @%:@ as_fn_mkdir_p
14039 if mkdir -p . 2>/dev/null; then
14040 as_mkdir_p='mkdir -p "$as_dir"'
14042 test -d ./-p && rmdir ./-p
14047 @%:@ as_fn_executable_p FILE
14048 @%:@ -----------------------
14049 @%:@ Test if FILE is an executable regular file.
14050 as_fn_executable_p ()
14052 test -f "$1" && test -x "$1"
14053 } @%:@ as_fn_executable_p
14054 as_test_x='test -x'
14055 as_executable_p=as_fn_executable_p
14057 # Sed expression to map a string onto a valid CPP name.
14058 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14060 # Sed expression to map a string onto a valid variable name.
14061 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14065 ## ----------------------------------- ##
14066 ## Main body of $CONFIG_STATUS script. ##
14067 ## ----------------------------------- ##
14069 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14072 # Save the log message, to keep $0 and so on meaningful, and to
14073 # report actual input values of CONFIG_FILES etc. instead of their
14074 # values after options handling.
14076 This file was extended by wimlib $as_me 0.6.2, which was
14077 generated by GNU Autoconf 2.69. Invocation command line was
14079 CONFIG_FILES = $CONFIG_FILES
14080 CONFIG_HEADERS = $CONFIG_HEADERS
14081 CONFIG_LINKS = $CONFIG_LINKS
14082 CONFIG_COMMANDS = $CONFIG_COMMANDS
14085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14090 case $ac_config_files in *"
14091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14094 case $ac_config_headers in *"
14095 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100 # Files that config.status was made for.
14101 config_files="$ac_config_files"
14102 config_headers="$ac_config_headers"
14103 config_commands="$ac_config_commands"
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14109 \`$as_me' instantiates files and other configuration actions
14110 from templates according to the current configuration. Unless the files
14111 and actions are specified as TAGs, all are instantiated by default.
14113 Usage: $0 [OPTION]... [TAG]...
14115 -h, --help print this help, then exit
14116 -V, --version print version number and configuration settings, then exit
14117 --config print configuration, then exit
14118 -q, --quiet, --silent
14119 do not print progress messages
14120 -d, --debug don't remove temporary files
14121 --recheck update $as_me by reconfiguring in the same conditions
14122 --file=FILE[:TEMPLATE]
14123 instantiate the configuration file FILE
14124 --header=FILE[:TEMPLATE]
14125 instantiate the configuration header FILE
14127 Configuration files:
14130 Configuration headers:
14133 Configuration commands:
14136 Report bugs to <ebiggers3@gmail.com>."
14139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14142 wimlib config.status 0.6.2
14143 configured by $0, generated by GNU Autoconf 2.69,
14144 with options \\"\$ac_cs_config\\"
14146 Copyright (C) 2012 Free Software Foundation, Inc.
14147 This config.status script is free software; the Free Software Foundation
14148 gives unlimited permission to copy, distribute and modify it."
14155 test -n "\$AWK" || AWK=awk
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 # The default lists apply if the user does not specify any file.
14165 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14166 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14182 # Handling of the options.
14183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14185 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14186 $as_echo "$ac_cs_version"; exit ;;
14187 --config | --confi | --conf | --con | --co | --c )
14188 $as_echo "$ac_cs_config"; exit ;;
14189 --debug | --debu | --deb | --de | --d | -d )
14191 --file | --fil | --fi | --f )
14194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14195 '') as_fn_error $? "missing file argument" ;;
14197 as_fn_append CONFIG_FILES " '$ac_optarg'"
14198 ac_need_defaults=false;;
14199 --header | --heade | --head | --hea )
14202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14204 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14205 ac_need_defaults=false;;
14207 # Conflict between --help and --header
14208 as_fn_error $? "ambiguous option: \`$1'
14209 Try \`$0 --help' for more information.";;
14210 --help | --hel | -h )
14211 $as_echo "$ac_cs_usage"; exit ;;
14212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14213 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14216 # This is an error.
14217 -*) as_fn_error $? "unrecognized option: \`$1'
14218 Try \`$0 --help' for more information." ;;
14220 *) as_fn_append ac_config_targets " $1"
14221 ac_need_defaults=false ;;
14227 ac_configure_extra_args=
14229 if $ac_cs_silent; then
14231 ac_configure_extra_args="$ac_configure_extra_args --silent"
14235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14236 if \$ac_cs_recheck; then
14237 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14240 CONFIG_SHELL='$SHELL'
14241 export CONFIG_SHELL
14246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14250 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
14251 @%:@@%:@ Running $as_me. @%:@@%:@
14257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14264 # The HP-UX ksh and POSIX shell print the target directory to stdout
14265 # if CDPATH is set.
14266 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14268 sed_quote_subst='$sed_quote_subst'
14269 double_quote_subst='$double_quote_subst'
14270 delay_variable_subst='$delay_variable_subst'
14271 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14272 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14273 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14274 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14275 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14276 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14277 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14278 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14279 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14280 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14281 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14282 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14283 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14284 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14285 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14286 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14287 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14288 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14289 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14290 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14291 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14292 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14293 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14294 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14295 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14296 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14297 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14298 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14299 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14300 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14301 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14302 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14303 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14304 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14305 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14306 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14307 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14308 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14309 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14310 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14311 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14312 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14313 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14314 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14315 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14316 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14317 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14318 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14319 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14320 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14321 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14322 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14323 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14324 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14325 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14326 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14327 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"`'
14328 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14329 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14330 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14331 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14332 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14333 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14334 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14335 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14336 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14337 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14338 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14339 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14340 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14341 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14342 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14343 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14344 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14345 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14346 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14347 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14348 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14349 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14350 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14351 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14352 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14353 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14354 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14355 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14356 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14357 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14358 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14359 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14360 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14361 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14362 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14363 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14364 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14365 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14366 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14367 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14368 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14369 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14370 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14371 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14372 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14373 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14374 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14375 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14376 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14377 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14378 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14379 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14380 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14381 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14382 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14383 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14384 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14385 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14386 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14387 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14388 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14389 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14390 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14391 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14392 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14393 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14394 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14395 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14396 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14397 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14398 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14399 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14400 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14403 LTCFLAGS='$LTCFLAGS'
14404 compiler='$compiler_DEFAULT'
14406 # A function that is used when there is no print builtin or printf.
14407 func_fallback_echo ()
14409 eval 'cat <<_LTECHO_EOF
14414 # Quote evaled strings.
14429 deplibs_check_method \
14434 sharedlib_from_linklib_cmd \
14437 archiver_list_spec \
14443 lt_cv_sys_global_symbol_pipe \
14444 lt_cv_sys_global_symbol_to_cdecl \
14445 lt_cv_sys_global_symbol_to_c_name_address \
14446 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14447 nm_file_list_spec \
14448 lt_prog_compiler_no_builtin_flag \
14449 lt_prog_compiler_pic \
14450 lt_prog_compiler_wl \
14451 lt_prog_compiler_static \
14452 lt_cv_prog_compiler_c_o \
14461 export_dynamic_flag_spec \
14462 whole_archive_flag_spec \
14463 compiler_needs_object \
14465 allow_undefined_flag \
14466 no_undefined_flag \
14467 hardcode_libdir_flag_spec \
14468 hardcode_libdir_separator \
14472 variables_saved_for_relink \
14474 library_names_spec \
14476 install_override_mode \
14480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14481 *[\\\\\\\`\\"\\\$]*)
14482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14490 # Double-quote double-evaled strings.
14491 for var in reload_cmds \
14492 old_postinstall_cmds \
14493 old_postuninstall_cmds \
14495 extract_expsyms_cmds \
14496 old_archive_from_new_cmds \
14497 old_archive_from_expsyms_cmds \
14499 archive_expsym_cmds \
14501 module_expsym_cmds \
14502 export_symbols_cmds \
14506 postuninstall_cmds \
14508 sys_lib_search_path_spec \
14509 sys_lib_dlsearch_path_spec; do
14510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14511 *[\\\\\\\`\\"\\\$]*)
14512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14520 ac_aux_dir='$ac_aux_dir'
14521 xsi_shell='$xsi_shell'
14522 lt_shell_append='$lt_shell_append'
14524 # See if we are running on zsh, and set the options which allow our
14525 # commands through without removal of \ escapes INIT.
14526 if test -n "\${ZSH_VERSION+set}" ; then
14527 setopt NO_GLOB_SUBST
14533 TIMESTAMP='$TIMESTAMP'
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14544 # Handling of arguments.
14545 for ac_config_target in $ac_config_targets
14547 case $ac_config_target in
14548 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14549 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14550 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14551 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14552 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14553 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
14554 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14555 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
14557 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14562 # If the user did not use the arguments to specify the items to instantiate,
14563 # then the envvar interface is used. Set only those that are not.
14564 # We use the long form for the default assignment because of an extremely
14565 # bizarre bug on SunOS 4.1.3.
14566 if $ac_need_defaults; then
14567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14572 # Have a temporary directory for convenience. Make it in the build tree
14573 # simply because there is no reason against having it here, and in addition,
14574 # creating and moving files from /tmp can sometimes cause problems.
14575 # Hook for its removal unless debugging.
14576 # Note that there is a small window in which the directory will not be cleaned:
14577 # after its creation but before its name has been assigned to `$tmp'.
14581 trap 'exit_status=$?
14582 : "${ac_tmp:=$tmp}"
14583 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14585 trap 'as_fn_exit 1' 1 2 13 15
14587 # Create a (secure) tmp directory for tmp files.
14590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14594 tmp=./conf$$-$RANDOM
14595 (umask 077 && mkdir "$tmp")
14596 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14599 # Set up the scripts for CONFIG_FILES section.
14600 # No need to generate them if there are no CONFIG_FILES.
14601 # This happens for instance with `./config.status config.h'.
14602 if test -n "$CONFIG_FILES"; then
14605 ac_cr=`echo X | tr X '\015'`
14606 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14607 # But we know of no other shell where ac_cr would be empty at this
14608 # point, so we can use a bashism as a fallback.
14609 if test "x$ac_cr" = x; then
14610 eval ac_cr=\$\'\\r\'
14612 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14613 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14616 ac_cs_awk_cr=$ac_cr
14619 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14624 echo "cat >conf$$subs.awk <<_ACEOF" &&
14625 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14627 } >conf$$subs.sh ||
14628 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14629 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14631 for ac_last_try in false false false false false :; do
14632 . ./conf$$subs.sh ||
14633 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14635 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14636 if test $ac_delim_n = $ac_delim_num; then
14638 elif $ac_last_try; then
14639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14644 rm -f conf$$subs.sh
14646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14647 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14651 s/^/S["/; s/!.*/"]=/
14661 s/\(.\{148\}\)..*/\1/
14663 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14675 s/\(.\{148\}\)..*/\1/
14677 s/["\\]/\\&/g; s/^/"/; s/$/"/
14681 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14686 ' <conf$$subs.awk | sed '
14691 ' >>$CONFIG_STATUS || ac_write_fail=1
14692 rm -f conf$$subs.awk
14693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14695 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14696 for (key in S) S_is_set[key] = 1
14702 nfields = split(line, field, "@")
14704 len = length(field[1])
14705 for (i = 2; i < nfields; i++) {
14707 keylen = length(key)
14708 if (S_is_set[key]) {
14710 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14711 len += length(value) + length(field[++i])
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14723 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14724 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14727 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14728 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14731 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14732 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14733 # trailing colons and then remove the whole line if VPATH becomes empty
14734 # (actually we leave an empty line to preserve line numbers).
14735 if test "x$srcdir" = x.; then
14736 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14755 fi # test -n "$CONFIG_FILES"
14757 # Set up the scripts for CONFIG_HEADERS section.
14758 # No need to generate them if there are no CONFIG_HEADERS.
14759 # This happens for instance with `./config.status Makefile'.
14760 if test -n "$CONFIG_HEADERS"; then
14761 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14765 # Transform confdefs.h into an awk script `defines.awk', embedded as
14766 # here-document in config.status, that substitutes the proper values into
14767 # config.h.in to produce config.h.
14769 # Create a delimiter string that does not exist in confdefs.h, to ease
14770 # handling of long lines.
14772 for ac_last_try in false false :; do
14773 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14774 if test -z "$ac_tt"; then
14776 elif $ac_last_try; then
14777 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14783 # For the awk script, D is an array of macro values keyed by name,
14784 # likewise P contains macro parameters if any. Preserve backslash
14785 # newline sequences.
14787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14789 s/.\{148\}/&'"$ac_delim"'/g
14792 s/^[ ]*#[ ]*define[ ][ ]*/ /
14799 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14801 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14805 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14806 D["\1"]=" \3\\\\\\n"\\/p
14808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14813 s/.\{148\}/&'"$ac_delim"'/g
14818 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14821 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14823 ' <confdefs.h | sed '
14824 s/'"$ac_delim"'/"\\\
14825 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14828 for (key in D) D_is_set[key] = 1
14831 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14833 split(line, arg, " ")
14834 if (arg[1] == "#") {
14838 defundef = substr(arg[1], 2)
14841 split(mac1, mac2, "(") #)
14843 prefix = substr(line, 1, index(line, defundef) - 1)
14844 if (D_is_set[macro]) {
14845 # Preserve the white space surrounding the "#".
14846 print prefix "define", macro P[macro] D[macro]
14849 # Replace #undef with comments. This is necessary, for example,
14850 # in the case of _POSIX_SOURCE, which is predefined and required
14851 # on some systems where configure will not decide to define it.
14852 if (defundef == "undef") {
14853 print "/*", prefix defundef, macro, "*/"
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14863 fi # test -n "$CONFIG_HEADERS"
14866 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14871 :[FHLC]) ac_mode=$ac_tag; continue;;
14873 case $ac_mode$ac_tag in
14875 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14876 :[FH]-) ac_tag=-:-;;
14877 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14894 -) ac_f="$ac_tmp/stdin";;
14895 *) # Look for the file first in the build tree, then in the source tree
14896 # (if the path is not absolute). The absolute path cannot be DOS-style,
14897 # because $ac_f cannot contain `:'.
14901 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14903 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14905 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14906 as_fn_append ac_file_inputs " '$ac_f'"
14909 # Let's still pretend it is `configure' which instantiates (i.e., don't
14910 # use $as_me), people would be surprised to read:
14911 # /* config.h. Generated by config.status. */
14912 configure_input='Generated from '`
14913 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14915 if test x"$ac_file" != x-; then
14916 configure_input="$ac_file. $configure_input"
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14918 $as_echo "$as_me: creating $ac_file" >&6;}
14920 # Neutralize special characters interpreted by sed in replacement strings.
14921 case $configure_input in #(
14922 *\&* | *\|* | *\\* )
14923 ac_sed_conf_input=`$as_echo "$configure_input" |
14924 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14925 *) ac_sed_conf_input=$configure_input;;
14929 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14930 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14935 ac_dir=`$as_dirname -- "$ac_file" ||
14936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937 X"$ac_file" : 'X\(//\)[^/]' \| \
14938 X"$ac_file" : 'X\(//\)$' \| \
14939 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14940 $as_echo X"$ac_file" |
14941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14945 /^X\(\/\/\)[^/].*/{
14958 as_dir="$ac_dir"; as_fn_mkdir_p
14962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14965 # A ".." for each directory in $ac_dir_suffix.
14966 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14967 case $ac_top_builddir_sub in
14968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14972 ac_abs_top_builddir=$ac_pwd
14973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14974 # for backward compatibility:
14975 ac_top_builddir=$ac_top_build_prefix
14978 .) # We are building in place.
14980 ac_top_srcdir=$ac_top_builddir_sub
14981 ac_abs_top_srcdir=$ac_pwd ;;
14982 [\\/]* | ?:[\\/]* ) # Absolute name.
14983 ac_srcdir=$srcdir$ac_dir_suffix;
14984 ac_top_srcdir=$srcdir
14985 ac_abs_top_srcdir=$srcdir ;;
14986 *) # Relative name.
14987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14988 ac_top_srcdir=$ac_top_build_prefix$srcdir
14989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15004 ac_MKDIR_P=$MKDIR_P
15006 [\\/$]* | ?:[\\/]* ) ;;
15007 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15012 # If the template does not know about datarootdir, expand it.
15013 # FIXME: This hack should be removed a few years after 2.60.
15014 ac_datarootdir_hack=; ac_datarootdir_seen=
15025 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15026 *datarootdir*) ac_datarootdir_seen=yes;;
15027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15029 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15032 ac_datarootdir_hack='
15033 s&@datadir@&$datadir&g
15034 s&@docdir@&$docdir&g
15035 s&@infodir@&$infodir&g
15036 s&@localedir@&$localedir&g
15037 s&@mandir@&$mandir&g
15038 s&\\\${datarootdir}&$datarootdir&g' ;;
15042 # Neutralize VPATH when `$srcdir' = `.'.
15043 # Shell code in configure.ac might set extrasub.
15044 # FIXME: do we really want to maintain this feature?
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046 ac_sed_extra="$ac_vpsub
15049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15052 s|@configure_input@|$ac_sed_conf_input|;t t
15053 s&@top_builddir@&$ac_top_builddir_sub&;t t
15054 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15055 s&@srcdir@&$ac_srcdir&;t t
15056 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15057 s&@top_srcdir@&$ac_top_srcdir&;t t
15058 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15059 s&@builddir@&$ac_builddir&;t t
15060 s&@abs_builddir@&$ac_abs_builddir&;t t
15061 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15062 s&@INSTALL@&$ac_INSTALL&;t t
15063 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15064 $ac_datarootdir_hack
15066 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15067 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15069 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15070 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15071 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15072 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15074 which seems to be undefined. Please make sure it is defined" >&5
15075 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15076 which seems to be undefined. Please make sure it is defined" >&2;}
15078 rm -f "$ac_tmp/stdin"
15080 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15081 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15083 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15089 if test x"$ac_file" != x-; then
15091 $as_echo "/* $configure_input */" \
15092 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15093 } >"$ac_tmp/config.h" \
15094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15095 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15097 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15100 mv "$ac_tmp/config.h" "$ac_file" \
15101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15104 $as_echo "/* $configure_input */" \
15105 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15106 || as_fn_error $? "could not create -" "$LINENO" 5
15108 # Compute "$ac_file"'s index in $config_headers.
15111 for _am_header in $config_headers :; do
15112 case $_am_header in
15113 $_am_arg | $_am_arg:* )
15116 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15119 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15120 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15121 X"$_am_arg" : 'X\(//\)[^/]' \| \
15122 X"$_am_arg" : 'X\(//\)$' \| \
15123 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15124 $as_echo X"$_am_arg" |
15125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15129 /^X\(\/\/\)[^/].*/{
15141 s/.*/./; q'`/stamp-h$_am_stamp_count
15144 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15145 $as_echo "$as_me: executing $ac_file commands" >&6;}
15150 case $ac_file$ac_mode in
15151 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15152 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15153 # are listed without --file. Let's play safe and only enable the eval
15154 # if we detect the quoting.
15155 case $CONFIG_FILES in
15156 *\'*) eval set x "$CONFIG_FILES" ;;
15157 *) set x $CONFIG_FILES ;;
15162 # Strip MF so we end up with the name of the file.
15163 mf=`echo "$mf" | sed -e 's/:.*$//'`
15164 # Check whether this is an Automake generated Makefile or not.
15165 # We used to match only the files named 'Makefile.in', but
15166 # some people rename them; so instead we look at the file content.
15167 # Grep'ing the first line is not enough: some people post-process
15168 # each Makefile.in and add a new line on top of each file to say so.
15169 # Grep'ing the whole file is not good either: AIX grep has a line
15170 # limit of 2048, but all sed's we know have understand at least 4000.
15171 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15172 dirpart=`$as_dirname -- "$mf" ||
15173 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15174 X"$mf" : 'X\(//\)[^/]' \| \
15175 X"$mf" : 'X\(//\)$' \| \
15176 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15182 /^X\(\/\/\)[^/].*/{
15198 # Extract the definition of DEPDIR, am__include, and am__quote
15199 # from the Makefile without running 'make'.
15200 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15201 test -z "$DEPDIR" && continue
15202 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15203 test -z "am__include" && continue
15204 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15205 # Find all dependency output files, they are included files with
15206 # $(DEPDIR) in their names. We invoke sed twice because it is the
15207 # simplest approach to changing $(DEPDIR) to its actual value in the
15209 for file in `sed -n "
15210 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15211 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15212 # Make sure the directory exists.
15213 test -f "$dirpart/$file" && continue
15214 fdir=`$as_dirname -- "$file" ||
15215 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15216 X"$file" : 'X\(//\)[^/]' \| \
15217 X"$file" : 'X\(//\)$' \| \
15218 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15219 $as_echo X"$file" |
15220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15224 /^X\(\/\/\)[^/].*/{
15237 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15238 # echo "creating $dirpart/$file"
15239 echo '# dummy' > "$dirpart/$file"
15246 # See if we are running on zsh, and set the options which allow our
15247 # commands through without removal of \ escapes.
15248 if test -n "${ZSH_VERSION+set}" ; then
15249 setopt NO_GLOB_SUBST
15252 cfgfile="${ofile}T"
15253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15256 cat <<_LT_EOF >> "$cfgfile"
15259 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15260 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15261 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15262 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15264 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15265 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15267 # Written by Gordon Matzigkeit, 1996
15269 # This file is part of GNU Libtool.
15271 # GNU Libtool is free software; you can redistribute it and/or
15272 # modify it under the terms of the GNU General Public License as
15273 # published by the Free Software Foundation; either version 2 of
15274 # the License, or (at your option) any later version.
15276 # As a special exception to the GNU General Public License,
15277 # if you distribute this file as part of a program or library that
15278 # is built using GNU Libtool, you may include this file under the
15279 # same distribution terms that you use for the rest of that program.
15281 # GNU Libtool is distributed in the hope that it will be useful,
15282 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15283 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15284 # GNU General Public License for more details.
15286 # You should have received a copy of the GNU General Public License
15287 # along with GNU Libtool; see the file COPYING. If not, a copy
15288 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15289 # obtained by writing to the Free Software Foundation, Inc.,
15290 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15293 # The names of the tagged configurations supported by this script.
15296 # ### BEGIN LIBTOOL CONFIG
15298 # Which release of libtool.m4 was used?
15299 macro_version=$macro_version
15300 macro_revision=$macro_revision
15302 # Whether or not to build shared libraries.
15303 build_libtool_libs=$enable_shared
15305 # Whether or not to build static libraries.
15306 build_old_libs=$enable_static
15308 # What type of objects to build.
15311 # Whether or not to optimize for fast installation.
15312 fast_install=$enable_fast_install
15314 # Shell to use when invoking shell scripts.
15317 # An echo program that protects backslashes.
15320 # The PATH separator for the build system.
15321 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15324 host_alias=$host_alias
15328 # The build system.
15329 build_alias=$build_alias
15333 # A sed program that does not truncate output.
15336 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15337 Xsed="\$SED -e 1s/^X//"
15339 # A grep program that handles long lines.
15345 # A literal string matcher.
15348 # A BSD- or MS-compatible name lister.
15351 # Whether we need soft or hard links.
15354 # What is the maximum length of a command?
15355 max_cmd_len=$max_cmd_len
15357 # Object file suffix (normally "o").
15360 # Executable file suffix (normally "").
15363 # whether the shell understands "unset".
15366 # turn spaces into newlines.
15369 # turn newlines into spaces.
15372 # convert \$build file names to \$host format.
15373 to_host_file_cmd=$lt_cv_to_host_file_cmd
15375 # convert \$build files to toolchain format.
15376 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15378 # An object symbol dumper.
15379 OBJDUMP=$lt_OBJDUMP
15381 # Method to check whether dependent libraries are shared objects.
15382 deplibs_check_method=$lt_deplibs_check_method
15384 # Command to use when deplibs_check_method = "file_magic".
15385 file_magic_cmd=$lt_file_magic_cmd
15387 # How to find potential files when deplibs_check_method = "file_magic".
15388 file_magic_glob=$lt_file_magic_glob
15390 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15391 want_nocaseglob=$lt_want_nocaseglob
15393 # DLL creation program.
15394 DLLTOOL=$lt_DLLTOOL
15396 # Command to associate shared and link libraries.
15397 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15402 # Flags to create an archive.
15403 AR_FLAGS=$lt_AR_FLAGS
15405 # How to feed a file listing to the archiver.
15406 archiver_list_spec=$lt_archiver_list_spec
15408 # A symbol stripping program.
15411 # Commands used to install an old-style archive.
15413 old_postinstall_cmds=$lt_old_postinstall_cmds
15414 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15416 # Whether to use a lock for old archive extraction.
15417 lock_old_archive_extraction=$lock_old_archive_extraction
15422 # LTCC compiler flags.
15423 LTCFLAGS=$lt_CFLAGS
15425 # Take the output of nm and produce a listing of raw symbols and C names.
15426 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15428 # Transform the output of nm in a proper C declaration.
15429 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15431 # Transform the output of nm in a C name address pair.
15432 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15434 # Transform the output of nm in a C name address pair when lib prefix is needed.
15435 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15437 # Specify filename containing input files for \$NM.
15438 nm_file_list_spec=$lt_nm_file_list_spec
15440 # The root where to search for dependent libraries,and in which our libraries should be installed.
15441 lt_sysroot=$lt_sysroot
15443 # The name of the directory that contains temporary libtool files.
15446 # Used to examine libraries when file_magic_cmd begins with "file".
15447 MAGIC_CMD=$MAGIC_CMD
15449 # Must we lock files when doing compilation?
15450 need_locks=$lt_need_locks
15453 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15455 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15456 DSYMUTIL=$lt_DSYMUTIL
15458 # Tool to change global to local symbols on Mac OS X.
15461 # Tool to manipulate fat objects and archives on Mac OS X.
15464 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15467 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15468 OTOOL64=$lt_OTOOL64
15470 # Old archive suffix (normally "a").
15473 # Shared library suffix (normally ".so").
15474 shrext_cmds=$lt_shrext_cmds
15476 # The commands to extract the exported symbol list from a shared archive.
15477 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15479 # Variables whose values should be saved in libtool wrapper scripts and
15480 # restored at link time.
15481 variables_saved_for_relink=$lt_variables_saved_for_relink
15483 # Do we need the "lib" prefix for modules?
15484 need_lib_prefix=$need_lib_prefix
15486 # Do we need a version for libraries?
15487 need_version=$need_version
15489 # Library versioning type.
15490 version_type=$version_type
15492 # Shared library runtime path variable.
15493 runpath_var=$runpath_var
15495 # Shared library path variable.
15496 shlibpath_var=$shlibpath_var
15498 # Is shlibpath searched before the hard-coded library search path?
15499 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15501 # Format of library name prefix.
15502 libname_spec=$lt_libname_spec
15504 # List of archive names. First name is the real one, the rest are links.
15505 # The last name is the one that the linker finds with -lNAME
15506 library_names_spec=$lt_library_names_spec
15508 # The coded name of the library, if different from the real name.
15509 soname_spec=$lt_soname_spec
15511 # Permission mode override for installation of shared libraries.
15512 install_override_mode=$lt_install_override_mode
15514 # Command to use after installation of a shared archive.
15515 postinstall_cmds=$lt_postinstall_cmds
15517 # Command to use after uninstallation of a shared archive.
15518 postuninstall_cmds=$lt_postuninstall_cmds
15520 # Commands used to finish a libtool library installation in a directory.
15521 finish_cmds=$lt_finish_cmds
15523 # As "finish_cmds", except a single script fragment to be evaled but
15525 finish_eval=$lt_finish_eval
15527 # Whether we should hardcode library paths into libraries.
15528 hardcode_into_libs=$hardcode_into_libs
15530 # Compile-time system search path for libraries.
15531 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15533 # Run-time system search path for libraries.
15534 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15536 # Whether dlopen is supported.
15537 dlopen_support=$enable_dlopen
15539 # Whether dlopen of programs is supported.
15540 dlopen_self=$enable_dlopen_self
15542 # Whether dlopen of statically linked programs is supported.
15543 dlopen_self_static=$enable_dlopen_self_static
15545 # Commands to strip libraries.
15546 old_striplib=$lt_old_striplib
15547 striplib=$lt_striplib
15550 # The linker used to build libraries.
15553 # How to create reloadable object files.
15554 reload_flag=$lt_reload_flag
15555 reload_cmds=$lt_reload_cmds
15557 # Commands used to build an old-style archive.
15558 old_archive_cmds=$lt_old_archive_cmds
15560 # A language specific compiler.
15563 # Is the compiler the GNU compiler?
15566 # Compiler flag to turn off builtin functions.
15567 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15569 # Additional compiler flags for building library objects.
15570 pic_flag=$lt_lt_prog_compiler_pic
15572 # How to pass a linker flag through the compiler.
15573 wl=$lt_lt_prog_compiler_wl
15575 # Compiler flag to prevent dynamic linking.
15576 link_static_flag=$lt_lt_prog_compiler_static
15578 # Does compiler simultaneously support -c and -o options?
15579 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15581 # Whether or not to add -lc for building shared libraries.
15582 build_libtool_need_lc=$archive_cmds_need_lc
15584 # Whether or not to disallow shared libs when runtime libs are static.
15585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15587 # Compiler flag to allow reflexive dlopens.
15588 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15590 # Compiler flag to generate shared objects directly from archives.
15591 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15593 # Whether the compiler copes with passing no objects directly.
15594 compiler_needs_object=$lt_compiler_needs_object
15596 # Create an old-style archive from a shared archive.
15597 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15599 # Create a temporary old-style archive to link instead of a shared archive.
15600 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15602 # Commands used to build a shared archive.
15603 archive_cmds=$lt_archive_cmds
15604 archive_expsym_cmds=$lt_archive_expsym_cmds
15606 # Commands used to build a loadable module if different from building
15607 # a shared archive.
15608 module_cmds=$lt_module_cmds
15609 module_expsym_cmds=$lt_module_expsym_cmds
15611 # Whether we are building with GNU ld or not.
15612 with_gnu_ld=$lt_with_gnu_ld
15614 # Flag that allows shared libraries with undefined symbols to be built.
15615 allow_undefined_flag=$lt_allow_undefined_flag
15617 # Flag that enforces no undefined symbols.
15618 no_undefined_flag=$lt_no_undefined_flag
15620 # Flag to hardcode \$libdir into a binary during linking.
15621 # This must work even if \$libdir does not exist
15622 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15624 # Whether we need a single "-rpath" flag with a separated argument.
15625 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15628 # DIR into the resulting binary.
15629 hardcode_direct=$hardcode_direct
15631 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15632 # DIR into the resulting binary and the resulting library dependency is
15633 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15634 # library is relocated.
15635 hardcode_direct_absolute=$hardcode_direct_absolute
15637 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15638 # into the resulting binary.
15639 hardcode_minus_L=$hardcode_minus_L
15641 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15642 # into the resulting binary.
15643 hardcode_shlibpath_var=$hardcode_shlibpath_var
15645 # Set to "yes" if building a shared library automatically hardcodes DIR
15646 # into the library and all subsequent libraries and executables linked
15648 hardcode_automatic=$hardcode_automatic
15650 # Set to yes if linker adds runtime paths of dependent libraries
15651 # to runtime path list.
15652 inherit_rpath=$inherit_rpath
15654 # Whether libtool must link a program against all its dependency libraries.
15655 link_all_deplibs=$link_all_deplibs
15657 # Set to "yes" if exported symbols are required.
15658 always_export_symbols=$always_export_symbols
15660 # The commands to list exported symbols.
15661 export_symbols_cmds=$lt_export_symbols_cmds
15663 # Symbols that should not be listed in the preloaded symbols.
15664 exclude_expsyms=$lt_exclude_expsyms
15666 # Symbols that must always be exported.
15667 include_expsyms=$lt_include_expsyms
15669 # Commands necessary for linking programs (against libraries) with templates.
15670 prelink_cmds=$lt_prelink_cmds
15672 # Commands necessary for finishing linking programs.
15673 postlink_cmds=$lt_postlink_cmds
15675 # Specify filename containing input files.
15676 file_list_spec=$lt_file_list_spec
15678 # How to hardcode a shared library path into an executable.
15679 hardcode_action=$hardcode_action
15681 # ### END LIBTOOL CONFIG
15687 cat <<\_LT_EOF >> "$cfgfile"
15688 # AIX sometimes has problems with the GCC collect2 program. For some
15689 # reason, if we set the COLLECT_NAMES environment variable, the problems
15690 # vanish in a puff of smoke.
15691 if test "X${COLLECT_NAMES+set}" != Xset; then
15693 export COLLECT_NAMES
15700 ltmain="$ac_aux_dir/ltmain.sh"
15703 # We use sed instead of cat because bash on DJGPP gets confused if
15704 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15705 # text mode, it properly converts lines to CR/LF. This bash problem
15706 # is reportedly fixed, but why not run on old versions too?
15707 sed '$q' "$ltmain" >> "$cfgfile" \
15708 || (rm -f "$cfgfile"; exit 1)
15710 if test x"$xsi_shell" = xyes; then
15711 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15715 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15716 \ * ) func_dirname_result="${3}" ;;\
15718 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15719 && mv -f "$cfgfile.tmp" "$cfgfile" \
15720 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15721 test 0 -eq $? || _lt_function_replace_fail=:
15724 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15727 \ func_basename_result="${1##*/}"\
15728 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15729 && mv -f "$cfgfile.tmp" "$cfgfile" \
15730 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15731 test 0 -eq $? || _lt_function_replace_fail=:
15734 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15735 func_dirname_and_basename ()\
15738 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15739 \ * ) func_dirname_result="${3}" ;;\
15741 \ func_basename_result="${1##*/}"\
15742 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15743 && mv -f "$cfgfile.tmp" "$cfgfile" \
15744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15745 test 0 -eq $? || _lt_function_replace_fail=:
15748 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15751 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15752 \ # positional parameters, so assign one to ordinary parameter first.\
15753 \ func_stripname_result=${3}\
15754 \ func_stripname_result=${func_stripname_result#"${1}"}\
15755 \ func_stripname_result=${func_stripname_result%"${2}"}\
15756 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15757 && mv -f "$cfgfile.tmp" "$cfgfile" \
15758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15759 test 0 -eq $? || _lt_function_replace_fail=:
15762 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15763 func_split_long_opt ()\
15765 \ func_split_long_opt_name=${1%%=*}\
15766 \ func_split_long_opt_arg=${1#*=}\
15767 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15768 && mv -f "$cfgfile.tmp" "$cfgfile" \
15769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15770 test 0 -eq $? || _lt_function_replace_fail=:
15773 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15774 func_split_short_opt ()\
15776 \ func_split_short_opt_arg=${1#??}\
15777 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15778 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15779 && mv -f "$cfgfile.tmp" "$cfgfile" \
15780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15781 test 0 -eq $? || _lt_function_replace_fail=:
15784 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15788 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15789 \ *) func_lo2o_result=${1} ;;\
15791 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15792 && mv -f "$cfgfile.tmp" "$cfgfile" \
15793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15794 test 0 -eq $? || _lt_function_replace_fail=:
15797 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15800 func_xform_result=${1%.*}.lo\
15801 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15802 && mv -f "$cfgfile.tmp" "$cfgfile" \
15803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15804 test 0 -eq $? || _lt_function_replace_fail=:
15807 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15810 func_arith_result=$(( $* ))\
15811 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15812 && mv -f "$cfgfile.tmp" "$cfgfile" \
15813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15814 test 0 -eq $? || _lt_function_replace_fail=:
15817 sed -e '/^func_len ()$/,/^} # func_len /c\
15820 func_len_result=${#1}\
15821 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15822 && mv -f "$cfgfile.tmp" "$cfgfile" \
15823 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15824 test 0 -eq $? || _lt_function_replace_fail=:
15828 if test x"$lt_shell_append" = xyes; then
15829 sed -e '/^func_append ()$/,/^} # func_append /c\
15832 eval "${1}+=\\${2}"\
15833 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15834 && mv -f "$cfgfile.tmp" "$cfgfile" \
15835 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15836 test 0 -eq $? || _lt_function_replace_fail=:
15839 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15840 func_append_quoted ()\
15842 \ func_quote_for_eval "${2}"\
15843 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15844 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15845 && mv -f "$cfgfile.tmp" "$cfgfile" \
15846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15847 test 0 -eq $? || _lt_function_replace_fail=:
15850 # Save a `func_append' function call where possible by direct use of '+='
15851 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15852 && mv -f "$cfgfile.tmp" "$cfgfile" \
15853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15854 test 0 -eq $? || _lt_function_replace_fail=:
15856 # Save a `func_append' function call even when '+=' is not available
15857 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15858 && mv -f "$cfgfile.tmp" "$cfgfile" \
15859 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15860 test 0 -eq $? || _lt_function_replace_fail=:
15863 if test x"$_lt_function_replace_fail" = x":"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15865 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15869 mv -f "$cfgfile" "$ofile" ||
15870 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15881 ac_clean_files=$ac_clean_files_save
15883 test $ac_write_fail = 0 ||
15884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15887 # configure is writing to config.log, and then calls config.status.
15888 # config.status does its own redirection, appending to config.log.
15889 # Unfortunately, on DOS this fails, as config.log is still kept open
15890 # by configure, so config.status won't be able to write to it; its
15891 # output is simply discarded. So we exec the FD to /dev/null,
15892 # effectively closing config.log, so it can be properly (re)opened and
15893 # appended to by config.status. When coming back to configure, we
15894 # need to make the FD available again.
15895 if test "$no_create" != yes; then
15897 ac_config_status_args=
15898 test "$silent" = yes &&
15899 ac_config_status_args="$ac_config_status_args --quiet"
15901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15904 # would make configure fail if this is the last instruction.
15905 $ac_cs_success || as_fn_exit 1
15907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}