2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for shellinabox 2.10.
5 # Report bugs to <markus@shellinabox.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: markus@shellinabox.com about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='shellinabox'
700 PACKAGE_TARNAME='shellinabox'
701 PACKAGE_VERSION='2.10'
702 PACKAGE_STRING='shellinabox 2.10'
703 PACKAGE_BUGREPORT='markus@shellinabox.com'
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars='am__EXEEXT_FALSE
800 INSTALL_STRIP_PROGRAM
843 program_transform_name
856 enable_option_checking
857 enable_dependency_tracking
867 enable_runtime_loading
869 ac_precious_vars='build_alias
880 # Initialize some variables set by options.
882 ac_init_version=false
883 ac_unrecognized_opts=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name=s,x,x,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1186 -site=* | --site=* | --sit=*)
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information."
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1295 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1313 # Be sure to have absolute directory names.
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used." >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error "pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures shellinabox 2.10 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/shellinabox]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of shellinabox 2.10:";;
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --enable-shared[=PKGS] build shared libraries [default=yes]
1500 --enable-static[=PKGS] build static libraries [default=yes]
1501 --enable-fast-install[=PKGS]
1502 optimize for fast installation [default=yes]
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --disable-login on some systems (e.g. Fedora), calling /bin/login
1505 does not work well. If you know that your system
1506 suffers from this problem, set this option to
1507 remove support for the LOGIN keyword in the
1508 service description.
1509 --disable-ssl if available at built-time, support for SSL
1510 connections will be enabled. It can still be
1511 disabled at run-time, either on the daemon's
1512 command line or if the operating system does not
1513 have the OpenSSL libraries available.
1514 --disable-pam PAM support is necessary in order to authenticate
1515 users for running programs other than their default
1517 --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1518 libraries at run-time, if it has been compiled with
1519 support for these libraries, and if the operating
1520 system supports dynamic loading of libraries. This
1521 allows you to install the same binary on different
1522 systems independent of whether they have OpenSSL
1523 and PAM enabled. If you would rather directly link
1524 these libraries into the binary, thus making them a
1525 hard dependency, then disable runtime-loading.
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1530 --with-pic try to use only PIC/non-PIC objects [default=use
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to <markus@shellinabox.com>.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1610 shellinabox configure 2.10
1611 generated by GNU Autoconf 2.64
1613 Copyright (C) 2009 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 $as_test_x conftest$ac_exeext
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 } # ac_fn_c_try_link
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 $as_echo_n "checking for $2... " >&6; }
1717 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718 $as_echo_n "(cached) " >&6
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h. */
1725 if ac_fn_c_try_compile "$LINENO"; then :
1730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 } # ac_fn_c_check_header_compile
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } >/dev/null && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1776 # ac_fn_c_try_run LINENO
1777 # ----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1779 # that executables *can* be run.
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_link"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>&5
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1794 { { case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_try") 2>&5
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; }; }; then :
1806 $as_echo "$as_me: program exited with status $ac_status" >&5
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=$ac_status
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 # ac_fn_c_check_func LINENO FUNC VAR
1819 # ----------------------------------
1820 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1821 ac_fn_c_check_func ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1831 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1833 #define $2 innocuous_$2
1835 /* System header to define __stub macros and hopefully few prototypes,
1836 which can conflict with char $2 (); below.
1837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1838 <limits.h> exists even on freestanding compilers. */
1841 # include <limits.h>
1843 # include <assert.h>
1848 /* Override any GCC internal prototype to avoid an error.
1849 Use char because int might match the return type of a GCC
1850 builtin and then its argument prototype would still apply. */
1855 /* The GNU C library defines this for functions which it implements
1856 to always fail with ENOSYS. Some functions are actually named
1857 something starting with __ and the normal name is an alias. */
1858 #if defined __stub_$2 || defined __stub___$2
1870 if ac_fn_c_try_link "$LINENO"; then :
1875 rm -f core conftest.err conftest.$ac_objext \
1876 conftest$ac_exeext conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 } # ac_fn_c_check_func
1885 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888 # the include files in INCLUDES and setting the cache variable VAR
1890 ac_fn_c_check_header_mongrel ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1903 # Is the header compilable?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905 $as_echo_n "checking $2 usability... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912 ac_header_compiler=yes
1914 ac_header_compiler=no
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1918 $as_echo "$ac_header_compiler" >&6; }
1920 # Is the header present?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922 $as_echo_n "checking $2 presence... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1927 if ac_fn_c_try_cpp "$LINENO"; then :
1928 ac_header_preproc=yes
1930 ac_header_preproc=no
1932 rm -f conftest.err conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1934 $as_echo "$ac_header_preproc" >&6; }
1936 # So? What about this header?
1937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956 ## ------------------------------------- ##
1957 ## Report this to markus@shellinabox.com ##
1958 ## ------------------------------------- ##
1960 ) | sed "s/^/$as_me: WARNING: /" >&2
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966 $as_echo_n "(cached) " >&6
1968 eval "$3=\$ac_header_compiler"
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1972 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 } # ac_fn_c_check_header_mongrel
1977 cat >config.log <<_ACEOF
1978 This file contains any messages produced by compilers while
1979 running configure, to aid debugging if configure makes a mistake.
1981 It was created by shellinabox $as_me 2.10, which was
1982 generated by GNU Autoconf 2.64. Invocation command line was
1994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 $as_echo "PATH: $as_dir"
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_must_keep_next=false
2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2053 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058 as_fn_append ac_configure_args1 " '$ac_arg'"
2059 if test $ac_must_keep_next = true; then
2060 ac_must_keep_next=false # Got value, back to normal.
2063 *=* | --config-cache | -C | -disable-* | --disable-* \
2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066 | -with-* | --with-* | -without-* | --without-* | --x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071 -* ) ac_must_keep_next=true ;;
2074 as_fn_append ac_configure_args " '$ac_arg'"
2079 { ac_configure_args0=; unset ac_configure_args0;}
2080 { ac_configure_args1=; unset ac_configure_args1;}
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log. We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088 # Save into config.log some information that might help in debugging.
2093 ## ---------------- ##
2094 ## Cache variables. ##
2095 ## ---------------- ##
2098 # The following way of writing the cache mishandles newlines in values,
2100 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101 eval ac_val=\$$ac_var
2105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 _ | IFS | as_nl) ;; #(
2110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111 *) { eval $ac_var=; unset $ac_var;} ;;
2116 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117 *${as_nl}ac_space=\ *)
2119 "s/'\''/'\''\\\\'\'''\''/g;
2120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 ## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##
2136 for ac_var in $ac_subst_vars
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -n "$ac_subst_files"; then
2148 ## ------------------- ##
2149 ## File substitutions. ##
2150 ## ------------------- ##
2153 for ac_var in $ac_subst_files
2155 eval ac_val=\$$ac_var
2157 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 $as_echo "$ac_var='\''$ac_val'\''"
2164 if test -s confdefs.h; then
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2182 for ac_signal in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2223 if test -n "$CONFIG_SITE"; then
2224 ac_site_file1=$CONFIG_SITE
2225 elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
2232 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE && continue
2235 if test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2243 if test -r "$cache_file"; then
2244 # Some versions of bash will fail to source /dev/null (special
2245 # files actually), so we avoid doing that.
2246 if test -f "$cache_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2250 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251 *) . "./$cache_file";;
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2260 # Check that the precious variables saved in the cache have kept the same
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265 eval ac_new_set=\$ac_env_${ac_var}_set
2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267 eval ac_new_val=\$ac_env_${ac_var}_value
2268 case $ac_old_set,$ac_new_set in
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2279 if test "x$ac_old_val" != "x$ac_new_val"; then
2280 # differences in whitespace do not lead to failure.
2281 ac_old_val_w=`echo x $ac_old_val`
2282 ac_new_val_w=`echo x $ac_new_val`
2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286 ac_cache_corrupted=:
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290 eval $ac_var=\$ac_old_val
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2293 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2298 # Pass precious variables to config.status.
2299 if test "$ac_new_set" = set; then
2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 *) ac_arg=$ac_var=$ac_new_val ;;
2304 case " $ac_configure_args " in
2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2310 if $ac_cache_corrupted; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 cat >>confdefs.h <<_ACEOF
2332 #define VCS_REVISION "${VCS_REVISION}"
2336 CFLAGS="${CFLAGS:--Os}"
2337 am__api_version='1.11'
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 for ac_t in install-sh install.sh shtool; do
2342 if test -f "$ac_dir/$ac_t"; then
2344 ac_install_sh="$ac_aux_dir/$ac_t -c"
2349 if test -z "$ac_aux_dir"; then
2350 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if test "${ac_cv_path_install+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2431 rm -rf conftest.one conftest.two conftest.dir
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2459 echo timestamp > conftest.file
2460 # Reject unsafe characters in $srcdir or the absolute working directory
2461 # name. Accept space and tab only in the latter.
2465 *[\\\"\#\$\&\'\`$am_lf]*)
2466 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2469 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2470 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2473 # Do `set' in a subshell so we don't clobber the current shell's
2474 # arguments. Must try -L first in case configure is actually a
2475 # symlink; some systems play weird games with the mod time of symlinks
2476 # (eg FreeBSD returns the mod time of the symlink's containing
2479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2482 set X `ls -t "$srcdir/configure" conftest.file`
2485 if test "$*" != "X $srcdir/configure conftest.file" \
2486 && test "$*" != "X conftest.file $srcdir/configure"; then
2488 # If neither matched, then we have a broken ls. This can happen
2489 # if, for instance, CONFIG_SHELL is bash and it inherits a
2490 # broken ls alias from the environment. This has actually
2491 # happened. Such a system could not be considered "sane".
2492 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2493 alias in your environment" "$LINENO" 5
2496 test "$2" = conftest.file
2502 as_fn_error "newly created file is older than distributed files!
2503 Check your system clock" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2506 $as_echo "yes" >&6; }
2507 test "$program_prefix" != NONE &&
2508 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2509 # Use a double $ so make ignores it.
2510 test "$program_suffix" != NONE &&
2511 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2512 # Double any \ or $.
2513 # By default was `s,x,x', remove it if useless.
2514 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2515 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2517 # expand $ac_aux_dir to an absolute path
2518 am_aux_dir=`cd $ac_aux_dir && pwd`
2520 if test x"${MISSING+set}" != xset; then
2523 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2525 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528 # Use eval to expand $SHELL
2529 if eval "$MISSING --run true"; then
2530 am_missing_run="$MISSING --run "
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2534 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2537 if test x"${install_sh}" != xset; then
2540 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2542 install_sh="\${SHELL} $am_aux_dir/install-sh"
2546 # Installed binaries are usually stripped using `strip' when the user
2547 # run `make install-strip'. However `strip' might not be the right
2548 # tool to use in cross-compilation environments, therefore Automake
2549 # will honor the `STRIP' environment variable to overrule this program.
2550 if test "$cross_compiling" != no; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}strip; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_STRIP+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2559 if test -n "$STRIP"; then
2560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 STRIP=$ac_cv_prog_STRIP
2580 if test -n "$STRIP"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2582 $as_echo "$STRIP" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2590 if test -z "$ac_cv_prog_STRIP"; then
2592 # Extract the first word of "strip", so it can be a program name with args.
2593 set dummy strip; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2597 $as_echo_n "(cached) " >&6
2599 if test -n "$ac_ct_STRIP"; then
2600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2609 ac_cv_prog_ac_ct_STRIP="strip"
2610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2620 if test -n "$ac_ct_STRIP"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2622 $as_echo "$ac_ct_STRIP" >&6; }
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2625 $as_echo "no" >&6; }
2628 if test "x$ac_ct_STRIP" = x; then
2631 case $cross_compiling:$ac_tool_warned in
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2635 ac_tool_warned=yes ;;
2640 STRIP="$ac_cv_prog_STRIP"
2644 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2647 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2648 if test -z "$MKDIR_P"; then
2649 if test "${ac_cv_path_mkdir+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656 test -z "$as_dir" && as_dir=.
2657 for ac_prog in mkdir gmkdir; do
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2660 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2661 'mkdir (GNU coreutils) '* | \
2662 'mkdir (coreutils) '* | \
2663 'mkdir (fileutils) '4.1*)
2664 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2674 if test "${ac_cv_path_mkdir+set}" = set; then
2675 MKDIR_P="$ac_cv_path_mkdir -p"
2677 # As a last resort, use the slow shell script. Don't cache a
2678 # value for MKDIR_P within a source directory, because that will
2679 # break other packages using the cache if that directory is
2680 # removed, or if the value is a relative name.
2681 test -d ./--version && rmdir ./--version
2682 MKDIR_P="$ac_install_sh -d"
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2686 $as_echo "$MKDIR_P" >&6; }
2690 [\\/$]* | ?:[\\/]*) ;;
2691 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694 for ac_prog in gawk mawk nawk awk
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_AWK+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$AWK"; then
2704 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_AWK="$ac_prog"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test -n "$AWK"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2726 $as_echo "$AWK" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2733 test -n "$AWK" && break
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2737 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2739 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2741 $as_echo_n "(cached) " >&6
2743 cat >conftest.make <<\_ACEOF
2746 @echo '@@@%%%=$(MAKE)=@@@%%%'
2748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2751 eval ac_cv_prog_make_${ac_make}_set=yes;;
2753 eval ac_cv_prog_make_${ac_make}_set=no;;
2757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2759 $as_echo "yes" >&6; }
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 SET_MAKE="MAKE=${MAKE-make}"
2767 rm -rf .tst 2>/dev/null
2768 mkdir .tst 2>/dev/null
2769 if test -d .tst; then
2774 rmdir .tst 2>/dev/null
2776 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2777 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2778 # is not polluted with repeated "-I."
2779 am__isrc=' -I$(srcdir)'
2780 # test to see if srcdir already configured
2781 if test -f $srcdir/config.status; then
2782 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2786 # test whether we have cygpath
2787 if test -z "$CYGPATH_W"; then
2788 if (cygpath --version) >/dev/null 2>/dev/null; then
2789 CYGPATH_W='cygpath -w'
2796 # Define the identity of the package.
2797 PACKAGE='shellinabox'
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE "$PACKAGE"
2806 cat >>confdefs.h <<_ACEOF
2807 #define VERSION "$VERSION"
2810 # Some tools Automake needs.
2812 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2826 # We need awk for the "check" target. The system "awk" is bad on
2828 # Always define AMTAR for backward compatibility.
2830 AMTAR=${AMTAR-"${am_missing_run}tar"}
2832 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2838 ac_config_headers="$ac_config_headers config.h"
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2884 if test -z "$ac_cv_prog_CC"; then
2886 # Extract the first word of "gcc", so it can be a program name with args.
2887 set dummy gcc; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2891 $as_echo_n "(cached) " >&6
2893 if test -n "$ac_ct_CC"; then
2894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 test -z "$as_dir" && as_dir=.
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903 ac_cv_prog_ac_ct_CC="gcc"
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2922 if test "x$ac_ct_CC" = x; then
2925 case $cross_compiling:$ac_tool_warned in
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2937 if test -z "$CC"; then
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}cc; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}cc"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2978 if test -z "$CC"; then
2979 # Extract the first word of "cc", so it can be a program name with args.
2980 set dummy cc; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2998 ac_prog_rejected=yes
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 if test $ac_prog_rejected = yes; then
3010 # We found a bogon in the path, so make sure we never use it.
3011 set dummy $ac_cv_prog_CC
3013 if test $# != 0; then
3014 # We chose a different compiler from the bogus one.
3015 # However, it has the same basename, so the bogon will be chosen
3016 # first if we set CC to just the basename; use the full file name.
3018 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3034 if test -z "$CC"; then
3035 if test -n "$ac_tool_prefix"; then
3036 for ac_prog in cl.exe
3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if test "${ac_cv_prog_CC+set}" = set; then :
3043 $as_echo_n "(cached) " >&6
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3075 test -n "$CC" && break
3078 if test -z "$CC"; then
3080 for ac_prog in cl.exe
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083 set dummy $ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$ac_ct_CC"; then
3090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3099 ac_cv_prog_ac_ct_CC="$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3110 if test -n "$ac_ct_CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3112 $as_echo "$ac_ct_CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$ac_ct_CC" && break
3122 if test "x$ac_ct_CC" = x; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3138 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error "no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details." "$LINENO" 5; }
3143 # Provide some information about the compiler.
3144 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 for ac_option in --version -v -V -qversion; do
3148 { { ac_try="$ac_compiler $ac_option >&5"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154 $as_echo "$ac_try_echo"; } >&5
3155 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3157 if test -s conftest.err; then
3159 ... rest of stderr output deleted ...
3160 10q' conftest.err >conftest.er1
3161 cat conftest.er1 >&5
3162 rm -f conftest.er1 conftest.err
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3174 FILE *f = fopen ("conftest.out", "w");
3175 return ferror (f) || fclose (f) != 0;
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3187 $as_echo_n "checking for C compiler default output file name... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194 for ac_file in $ac_files
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3203 if { { ac_try="$ac_link_default"
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3219 for ac_file in $ac_files ''
3221 test -f "$ac_file" || continue
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 # We found the default executable, but exeext='' is most
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3250 $as_echo "$ac_file" >&6; }
3251 if test -z "$ac_file"; then :
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 { as_fn_set_status 77
3258 as_fn_error "C compiler cannot create executables
3259 See \`config.log' for more details." "$LINENO" 5; }; }
3261 ac_exeext=$ac_cv_exeext
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3266 $as_echo_n "checking whether the C compiler works... " >&6; }
3267 # If not cross compiling, check that we can run a simple program.
3268 if test "$cross_compiling" != yes; then
3269 if { ac_try='./$ac_file'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3282 if test "$cross_compiling" = maybe; then
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error "cannot run C compiled programs.
3288 If you meant to cross compile, use \`--host'.
3289 See \`config.log' for more details." "$LINENO" 5; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3296 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3297 ac_clean_files=$ac_clean_files_save
3298 # Check that the compiler produces executables we can run. If not, either
3299 # the compiler is broken, or we cross compile.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3301 $as_echo_n "checking whether we are cross compiling... " >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3303 $as_echo "$cross_compiling" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details." "$LINENO" 5; }
3337 rm -f conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3345 $as_echo_n "checking for suffix of object files... " >&6; }
3346 if test "${ac_cv_objext+set}" = set; then :
3347 $as_echo_n "(cached) " >&6
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 rm -f conftest.o conftest.obj
3361 if { { ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_compile") 2>&5
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
3372 for ac_file in conftest.o conftest.obj conftest.*; do
3373 test -f "$ac_file" || continue;
3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3376 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3381 $as_echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." "$LINENO" 5; }
3389 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3392 $as_echo "$ac_cv_objext" >&6; }
3393 OBJEXT=$ac_cv_objext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3396 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3397 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3398 $as_echo_n "(cached) " >&6
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3414 if ac_fn_c_try_compile "$LINENO"; then :
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then :
3435 $as_echo_n "(cached) " >&6
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3467 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3483 if ac_fn_c_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3494 $as_echo "$ac_cv_prog_cc_g" >&6; }
3495 if test "$ac_test_CFLAGS" = set; then
3496 CFLAGS=$ac_save_CFLAGS
3497 elif test $ac_cv_prog_cc_g = yes; then
3498 if test "$GCC" = yes; then
3504 if test "$GCC" = yes; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3511 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3512 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_cv_prog_cc_c89=no
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3523 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3524 struct buf { int x; };
3525 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3526 static char *e (p, i)
3532 static char *f (char * (*g) (char **, int), char **p, ...)
3537 s = g (p, va_arg (v,int));
3542 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3543 function prototypes and stuff, but not '\xHH' hex character constants.
3544 These don't provoke an error unfortunately, instead are silently treated
3545 as 'x'. The following induces an error, until -std is added to get
3546 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3547 array size at least. It's necessary to write '\x00'==0 to get something
3548 that's true only with -std. */
3549 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3551 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3552 inside strings and character constants. */
3554 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3556 int test (int i, double x);
3557 struct s1 {int (*f) (int a);};
3558 struct s2 {int (*f) (double a);};
3559 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3565 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3570 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3571 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3573 CC="$ac_save_CC $ac_arg"
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_c89=$ac_arg
3577 rm -f core conftest.err conftest.$ac_objext
3578 test "x$ac_cv_prog_cc_c89" != "xno" && break
3580 rm -f conftest.$ac_ext
3585 case "x$ac_cv_prog_cc_c89" in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 $as_echo "none needed" >&6; } ;;
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3591 $as_echo "unsupported" >&6; } ;;
3593 CC="$CC $ac_cv_prog_cc_c89"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3595 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3597 if test "x$ac_cv_prog_cc_c89" != xno; then :
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 DEPDIR="${am__leading_dot}deps"
3608 ac_config_commands="$ac_config_commands depfiles"
3611 am_make=${MAKE-make}
3612 cat > confinc << 'END'
3614 @echo this is the am__doit target
3617 # If we don't find an include directive, just comment out the code.
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3619 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3623 # First try GNU make style include.
3624 echo "include confinc" > confmf
3625 # Ignore all kinds of additional output from `make'.
3626 case `$am_make -s -f confmf 2> /dev/null` in #(
3627 *the\ am__doit\ target*)
3633 # Now try BSD make style include.
3634 if test "$am__include" = "#"; then
3635 echo '.include "confinc"' > confmf
3636 case `$am_make -s -f confmf 2> /dev/null` in #(
3637 *the\ am__doit\ target*)
3638 am__include=.include
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3647 $as_echo "$_am_result" >&6; }
3648 rm -f confinc confmf
3650 # Check whether --enable-dependency-tracking was given.
3651 if test "${enable_dependency_tracking+set}" = set; then :
3652 enableval=$enable_dependency_tracking;
3655 if test "x$enable_dependency_tracking" != xno; then
3656 am_depcomp="$ac_aux_dir/depcomp"
3659 if test "x$enable_dependency_tracking" != xno; then
3669 depcc="$CC" am_compiler_list=
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3672 $as_echo_n "checking dependency style of $depcc... " >&6; }
3673 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677 # We make a subdir and do the tests there. Otherwise we can end up
3678 # making bogus files that we don't know about and never remove. For
3679 # instance it was reported that on HP-UX the gcc test will end up
3680 # making a dummy file named `D' -- because `-MD' means `put the output
3683 # Copy depcomp to subdir because otherwise we won't find it if we're
3684 # using a relative directory.
3685 cp "$am_depcomp" conftest.dir
3687 # We will build objects and dependencies in a subdirectory because
3688 # it helps to detect inapplicable dependency modes. For instance
3689 # both Tru64's cc and ICC support -MD to output dependencies as a
3690 # side effect of compilation, but ICC will put the dependencies in
3691 # the current directory while Tru64 will put them in the object
3695 am_cv_CC_dependencies_compiler_type=none
3696 if test "$am_compiler_list" = ""; then
3697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3700 case " $depcc " in #(
3701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3721 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3722 # mode. It turns out that the SunPro C++ compiler does not properly
3723 # handle `-M -o', and we need to detect this. Also, some Intel
3724 # versions had trouble with output in subdirs
3725 am__obj=sub/conftest.${OBJEXT-o}
3726 am__minus_obj="-o $am__obj"
3729 # This depmode causes a compiler race in universal mode.
3730 test "$am__universal" = false || continue
3733 # after this tag, mechanisms are not by side-effect, so they'll
3734 # only be used when explicitly requested
3735 if test "x$enable_dependency_tracking" = xyes; then
3741 msvisualcpp | msvcmsys)
3742 # This compiler won't grok `-c -o', but also, the minuso test has
3743 # not run yet. These depmodes are late enough in the game, and
3744 # so weak that their functioning should not be impacted.
3745 am__obj=conftest.${OBJEXT-o}
3750 if depmode=$depmode \
3751 source=sub/conftest.c object=$am__obj \
3752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3754 >/dev/null 2>conftest.err &&
3755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3759 # icc doesn't choke on unknown options, it will just issue warnings
3760 # or remarks (even with -Werror). So we grep stderr for any message
3761 # that says an option was ignored or not supported.
3762 # When given -MP, icc 7.0 and 7.1 complain thusly:
3763 # icc: Command line warning: ignoring option '-M'; no argument required
3764 # The diagnosis changed in icc 8.0:
3765 # icc: Command line remark: option '-MP' not supported
3766 if (grep 'ignoring option' conftest.err ||
3767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3768 am_cv_CC_dependencies_compiler_type=$depmode
3777 am_cv_CC_dependencies_compiler_type=none
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3786 test "x$enable_dependency_tracking" != xno \
3787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3789 am__fastdepCC_FALSE='#'
3791 am__fastdepCC_TRUE='#'
3792 am__fastdepCC_FALSE=
3797 ac_c_werror_flag=yes
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3802 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3807 macro_version='2.2.6'
3808 macro_revision='1.3012'
3822 ltmain="$ac_aux_dir/ltmain.sh"
3824 # Make sure we can run config.sub.
3825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3826 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3829 $as_echo_n "checking build system type... " >&6; }
3830 if test "${ac_cv_build+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3833 ac_build_alias=$build_alias
3834 test "x$ac_build_alias" = x &&
3835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3836 test "x$ac_build_alias" = x &&
3837 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3839 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3843 $as_echo "$ac_cv_build" >&6; }
3844 case $ac_cv_build in
3846 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3849 ac_save_IFS=$IFS; IFS='-'
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3863 $as_echo_n "checking host system type... " >&6; }
3864 if test "${ac_cv_host+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3867 if test "x$host_alias" = x; then
3868 ac_cv_host=$ac_cv_build
3870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3876 $as_echo "$ac_cv_host" >&6; }
3879 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3882 ac_save_IFS=$IFS; IFS='-'
3888 # Remember, the first character of IFS is used to create $*,
3889 # except with old shells:
3892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3896 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3897 if test "${ac_cv_path_SED+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3900 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3901 for ac_i in 1 2 3 4 5 6 7; do
3902 ac_script="$ac_script$as_nl$ac_script"
3904 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3905 { ac_script=; unset ac_script;}
3906 if test -z "$SED"; then
3907 ac_path_SED_found=false
3908 # Loop through the user's path and test for each of PROGNAME-LIST
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in sed gsed; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3917 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3918 # Check for GNU ac_path_SED and select it if it is found.
3919 # Check for GNU $ac_path_SED
3920 case `"$ac_path_SED" --version 2>&1` in
3922 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3925 $as_echo_n 0123456789 >"conftest.in"
3928 cat "conftest.in" "conftest.in" >"conftest.tmp"
3929 mv "conftest.tmp" "conftest.in"
3930 cp "conftest.in" "conftest.nl"
3931 $as_echo '' >> "conftest.nl"
3932 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3933 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3934 as_fn_arith $ac_count + 1 && ac_count=$as_val
3935 if test $ac_count -gt ${ac_path_SED_max-0}; then
3936 # Best one so far, save it but keep looking for a better one
3937 ac_cv_path_SED="$ac_path_SED"
3938 ac_path_SED_max=$ac_count
3940 # 10*(2^10) chars as input seems more than enough
3941 test $ac_count -gt 10 && break
3943 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 $ac_path_SED_found && break 3
3951 if test -z "$ac_cv_path_SED"; then
3952 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3960 $as_echo "$ac_cv_path_SED" >&6; }
3961 SED="$ac_cv_path_SED"
3964 test -z "$SED" && SED=sed
3965 Xsed="$SED -e 1s/^X//"
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 if test -z "$GREP"; then
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4001 $as_echo_n 0123456789 >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 as_fn_arith $ac_count + 1 && ac_count=$as_val
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 $ac_path_GREP_found && break 3
4027 if test -z "$ac_cv_path_GREP"; then
4028 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4031 ac_cv_path_GREP=$GREP
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4036 $as_echo "$ac_cv_path_GREP" >&6; }
4037 GREP="$ac_cv_path_GREP"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4041 $as_echo_n "checking for egrep... " >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4048 if test -z "$EGREP"; then
4049 ac_path_EGREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in egrep; do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060 # Check for GNU ac_path_EGREP and select it if it is found.
4061 # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 $as_echo_n 0123456789 >"conftest.in"
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 $as_echo 'EGREP' >> "conftest.nl"
4074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 as_fn_arith $ac_count + 1 && ac_count=$as_val
4077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_EGREP="$ac_path_EGREP"
4080 ac_path_EGREP_max=$ac_count
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 $ac_path_EGREP_found && break 3
4093 if test -z "$ac_cv_path_EGREP"; then
4094 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4097 ac_cv_path_EGREP=$EGREP
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4108 $as_echo_n "checking for fgrep... " >&6; }
4109 if test "${ac_cv_path_FGREP+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4112 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4113 then ac_cv_path_FGREP="$GREP -F"
4115 if test -z "$FGREP"; then
4116 ac_path_FGREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in fgrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4127 # Check for GNU ac_path_FGREP and select it if it is found.
4128 # Check for GNU $ac_path_FGREP
4129 case `"$ac_path_FGREP" --version 2>&1` in
4131 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4134 $as_echo_n 0123456789 >"conftest.in"
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'FGREP' >> "conftest.nl"
4141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_FGREP="$ac_path_FGREP"
4147 ac_path_FGREP_max=$ac_count
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 $ac_path_FGREP_found && break 3
4160 if test -z "$ac_cv_path_FGREP"; then
4161 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164 ac_cv_path_FGREP=$FGREP
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4170 $as_echo "$ac_cv_path_FGREP" >&6; }
4171 FGREP="$ac_cv_path_FGREP"
4174 test -z "$GREP" && GREP=grep
4194 # Check whether --with-gnu-ld was given.
4195 if test "${with_gnu_ld+set}" = set; then :
4196 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4202 if test "$GCC" = yes; then
4203 # Check if gcc -print-prog-name=ld gives a path.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4205 $as_echo_n "checking for ld used by $CC... " >&6; }
4208 # gcc leaves a trailing carriage return which upsets mingw
4209 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4211 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4214 # Accept absolute paths.
4216 re_direlt='/[^/][^/]*/\.\./'
4217 # Canonicalize the pathname of ld
4218 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4219 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4220 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4222 test -z "$LD" && LD="$ac_prog"
4225 # If it fails, then pretend we aren't using GCC.
4229 # If it is relative, then search for the first ld in PATH.
4233 elif test "$with_gnu_ld" = yes; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4235 $as_echo_n "checking for GNU ld... " >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4238 $as_echo_n "checking for non-GNU ld... " >&6; }
4240 if test "${lt_cv_path_LD+set}" = set; then :
4241 $as_echo_n "(cached) " >&6
4243 if test -z "$LD"; then
4244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4245 for ac_dir in $PATH; do
4247 test -z "$ac_dir" && ac_dir=.
4248 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4249 lt_cv_path_LD="$ac_dir/$ac_prog"
4250 # Check to see if the program is GNU ld. I'd rather use --version,
4251 # but apparently some variants of GNU ld only accept -v.
4252 # Break only if it was the GNU/non-GNU ld that we prefer.
4253 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4254 *GNU* | *'with BFD'*)
4255 test "$with_gnu_ld" != no && break
4258 test "$with_gnu_ld" != yes && break
4265 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4270 if test -n "$LD"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4272 $as_echo "$LD" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4277 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4279 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4280 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
4283 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4284 case `$LD -v 2>&1 </dev/null` in
4285 *GNU* | *'with BFD'*)
4286 lt_cv_prog_gnu_ld=yes
4289 lt_cv_prog_gnu_ld=no
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4294 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4295 with_gnu_ld=$lt_cv_prog_gnu_ld
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4306 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4307 if test "${lt_cv_path_NM+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -n "$NM"; then
4311 # Let the user override the test.
4314 lt_nm_to_check="${ac_tool_prefix}nm"
4315 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4316 lt_nm_to_check="$lt_nm_to_check nm"
4318 for lt_tmp_nm in $lt_nm_to_check; do
4319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4320 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4322 test -z "$ac_dir" && ac_dir=.
4323 tmp_nm="$ac_dir/$lt_tmp_nm"
4324 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4325 # Check to see if the nm accepts a BSD-compat flag.
4326 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4327 # nm: unknown option "B" ignored
4328 # Tru64's nm complains that /dev/null is an invalid object file
4329 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4330 */dev/null* | *'Invalid file or object type'*)
4331 lt_cv_path_NM="$tmp_nm -B"
4335 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4337 lt_cv_path_NM="$tmp_nm -p"
4341 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4342 continue # so that we can try to find one that supports BSD flags
4351 : ${lt_cv_path_NM=no}
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4355 $as_echo "$lt_cv_path_NM" >&6; }
4356 if test "$lt_cv_path_NM" != "no"; then
4359 # Didn't find any BSD compatible name lister, look for dumpbin.
4360 if test -n "$ac_tool_prefix"; then
4361 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4370 if test -n "$DUMPBIN"; then
4371 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 DUMPBIN=$ac_cv_prog_DUMPBIN
4391 if test -n "$DUMPBIN"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4393 $as_echo "$DUMPBIN" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4400 test -n "$DUMPBIN" && break
4403 if test -z "$DUMPBIN"; then
4404 ac_ct_DUMPBIN=$DUMPBIN
4405 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4407 # Extract the first word of "$ac_prog", so it can be a program name with args.
4408 set dummy $ac_prog; ac_word=$2
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 $as_echo_n "checking for $ac_word... " >&6; }
4411 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 if test -n "$ac_ct_DUMPBIN"; then
4415 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4435 if test -n "$ac_ct_DUMPBIN"; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4437 $as_echo "$ac_ct_DUMPBIN" >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 $as_echo "no" >&6; }
4444 test -n "$ac_ct_DUMPBIN" && break
4447 if test "x$ac_ct_DUMPBIN" = x; then
4450 case $cross_compiling:$ac_tool_warned in
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4454 ac_tool_warned=yes ;;
4456 DUMPBIN=$ac_ct_DUMPBIN
4461 if test "$DUMPBIN" != ":"; then
4465 test -z "$NM" && NM=nm
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4473 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4474 if test "${lt_cv_nm_interface+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
4477 lt_cv_nm_interface="BSD nm"
4478 echo "int some_variable = 0;" > conftest.$ac_ext
4479 (eval echo "\"\$as_me:4479: $ac_compile\"" >&5)
4480 (eval "$ac_compile" 2>conftest.err)
4481 cat conftest.err >&5
4482 (eval echo "\"\$as_me:4482: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4483 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4484 cat conftest.err >&5
4485 (eval echo "\"\$as_me:4485: output\"" >&5)
4486 cat conftest.out >&5
4487 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4488 lt_cv_nm_interface="MS dumpbin"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4493 $as_echo "$lt_cv_nm_interface" >&6; }
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4496 $as_echo_n "checking whether ln -s works... " >&6; }
4498 if test "$LN_S" = "ln -s"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4503 $as_echo "no, using $LN_S" >&6; }
4506 # find the maximum length of command line arguments
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4508 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4509 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4517 # On DJGPP, this test can blow up pretty badly due to problems in libc
4518 # (any single argument exceeding 2000 bytes causes a buffer overrun
4519 # during glob expansion). Even if it were fixed, the result of this
4520 # check would be larger than it should be.
4521 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4525 # Under GNU Hurd, this test is not required because there is
4526 # no limit to the length of command line arguments.
4527 # Libtool will interpret -1 as no limit whatsoever
4528 lt_cv_sys_max_cmd_len=-1;
4531 cygwin* | mingw* | cegcc*)
4532 # On Win9x/ME, this test blows up -- it succeeds, but takes
4533 # about 5 minutes as the teststring grows exponentially.
4534 # Worse, since 9x/ME are not pre-emptively multitasking,
4535 # you end up with a "frozen" computer, even though with patience
4536 # the test eventually succeeds (with a max line length of 256k).
4537 # Instead, let's just punt: use the minimum linelength reported by
4538 # all of the supported platforms: 8192 (on NT/2K/XP).
4539 lt_cv_sys_max_cmd_len=8192;
4543 # On AmigaOS with pdksh, this test takes hours, literally.
4544 # So we just punt and use a minimum line length of 8192.
4545 lt_cv_sys_max_cmd_len=8192;
4548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549 # This has been around since 386BSD, at least. Likely further.
4550 if test -x /sbin/sysctl; then
4551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552 elif test -x /usr/sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4557 # And add a safety zone
4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564 lt_cv_sys_max_cmd_len=196608
4568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570 # nice to cause kernel panics so lets avoid the loop below.
4571 # First set a reasonable default.
4572 lt_cv_sys_max_cmd_len=16384
4574 if test -x /sbin/sysconfig; then
4575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4581 lt_cv_sys_max_cmd_len=102400
4583 sysv5* | sco5v6* | sysv4.2uw2*)
4584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585 if test -n "$kargmax"; then
4586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4588 lt_cv_sys_max_cmd_len=32768
4592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593 if test -n "$lt_cv_sys_max_cmd_len"; then
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4597 # Make teststring a little bigger before we do anything with it.
4598 # a 1K string should be a reasonable start.
4599 for i in 1 2 3 4 5 6 7 8 ; do
4600 teststring=$teststring$teststring
4602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603 # If test is not a shell built-in, we'll probably end up computing a
4604 # maximum length that is only half of the actual maximum length, but
4606 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4607 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4608 test $i != 17 # 1/2 MB should be enough
4611 teststring=$teststring$teststring
4613 # Only check the string length outside the loop.
4614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4616 # Add a significant safety factor because C++ compilers can tack on
4617 # massive amounts of additional arguments before passing them to the
4618 # linker. It appears as though 1/2 is a usable value.
4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4626 if test -n $lt_cv_sys_max_cmd_len ; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631 $as_echo "none" >&6; }
4633 max_cmd_len=$lt_cv_sys_max_cmd_len
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646 # Try some XSI features
4649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4651 && eval 'test $(( 1 + 1 )) -eq 2 \
4652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655 $as_echo "$xsi_shell" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4663 && lt_shell_append=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665 $as_echo "$lt_shell_append" >&6; }
4668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4678 # test EBCDIC or ASCII
4679 case `echo X|tr X '\101'` in
4680 A) # ASCII based system
4681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682 lt_SP2NL='tr \040 \012'
4683 lt_NL2SP='tr \015\012 \040\040'
4685 *) # EBCDIC based system
4686 lt_SP2NL='tr \100 \n'
4687 lt_NL2SP='tr \r\n \100\100'
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4700 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4701 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 lt_cv_ld_reload_flag='-r'
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4707 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4708 reload_flag=$lt_cv_ld_reload_flag
4709 case $reload_flag in
4711 *) reload_flag=" $reload_flag" ;;
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4716 if test "$GCC" = yes; then
4717 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4719 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4732 if test -n "$ac_tool_prefix"; then
4733 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4734 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$OBJDUMP"; then
4741 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 OBJDUMP=$ac_cv_prog_OBJDUMP
4761 if test -n "$OBJDUMP"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4763 $as_echo "$OBJDUMP" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4771 if test -z "$ac_cv_prog_OBJDUMP"; then
4772 ac_ct_OBJDUMP=$OBJDUMP
4773 # Extract the first word of "objdump", so it can be a program name with args.
4774 set dummy objdump; ac_word=$2
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4776 $as_echo_n "checking for $ac_word... " >&6; }
4777 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4780 if test -n "$ac_ct_OBJDUMP"; then
4781 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4801 if test -n "$ac_ct_OBJDUMP"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4803 $as_echo "$ac_ct_OBJDUMP" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4809 if test "x$ac_ct_OBJDUMP" = x; then
4812 case $cross_compiling:$ac_tool_warned in
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4816 ac_tool_warned=yes ;;
4818 OBJDUMP=$ac_ct_OBJDUMP
4821 OBJDUMP="$ac_cv_prog_OBJDUMP"
4824 test -z "$OBJDUMP" && OBJDUMP=objdump
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4835 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4836 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4839 lt_cv_file_magic_cmd='$MAGIC_CMD'
4840 lt_cv_file_magic_test_file=
4841 lt_cv_deplibs_check_method='unknown'
4842 # Need to set the preceding variable on all platforms that support
4843 # interlibrary dependencies.
4844 # 'none' -- dependencies not supported.
4845 # `unknown' -- same as none, but documents that we really don't know.
4846 # 'pass_all' -- all dependencies passed with no checks.
4847 # 'test_compile' -- check by making test program.
4848 # 'file_magic [[regex]]' -- check by looking for files in library path
4849 # which responds to the $file_magic_cmd with a given extended regex.
4850 # If you have `file' or equivalent on your system and you're not sure
4851 # whether `pass_all' will *always* work, you probably want this one.
4855 lt_cv_deplibs_check_method=pass_all
4859 lt_cv_deplibs_check_method=pass_all
4863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4864 lt_cv_file_magic_cmd='/usr/bin/file -L'
4865 lt_cv_file_magic_test_file=/shlib/libc.so
4869 # func_win32_libid is a shell function defined in ltmain.sh
4870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4871 lt_cv_file_magic_cmd='func_win32_libid'
4875 # Base MSYS/MinGW do not provide the 'file' command needed by
4876 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4877 # unless we find 'file', for example because we are cross-compiling.
4878 if ( file / ) >/dev/null 2>&1; then
4879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4880 lt_cv_file_magic_cmd='func_win32_libid'
4882 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4883 lt_cv_file_magic_cmd='$OBJDUMP -f'
4888 # use the weaker test based on 'objdump'. See mingw*.
4889 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4890 lt_cv_file_magic_cmd='$OBJDUMP -f'
4893 darwin* | rhapsody*)
4894 lt_cv_deplibs_check_method=pass_all
4897 freebsd* | dragonfly*)
4898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4901 # Not sure whether the presence of OpenBSD here was a mistake.
4902 # Let's accept both of them until this is cleared up.
4903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4904 lt_cv_file_magic_cmd=/usr/bin/file
4905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4909 lt_cv_deplibs_check_method=pass_all
4914 lt_cv_deplibs_check_method=pass_all
4917 hpux10.20* | hpux11*)
4918 lt_cv_file_magic_cmd=/usr/bin/file
4921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4930 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4940 irix5* | irix6* | nonstopux*)
4942 *-32|*"-32 ") libmagic=32-bit;;
4943 *-n32|*"-n32 ") libmagic=N32;;
4944 *-64|*"-64 ") libmagic=64-bit;;
4945 *) libmagic=never-match;;
4947 lt_cv_deplibs_check_method=pass_all
4950 # This must be Linux ELF.
4951 linux* | k*bsd*-gnu)
4952 lt_cv_deplibs_check_method=pass_all
4955 netbsd* | netbsdelf*-gnu)
4956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4965 lt_cv_file_magic_cmd=/usr/bin/file
4966 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4970 lt_cv_deplibs_check_method=pass_all
4974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4981 osf3* | osf4* | osf5*)
4982 lt_cv_deplibs_check_method=pass_all
4986 lt_cv_deplibs_check_method=pass_all
4990 lt_cv_deplibs_check_method=pass_all
4993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4994 lt_cv_deplibs_check_method=pass_all
4998 case $host_vendor in
5000 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]'
5001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5004 lt_cv_deplibs_check_method=pass_all
5007 lt_cv_file_magic_cmd='/bin/file'
5008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5011 lt_cv_file_magic_cmd='/bin/file'
5012 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5013 lt_cv_file_magic_test_file=/lib/libc.so
5016 lt_cv_deplibs_check_method=pass_all
5019 lt_cv_deplibs_check_method=pass_all
5025 lt_cv_deplibs_check_method=pass_all
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5032 file_magic_cmd=$lt_cv_file_magic_cmd
5033 deplibs_check_method=$lt_cv_deplibs_check_method
5034 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}ar; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if test "${ac_cv_prog_AR+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5055 if test -n "$AR"; then
5056 ac_cv_prog_AR="$AR" # Let the user override the test.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_AR="${ac_tool_prefix}ar"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 if test -n "$AR"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5078 $as_echo "$AR" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5086 if test -z "$ac_cv_prog_AR"; then
5088 # Extract the first word of "ar", so it can be a program name with args.
5089 set dummy ar; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$ac_ct_AR"; then
5096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_ac_ct_AR="ar"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5116 if test -n "$ac_ct_AR"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5118 $as_echo "$ac_ct_AR" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5124 if test "x$ac_ct_AR" = x; then
5127 case $cross_compiling:$ac_tool_warned in
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned=yes ;;
5139 test -z "$AR" && AR=ar
5140 test -z "$AR_FLAGS" && AR_FLAGS=cru
5152 if test -n "$ac_tool_prefix"; then
5153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5154 set dummy ${ac_tool_prefix}strip; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_prog_STRIP+set}" = set; then :
5158 $as_echo_n "(cached) " >&6
5160 if test -n "$STRIP"; then
5161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 STRIP=$ac_cv_prog_STRIP
5181 if test -n "$STRIP"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5183 $as_echo "$STRIP" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5191 if test -z "$ac_cv_prog_STRIP"; then
5193 # Extract the first word of "strip", so it can be a program name with args.
5194 set dummy strip; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5200 if test -n "$ac_ct_STRIP"; then
5201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_prog_ac_ct_STRIP="strip"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5221 if test -n "$ac_ct_STRIP"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5223 $as_echo "$ac_ct_STRIP" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_ct_STRIP" = x; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5241 STRIP="$ac_cv_prog_STRIP"
5244 test -z "$STRIP" && STRIP=:
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5253 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5259 if test -n "$RANLIB"; then
5260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 RANLIB=$ac_cv_prog_RANLIB
5280 if test -n "$RANLIB"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5282 $as_echo "$RANLIB" >&6; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5290 if test -z "$ac_cv_prog_RANLIB"; then
5291 ac_ct_RANLIB=$RANLIB
5292 # Extract the first word of "ranlib", so it can be a program name with args.
5293 set dummy ranlib; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5299 if test -n "$ac_ct_RANLIB"; then
5300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309 ac_cv_prog_ac_ct_RANLIB="ranlib"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5320 if test -n "$ac_ct_RANLIB"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5322 $as_echo "$ac_ct_RANLIB" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5328 if test "x$ac_ct_RANLIB" = x; then
5331 case $cross_compiling:$ac_tool_warned in
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335 ac_tool_warned=yes ;;
5337 RANLIB=$ac_ct_RANLIB
5340 RANLIB="$ac_cv_prog_RANLIB"
5343 test -z "$RANLIB" && RANLIB=:
5350 # Determine commands to create old-style static archives.
5351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5352 old_postinstall_cmds='chmod 644 $oldlib'
5353 old_postuninstall_cmds=
5355 if test -n "$RANLIB"; then
5358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5400 # If no C compiler was specified, use CC.
5403 # If no C compiler flags were specified, use CFLAGS.
5404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5406 # Allow CC to be a program name with arguments.
5410 # Check for command to grab the raw symbol name followed by C symbol from nm.
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5412 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5413 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5417 # These are sane defaults that work on at least a few old systems.
5418 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5420 # Character class describing NM global symbol codes.
5421 symcode='[BCDEGRST]'
5423 # Regexp to match symbols that can be accessed directly from C.
5424 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5426 # Define system-specific variables.
5431 cygwin* | mingw* | pw32* | cegcc*)
5432 symcode='[ABCDGISTW]'
5435 if test "$host_cpu" = ia64; then
5436 symcode='[ABCDEGRST]'
5440 symcode='[BCDEGRST]'
5443 symcode='[BCDEGQRST]'
5454 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5462 # If we're using GNU nm, then use its standard symbol codes.
5463 case `$NM -V 2>&1` in
5464 *GNU* | *'with BFD'*)
5465 symcode='[ABCDGIRSTW]' ;;
5468 # Transform an extracted symbol line into a proper C declaration.
5469 # Some systems (esp. on ia64) link data and code symbols differently,
5470 # so use this general approach.
5471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5473 # Transform an extracted symbol line into symbol name and symbol address
5474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5475 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'"
5477 # Handle CRLF in mingw tool chain
5481 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5485 # Try without a prefix underscore, then with it.
5486 for ac_symprfx in "" "_"; do
5488 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5489 symxfrm="\\1 $ac_symprfx\\2 \\2"
5491 # Write the raw and C identifiers.
5492 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5493 # Fake it for dumpbin and say T for any non-static function
5494 # and D for any global variable.
5495 # Also find C++ and __fastcall symbols from MSVC++,
5496 # which start with @ or ?.
5497 lt_cv_sys_global_symbol_pipe="$AWK '"\
5498 " {last_section=section; section=\$ 3};"\
5499 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5500 " \$ 0!~/External *\|/{next};"\
5501 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5502 " {if(hide[section]) next};"\
5503 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5504 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5505 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5506 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5507 " ' prfx=^$ac_symprfx"
5509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5512 # Check to see that the pipe works correctly.
5516 cat > conftest.$ac_ext <<_LT_EOF
5521 void nm_test_func(void);
5522 void nm_test_func(void){}
5526 int main(){nm_test_var='a';nm_test_func();return(0);}
5529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5530 (eval $ac_compile) 2>&5
5532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5533 test $ac_status = 0; }; then
5534 # Now try to grab the symbols.
5536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5537 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540 test $ac_status = 0; } && test -s "$nlist"; then
5541 # Try sorting and uniquifying the output.
5542 if sort "$nlist" | uniq > "$nlist"T; then
5543 mv -f "$nlist"T "$nlist"
5548 # Make sure that we snagged all the symbols we need.
5549 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5550 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5551 cat <<_LT_EOF > conftest.$ac_ext
5557 # Now generate the symbol file.
5558 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5560 cat <<_LT_EOF >> conftest.$ac_ext
5562 /* The mapping between symbol names and symbols. */
5567 lt__PROGRAM__LTX_preloaded_symbols[] =
5569 { "@PROGRAM@", (void *) 0 },
5571 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5572 cat <<\_LT_EOF >> conftest.$ac_ext
5576 /* This works around a problem in FreeBSD linker */
5577 #ifdef FREEBSD_WORKAROUND
5578 static const void *lt_preloaded_setup() {
5579 return lt__PROGRAM__LTX_preloaded_symbols;
5587 # Now try linking the two files.
5588 mv conftest.$ac_objext conftstm.$ac_objext
5589 lt_save_LIBS="$LIBS"
5590 lt_save_CFLAGS="$CFLAGS"
5591 LIBS="conftstm.$ac_objext"
5592 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5594 (eval $ac_link) 2>&5
5596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5597 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5600 LIBS="$lt_save_LIBS"
5601 CFLAGS="$lt_save_CFLAGS"
5603 echo "cannot find nm_test_func in $nlist" >&5
5606 echo "cannot find nm_test_var in $nlist" >&5
5609 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5612 echo "$progname: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5615 rm -rf conftest* conftst*
5617 # Do not use the global_symbol_pipe unless it works.
5618 if test "$pipe_works" = yes; then
5621 lt_cv_sys_global_symbol_pipe=
5627 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5628 lt_cv_sys_global_symbol_to_cdecl=
5630 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5632 $as_echo "failed" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5635 $as_echo "ok" >&6; }
5660 # Check whether --enable-libtool-lock was given.
5661 if test "${enable_libtool_lock+set}" = set; then :
5662 enableval=$enable_libtool_lock;
5665 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5667 # Some flags need to be propagated to the compiler or linker for good
5671 # Find out which ABI we are using.
5672 echo 'int i;' > conftest.$ac_ext
5673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5674 (eval $ac_compile) 2>&5
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; }; then
5678 case `/usr/bin/file conftest.$ac_objext` in
5690 # Find out which ABI we are using.
5691 echo '#line 5691 "configure"' > conftest.$ac_ext
5692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5693 (eval $ac_compile) 2>&5
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; }; then
5697 if test "$lt_cv_prog_gnu_ld" = yes; then
5698 case `/usr/bin/file conftest.$ac_objext` in
5700 LD="${LD-ld} -melf32bsmip"
5703 LD="${LD-ld} -melf32bmipn32"
5706 LD="${LD-ld} -melf64bmip"
5710 case `/usr/bin/file conftest.$ac_objext` in
5726 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5727 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5728 # Find out which ABI we are using.
5729 echo 'int i;' > conftest.$ac_ext
5730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5731 (eval $ac_compile) 2>&5
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; }; then
5735 case `/usr/bin/file conftest.o` in
5738 x86_64-*kfreebsd*-gnu)
5739 LD="${LD-ld} -m elf_i386_fbsd"
5742 LD="${LD-ld} -m elf_i386"
5744 ppc64-*linux*|powerpc64-*linux*)
5745 LD="${LD-ld} -m elf32ppclinux"
5748 LD="${LD-ld} -m elf_s390"
5751 LD="${LD-ld} -m elf32_sparc"
5757 x86_64-*kfreebsd*-gnu)
5758 LD="${LD-ld} -m elf_x86_64_fbsd"
5761 LD="${LD-ld} -m elf_x86_64"
5763 ppc*-*linux*|powerpc*-*linux*)
5764 LD="${LD-ld} -m elf64ppc"
5766 s390*-*linux*|s390*-*tpf*)
5767 LD="${LD-ld} -m elf64_s390"
5770 LD="${LD-ld} -m elf64_sparc"
5780 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5781 SAVE_CFLAGS="$CFLAGS"
5782 CFLAGS="$CFLAGS -belf"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5784 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5785 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5786 $as_echo_n "(cached) " >&6
5789 ac_cpp='$CPP $CPPFLAGS'
5790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795 /* end confdefs.h. */
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 lt_cv_cc_needs_belf=yes
5808 lt_cv_cc_needs_belf=no
5810 rm -f core conftest.err conftest.$ac_objext \
5811 conftest$ac_exeext conftest.$ac_ext
5813 ac_cpp='$CPP $CPPFLAGS'
5814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5820 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5821 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5822 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5823 CFLAGS="$SAVE_CFLAGS"
5827 # Find out which ABI we are using.
5828 echo 'int i;' > conftest.$ac_ext
5829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5830 (eval $ac_compile) 2>&5
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }; then
5834 case `/usr/bin/file conftest.o` in
5836 case $lt_cv_prog_gnu_ld in
5837 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5839 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5851 need_locks="$enable_libtool_lock"
5855 rhapsody* | darwin*)
5856 if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5858 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 if test -n "$DSYMUTIL"; then
5865 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5885 if test -n "$DSYMUTIL"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5887 $as_echo "$DSYMUTIL" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5895 if test -z "$ac_cv_prog_DSYMUTIL"; then
5896 ac_ct_DSYMUTIL=$DSYMUTIL
5897 # Extract the first word of "dsymutil", so it can be a program name with args.
5898 set dummy dsymutil; ac_word=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$ac_ct_DSYMUTIL"; then
5905 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5914 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5925 if test -n "$ac_ct_DSYMUTIL"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5927 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5933 if test "x$ac_ct_DSYMUTIL" = x; then
5936 case $cross_compiling:$ac_tool_warned in
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5942 DSYMUTIL=$ac_ct_DSYMUTIL
5945 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5956 if test -n "$NMEDIT"; then
5957 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 NMEDIT=$ac_cv_prog_NMEDIT
5977 if test -n "$NMEDIT"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5979 $as_echo "$NMEDIT" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5987 if test -z "$ac_cv_prog_NMEDIT"; then
5988 ac_ct_NMEDIT=$NMEDIT
5989 # Extract the first word of "nmedit", so it can be a program name with args.
5990 set dummy nmedit; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if test -n "$ac_ct_NMEDIT"; then
5997 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6017 if test -n "$ac_ct_NMEDIT"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6019 $as_echo "$ac_ct_NMEDIT" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6025 if test "x$ac_ct_NMEDIT" = x; then
6028 case $cross_compiling:$ac_tool_warned in
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6032 ac_tool_warned=yes ;;
6034 NMEDIT=$ac_ct_NMEDIT
6037 NMEDIT="$ac_cv_prog_NMEDIT"
6040 if test -n "$ac_tool_prefix"; then
6041 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6042 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if test "${ac_cv_prog_LIPO+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -n "$LIPO"; then
6049 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 LIPO=$ac_cv_prog_LIPO
6069 if test -n "$LIPO"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6071 $as_echo "$LIPO" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6079 if test -z "$ac_cv_prog_LIPO"; then
6081 # Extract the first word of "lipo", so it can be a program name with args.
6082 set dummy lipo; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6088 if test -n "$ac_ct_LIPO"; then
6089 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_ac_ct_LIPO="lipo"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6109 if test -n "$ac_ct_LIPO"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6111 $as_echo "$ac_ct_LIPO" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6117 if test "x$ac_ct_LIPO" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6129 LIPO="$ac_cv_prog_LIPO"
6132 if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6134 set dummy ${ac_tool_prefix}otool; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$OTOOL"; then
6141 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 OTOOL=$ac_cv_prog_OTOOL
6161 if test -n "$OTOOL"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6163 $as_echo "$OTOOL" >&6; }
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6171 if test -z "$ac_cv_prog_OTOOL"; then
6173 # Extract the first word of "otool", so it can be a program name with args.
6174 set dummy otool; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$ac_ct_OTOOL"; then
6181 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_ac_ct_OTOOL="otool"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6201 if test -n "$ac_ct_OTOOL"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6203 $as_echo "$ac_ct_OTOOL" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6209 if test "x$ac_ct_OTOOL" = x; then
6212 case $cross_compiling:$ac_tool_warned in
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216 ac_tool_warned=yes ;;
6221 OTOOL="$ac_cv_prog_OTOOL"
6224 if test -n "$ac_tool_prefix"; then
6225 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6226 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6232 if test -n "$OTOOL64"; then
6233 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 OTOOL64=$ac_cv_prog_OTOOL64
6253 if test -n "$OTOOL64"; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6255 $as_echo "$OTOOL64" >&6; }
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6263 if test -z "$ac_cv_prog_OTOOL64"; then
6264 ac_ct_OTOOL64=$OTOOL64
6265 # Extract the first word of "otool64", so it can be a program name with args.
6266 set dummy otool64; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$ac_ct_OTOOL64"; then
6273 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_ac_ct_OTOOL64="otool64"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6293 if test -n "$ac_ct_OTOOL64"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6295 $as_echo "$ac_ct_OTOOL64" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6301 if test "x$ac_ct_OTOOL64" = x; then
6304 case $cross_compiling:$ac_tool_warned in
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6308 ac_tool_warned=yes ;;
6310 OTOOL64=$ac_ct_OTOOL64
6313 OTOOL64="$ac_cv_prog_OTOOL64"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6343 $as_echo_n "checking for -single_module linker flag... " >&6; }
6344 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6345 $as_echo_n "(cached) " >&6
6347 lt_cv_apple_cc_single_mod=no
6348 if test -z "${LT_MULTI_MODULE}"; then
6349 # By default we will add the -single_module flag. You can override
6350 # by either setting the environment variable LT_MULTI_MODULE
6351 # non-empty at configure time, or by adding -multi_module to the
6353 rm -rf libconftest.dylib*
6354 echo "int foo(void){return 1;}" > conftest.c
6355 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6356 -dynamiclib -Wl,-single_module conftest.c" >&5
6357 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6358 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6360 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6361 lt_cv_apple_cc_single_mod=yes
6363 cat conftest.err >&5
6365 rm -rf libconftest.dylib*
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6370 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6372 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6373 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6376 lt_cv_ld_exported_symbols_list=no
6377 save_LDFLAGS=$LDFLAGS
6378 echo "_main" > conftest.sym
6379 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_c_try_link "$LINENO"; then :
6392 lt_cv_ld_exported_symbols_list=yes
6394 lt_cv_ld_exported_symbols_list=no
6396 rm -f core conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 LDFLAGS="$save_LDFLAGS"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6402 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6404 rhapsody* | darwin1.[012])
6405 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6407 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6408 darwin*) # darwin 5.x on
6409 # if running on 10.5 or later, the deployment target defaults
6410 # to the OS version, if on x86, and 10.4, the deployment
6411 # target defaults to 10.4. Don't you love it?
6412 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6413 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6418 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6422 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6423 _lt_dar_single_mod='$single_module'
6425 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6426 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6428 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6430 if test "$DSYMUTIL" != ":"; then
6431 _lt_dsymutil='~$DSYMUTIL $lib || :'
6439 ac_cpp='$CPP $CPPFLAGS'
6440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6444 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6445 # On Suns, sometimes $CPP names a directory.
6446 if test -n "$CPP" && test -d "$CPP"; then
6449 if test -z "$CPP"; then
6450 if test "${ac_cv_prog_CPP+set}" = set; then :
6451 $as_echo_n "(cached) " >&6
6453 # Double quotes because CPP needs to be expanded
6454 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6457 for ac_c_preproc_warn_flag in '' yes
6459 # Use a header file that comes with gcc, so configuring glibc
6460 # with a fresh cross-compiler works.
6461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6462 # <limits.h> exists even on freestanding compilers.
6463 # On the NeXT, cc -E runs the code through the compiler's parser,
6464 # not just through cpp. "Syntax error" is here to catch this case.
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6468 # include <limits.h>
6470 # include <assert.h>
6474 if ac_fn_c_try_cpp "$LINENO"; then :
6477 # Broken: fails on valid input.
6480 rm -f conftest.err conftest.$ac_ext
6482 # OK, works on sane cases. Now check whether nonexistent headers
6483 # can be detected and how.
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h. */
6486 #include <ac_nonexistent.h>
6488 if ac_fn_c_try_cpp "$LINENO"; then :
6489 # Broken: success on invalid input.
6492 # Passes both tests.
6496 rm -f conftest.err conftest.$ac_ext
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6500 rm -f conftest.err conftest.$ac_ext
6501 if $ac_preproc_ok; then :
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6514 $as_echo "$CPP" >&6; }
6516 for ac_c_preproc_warn_flag in '' yes
6518 # Use a header file that comes with gcc, so configuring glibc
6519 # with a fresh cross-compiler works.
6520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6521 # <limits.h> exists even on freestanding compilers.
6522 # On the NeXT, cc -E runs the code through the compiler's parser,
6523 # not just through cpp. "Syntax error" is here to catch this case.
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 # include <limits.h>
6529 # include <assert.h>
6533 if ac_fn_c_try_cpp "$LINENO"; then :
6536 # Broken: fails on valid input.
6539 rm -f conftest.err conftest.$ac_ext
6541 # OK, works on sane cases. Now check whether nonexistent headers
6542 # can be detected and how.
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 #include <ac_nonexistent.h>
6547 if ac_fn_c_try_cpp "$LINENO"; then :
6548 # Broken: success on invalid input.
6551 # Passes both tests.
6555 rm -f conftest.err conftest.$ac_ext
6558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6559 rm -f conftest.err conftest.$ac_ext
6560 if $ac_preproc_ok; then :
6563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6565 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6566 See \`config.log' for more details." "$LINENO" 5; }
6570 ac_cpp='$CPP $CPPFLAGS'
6571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6577 $as_echo_n "checking for ANSI C header files... " >&6; }
6578 if test "${ac_cv_header_stdc+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h. */
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 ac_cv_header_stdc=yes
6599 ac_cv_header_stdc=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 if test $ac_cv_header_stdc = yes; then
6604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611 $EGREP "memchr" >/dev/null 2>&1; then :
6614 ac_cv_header_stdc=no
6620 if test $ac_cv_header_stdc = yes; then
6621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6628 $EGREP "free" >/dev/null 2>&1; then :
6631 ac_cv_header_stdc=no
6637 if test $ac_cv_header_stdc = yes; then
6638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6639 if test "$cross_compiling" = yes; then :
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6646 #if ((' ' & 0x0FF) == 0x020)
6647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6650 # define ISLOWER(c) \
6651 (('a' <= (c) && (c) <= 'i') \
6652 || ('j' <= (c) && (c) <= 'r') \
6653 || ('s' <= (c) && (c) <= 'z'))
6654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6662 for (i = 0; i < 256; i++)
6663 if (XOR (islower (i), ISLOWER (i))
6664 || toupper (i) != TOUPPER (i))
6669 if ac_fn_c_try_run "$LINENO"; then :
6672 ac_cv_header_stdc=no
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6675 conftest.$ac_objext conftest.beam conftest.$ac_ext
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6681 $as_echo "$ac_cv_header_stdc" >&6; }
6682 if test $ac_cv_header_stdc = yes; then
6684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6690 inttypes.h stdint.h unistd.h
6692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6695 eval as_val=\$$as_ac_Header
6696 if test "x$as_val" = x""yes; then :
6697 cat >>confdefs.h <<_ACEOF
6698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 for ac_header in dlfcn.h
6708 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6710 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6711 cat >>confdefs.h <<_ACEOF
6712 #define HAVE_DLFCN_H 1
6731 # Check whether --enable-shared was given.
6732 if test "${enable_shared+set}" = set; then :
6733 enableval=$enable_shared; p=${PACKAGE-default}
6735 yes) enable_shared=yes ;;
6736 no) enable_shared=no ;;
6739 # Look at the argument we got. We use all the common list separators.
6740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6741 for pkg in $enableval; do
6743 if test "X$pkg" = "X$p"; then
6762 # Check whether --enable-static was given.
6763 if test "${enable_static+set}" = set; then :
6764 enableval=$enable_static; p=${PACKAGE-default}
6766 yes) enable_static=yes ;;
6767 no) enable_static=no ;;
6770 # Look at the argument we got. We use all the common list separators.
6771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6772 for pkg in $enableval; do
6774 if test "X$pkg" = "X$p"; then
6794 # Check whether --with-pic was given.
6795 if test "${with_pic+set}" = set; then :
6796 withval=$with_pic; pic_mode="$withval"
6802 test -z "$pic_mode" && pic_mode=default
6810 # Check whether --enable-fast-install was given.
6811 if test "${enable_fast_install+set}" = set; then :
6812 enableval=$enable_fast_install; p=${PACKAGE-default}
6814 yes) enable_fast_install=yes ;;
6815 no) enable_fast_install=no ;;
6817 enable_fast_install=no
6818 # Look at the argument we got. We use all the common list separators.
6819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6820 for pkg in $enableval; do
6822 if test "X$pkg" = "X$p"; then
6823 enable_fast_install=yes
6830 enable_fast_install=yes
6843 # This can be used to rebuild libtool when needed
6844 LIBTOOL_DEPS="$ltmain"
6846 # Always use our own libtool.
6847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6873 test -z "$LN_S" && LN_S="ln -s"
6888 if test -n "${ZSH_VERSION+set}" ; then
6889 setopt NO_GLOB_SUBST
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6893 $as_echo_n "checking for objdir... " >&6; }
6894 if test "${lt_cv_objdir+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6897 rm -f .libs 2>/dev/null
6898 mkdir .libs 2>/dev/null
6899 if test -d .libs; then
6902 # MS-DOS does not allow filenames that begin with a dot.
6905 rmdir .libs 2>/dev/null
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6908 $as_echo "$lt_cv_objdir" >&6; }
6909 objdir=$lt_cv_objdir
6915 cat >>confdefs.h <<_ACEOF
6916 #define LT_OBJDIR "$lt_cv_objdir/"
6937 # AIX sometimes has problems with the GCC collect2 program. For some
6938 # reason, if we set the COLLECT_NAMES environment variable, the problems
6939 # vanish in a puff of smoke.
6940 if test "X${COLLECT_NAMES+set}" != Xset; then
6942 export COLLECT_NAMES
6947 # Sed substitution that helps us do robust quoting. It backslashifies
6948 # metacharacters that are still active within double-quoted strings.
6949 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6951 # Same as above, but do not quote variable references.
6952 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6954 # Sed substitution to delay expansion of an escaped shell variable in a
6955 # double_quote_subst'ed string.
6956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6958 # Sed substitution to delay expansion of an escaped single quote.
6959 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6961 # Sed substitution to avoid accidental globbing in evaled expressions
6962 no_glob_subst='s/\*/\\\*/g'
6966 can_build_shared=yes
6968 # All known linkers require a `.a' archive for static linking (except MSVC,
6969 # which needs '.lib').
6972 with_gnu_ld="$lt_cv_prog_gnu_ld"
6975 old_CFLAGS="$CFLAGS"
6977 # Set sane defaults for various variables
6978 test -z "$CC" && CC=cc
6979 test -z "$LTCC" && LTCC=$CC
6980 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6981 test -z "$LD" && LD=ld
6982 test -z "$ac_objext" && ac_objext=o
6984 for cc_temp in $compiler""; do
6986 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6987 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6992 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6995 # Only perform the check for file, if the check method requires it
6996 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6997 case $deplibs_check_method in
6999 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7001 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7002 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7007 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7010 lt_save_MAGIC_CMD="$MAGIC_CMD"
7011 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7012 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7013 for ac_dir in $ac_dummy; do
7015 test -z "$ac_dir" && ac_dir=.
7016 if test -f $ac_dir/${ac_tool_prefix}file; then
7017 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7018 if test -n "$file_magic_test_file"; then
7019 case $deplibs_check_method in
7021 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7023 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7024 $EGREP "$file_magic_regex" > /dev/null; then
7029 *** Warning: the command libtool uses to detect shared libraries,
7030 *** $file_magic_cmd, produces output that libtool cannot recognize.
7031 *** The result is that libtool may fail to recognize shared libraries
7032 *** as such. This will affect the creation of libtool libraries that
7033 *** depend on shared libraries, but programs linked with such libtool
7034 *** libraries will work regardless of this problem. Nevertheless, you
7035 *** may want to report the problem to your system manager and/or to
7036 *** bug-libtool@gnu.org
7046 MAGIC_CMD="$lt_save_MAGIC_CMD"
7051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052 if test -n "$MAGIC_CMD"; then
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7054 $as_echo "$MAGIC_CMD" >&6; }
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7064 if test -z "$lt_cv_path_MAGIC_CMD"; then
7065 if test -n "$ac_tool_prefix"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7067 $as_echo_n "checking for file... " >&6; }
7068 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7073 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7076 lt_save_MAGIC_CMD="$MAGIC_CMD"
7077 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7079 for ac_dir in $ac_dummy; do
7081 test -z "$ac_dir" && ac_dir=.
7082 if test -f $ac_dir/file; then
7083 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7084 if test -n "$file_magic_test_file"; then
7085 case $deplibs_check_method in
7087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7090 $EGREP "$file_magic_regex" > /dev/null; then
7095 *** Warning: the command libtool uses to detect shared libraries,
7096 *** $file_magic_cmd, produces output that libtool cannot recognize.
7097 *** The result is that libtool may fail to recognize shared libraries
7098 *** as such. This will affect the creation of libtool libraries that
7099 *** depend on shared libraries, but programs linked with such libtool
7100 *** libraries will work regardless of this problem. Nevertheless, you
7101 *** may want to report the problem to your system manager and/or to
7102 *** bug-libtool@gnu.org
7112 MAGIC_CMD="$lt_save_MAGIC_CMD"
7117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7118 if test -n "$MAGIC_CMD"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7120 $as_echo "$MAGIC_CMD" >&6; }
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7123 $as_echo "no" >&6; }
7136 # Use C for the default configuration in the libtool script
7140 ac_cpp='$CPP $CPPFLAGS'
7141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 # Source file extension for C test sources.
7149 # Object file extension for compiled C test sources.
7153 # Code to be used in simple compile tests
7154 lt_simple_compile_test_code="int some_variable = 0;"
7156 # Code to be used in simple link tests
7157 lt_simple_link_test_code='int main(){return(0);}'
7165 # If no C compiler was specified, use CC.
7168 # If no C compiler flags were specified, use CFLAGS.
7169 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7171 # Allow CC to be a program name with arguments.
7174 # Save the default compiler, since it gets overwritten when the other
7175 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7176 compiler_DEFAULT=$CC
7178 # save warnings/boilerplate of simple test code
7179 ac_outfile=conftest.$ac_objext
7180 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7181 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7182 _lt_compiler_boilerplate=`cat conftest.err`
7185 ac_outfile=conftest.$ac_objext
7186 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7187 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7188 _lt_linker_boilerplate=`cat conftest.err`
7192 if test -n "$compiler"; then
7194 lt_prog_compiler_no_builtin_flag=
7196 if test "$GCC" = yes; then
7197 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7200 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7201 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7202 $as_echo_n "(cached) " >&6
7204 lt_cv_prog_compiler_rtti_exceptions=no
7205 ac_outfile=conftest.$ac_objext
7206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7207 lt_compiler_flag="-fno-rtti -fno-exceptions"
7208 # Insert the option either (1) after the last *FLAGS variable, or
7209 # (2) before a word containing "conftest.", or (3) at the end.
7210 # Note that $ac_compile itself does not contain backslashes and begins
7211 # with a dollar sign (not a hyphen), so the echo should work correctly.
7212 # The option is referenced via a variable to avoid confusing sed.
7213 lt_compile=`echo "$ac_compile" | $SED \
7214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7216 -e 's:$: $lt_compiler_flag:'`
7217 (eval echo "\"\$as_me:7217: $lt_compile\"" >&5)
7218 (eval "$lt_compile" 2>conftest.err)
7220 cat conftest.err >&5
7221 echo "$as_me:7221: \$? = $ac_status" >&5
7222 if (exit $ac_status) && test -s "$ac_outfile"; then
7223 # The compiler can only warn and ignore the option if not recognized
7224 # So say no if there are warnings other than the usual output.
7225 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7228 lt_cv_prog_compiler_rtti_exceptions=yes
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7235 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7237 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7238 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7250 lt_prog_compiler_wl=
7251 lt_prog_compiler_pic=
7252 lt_prog_compiler_static=
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7255 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7257 if test "$GCC" = yes; then
7258 lt_prog_compiler_wl='-Wl,'
7259 lt_prog_compiler_static='-static'
7263 # All AIX code is PIC.
7264 if test "$host_cpu" = ia64; then
7265 # AIX 5 now supports IA64 processor
7266 lt_prog_compiler_static='-Bstatic'
7273 # see comment about AmigaOS4 .so support
7274 lt_prog_compiler_pic='-fPIC'
7277 # FIXME: we need at least 68020 code to build shared libraries, but
7278 # adding the `-m68020' flag to GCC prevents building anything better,
7280 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7285 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7286 # PIC is the default for these OSes.
7289 mingw* | cygwin* | pw32* | os2* | cegcc*)
7290 # This hack is so that the source file can tell whether it is being
7291 # built for inclusion in a dll (and should export symbols for example).
7292 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7293 # (--disable-auto-import) libraries
7294 lt_prog_compiler_pic='-DDLL_EXPORT'
7297 darwin* | rhapsody*)
7298 # PIC is the default on this platform
7299 # Common symbols not allowed in MH_DYLIB files
7300 lt_prog_compiler_pic='-fno-common'
7304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7306 # sets the default TLS model and affects inlining.
7312 lt_prog_compiler_pic='-fPIC'
7318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7319 # Instead, we relocate shared libraries at runtime.
7323 # Just because we use GCC doesn't mean we suddenly get shared libraries
7324 # on systems that don't support them.
7325 lt_prog_compiler_can_build_shared=no
7330 # QNX uses GNU C++, but need to define -shared option too, otherwise
7332 lt_prog_compiler_pic='-fPIC -shared'
7336 if test -d /usr/nec; then
7337 lt_prog_compiler_pic=-Kconform_pic
7342 lt_prog_compiler_pic='-fPIC'
7346 # PORTME Check for flag to pass linker flags through the system compiler.
7349 lt_prog_compiler_wl='-Wl,'
7350 if test "$host_cpu" = ia64; then
7351 # AIX 5 now supports IA64 processor
7352 lt_prog_compiler_static='-Bstatic'
7354 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7358 mingw* | cygwin* | pw32* | os2* | cegcc*)
7359 # This hack is so that the source file can tell whether it is being
7360 # built for inclusion in a dll (and should export symbols for example).
7361 lt_prog_compiler_pic='-DDLL_EXPORT'
7364 hpux9* | hpux10* | hpux11*)
7365 lt_prog_compiler_wl='-Wl,'
7366 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7373 lt_prog_compiler_pic='+Z'
7376 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7377 lt_prog_compiler_static='${wl}-a ${wl}archive'
7380 irix5* | irix6* | nonstopux*)
7381 lt_prog_compiler_wl='-Wl,'
7382 # PIC (with -KPIC) is the default.
7383 lt_prog_compiler_static='-non_shared'
7386 linux* | k*bsd*-gnu)
7387 case $cc_basename in
7388 # old Intel for x86_64 which still supported -KPIC.
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-static'
7394 # icc used to be incompatible with GCC.
7395 # ICC 10 doesn't accept -KPIC any more.
7397 lt_prog_compiler_wl='-Wl,'
7398 lt_prog_compiler_pic='-fPIC'
7399 lt_prog_compiler_static='-static'
7401 # Lahey Fortran 8.1.
7403 lt_prog_compiler_wl='-Wl,'
7404 lt_prog_compiler_pic='--shared'
7405 lt_prog_compiler_static='--static'
7407 pgcc* | pgf77* | pgf90* | pgf95*)
7408 # Portland Group compilers (*not* the Pentium gcc compiler,
7409 # which looks to be a dead project)
7410 lt_prog_compiler_wl='-Wl,'
7411 lt_prog_compiler_pic='-fpic'
7412 lt_prog_compiler_static='-Bstatic'
7415 lt_prog_compiler_wl='-Wl,'
7416 # All Alpha code is PIC.
7417 lt_prog_compiler_static='-non_shared'
7420 # IBM XL C 8.0/Fortran 10.1 on PPC
7421 lt_prog_compiler_wl='-Wl,'
7422 lt_prog_compiler_pic='-qpic'
7423 lt_prog_compiler_static='-qstaticlink'
7426 case `$CC -V 2>&1 | sed 5q` in
7429 lt_prog_compiler_pic='-KPIC'
7430 lt_prog_compiler_static='-Bstatic'
7431 lt_prog_compiler_wl='-Wl,'
7434 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7435 lt_prog_compiler_pic='-KPIC'
7436 lt_prog_compiler_static='-Bstatic'
7437 lt_prog_compiler_wl=''
7445 lt_prog_compiler_pic='-KPIC'
7446 lt_prog_compiler_static='-Bstatic'
7450 # QNX uses GNU C++, but need to define -shared option too, otherwise
7452 lt_prog_compiler_pic='-fPIC -shared'
7455 osf3* | osf4* | osf5*)
7456 lt_prog_compiler_wl='-Wl,'
7457 # All OSF/1 code is PIC.
7458 lt_prog_compiler_static='-non_shared'
7462 lt_prog_compiler_static='-non_shared'
7466 lt_prog_compiler_pic='-KPIC'
7467 lt_prog_compiler_static='-Bstatic'
7468 case $cc_basename in
7470 lt_prog_compiler_wl='-Qoption ld ';;
7472 lt_prog_compiler_wl='-Wl,';;
7477 lt_prog_compiler_wl='-Qoption ld '
7478 lt_prog_compiler_pic='-PIC'
7479 lt_prog_compiler_static='-Bstatic'
7482 sysv4 | sysv4.2uw2* | sysv4.3*)
7483 lt_prog_compiler_wl='-Wl,'
7484 lt_prog_compiler_pic='-KPIC'
7485 lt_prog_compiler_static='-Bstatic'
7489 if test -d /usr/nec ;then
7490 lt_prog_compiler_pic='-Kconform_pic'
7491 lt_prog_compiler_static='-Bstatic'
7495 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7496 lt_prog_compiler_wl='-Wl,'
7497 lt_prog_compiler_pic='-KPIC'
7498 lt_prog_compiler_static='-Bstatic'
7502 lt_prog_compiler_wl='-Wl,'
7503 lt_prog_compiler_can_build_shared=no
7507 lt_prog_compiler_pic='-pic'
7508 lt_prog_compiler_static='-Bstatic'
7512 lt_prog_compiler_can_build_shared=no
7518 # For platforms which do not support PIC, -DPIC is meaningless:
7520 lt_prog_compiler_pic=
7523 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7527 $as_echo "$lt_prog_compiler_pic" >&6; }
7535 # Check to make sure the PIC flag actually works.
7537 if test -n "$lt_prog_compiler_pic"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7540 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7543 lt_cv_prog_compiler_pic_works=no
7544 ac_outfile=conftest.$ac_objext
7545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7546 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7547 # Insert the option either (1) after the last *FLAGS variable, or
7548 # (2) before a word containing "conftest.", or (3) at the end.
7549 # Note that $ac_compile itself does not contain backslashes and begins
7550 # with a dollar sign (not a hyphen), so the echo should work correctly.
7551 # The option is referenced via a variable to avoid confusing sed.
7552 lt_compile=`echo "$ac_compile" | $SED \
7553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7555 -e 's:$: $lt_compiler_flag:'`
7556 (eval echo "\"\$as_me:7556: $lt_compile\"" >&5)
7557 (eval "$lt_compile" 2>conftest.err)
7559 cat conftest.err >&5
7560 echo "$as_me:7560: \$? = $ac_status" >&5
7561 if (exit $ac_status) && test -s "$ac_outfile"; then
7562 # The compiler can only warn and ignore the option if not recognized
7563 # So say no if there are warnings other than the usual output.
7564 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7567 lt_cv_prog_compiler_pic_works=yes
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7574 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7576 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7577 case $lt_prog_compiler_pic in
7579 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7582 lt_prog_compiler_pic=
7583 lt_prog_compiler_can_build_shared=no
7594 # Check to make sure the static flag actually works.
7596 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7598 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7599 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7600 $as_echo_n "(cached) " >&6
7602 lt_cv_prog_compiler_static_works=no
7603 save_LDFLAGS="$LDFLAGS"
7604 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7605 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7606 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7607 # The linker can only warn and ignore the option if not recognized
7608 # So say no if there are warnings
7609 if test -s conftest.err; then
7610 # Append any errors to the config.log.
7611 cat conftest.err 1>&5
7612 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7614 if diff conftest.exp conftest.er2 >/dev/null; then
7615 lt_cv_prog_compiler_static_works=yes
7618 lt_cv_prog_compiler_static_works=yes
7622 LDFLAGS="$save_LDFLAGS"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7626 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7628 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7631 lt_prog_compiler_static=
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7642 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7643 $as_echo_n "(cached) " >&6
7645 lt_cv_prog_compiler_c_o=no
7646 $RM -r conftest 2>/dev/null
7650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7652 lt_compiler_flag="-o out/conftest2.$ac_objext"
7653 # Insert the option either (1) after the last *FLAGS variable, or
7654 # (2) before a word containing "conftest.", or (3) at the end.
7655 # Note that $ac_compile itself does not contain backslashes and begins
7656 # with a dollar sign (not a hyphen), so the echo should work correctly.
7657 lt_compile=`echo "$ac_compile" | $SED \
7658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7660 -e 's:$: $lt_compiler_flag:'`
7661 (eval echo "\"\$as_me:7661: $lt_compile\"" >&5)
7662 (eval "$lt_compile" 2>out/conftest.err)
7664 cat out/conftest.err >&5
7665 echo "$as_me:7665: \$? = $ac_status" >&5
7666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7668 # The compiler can only warn and ignore the option if not recognized
7669 # So say no if there are warnings
7670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7673 lt_cv_prog_compiler_c_o=yes
7678 # SGI C++ compiler will create directory out/ii_files/ for
7679 # template instantiation
7680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7681 $RM out/* && rmdir out
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7688 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7696 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7697 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7698 $as_echo_n "(cached) " >&6
7700 lt_cv_prog_compiler_c_o=no
7701 $RM -r conftest 2>/dev/null
7705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7707 lt_compiler_flag="-o out/conftest2.$ac_objext"
7708 # Insert the option either (1) after the last *FLAGS variable, or
7709 # (2) before a word containing "conftest.", or (3) at the end.
7710 # Note that $ac_compile itself does not contain backslashes and begins
7711 # with a dollar sign (not a hyphen), so the echo should work correctly.
7712 lt_compile=`echo "$ac_compile" | $SED \
7713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715 -e 's:$: $lt_compiler_flag:'`
7716 (eval echo "\"\$as_me:7716: $lt_compile\"" >&5)
7717 (eval "$lt_compile" 2>out/conftest.err)
7719 cat out/conftest.err >&5
7720 echo "$as_me:7720: \$? = $ac_status" >&5
7721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7723 # The compiler can only warn and ignore the option if not recognized
7724 # So say no if there are warnings
7725 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7728 lt_cv_prog_compiler_c_o=yes
7733 # SGI C++ compiler will create directory out/ii_files/ for
7734 # template instantiation
7735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7736 $RM out/* && rmdir out
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7743 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7748 hard_links="nottested"
7749 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7750 # do not overwrite the value of need_locks provided by the user
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7752 $as_echo_n "checking if we can lock with hard links... " >&6; }
7755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7757 ln conftest.a conftest.b 2>&5 || hard_links=no
7758 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7760 $as_echo "$hard_links" >&6; }
7761 if test "$hard_links" = no; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7763 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7776 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7779 allow_undefined_flag=
7780 always_export_symbols=no
7782 archive_expsym_cmds=
7783 compiler_needs_object=no
7784 enable_shared_with_static_runtimes=no
7785 export_dynamic_flag_spec=
7786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7787 hardcode_automatic=no
7789 hardcode_direct_absolute=no
7790 hardcode_libdir_flag_spec=
7791 hardcode_libdir_flag_spec_ld=
7792 hardcode_libdir_separator=
7794 hardcode_shlibpath_var=unsupported
7796 link_all_deplibs=unknown
7799 old_archive_from_new_cmds=
7800 old_archive_from_expsyms_cmds=
7801 thread_safe_flag_spec=
7802 whole_archive_flag_spec=
7803 # include_expsyms should be a list of space-separated symbols to be *always*
7804 # included in the symbol list
7806 # exclude_expsyms can be an extended regexp of symbols to exclude
7807 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7808 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7809 # as well as any symbol that contains `d'.
7810 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7811 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7812 # platforms (ab)use it in PIC code, but their linkers get confused if
7813 # the symbol is explicitly referenced. Since portable code cannot
7814 # rely on this symbol name, it's probably fine to never include it in
7815 # preloaded symbol tables.
7816 # Exclude shared library initialization/finalization symbols.
7817 extract_expsyms_cmds=
7820 cygwin* | mingw* | pw32* | cegcc*)
7821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7822 # When not using gcc, we currently assume that we are using
7823 # Microsoft Visual C++.
7824 if test "$GCC" != yes; then
7829 # we just hope/assume this is gcc and not c89 (= MSVC++)
7835 linux* | k*bsd*-gnu)
7841 if test "$with_gnu_ld" = yes; then
7842 # If archive_cmds runs LD, not CC, wlarc should be empty
7845 # Set some defaults for GNU ld with shared library support. These
7846 # are reset later if shared libraries are not supported. Putting them
7847 # here allows them to be overridden if necessary.
7848 runpath_var=LD_RUN_PATH
7849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7850 export_dynamic_flag_spec='${wl}--export-dynamic'
7851 # ancient GNU ld didn't support --whole-archive et. al.
7852 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7853 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7855 whole_archive_flag_spec=
7857 supports_anon_versioning=no
7858 case `$LD -v 2>&1` in
7859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7862 *\ 2.11.*) ;; # other 2.11 versions
7863 *) supports_anon_versioning=yes ;;
7866 # See if GNU ld supports shared libraries.
7869 # On AIX/PPC, the GNU linker is very broken
7870 if test "$host_cpu" != ia64; then
7874 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7875 *** to be unable to reliably create shared libraries on AIX.
7876 *** Therefore, libtool is disabling shared libraries support. If you
7877 *** really care for shared libraries, you may want to modify your PATH
7878 *** so that a non-GNU linker is found, and then restart.
7887 # see comment about AmigaOS4 .so support
7888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7889 archive_expsym_cmds=''
7892 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)'
7893 hardcode_libdir_flag_spec='-L$libdir'
7894 hardcode_minus_L=yes
7900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7901 allow_undefined_flag=unsupported
7902 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7903 # support --undefined. This deserves some investigation. FIXME
7904 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7910 cygwin* | mingw* | pw32* | cegcc*)
7911 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7912 # as there is no search path for DLLs.
7913 hardcode_libdir_flag_spec='-L$libdir'
7914 allow_undefined_flag=unsupported
7915 always_export_symbols=no
7916 enable_shared_with_static_runtimes=yes
7917 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7921 # If the export-symbols file already is a .def file (1st line
7922 # is EXPORTS), use it as is; otherwise, prepend...
7923 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7924 cp $export_symbols $output_objdir/$soname.def;
7926 echo EXPORTS > $output_objdir/$soname.def;
7927 cat $export_symbols >> $output_objdir/$soname.def;
7929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7937 hardcode_shlibpath_var=no
7938 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7939 export_dynamic_flag_spec='${wl}-E'
7940 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7941 # Instead, shared libraries are loaded at an image base (0x10000000 by
7942 # default) and relocated if they conflict, which is a slow very memory
7943 # consuming and fragmenting process. To avoid this, we pick a random,
7944 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7945 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7946 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7947 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'
7950 gnu* | linux* | tpf* | k*bsd*-gnu)
7952 if test "$host_os" = linux-dietlibc; then
7953 case $cc_basename in
7954 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7957 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7958 && test "$tmp_diet" = no
7961 tmp_sharedflag='-shared'
7962 case $cc_basename,$host_cpu in
7963 pgcc*) # Portland Group C compiler
7964 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7965 tmp_addflag=' $pic_flag'
7967 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7968 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7969 tmp_addflag=' $pic_flag -Mnomain' ;;
7970 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7971 tmp_addflag=' -i_dynamic' ;;
7972 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7973 tmp_addflag=' -i_dynamic -nofor_main' ;;
7974 ifc* | ifort*) # Intel Fortran compiler
7975 tmp_addflag=' -nofor_main' ;;
7976 lf95*) # Lahey Fortran 8.1
7977 whole_archive_flag_spec=
7978 tmp_sharedflag='--shared' ;;
7979 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7980 tmp_sharedflag='-qmkshrobj'
7983 case `$CC -V 2>&1 | sed 5q` in
7984 *Sun\ C*) # Sun C 5.9
7985 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7986 compiler_needs_object=yes
7987 tmp_sharedflag='-G' ;;
7988 *Sun\ F*) # Sun Fortran 8.3
7989 tmp_sharedflag='-G' ;;
7991 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993 if test "x$supports_anon_versioning" = xyes; then
7994 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7996 echo "local: *; };" >> $output_objdir/$libname.ver~
7997 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8000 case $cc_basename in
8002 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8003 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8004 hardcode_libdir_flag_spec=
8005 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8006 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8007 if test "x$supports_anon_versioning" = xyes; then
8008 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8009 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8010 echo "local: *; };" >> $output_objdir/$libname.ver~
8011 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8020 netbsd* | netbsdelf*-gnu)
8021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8022 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8031 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8035 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8036 *** create shared libraries on Solaris systems. Therefore, libtool
8037 *** is disabling shared libraries support. We urge you to upgrade GNU
8038 *** binutils to release 2.9.1 or newer. Another option is to modify
8039 *** your PATH or compiler configuration so that the native linker is
8040 *** used, and then restart.
8043 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8045 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8051 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8052 case `$LD -v 2>&1` in
8053 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8057 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8058 *** reliably create shared libraries on SCO systems. Therefore, libtool
8059 *** is disabling shared libraries support. We urge you to upgrade GNU
8060 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8061 *** your PATH or compiler configuration so that the native linker is
8062 *** used, and then restart.
8067 # For security reasons, it is highly recommended that you always
8068 # use absolute paths for naming shared libraries, and exclude the
8069 # DT_RUNPATH tag from executables and libraries. But doing so
8070 # requires that you compile everything twice, which is a pain.
8071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8083 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8086 hardcode_shlibpath_var=no
8090 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099 if test "$ld_shlibs" = no; then
8101 hardcode_libdir_flag_spec=
8102 export_dynamic_flag_spec=
8103 whole_archive_flag_spec=
8106 # PORTME fill in a description of your system's linker (not GNU ld)
8109 allow_undefined_flag=unsupported
8110 always_export_symbols=yes
8111 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'
8112 # Note: this linker hardcodes the directories in LIBPATH if there
8113 # are no directories specified by -L.
8114 hardcode_minus_L=yes
8115 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8116 # Neither direct hardcoding nor static linking is supported with a
8118 hardcode_direct=unsupported
8123 if test "$host_cpu" = ia64; then
8124 # On IA64, the linker does run time linking by default, so we don't
8125 # have to do anything special.
8126 aix_use_runtimelinking=no
8127 exp_sym_flag='-Bexport'
8130 # If we're using GNU nm, then we don't want the "-C" option.
8131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8133 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8135 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'
8137 aix_use_runtimelinking=no
8139 # Test if we are trying to use run time linking or normal
8140 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8141 # need to do runtime linking.
8142 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8143 for ld_flag in $LDFLAGS; do
8144 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8145 aix_use_runtimelinking=yes
8152 exp_sym_flag='-bexport'
8153 no_entry_flag='-bnoentry'
8156 # When large executables or shared objects are built, AIX ld can
8157 # have problems creating the table of contents. If linking a library
8158 # or program results in "error TOC overflow" add -mminimal-toc to
8159 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8160 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8164 hardcode_direct_absolute=yes
8165 hardcode_libdir_separator=':'
8166 link_all_deplibs=yes
8167 file_list_spec='${wl}-f,'
8169 if test "$GCC" = yes; then
8170 case $host_os in aix4.[012]|aix4.[012].*)
8171 # We only want to do this on AIX 4.2 and lower, the check
8172 # below for broken collect2 doesn't work under 4.3+
8173 collect2name=`${CC} -print-prog-name=collect2`
8174 if test -f "$collect2name" &&
8175 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8177 # We have reworked collect2
8180 # We have old collect2
8181 hardcode_direct=unsupported
8182 # It fails to find uninstalled libraries when the uninstalled
8183 # path is not listed in the libpath. Setting hardcode_minus_L
8184 # to unsupported forces relinking
8185 hardcode_minus_L=yes
8186 hardcode_libdir_flag_spec='-L$libdir'
8187 hardcode_libdir_separator=
8191 shared_flag='-shared'
8192 if test "$aix_use_runtimelinking" = yes; then
8193 shared_flag="$shared_flag "'${wl}-G'
8198 if test "$host_cpu" = ia64; then
8199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8200 # chokes on -Wl,-G. The following line is correct:
8203 if test "$aix_use_runtimelinking" = yes; then
8204 shared_flag='${wl}-G'
8206 shared_flag='${wl}-bM:SRE'
8211 export_dynamic_flag_spec='${wl}-bexpall'
8212 # It seems that -bexpall does not export symbols beginning with
8213 # underscore (_), so it is better to generate a list of symbols to export.
8214 always_export_symbols=yes
8215 if test "$aix_use_runtimelinking" = yes; then
8216 # Warning - without using the other runtime loading flags (-brtl),
8217 # -berok will link without error, but may produce a broken library.
8218 allow_undefined_flag='-berok'
8219 # Determine the default libpath from the value encoded in an
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8232 if ac_fn_c_try_link "$LINENO"; then :
8234 lt_aix_libpath_sed='
8235 /Import File Strings/,/^$/ {
8241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8242 # Check for a 64-bit object if we didn't find anything.
8243 if test -z "$aix_libpath"; then
8244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8247 rm -f core conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8252 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8254 if test "$host_cpu" = ia64; then
8255 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8256 allow_undefined_flag="-z nodefs"
8257 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"
8259 # Determine the default libpath from the value encoded in an
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8272 if ac_fn_c_try_link "$LINENO"; then :
8274 lt_aix_libpath_sed='
8275 /Import File Strings/,/^$/ {
8281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8282 # Check for a 64-bit object if we didn't find anything.
8283 if test -z "$aix_libpath"; then
8284 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8291 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8292 # Warning - without using the other run time loading flags,
8293 # -berok will link without error, but may produce a broken library.
8294 no_undefined_flag=' ${wl}-bernotok'
8295 allow_undefined_flag=' ${wl}-berok'
8296 # Exported symbols can be pulled into shared objects from archives
8297 whole_archive_flag_spec='$convenience'
8298 archive_cmds_need_lc=yes
8299 # This is similar to how AIX traditionally builds its shared libraries.
8300 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'
8308 # see comment about AmigaOS4 .so support
8309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8310 archive_expsym_cmds=''
8313 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)'
8314 hardcode_libdir_flag_spec='-L$libdir'
8315 hardcode_minus_L=yes
8321 export_dynamic_flag_spec=-rdynamic
8324 cygwin* | mingw* | pw32* | cegcc*)
8325 # When not using gcc, we currently assume that we are using
8326 # Microsoft Visual C++.
8327 # hardcode_libdir_flag_spec is actually meaningless, as there is
8328 # no search path for DLLs.
8329 hardcode_libdir_flag_spec=' '
8330 allow_undefined_flag=unsupported
8331 # Tell ltmain to make .lib files, not .a files.
8333 # Tell ltmain to make .dll files, not .so files.
8335 # FIXME: Setting linknames here is a bad hack.
8336 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8337 # The linker will automatically build a .lib file if we build a DLL.
8338 old_archive_from_new_cmds='true'
8339 # FIXME: Should let the user specify the lib program.
8340 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8341 fix_srcfile_path='`cygpath -w "$srcfile"`'
8342 enable_shared_with_static_runtimes=yes
8345 darwin* | rhapsody*)
8348 archive_cmds_need_lc=no
8350 hardcode_automatic=yes
8351 hardcode_shlibpath_var=unsupported
8352 whole_archive_flag_spec=''
8353 link_all_deplibs=yes
8354 allow_undefined_flag="$_lt_dar_allow_undefined"
8355 case $cc_basename in
8356 ifort*) _lt_dar_can_shared=yes ;;
8357 *) _lt_dar_can_shared=$GCC ;;
8359 if test "$_lt_dar_can_shared" = "yes"; then
8360 output_verbose_link_cmd=echo
8361 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8362 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8363 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}"
8364 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}"
8373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8374 hardcode_libdir_flag_spec='-L$libdir'
8375 hardcode_shlibpath_var=no
8382 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8383 # support. Future versions do this automatically, but an explicit c++rt0.o
8384 # does not break anything, and helps significantly (at the cost of a little
8387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8388 hardcode_libdir_flag_spec='-R$libdir'
8390 hardcode_shlibpath_var=no
8393 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_minus_L=yes
8398 hardcode_shlibpath_var=no
8401 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8402 freebsd* | dragonfly*)
8403 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8404 hardcode_libdir_flag_spec='-R$libdir'
8406 hardcode_shlibpath_var=no
8410 if test "$GCC" = yes; then
8411 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8413 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'
8415 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8416 hardcode_libdir_separator=:
8419 # hardcode_minus_L: Not really in the search PATH,
8420 # but as the default location of the library.
8421 hardcode_minus_L=yes
8422 export_dynamic_flag_spec='${wl}-E'
8426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8427 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8429 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8431 if test "$with_gnu_ld" = no; then
8432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8433 hardcode_libdir_flag_spec_ld='+b $libdir'
8434 hardcode_libdir_separator=:
8436 hardcode_direct_absolute=yes
8437 export_dynamic_flag_spec='${wl}-E'
8438 # hardcode_minus_L: Not really in the search PATH,
8439 # but as the default location of the library.
8440 hardcode_minus_L=yes
8445 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8448 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8451 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8460 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8470 if test "$with_gnu_ld" = no; then
8471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8472 hardcode_libdir_separator=:
8477 hardcode_shlibpath_var=no
8481 hardcode_direct_absolute=yes
8482 export_dynamic_flag_spec='${wl}-E'
8484 # hardcode_minus_L: Not really in the search PATH,
8485 # but as the default location of the library.
8486 hardcode_minus_L=yes
8492 irix5* | irix6* | nonstopux*)
8493 if test "$GCC" = yes; then
8494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8495 # Try to use the -exported_symbol ld option, if it does not
8496 # work, assume that -exports_file does not work either and
8497 # implicitly export all symbols.
8498 save_LDFLAGS="$LDFLAGS"
8499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LDFLAGS="$save_LDFLAGS"
8512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8515 archive_cmds_need_lc='no'
8516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8517 hardcode_libdir_separator=:
8519 link_all_deplibs=yes
8522 netbsd* | netbsdelf*-gnu)
8523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8528 hardcode_libdir_flag_spec='-R$libdir'
8530 hardcode_shlibpath_var=no
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8537 hardcode_libdir_separator=:
8538 hardcode_shlibpath_var=no
8545 if test -f /usr/libexec/ld.so; then
8547 hardcode_shlibpath_var=no
8548 hardcode_direct_absolute=yes
8549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8553 export_dynamic_flag_spec='${wl}-E'
8556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8558 hardcode_libdir_flag_spec='-R$libdir'
8561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572 hardcode_libdir_flag_spec='-L$libdir'
8573 hardcode_minus_L=yes
8574 allow_undefined_flag=unsupported
8575 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'
8576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8580 if test "$GCC" = yes; then
8581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8582 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8584 allow_undefined_flag=' -expect_unresolved \*'
8585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8587 archive_cmds_need_lc='no'
8588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8589 hardcode_libdir_separator=:
8592 osf4* | osf5*) # as osf3* with the addition of -msym flag
8593 if test "$GCC" = yes; then
8594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8595 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8598 allow_undefined_flag=' -expect_unresolved \*'
8599 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8600 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~
8601 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8603 # Both c and cxx compiler support -rpath directly
8604 hardcode_libdir_flag_spec='-rpath $libdir'
8606 archive_cmds_need_lc='no'
8607 hardcode_libdir_separator=:
8611 no_undefined_flag=' -z defs'
8612 if test "$GCC" = yes; then
8614 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8616 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8618 case `$CC -V 2>&1` in
8621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8627 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8629 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 hardcode_shlibpath_var=no
8636 solaris2.[0-5] | solaris2.[0-5].*) ;;
8638 # The compiler driver will combine and reorder linker options,
8639 # but understands `-z linker_flag'. GCC discards it without `$wl',
8640 # but is careful enough not to reorder.
8641 # Supported since Solaris 2.6 (maybe 2.5.1?)
8642 if test "$GCC" = yes; then
8643 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8649 link_all_deplibs=yes
8653 if test "x$host_vendor" = xsequent; then
8654 # Use $CC to link under sequent, because it throws in some extra .o
8655 # files that make .init and .fini sections work.
8656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8660 hardcode_libdir_flag_spec='-L$libdir'
8662 hardcode_minus_L=yes
8663 hardcode_shlibpath_var=no
8667 case $host_vendor in
8669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_direct=yes # is this really true???
8673 ## LD is ld it makes a PLAMLIB
8674 ## CC just makes a GrossModule.
8675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8676 reload_cmds='$CC -r -o $output$reload_objs'
8680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8684 runpath_var='LD_RUN_PATH'
8685 hardcode_shlibpath_var=no
8689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8690 hardcode_shlibpath_var=no
8691 export_dynamic_flag_spec='-Bexport'
8695 if test -d /usr/nec; then
8696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8697 hardcode_shlibpath_var=no
8698 runpath_var=LD_RUN_PATH
8699 hardcode_runpath_var=yes
8704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8705 no_undefined_flag='${wl}-z,text'
8706 archive_cmds_need_lc=no
8707 hardcode_shlibpath_var=no
8708 runpath_var='LD_RUN_PATH'
8710 if test "$GCC" = yes; then
8711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8719 sysv5* | sco3.2v5* | sco5v6*)
8720 # Note: We can NOT use -z defs as we might desire, because we do not
8721 # link with -lc, and that would cause any symbols used from libc to
8722 # always be unresolved, which means just about no library would
8723 # ever link correctly. If we're not using GNU ld we use -z text
8724 # though, which does catch some bad symbols but isn't as heavy-handed
8726 no_undefined_flag='${wl}-z,text'
8727 allow_undefined_flag='${wl}-z,nodefs'
8728 archive_cmds_need_lc=no
8729 hardcode_shlibpath_var=no
8730 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8731 hardcode_libdir_separator=':'
8732 link_all_deplibs=yes
8733 export_dynamic_flag_spec='${wl}-Bexport'
8734 runpath_var='LD_RUN_PATH'
8736 if test "$GCC" = yes; then
8737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8747 hardcode_libdir_flag_spec='-L$libdir'
8748 hardcode_shlibpath_var=no
8756 if test x$host_vendor = xsni; then
8758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8759 export_dynamic_flag_spec='${wl}-Blargedynsym'
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8766 $as_echo "$ld_shlibs" >&6; }
8767 test "$ld_shlibs" = no && can_build_shared=no
8769 with_gnu_ld=$with_gnu_ld
8786 # Do we need to explicitly link libc?
8788 case "x$archive_cmds_need_lc" in
8790 # Assume -lc should be added
8791 archive_cmds_need_lc=yes
8793 if test "$enable_shared" = yes && test "$GCC" = yes; then
8794 case $archive_cmds in
8796 # FIXME: we may have to deal with multi-command sequences.
8799 # Test whether the compiler implicitly links with -lc since on some
8800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8801 # to ld, don't add -lc before -lgcc.
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8803 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8808 (eval $ac_compile) 2>&5
8810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8811 test $ac_status = 0; } 2>conftest.err; then
8814 libobjs=conftest.$ac_objext
8816 wl=$lt_prog_compiler_wl
8817 pic_flag=$lt_prog_compiler_pic
8823 lt_save_allow_undefined_flag=$allow_undefined_flag
8824 allow_undefined_flag=
8825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8826 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8829 test $ac_status = 0; }
8831 archive_cmds_need_lc=no
8833 archive_cmds_need_lc=yes
8835 allow_undefined_flag=$lt_save_allow_undefined_flag
8837 cat conftest.err 1>&5
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8841 $as_echo "$archive_cmds_need_lc" >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9007 if test "$GCC" = yes; then
9009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9010 *) lt_awk_arg="/^libraries:/" ;;
9012 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9013 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9014 # if the path contains ";" then we assume it to be the separator
9015 # otherwise default to the standard path separator (i.e. ":") - it is
9016 # assumed that no part of a normal pathname contains ";" but that should
9017 # okay in the real world where ";" in dirpaths is itself problematic.
9018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9020 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9022 # Ok, now we have the path, separated by spaces, we can step through it
9023 # and add multilib dir if necessary.
9024 lt_tmp_lt_search_path_spec=
9025 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9026 for lt_sys_path in $lt_search_path_spec; do
9027 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9030 test -d "$lt_sys_path" && \
9031 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9034 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9035 BEGIN {RS=" "; FS="/|\n";} {
9038 for (lt_i = NF; lt_i > 0; lt_i--) {
9039 if ($lt_i != "" && $lt_i != ".") {
9040 if ($lt_i == "..") {
9043 if (lt_count == 0) {
9044 lt_foo="/" $lt_i lt_foo;
9051 if (lt_foo != "") { lt_freq[lt_foo]++; }
9052 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9054 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9059 libname_spec='lib$name'
9067 shlibpath_overrides_runpath=unknown
9069 dynamic_linker="$host_os ld.so"
9070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9071 need_lib_prefix=unknown
9072 hardcode_into_libs=no
9074 # when you set need_version to no, make sure it does not cause -set_version
9075 # flags to be left without arguments
9076 need_version=unknown
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9082 shlibpath_var=LIBPATH
9084 # AIX 3 has no versioning support, so we append a major version to the name.
9085 soname_spec='${libname}${release}${shared_ext}$major'
9092 hardcode_into_libs=yes
9093 if test "$host_cpu" = ia64; then
9094 # AIX 5 supports IA64
9095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9098 # With GCC up to 2.95.x, collect2 would create an import file
9099 # for dependence libraries. The import file would start with
9100 # the line `#! .'. This would cause the generated library to
9101 # depend on `.', always an invalid library. This was fixed in
9102 # development snapshots of GCC prior to 3.0.
9104 aix4 | aix4.[01] | aix4.[01].*)
9105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9107 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9115 # soname into executable. Probably we can add versioning support to
9116 # collect2, so additional links can be useful in future.
9117 if test "$aix_use_runtimelinking" = yes; then
9118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9119 # instead of lib<name>.a to let people know that these are not
9120 # typical AIX shared libraries.
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 # We preserve .a as extension for shared libraries through AIX4.2
9124 # and later when we are not doing run time linking.
9125 library_names_spec='${libname}${release}.a $libname.a'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9128 shlibpath_var=LIBPATH
9135 # Since July 2007 AmigaOS4 officially supports .so libraries.
9136 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 library_names_spec='$libname.ixlibrary $libname.a'
9141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9142 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9148 library_names_spec='${libname}${shared_ext}'
9149 dynamic_linker="$host_os ld.so"
9150 shlibpath_var=LIBRARY_PATH
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9162 # the default ld.so.conf also contains /usr/contrib/lib and
9163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9164 # libtool to hard-code these into programs
9167 cygwin* | mingw* | pw32* | cegcc*)
9168 version_type=windows
9173 case $GCC,$host_os in
9174 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9175 library_names_spec='$libname.dll.a'
9176 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9177 postinstall_cmds='base_file=`basename \${file}`~
9178 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9179 dldir=$destdir/`dirname \$dlpath`~
9180 test -d \$dldir || mkdir -p \$dldir~
9181 $install_prog $dir/$dlname \$dldir/$dlname~
9182 chmod a+x \$dldir/$dlname~
9183 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9184 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9187 dlpath=$dir/\$dldll~
9189 shlibpath_overrides_runpath=yes
9193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9198 # MinGW DLLs use traditional 'lib' prefix
9199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9202 # It is most probably a Windows format PATH printed by
9203 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9204 # path with ; separators, and with drive letters. We can handle the
9205 # drive letters (cygwin fileutils understands them), so leave them,
9206 # especially as we might pass files found there to a mingw objdump,
9207 # which wouldn't understand a cygwinified path. Ahh.
9208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9210 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9214 # pw32 DLLs use 'pw' prefix rather than 'lib'
9215 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9224 dynamic_linker='Win32 ld.exe'
9225 # FIXME: first we should search . and the directory the executable is in
9229 darwin* | rhapsody*)
9230 dynamic_linker="$host_os dyld"
9234 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9235 soname_spec='${libname}${release}${major}$shared_ext'
9236 shlibpath_overrides_runpath=yes
9237 shlibpath_var=DYLD_LIBRARY_PATH
9238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249 soname_spec='${libname}${release}${shared_ext}$major'
9250 shlibpath_var=LD_LIBRARY_PATH
9257 freebsd* | dragonfly*)
9258 # DragonFly does not have aout. When/if they implement a new
9259 # versioning mechanism, adjust this.
9260 if test -x /usr/bin/objformat; then
9261 objformat=`/usr/bin/objformat`
9264 freebsd[123]*) objformat=aout ;;
9268 version_type=freebsd-$objformat
9269 case $version_type in
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9280 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9285 freebsd3.[01]* | freebsdelf3.[01]*)
9286 shlibpath_overrides_runpath=yes
9287 hardcode_into_libs=yes
9289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9294 *) # from 4.6 on, and DragonFly
9295 shlibpath_overrides_runpath=yes
9296 hardcode_into_libs=yes
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 hardcode_into_libs=yes
9311 hpux9* | hpux10* | hpux11*)
9312 # Give a soname corresponding to the major version so that dld.sl refuses to
9313 # link against other versions.
9320 hardcode_into_libs=yes
9321 dynamic_linker="$host_os dld.so"
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 if test "X$HPUX_IA64_MODE" = X32; then
9327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9335 hardcode_into_libs=yes
9336 dynamic_linker="$host_os dld.sl"
9337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340 soname_spec='${libname}${release}${shared_ext}$major'
9341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9346 dynamic_linker="$host_os dld.sl"
9347 shlibpath_var=SHLIB_PATH
9348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350 soname_spec='${libname}${release}${shared_ext}$major'
9353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354 postinstall_cmds='chmod 555 $lib'
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 shlibpath_overrides_runpath=no
9366 hardcode_into_libs=yes
9369 irix5* | irix6* | nonstopux*)
9371 nonstopux*) version_type=nonstopux ;;
9373 if test "$lt_cv_prog_gnu_ld" = yes; then
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 irix5* | nonstopux*)
9388 case $LD in # libtool.m4 will add one of these switches to LD
9389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390 libsuff= shlibsuff= libmagic=32-bit;;
9391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392 libsuff=32 shlibsuff=N32 libmagic=N32;;
9393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395 *) libsuff= shlibsuff= libmagic=never-match;;
9399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400 shlibpath_overrides_runpath=no
9401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403 hardcode_into_libs=yes
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9411 # This must be Linux ELF.
9412 linux* | k*bsd*-gnu)
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 # Some binutils ld are patched to set DT_RUNPATH
9422 save_LDFLAGS=$LDFLAGS
9424 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9425 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9437 if ac_fn_c_try_link "$LINENO"; then :
9438 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9439 shlibpath_overrides_runpath=yes
9442 rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 LDFLAGS=$save_LDFLAGS
9447 # This implies no fast_install, which is unacceptable.
9448 # Some rework will be needed to allow for fast_install
9449 # before this can be enabled.
9450 hardcode_into_libs=yes
9452 # Append ld.so.conf contents to the search path
9453 if test -f /etc/ld.so.conf; then
9454 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9458 # We used to test for /lib/ld.so.1 and disable shared libraries on
9459 # powerpc, because MkLinux only supported shared libraries with the
9460 # GNU dynamic linker. Since this was broken with cross compilers,
9461 # most powerpc-linux boxes support dynamic linking these days and
9462 # people can always --disable-shared, the test was removed, and we
9463 # assume the GNU/Linux dynamic linker is in use.
9464 dynamic_linker='GNU/Linux ld.so'
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9472 soname_spec='${libname}${release}${shared_ext}$major'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 shlibpath_overrides_runpath=no
9475 hardcode_into_libs=yes
9476 dynamic_linker='NetBSD ld.elf_so'
9483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9486 dynamic_linker='NetBSD (a.out) ld.so'
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 dynamic_linker='NetBSD ld.elf_so'
9492 shlibpath_var=LD_LIBRARY_PATH
9493 shlibpath_overrides_runpath=yes
9494 hardcode_into_libs=yes
9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500 shlibpath_var=LD_LIBRARY_PATH
9501 shlibpath_overrides_runpath=yes
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 soname_spec='${libname}${release}${shared_ext}$major'
9510 shlibpath_var=LD_LIBRARY_PATH
9511 shlibpath_overrides_runpath=no
9512 hardcode_into_libs=yes
9513 dynamic_linker='ldqnx.so'
9518 sys_lib_dlsearch_path_spec="/usr/lib"
9520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9523 *) need_version=no ;;
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9527 shlibpath_var=LD_LIBRARY_PATH
9528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9530 openbsd2.[89] | openbsd2.[89].*)
9531 shlibpath_overrides_runpath=no
9534 shlibpath_overrides_runpath=yes
9538 shlibpath_overrides_runpath=yes
9543 libname_spec='$name'
9546 library_names_spec='$libname${shared_ext} $libname.a'
9547 dynamic_linker='OS/2 ld.exe'
9548 shlibpath_var=LIBPATH
9551 osf3* | osf4* | osf5*)
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 shlibpath_overrides_runpath=yes
9574 hardcode_into_libs=yes
9575 # ldd complains unless libraries are executable
9576 postinstall_cmds='chmod +x $lib'
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=yes
9585 if test "$with_gnu_ld" = yes; then
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 soname_spec='${libname}${release}${shared_ext}$major'
9595 shlibpath_var=LD_LIBRARY_PATH
9596 case $host_vendor in
9598 shlibpath_overrides_runpath=no
9600 runpath_var=LD_RUN_PATH
9608 shlibpath_overrides_runpath=no
9609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9615 if test -d /usr/nec ;then
9617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9618 soname_spec='$libname${shared_ext}.$major'
9619 shlibpath_var=LD_LIBRARY_PATH
9623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9624 version_type=freebsd-elf
9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=yes
9631 hardcode_into_libs=yes
9632 if test "$with_gnu_ld" = yes; then
9633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9642 sys_lib_dlsearch_path_spec='/usr/lib'
9646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=no
9653 hardcode_into_libs=yes
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9668 $as_echo "$dynamic_linker" >&6; }
9669 test "$dynamic_linker" = no && can_build_shared=no
9671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9672 if test "$GCC" = yes; then
9673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9770 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9772 if test -n "$hardcode_libdir_flag_spec" ||
9773 test -n "$runpath_var" ||
9774 test "X$hardcode_automatic" = "Xyes" ; then
9776 # We can hardcode non-existent directories.
9777 if test "$hardcode_direct" != no &&
9778 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9779 # have to relink, otherwise we might link with an installed library
9780 # when we should be linking with a yet-to-be-installed one
9781 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9782 test "$hardcode_minus_L" != no; then
9783 # Linking always hardcodes the temporary library directory.
9784 hardcode_action=relink
9786 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9787 hardcode_action=immediate
9790 # We cannot hardcode anything, or else we can only hardcode existing
9792 hardcode_action=unsupported
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9795 $as_echo "$hardcode_action" >&6; }
9797 if test "$hardcode_action" = relink ||
9798 test "$inherit_rpath" = yes; then
9799 # Fast installation is not supported
9800 enable_fast_install=no
9801 elif test "$shlibpath_overrides_runpath" = yes ||
9802 test "$enable_shared" = no; then
9803 # Fast installation is not necessary
9804 enable_fast_install=needless
9812 if test "x$enable_dlopen" != xyes; then
9813 enable_dlopen=unknown
9814 enable_dlopen_self=unknown
9815 enable_dlopen_self_static=unknown
9822 lt_cv_dlopen="load_add_on"
9824 lt_cv_dlopen_self=yes
9827 mingw* | pw32* | cegcc*)
9828 lt_cv_dlopen="LoadLibrary"
9833 lt_cv_dlopen="dlopen"
9838 # if libdl is installed we need to link against it
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9840 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9841 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
9844 ac_check_lib_save_LIBS=$LIBS
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9864 if ac_fn_c_try_link "$LINENO"; then :
9865 ac_cv_lib_dl_dlopen=yes
9867 ac_cv_lib_dl_dlopen=no
9869 rm -f core conftest.err conftest.$ac_objext \
9870 conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9874 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9875 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9876 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9881 lt_cv_dlopen_self=yes
9888 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9889 if test "x$ac_cv_func_shl_load" = x""yes; then :
9890 lt_cv_dlopen="shl_load"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9893 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9894 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9897 ac_check_lib_save_LIBS=$LIBS
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9902 /* Override any GCC internal prototype to avoid an error.
9903 Use char because int might match the return type of a GCC
9904 builtin and then its argument prototype would still apply. */
9917 if ac_fn_c_try_link "$LINENO"; then :
9918 ac_cv_lib_dld_shl_load=yes
9920 ac_cv_lib_dld_shl_load=no
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9927 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9928 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9931 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9932 if test "x$ac_cv_func_dlopen" = x""yes; then :
9933 lt_cv_dlopen="dlopen"
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9940 ac_check_lib_save_LIBS=$LIBS
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9945 /* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
9960 if ac_fn_c_try_link "$LINENO"; then :
9961 ac_cv_lib_dl_dlopen=yes
9963 ac_cv_lib_dl_dlopen=no
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_lib_save_LIBS
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9970 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9971 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9975 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9976 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
9979 ac_check_lib_save_LIBS=$LIBS
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9984 /* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
9999 if ac_fn_c_try_link "$LINENO"; then :
10000 ac_cv_lib_svld_dlopen=yes
10002 ac_cv_lib_svld_dlopen=no
10004 rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10009 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10010 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10014 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10015 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10018 ac_check_lib_save_LIBS=$LIBS
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10033 return dld_link ();
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_lib_dld_dld_link=yes
10041 ac_cv_lib_dld_dld_link=no
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10048 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10049 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10050 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10071 if test "x$lt_cv_dlopen" != xno; then
10077 case $lt_cv_dlopen in
10079 save_CPPFLAGS="$CPPFLAGS"
10080 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10082 save_LDFLAGS="$LDFLAGS"
10083 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10086 LIBS="$lt_cv_dlopen_libs $LIBS"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10089 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10090 if test "${lt_cv_dlopen_self+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10093 if test "$cross_compiling" = yes; then :
10094 lt_cv_dlopen_self=cross
10096 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10097 lt_status=$lt_dlunknown
10098 cat > conftest.$ac_ext <<_LT_EOF
10099 #line 10099 "configure"
10100 #include "confdefs.h"
10109 # define LT_DLGLOBAL RTLD_GLOBAL
10112 # define LT_DLGLOBAL DL_GLOBAL
10114 # define LT_DLGLOBAL 0
10118 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10119 find out it does not work in some platform. */
10120 #ifndef LT_DLLAZY_OR_NOW
10122 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10125 # define LT_DLLAZY_OR_NOW DL_LAZY
10128 # define LT_DLLAZY_OR_NOW RTLD_NOW
10131 # define LT_DLLAZY_OR_NOW DL_NOW
10133 # define LT_DLLAZY_OR_NOW 0
10140 void fnord() { int i=42;}
10143 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10144 int status = $lt_dlunknown;
10148 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10149 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10150 /* dlclose (self); */
10158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10159 (eval $ac_link) 2>&5
10161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10162 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10163 (./conftest; exit; ) >&5 2>/dev/null
10165 case x$lt_status in
10166 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10167 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10168 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10171 # compilation failed
10172 lt_cv_dlopen_self=no
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10180 $as_echo "$lt_cv_dlopen_self" >&6; }
10182 if test "x$lt_cv_dlopen_self" = xyes; then
10183 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10185 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10186 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10187 $as_echo_n "(cached) " >&6
10189 if test "$cross_compiling" = yes; then :
10190 lt_cv_dlopen_self_static=cross
10192 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10193 lt_status=$lt_dlunknown
10194 cat > conftest.$ac_ext <<_LT_EOF
10195 #line 10195 "configure"
10196 #include "confdefs.h"
10205 # define LT_DLGLOBAL RTLD_GLOBAL
10208 # define LT_DLGLOBAL DL_GLOBAL
10210 # define LT_DLGLOBAL 0
10214 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10215 find out it does not work in some platform. */
10216 #ifndef LT_DLLAZY_OR_NOW
10218 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10221 # define LT_DLLAZY_OR_NOW DL_LAZY
10224 # define LT_DLLAZY_OR_NOW RTLD_NOW
10227 # define LT_DLLAZY_OR_NOW DL_NOW
10229 # define LT_DLLAZY_OR_NOW 0
10236 void fnord() { int i=42;}
10239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10240 int status = $lt_dlunknown;
10244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10245 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10246 /* dlclose (self); */
10254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10255 (eval $ac_link) 2>&5
10257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10258 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10259 (./conftest; exit; ) >&5 2>/dev/null
10261 case x$lt_status in
10262 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10263 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10264 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10267 # compilation failed
10268 lt_cv_dlopen_self_static=no
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10276 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10279 CPPFLAGS="$save_CPPFLAGS"
10280 LDFLAGS="$save_LDFLAGS"
10285 case $lt_cv_dlopen_self in
10286 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10287 *) enable_dlopen_self=unknown ;;
10290 case $lt_cv_dlopen_self_static in
10291 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10292 *) enable_dlopen_self_static=unknown ;;
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10315 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10316 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10317 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10318 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10320 $as_echo "yes" >&6; }
10322 # FIXME - insert some real tests, host_os isn't really good enough
10325 if test -n "$STRIP" ; then
10326 striplib="$STRIP -x"
10327 old_striplib="$STRIP -S"
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329 $as_echo "yes" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10353 # Report which library types will actually be built
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10355 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10357 $as_echo "$can_build_shared" >&6; }
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10360 $as_echo_n "checking whether to build shared libraries... " >&6; }
10361 test "$can_build_shared" = "no" && enable_shared=no
10363 # On AIX, shared libraries and static libraries use the same namespace, and
10364 # are all built from PIC.
10367 test "$enable_shared" = yes && enable_static=no
10368 if test -n "$RANLIB"; then
10369 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10370 postinstall_cmds='$RANLIB $lib'
10375 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10376 test "$enable_shared" = yes && enable_static=no
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10381 $as_echo "$enable_shared" >&6; }
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10384 $as_echo_n "checking whether to build static libraries... " >&6; }
10385 # Make sure either enable_shared or enable_static is yes.
10386 test "$enable_shared" = yes || enable_static=yes
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10388 $as_echo "$enable_static" >&6; }
10395 ac_cpp='$CPP $CPPFLAGS'
10396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10414 ac_config_commands="$ac_config_commands libtool"
10419 # Only expand once:
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10424 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10425 if test "${ac_cv_c_const+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10434 /* FIXME: Include the comments suggested by Paul. */
10435 #ifndef __cplusplus
10436 /* Ultrix mips cc rejects this. */
10437 typedef int charset[2];
10439 /* SunOS 4.1.1 cc rejects this. */
10440 char const *const *pcpcc;
10442 /* NEC SVR4.0.2 mips cc rejects this. */
10443 struct point {int x, y;};
10444 static struct point const zero = {0,0};
10445 /* AIX XL C 1.02.0.0 rejects this.
10446 It does not let you subtract one const X* pointer from another in
10447 an arm of an if-expression whose if-part is not a constant
10449 const char *g = "string";
10450 pcpcc = &g + (g ? g-g : 0);
10451 /* HPUX 7.0 cc rejects these. */
10453 ppc = (char**) pcpcc;
10454 pcpcc = (char const *const *) ppc;
10455 { /* SCO 3.2v4 cc rejects this. */
10457 char const *s = 0 ? (char *) 0 : (char const *) 0;
10462 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10463 int x[] = {25, 17};
10464 const int *foo = &x[0];
10467 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10468 typedef const int *iptr;
10472 { /* AIX XL C 1.02.0.0 rejects this saying
10473 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10474 struct s { int j; const int *ap[3]; };
10475 struct s *b; b->j = 5;
10477 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10478 const int foo = 10;
10479 if (!foo) return 0;
10481 return !cs[0] && !zero.x;
10488 if ac_fn_c_try_compile "$LINENO"; then :
10493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10496 $as_echo "$ac_cv_c_const" >&6; }
10497 if test $ac_cv_c_const = no; then
10499 $as_echo "#define const /**/" >>confdefs.h
10503 if test $ac_cv_c_compiler_gnu = yes; then
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10505 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10506 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
10509 ac_pattern="Autoconf.*'x'"
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10516 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10517 ac_cv_prog_gcc_traditional=yes
10519 ac_cv_prog_gcc_traditional=no
10524 if test $ac_cv_prog_gcc_traditional = no; then
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527 #include <termio.h>
10530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10531 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10532 ac_cv_prog_gcc_traditional=yes
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10539 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10540 if test $ac_cv_prog_gcc_traditional = yes; then
10541 CC="$CC -traditional"
10546 for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h \
10547 util.h utmp.h utmpx.h
10549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10551 eval as_val=\$$as_ac_Header
10552 if test "x$as_val" = x""yes; then :
10553 cat >>confdefs.h <<_ACEOF
10554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10562 for ac_func in login_tty
10564 ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty"
10565 if test "x$ac_cv_func_login_tty" = x""yes; then :
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_LOGIN_TTY 1
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5
10572 $as_echo_n "checking for login_tty in -lutil... " >&6; }
10573 if test "${ac_cv_lib_util_login_tty+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10576 ac_check_lib_save_LIBS=$LIBS
10577 LIBS="-lutil $LIBS"
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10581 /* Override any GCC internal prototype to avoid an error.
10582 Use char because int might match the return type of a GCC
10583 builtin and then its argument prototype would still apply. */
10591 return login_tty ();
10596 if ac_fn_c_try_link "$LINENO"; then :
10597 ac_cv_lib_util_login_tty=yes
10599 ac_cv_lib_util_login_tty=no
10601 rm -f core conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5
10606 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
10607 if test "x$ac_cv_lib_util_login_tty" = x""yes; then :
10608 LIBS="-lutil $LIBS"
10609 $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h
10617 for ac_func in strlcat
10619 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
10620 if test "x$ac_cv_func_strlcat" = x""yes; then :
10621 cat >>confdefs.h <<_ACEOF
10622 #define HAVE_STRLCAT 1
10629 for ac_func in getgrgid_r getgrnam_r getpwnam_r getpwuid_r openpty \
10632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10634 eval as_val=\$$as_ac_var
10635 if test "x$as_val" = x""yes; then :
10636 cat >>confdefs.h <<_ACEOF
10637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645 /* end confdefs.h. */
10646 #ifndef _XOPEN_SOURCE
10647 #define _XOPEN_SOURCE
10649 #ifndef _GNU_SOURCE
10650 #define _GNU_SOURCE
10652 #include <stdlib.h>
10656 char buf[10]; ptsname_r(0, buf, sizeof(buf));
10661 if ac_fn_c_try_link "$LINENO"; then :
10663 $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <pthread.h>
10672 #include <signal.h>
10676 sigset_t s; int n; sigwait(&s, &n);
10681 if ac_fn_c_try_link "$LINENO"; then :
10683 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10689 # Check whether --enable-login was given.
10690 if test "${enable_login+set}" = set; then :
10691 enableval=$enable_login;
10694 if test "x$enable_login" != xno; then
10696 $as_echo "#define HAVE_BIN_LOGIN 1" >>confdefs.h
10700 # Check whether --enable-ssl was given.
10701 if test "${enable_ssl+set}" = set; then :
10702 enableval=$enable_ssl;
10706 # Check whether --enable-pam was given.
10707 if test "${enable_pam+set}" = set; then :
10708 enableval=$enable_pam;
10712 # Check whether --enable-runtime-loading was given.
10713 if test "${enable_runtime_loading+set}" = set; then :
10714 enableval=$enable_runtime_loading;
10718 if test "x$enable_ssl" != xno; then
10719 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
10721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10722 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10723 eval as_val=\$$as_ac_Header
10724 if test "x$as_val" = x""yes; then :
10725 cat >>confdefs.h <<_ACEOF
10726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10735 if test "x$enable_pam" != xno; then
10736 for ac_header in security/pam_appl.h security/pam_client.h \
10737 security/pam_misc.h
10739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10741 eval as_val=\$$as_ac_Header
10742 if test "x$as_val" = x""yes; then :
10743 cat >>confdefs.h <<_ACEOF
10744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 if test "x$enable_runtime_loading" != xno; then
10754 for ac_func in dlopen
10756 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10757 if test "x$ac_cv_func_dlopen" = x""yes; then :
10758 cat >>confdefs.h <<_ACEOF
10759 #define HAVE_DLOPEN 1
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10764 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10766 $as_echo_n "(cached) " >&6
10768 ac_check_lib_save_LIBS=$LIBS
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10788 if ac_fn_c_try_link "$LINENO"; then :
10789 ac_cv_lib_dl_dlopen=yes
10791 ac_cv_lib_dl_dlopen=no
10793 rm -f core conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10798 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10799 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10801 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10804 enable_runtime_loading=no
10812 if test "x$enable_runtime_loading" == xno; then
10813 if test "x$enable_ssl" != xno; then
10814 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
10815 if test "x$ac_cv_header_openssl_bio_h" = x""yes; then :
10816 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_openssl_err_h" = x""yes; then :
10818 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10819 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
10820 LIBS="-lssl -lcrypto $LIBS"
10832 if test "x$enable_pam" != xno; then
10833 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10834 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
10839 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
10840 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then :
10841 LIBS="-lpam_misc $LIBS"
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
10849 $as_echo_n "checking for deflate in -lz... " >&6; }
10850 if test "${ac_cv_lib_z_deflate+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
10853 ac_check_lib_save_LIBS=$LIBS
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 ac_cv_lib_z_deflate=yes
10876 ac_cv_lib_z_deflate=no
10878 rm -f core conftest.err conftest.$ac_objext \
10879 conftest$ac_exeext conftest.$ac_ext
10880 LIBS=$ac_check_lib_save_LIBS
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
10883 $as_echo "$ac_cv_lib_z_deflate" >&6; }
10884 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
10886 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10887 if test "x$ac_cv_header_zlib_h" = x""yes; then :
10890 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10899 ac_config_files="$ac_config_files Makefile"
10901 cat >confcache <<\_ACEOF
10902 # This file is a shell script that caches the results of configure
10903 # tests run on this system so they can be shared between configure
10904 # scripts and configure runs, see configure's option --config-cache.
10905 # It is not useful on other systems. If it contains results you don't
10906 # want to keep, you may remove or edit it.
10908 # config.status only pays attention to the cache file if you give it
10909 # the --recheck option to rerun configure.
10911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10913 # following values.
10917 # The following way of writing the cache mishandles newlines in values,
10918 # but we know of no workaround that is simple, portable, and efficient.
10919 # So, we kill variables containing newlines.
10920 # Ultrix sh set writes to stderr and can't be redirected directly,
10921 # and sets the high bit in the cache file unless we assign to the vars.
10923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10924 eval ac_val=\$$ac_var
10928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10932 _ | IFS | as_nl) ;; #(
10933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10934 *) { eval $ac_var=; unset $ac_var;} ;;
10940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10941 *${as_nl}ac_space=\ *)
10942 # `set' does not quote correctly, so add quotes: double-quote
10943 # substitution turns \\\\ into \\, and sed turns \\ into \.
10946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10949 # `set' quotes correctly as required by POSIX, so do not add quotes.
10950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10964 if test -w "$cache_file"; then
10965 test "x$cache_file" != "x/dev/null" &&
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10967 $as_echo "$as_me: updating cache $cache_file" >&6;}
10968 cat confcache >$cache_file
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10971 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10977 # Let make expand exec_prefix.
10978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10980 DEFS=-DHAVE_CONFIG_H
10984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10985 # 1. Remove the extension, and $U if already installed.
10986 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10987 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10988 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10989 # will be set to the directory where LIBOBJS objects are built.
10990 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10991 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10993 LIBOBJS=$ac_libobjs
10995 LTLIBOBJS=$ac_ltlibobjs
10998 if test -n "$EXEEXT"; then
11000 am__EXEEXT_FALSE='#'
11002 am__EXEEXT_TRUE='#'
11006 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11007 as_fn_error "conditional \"AMDEP\" was never defined.
11008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11010 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11011 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11015 : ${CONFIG_STATUS=./config.status}
11017 ac_clean_files_save=$ac_clean_files
11018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11022 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11024 # Generated by $as_me.
11025 # Run this file to recreate the current configuration.
11026 # Compiler output produced by configure, useful for debugging
11027 # configure, is in config.log if it exists.
11030 ac_cs_recheck=false
11033 SHELL=\${CONFIG_SHELL-$SHELL}
11036 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11037 ## -------------------- ##
11038 ## M4sh Initialization. ##
11039 ## -------------------- ##
11041 # Be more Bourne compatible
11042 DUALCASE=1; export DUALCASE # for MKS sh
11043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11046 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11047 # is contrary to our usage. Disable this feature.
11048 alias -g '${1+"$@"}'='"$@"'
11049 setopt NO_GLOB_SUBST
11051 case `(set -o) 2>/dev/null` in #(
11063 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11064 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11067 # Prefer a ksh shell builtin over an external printf program on Solaris,
11068 # but without wasting forks for bash or zsh.
11069 if test -z "$BASH_VERSION$ZSH_VERSION" \
11070 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11071 as_echo='print -r --'
11072 as_echo_n='print -rn --'
11073 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11074 as_echo='printf %s\n'
11075 as_echo_n='printf %s'
11077 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11078 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11079 as_echo_n='/usr/ucb/echo -n'
11081 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11082 as_echo_n_body='eval
11086 expr "X$arg" : "X\\(.*\\)$as_nl";
11087 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11089 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11091 export as_echo_n_body
11092 as_echo_n='sh -c $as_echo_n_body as_echo'
11094 export as_echo_body
11095 as_echo='sh -c $as_echo_body as_echo'
11098 # The user is always right.
11099 if test "${PATH_SEPARATOR+set}" != set; then
11101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11109 # We need space, tab and new line, in precisely that order. Quoting is
11110 # there to prevent editors from complaining about space-tab.
11111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11112 # splitting by setting IFS to empty value.)
11115 # Find who we are. Look in the path if we contain no directory separator.
11117 *[\\/]* ) as_myself=$0 ;;
11118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11122 test -z "$as_dir" && as_dir=.
11123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11129 # We did not find ourselves, most probably we were run as `sh COMMAND'
11130 # in which case we are not to be found in the path.
11131 if test "x$as_myself" = x; then
11134 if test ! -f "$as_myself"; then
11135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11139 # Unset variables that we do not need and which cause bugs (e.g. in
11140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11141 # suppresses any "Segmentation fault" message there. '((' could
11142 # trigger a bug in pdksh 5.2.14.
11143 for as_var in BASH_ENV ENV MAIL MAILPATH
11144 do eval test x\${$as_var+set} = xset \
11145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11161 # as_fn_error ERROR [LINENO LOG_FD]
11162 # ---------------------------------
11163 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11164 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11165 # script with status $?, using 1 if that was 0.
11168 as_status=$?; test $as_status -eq 0 && as_status=1
11170 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11171 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11173 $as_echo "$as_me: error: $1" >&2
11174 as_fn_exit $as_status
11178 # as_fn_set_status STATUS
11179 # -----------------------
11180 # Set $? to STATUS, without forking.
11181 as_fn_set_status ()
11184 } # as_fn_set_status
11186 # as_fn_exit STATUS
11187 # -----------------
11188 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11192 as_fn_set_status $1
11198 # Portably unset VAR.
11201 { eval $1=; unset $1;}
11203 as_unset=as_fn_unset
11204 # as_fn_append VAR VALUE
11205 # ----------------------
11206 # Append the text in VALUE to the end of the definition contained in VAR. Take
11207 # advantage of any shell optimizations that allow amortized linear growth over
11208 # repeated appends, instead of the typical quadratic growth present in naive
11210 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11211 eval 'as_fn_append ()
11222 # as_fn_arith ARG...
11223 # ------------------
11224 # Perform arithmetic evaluation on the ARGs, and store the result in the
11225 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11226 # must be portable across $(()) and expr.
11227 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11228 eval 'as_fn_arith ()
11235 as_val=`expr "$@" || test $? -eq 1`
11240 if expr a : '\(a\)' >/dev/null 2>&1 &&
11241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11247 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11248 as_basename=basename
11253 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11259 as_me=`$as_basename -- "$0" ||
11260 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11261 X"$0" : 'X\(//\)$' \| \
11262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11264 sed '/^.*\/\([^/][^/]*\)\/*$/{
11278 # Avoid depending upon Character Ranges.
11279 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11280 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11281 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11282 as_cr_digits='0123456789'
11283 as_cr_alnum=$as_cr_Letters$as_cr_digits
11285 ECHO_C= ECHO_N= ECHO_T=
11286 case `echo -n x` in #(((((
11288 case `echo 'xy\c'` in
11289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11291 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11298 rm -f conf$$ conf$$.exe conf$$.file
11299 if test -d conf$$.dir; then
11300 rm -f conf$$.dir/conf$$.file
11303 mkdir conf$$.dir 2>/dev/null
11305 if (echo >conf$$.file) 2>/dev/null; then
11306 if ln -s conf$$.file conf$$ 2>/dev/null; then
11308 # ... but there are two gotchas:
11309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11311 # In both cases, we have to default to `cp -p'.
11312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11314 elif ln conf$$.file conf$$ 2>/dev/null; then
11322 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11323 rmdir conf$$.dir 2>/dev/null
11328 # Create "$as_dir" as a directory, including parents if necessary.
11333 -*) as_dir=./$as_dir;;
11335 test -d "$as_dir" || eval $as_mkdir_p || {
11339 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11340 *) as_qdir=$as_dir;;
11342 as_dirs="'$as_qdir' $as_dirs"
11343 as_dir=`$as_dirname -- "$as_dir" ||
11344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11345 X"$as_dir" : 'X\(//\)[^/]' \| \
11346 X"$as_dir" : 'X\(//\)$' \| \
11347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11348 $as_echo X"$as_dir" |
11349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11353 /^X\(\/\/\)[^/].*/{
11366 test -d "$as_dir" && break
11368 test -z "$as_dirs" || eval "mkdir $as_dirs"
11369 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11373 if mkdir -p . 2>/dev/null; then
11374 as_mkdir_p='mkdir -p "$as_dir"'
11376 test -d ./-p && rmdir ./-p
11380 if test -x / >/dev/null 2>&1; then
11381 as_test_x='test -x'
11383 if ls -dL / >/dev/null 2>&1; then
11390 if test -d "$1"; then
11396 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11397 ???[sx]*):;;*)false;;esac;fi
11401 as_executable_p=$as_test_x
11403 # Sed expression to map a string onto a valid CPP name.
11404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11406 # Sed expression to map a string onto a valid variable name.
11407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11411 ## ----------------------------------- ##
11412 ## Main body of $CONFIG_STATUS script. ##
11413 ## ----------------------------------- ##
11415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11418 # Save the log message, to keep $0 and so on meaningful, and to
11419 # report actual input values of CONFIG_FILES etc. instead of their
11420 # values after options handling.
11422 This file was extended by shellinabox $as_me 2.10, which was
11423 generated by GNU Autoconf 2.64. Invocation command line was
11425 CONFIG_FILES = $CONFIG_FILES
11426 CONFIG_HEADERS = $CONFIG_HEADERS
11427 CONFIG_LINKS = $CONFIG_LINKS
11428 CONFIG_COMMANDS = $CONFIG_COMMANDS
11431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11436 case $ac_config_files in *"
11437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11440 case $ac_config_headers in *"
11441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11446 # Files that config.status was made for.
11447 config_files="$ac_config_files"
11448 config_headers="$ac_config_headers"
11449 config_commands="$ac_config_commands"
11453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11455 \`$as_me' instantiates files and other configuration actions
11456 from templates according to the current configuration. Unless the files
11457 and actions are specified as TAGs, all are instantiated by default.
11459 Usage: $0 [OPTION]... [TAG]...
11461 -h, --help print this help, then exit
11462 -V, --version print version number and configuration settings, then exit
11463 -q, --quiet, --silent
11464 do not print progress messages
11465 -d, --debug don't remove temporary files
11466 --recheck update $as_me by reconfiguring in the same conditions
11467 --file=FILE[:TEMPLATE]
11468 instantiate the configuration file FILE
11469 --header=FILE[:TEMPLATE]
11470 instantiate the configuration header FILE
11472 Configuration files:
11475 Configuration headers:
11478 Configuration commands:
11481 Report bugs to <markus@shellinabox.com>."
11484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11486 shellinabox config.status 2.10
11487 configured by $0, generated by GNU Autoconf 2.64,
11488 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11490 Copyright (C) 2009 Free Software Foundation, Inc.
11491 This config.status script is free software; the Free Software Foundation
11492 gives unlimited permission to copy, distribute and modify it."
11499 test -n "\$AWK" || AWK=awk
11502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11503 # The default lists apply if the user does not specify any file.
11509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11521 # Handling of the options.
11522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11525 $as_echo "$ac_cs_version"; exit ;;
11526 --debug | --debu | --deb | --de | --d | -d )
11528 --file | --fil | --fi | --f )
11531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11533 as_fn_append CONFIG_FILES " '$ac_optarg'"
11534 ac_need_defaults=false;;
11535 --header | --heade | --head | --hea )
11538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11540 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11541 ac_need_defaults=false;;
11543 # Conflict between --help and --header
11544 as_fn_error "ambiguous option: \`$1'
11545 Try \`$0 --help' for more information.";;
11546 --help | --hel | -h )
11547 $as_echo "$ac_cs_usage"; exit ;;
11548 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11549 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11552 # This is an error.
11553 -*) as_fn_error "unrecognized option: \`$1'
11554 Try \`$0 --help' for more information." ;;
11556 *) as_fn_append ac_config_targets " $1"
11557 ac_need_defaults=false ;;
11563 ac_configure_extra_args=
11565 if $ac_cs_silent; then
11567 ac_configure_extra_args="$ac_configure_extra_args --silent"
11571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11572 if \$ac_cs_recheck; then
11573 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11575 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11576 CONFIG_SHELL='$SHELL'
11577 export CONFIG_SHELL
11582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11586 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11587 ## Running $as_me. ##
11593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11600 # The HP-UX ksh and POSIX shell print the target directory to stdout
11601 # if CDPATH is set.
11602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11604 sed_quote_subst='$sed_quote_subst'
11605 double_quote_subst='$double_quote_subst'
11606 delay_variable_subst='$delay_variable_subst'
11607 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11608 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11609 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11610 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11611 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11612 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11613 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11614 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11615 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11616 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11617 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11618 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11619 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11620 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11621 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11622 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11623 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11624 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11625 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11626 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11627 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11628 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11629 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11630 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11631 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11632 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11633 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11634 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11635 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11636 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11637 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11638 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11639 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11640 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11641 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11642 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11643 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11644 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11645 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11646 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11647 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11648 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11649 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11650 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11652 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11653 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11654 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11655 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11656 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11657 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11658 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11659 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11660 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11661 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11662 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11663 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11664 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11665 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11666 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11667 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11668 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11669 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11670 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11671 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11672 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11673 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11674 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11675 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11676 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11677 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11678 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11679 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11680 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11681 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11682 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11683 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11684 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11685 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11686 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11687 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11688 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11689 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11690 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11691 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11692 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11693 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11694 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11695 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11696 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11697 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11699 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11700 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11701 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11703 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11704 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11705 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11706 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11707 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11708 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11709 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11710 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11711 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11712 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11713 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11714 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11715 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11716 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11717 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11718 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11719 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11720 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11721 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11722 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11723 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11724 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11727 LTCFLAGS='$LTCFLAGS'
11728 compiler='$compiler_DEFAULT'
11730 # Quote evaled strings.
11742 deplibs_check_method \
11751 lt_cv_sys_global_symbol_pipe \
11752 lt_cv_sys_global_symbol_to_cdecl \
11753 lt_cv_sys_global_symbol_to_c_name_address \
11754 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11757 lt_prog_compiler_no_builtin_flag \
11758 lt_prog_compiler_wl \
11759 lt_prog_compiler_pic \
11760 lt_prog_compiler_static \
11761 lt_cv_prog_compiler_c_o \
11769 export_dynamic_flag_spec \
11770 whole_archive_flag_spec \
11771 compiler_needs_object \
11773 allow_undefined_flag \
11774 no_undefined_flag \
11775 hardcode_libdir_flag_spec \
11776 hardcode_libdir_flag_spec_ld \
11777 hardcode_libdir_separator \
11782 variables_saved_for_relink \
11784 library_names_spec \
11789 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11790 *[\\\\\\\`\\"\\\$]*)
11791 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11794 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11799 # Double-quote double-evaled strings.
11800 for var in reload_cmds \
11801 old_postinstall_cmds \
11802 old_postuninstall_cmds \
11804 extract_expsyms_cmds \
11805 old_archive_from_new_cmds \
11806 old_archive_from_expsyms_cmds \
11808 archive_expsym_cmds \
11810 module_expsym_cmds \
11811 export_symbols_cmds \
11814 postuninstall_cmds \
11816 sys_lib_search_path_spec \
11817 sys_lib_dlsearch_path_spec; do
11818 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11819 *[\\\\\\\`\\"\\\$]*)
11820 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11823 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11828 # Fix-up fallback echo if it was mangled by the above quoting rules.
11830 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11834 ac_aux_dir='$ac_aux_dir'
11835 xsi_shell='$xsi_shell'
11836 lt_shell_append='$lt_shell_append'
11838 # See if we are running on zsh, and set the options which allow our
11839 # commands through without removal of \ escapes INIT.
11840 if test -n "\${ZSH_VERSION+set}" ; then
11841 setopt NO_GLOB_SUBST
11847 TIMESTAMP='$TIMESTAMP'
11856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11858 # Handling of arguments.
11859 for ac_config_target in $ac_config_targets
11861 case $ac_config_target in
11862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11863 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11864 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11865 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11867 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11872 # If the user did not use the arguments to specify the items to instantiate,
11873 # then the envvar interface is used. Set only those that are not.
11874 # We use the long form for the default assignment because of an extremely
11875 # bizarre bug on SunOS 4.1.3.
11876 if $ac_need_defaults; then
11877 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11878 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11879 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11882 # Have a temporary directory for convenience. Make it in the build tree
11883 # simply because there is no reason against having it here, and in addition,
11884 # creating and moving files from /tmp can sometimes cause problems.
11885 # Hook for its removal unless debugging.
11886 # Note that there is a small window in which the directory will not be cleaned:
11887 # after its creation but before its name has been assigned to `$tmp'.
11891 trap 'exit_status=$?
11892 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11894 trap 'as_fn_exit 1' 1 2 13 15
11896 # Create a (secure) tmp directory for tmp files.
11899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11900 test -n "$tmp" && test -d "$tmp"
11903 tmp=./conf$$-$RANDOM
11904 (umask 077 && mkdir "$tmp")
11905 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11907 # Set up the scripts for CONFIG_FILES section.
11908 # No need to generate them if there are no CONFIG_FILES.
11909 # This happens for instance with `./config.status config.h'.
11910 if test -n "$CONFIG_FILES"; then
11913 ac_cr=`echo X | tr X '\015'`
11914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11915 # But we know of no other shell where ac_cr would be empty at this
11916 # point, so we can use a bashism as a fallback.
11917 if test "x$ac_cr" = x; then
11918 eval ac_cr=\$\'\\r\'
11920 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11924 ac_cs_awk_cr=$ac_cr
11927 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11932 echo "cat >conf$$subs.awk <<_ACEOF" &&
11933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11935 } >conf$$subs.sh ||
11936 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11939 for ac_last_try in false false false false false :; do
11940 . ./conf$$subs.sh ||
11941 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11944 if test $ac_delim_n = $ac_delim_num; then
11946 elif $ac_last_try; then
11947 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11949 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11952 rm -f conf$$subs.sh
11954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11959 s/^/S["/; s/!.*/"]=/
11969 s/\(.\{148\}\).*/\1/
11971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11983 s/\(.\{148\}\).*/\1/
11985 s/["\\]/\\&/g; s/^/"/; s/$/"/
11989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11994 ' <conf$$subs.awk | sed '
11999 ' >>$CONFIG_STATUS || ac_write_fail=1
12000 rm -f conf$$subs.awk
12001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12003 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12004 for (key in S) S_is_set[key] = 1
12010 nfields = split(line, field, "@")
12012 len = length(field[1])
12013 for (i = 2; i < nfields; i++) {
12015 keylen = length(key)
12016 if (S_is_set[key]) {
12018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12019 len += length(value) + length(field[++i])
12030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12031 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12032 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12035 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12036 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12039 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12040 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12041 # trailing colons and then remove the whole line if VPATH becomes empty
12042 # (actually we leave an empty line to preserve line numbers).
12043 if test "x$srcdir" = x.; then
12044 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12045 s/:*\$(srcdir):*/:/
12046 s/:*\${srcdir}:*/:/
12048 s/^\([^=]*=[ ]*\):*/\1/
12054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12055 fi # test -n "$CONFIG_FILES"
12057 # Set up the scripts for CONFIG_HEADERS section.
12058 # No need to generate them if there are no CONFIG_HEADERS.
12059 # This happens for instance with `./config.status Makefile'.
12060 if test -n "$CONFIG_HEADERS"; then
12061 cat >"$tmp/defines.awk" <<\_ACAWK ||
12065 # Transform confdefs.h into an awk script `defines.awk', embedded as
12066 # here-document in config.status, that substitutes the proper values into
12067 # config.h.in to produce config.h.
12069 # Create a delimiter string that does not exist in confdefs.h, to ease
12070 # handling of long lines.
12072 for ac_last_try in false false :; do
12073 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12074 if test -z "$ac_t"; then
12076 elif $ac_last_try; then
12077 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12083 # For the awk script, D is an array of macro values keyed by name,
12084 # likewise P contains macro parameters if any. Preserve backslash
12085 # newline sequences.
12087 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12089 s/.\{148\}/&'"$ac_delim"'/g
12092 s/^[ ]*#[ ]*define[ ][ ]*/ /
12099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12106 D["\1"]=" \3\\\\\\n"\\/p
12108 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12113 s/.\{148\}/&'"$ac_delim"'/g
12118 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12121 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12123 ' <confdefs.h | sed '
12124 s/'"$ac_delim"'/"\\\
12125 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12128 for (key in D) D_is_set[key] = 1
12131 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12133 split(line, arg, " ")
12134 if (arg[1] == "#") {
12138 defundef = substr(arg[1], 2)
12141 split(mac1, mac2, "(") #)
12143 prefix = substr(line, 1, index(line, defundef) - 1)
12144 if (D_is_set[macro]) {
12145 # Preserve the white space surrounding the "#".
12146 print prefix "define", macro P[macro] D[macro]
12149 # Replace #undef with comments. This is necessary, for example,
12150 # in the case of _POSIX_SOURCE, which is predefined and required
12151 # on some systems where configure will not decide to define it.
12152 if (defundef == "undef") {
12153 print "/*", prefix defundef, macro, "*/"
12161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12162 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12163 fi # test -n "$CONFIG_HEADERS"
12166 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12171 :[FHLC]) ac_mode=$ac_tag; continue;;
12173 case $ac_mode$ac_tag in
12175 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12176 :[FH]-) ac_tag=-:-;;
12177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12194 -) ac_f="$tmp/stdin";;
12195 *) # Look for the file first in the build tree, then in the source tree
12196 # (if the path is not absolute). The absolute path cannot be DOS-style,
12197 # because $ac_f cannot contain `:'.
12201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12203 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12206 as_fn_append ac_file_inputs " '$ac_f'"
12209 # Let's still pretend it is `configure' which instantiates (i.e., don't
12210 # use $as_me), people would be surprised to read:
12211 # /* config.h. Generated by config.status. */
12212 configure_input='Generated from '`
12213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12215 if test x"$ac_file" != x-; then
12216 configure_input="$ac_file. $configure_input"
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12218 $as_echo "$as_me: creating $ac_file" >&6;}
12220 # Neutralize special characters interpreted by sed in replacement strings.
12221 case $configure_input in #(
12222 *\&* | *\|* | *\\* )
12223 ac_sed_conf_input=`$as_echo "$configure_input" |
12224 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12225 *) ac_sed_conf_input=$configure_input;;
12229 *:-:* | *:-) cat >"$tmp/stdin" \
12230 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12235 ac_dir=`$as_dirname -- "$ac_file" ||
12236 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12237 X"$ac_file" : 'X\(//\)[^/]' \| \
12238 X"$ac_file" : 'X\(//\)$' \| \
12239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12240 $as_echo X"$ac_file" |
12241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12245 /^X\(\/\/\)[^/].*/{
12258 as_dir="$ac_dir"; as_fn_mkdir_p
12262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12265 # A ".." for each directory in $ac_dir_suffix.
12266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12267 case $ac_top_builddir_sub in
12268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12272 ac_abs_top_builddir=$ac_pwd
12273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12274 # for backward compatibility:
12275 ac_top_builddir=$ac_top_build_prefix
12278 .) # We are building in place.
12280 ac_top_srcdir=$ac_top_builddir_sub
12281 ac_abs_top_srcdir=$ac_pwd ;;
12282 [\\/]* | ?:[\\/]* ) # Absolute name.
12283 ac_srcdir=$srcdir$ac_dir_suffix;
12284 ac_top_srcdir=$srcdir
12285 ac_abs_top_srcdir=$srcdir ;;
12286 *) # Relative name.
12287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12288 ac_top_srcdir=$ac_top_build_prefix$srcdir
12289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12304 ac_MKDIR_P=$MKDIR_P
12306 [\\/$]* | ?:[\\/]* ) ;;
12307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12312 # If the template does not know about datarootdir, expand it.
12313 # FIXME: This hack should be removed a few years after 2.60.
12314 ac_datarootdir_hack=; ac_datarootdir_seen=
12325 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12326 *datarootdir*) ac_datarootdir_seen=yes;;
12327 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12329 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332 ac_datarootdir_hack='
12333 s&@datadir@&$datadir&g
12334 s&@docdir@&$docdir&g
12335 s&@infodir@&$infodir&g
12336 s&@localedir@&$localedir&g
12337 s&@mandir@&$mandir&g
12338 s&\\\${datarootdir}&$datarootdir&g' ;;
12342 # Neutralize VPATH when `$srcdir' = `.'.
12343 # Shell code in configure.ac might set extrasub.
12344 # FIXME: do we really want to maintain this feature?
12345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12346 ac_sed_extra="$ac_vpsub
12349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12351 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12352 s|@configure_input@|$ac_sed_conf_input|;t t
12353 s&@top_builddir@&$ac_top_builddir_sub&;t t
12354 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12355 s&@srcdir@&$ac_srcdir&;t t
12356 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12357 s&@top_srcdir@&$ac_top_srcdir&;t t
12358 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12359 s&@builddir@&$ac_builddir&;t t
12360 s&@abs_builddir@&$ac_abs_builddir&;t t
12361 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12362 s&@INSTALL@&$ac_INSTALL&;t t
12363 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12364 $ac_datarootdir_hack
12366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12367 || as_fn_error "could not create $ac_file" "$LINENO" 5
12369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12370 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12373 which seems to be undefined. Please make sure it is defined." >&5
12374 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12375 which seems to be undefined. Please make sure it is defined." >&2;}
12379 -) cat "$tmp/out" && rm -f "$tmp/out";;
12380 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12382 || as_fn_error "could not create $ac_file" "$LINENO" 5
12388 if test x"$ac_file" != x-; then
12390 $as_echo "/* $configure_input */" \
12391 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12392 } >"$tmp/config.h" \
12393 || as_fn_error "could not create $ac_file" "$LINENO" 5
12394 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12396 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12399 mv "$tmp/config.h" "$ac_file" \
12400 || as_fn_error "could not create $ac_file" "$LINENO" 5
12403 $as_echo "/* $configure_input */" \
12404 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12405 || as_fn_error "could not create -" "$LINENO" 5
12407 # Compute "$ac_file"'s index in $config_headers.
12410 for _am_header in $config_headers :; do
12411 case $_am_header in
12412 $_am_arg | $_am_arg:* )
12415 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12418 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12419 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12420 X"$_am_arg" : 'X\(//\)[^/]' \| \
12421 X"$_am_arg" : 'X\(//\)$' \| \
12422 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12423 $as_echo X"$_am_arg" |
12424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12428 /^X\(\/\/\)[^/].*/{
12440 s/.*/./; q'`/stamp-h$_am_stamp_count
12443 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12444 $as_echo "$as_me: executing $ac_file commands" >&6;}
12449 case $ac_file$ac_mode in
12450 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12451 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12452 # are listed without --file. Let's play safe and only enable the eval
12453 # if we detect the quoting.
12454 case $CONFIG_FILES in
12455 *\'*) eval set x "$CONFIG_FILES" ;;
12456 *) set x $CONFIG_FILES ;;
12461 # Strip MF so we end up with the name of the file.
12462 mf=`echo "$mf" | sed -e 's/:.*$//'`
12463 # Check whether this is an Automake generated Makefile or not.
12464 # We used to match only the files named `Makefile.in', but
12465 # some people rename them; so instead we look at the file content.
12466 # Grep'ing the first line is not enough: some people post-process
12467 # each Makefile.in and add a new line on top of each file to say so.
12468 # Grep'ing the whole file is not good either: AIX grep has a line
12469 # limit of 2048, but all sed's we know have understand at least 4000.
12470 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12471 dirpart=`$as_dirname -- "$mf" ||
12472 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12473 X"$mf" : 'X\(//\)[^/]' \| \
12474 X"$mf" : 'X\(//\)$' \| \
12475 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12481 /^X\(\/\/\)[^/].*/{
12497 # Extract the definition of DEPDIR, am__include, and am__quote
12498 # from the Makefile without running `make'.
12499 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12500 test -z "$DEPDIR" && continue
12501 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12502 test -z "am__include" && continue
12503 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12504 # When using ansi2knr, U may be empty or an underscore; expand it
12505 U=`sed -n 's/^U = //p' < "$mf"`
12506 # Find all dependency output files, they are included files with
12507 # $(DEPDIR) in their names. We invoke sed twice because it is the
12508 # simplest approach to changing $(DEPDIR) to its actual value in the
12510 for file in `sed -n "
12511 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12512 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12513 # Make sure the directory exists.
12514 test -f "$dirpart/$file" && continue
12515 fdir=`$as_dirname -- "$file" ||
12516 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517 X"$file" : 'X\(//\)[^/]' \| \
12518 X"$file" : 'X\(//\)$' \| \
12519 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12520 $as_echo X"$file" |
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12525 /^X\(\/\/\)[^/].*/{
12538 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12539 # echo "creating $dirpart/$file"
12540 echo '# dummy' > "$dirpart/$file"
12547 # See if we are running on zsh, and set the options which allow our
12548 # commands through without removal of \ escapes.
12549 if test -n "${ZSH_VERSION+set}" ; then
12550 setopt NO_GLOB_SUBST
12553 cfgfile="${ofile}T"
12554 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12557 cat <<_LT_EOF >> "$cfgfile"
12560 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12561 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12562 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12566 # 2006, 2007, 2008 Free Software Foundation, Inc.
12567 # Written by Gordon Matzigkeit, 1996
12569 # This file is part of GNU Libtool.
12571 # GNU Libtool is free software; you can redistribute it and/or
12572 # modify it under the terms of the GNU General Public License as
12573 # published by the Free Software Foundation; either version 2 of
12574 # the License, or (at your option) any later version.
12576 # As a special exception to the GNU General Public License,
12577 # if you distribute this file as part of a program or library that
12578 # is built using GNU Libtool, you may include this file under the
12579 # same distribution terms that you use for the rest of that program.
12581 # GNU Libtool is distributed in the hope that it will be useful,
12582 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12583 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12584 # GNU General Public License for more details.
12586 # You should have received a copy of the GNU General Public License
12587 # along with GNU Libtool; see the file COPYING. If not, a copy
12588 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12589 # obtained by writing to the Free Software Foundation, Inc.,
12590 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12593 # The names of the tagged configurations supported by this script.
12596 # ### BEGIN LIBTOOL CONFIG
12598 # Which release of libtool.m4 was used?
12599 macro_version=$macro_version
12600 macro_revision=$macro_revision
12602 # Whether or not to build shared libraries.
12603 build_libtool_libs=$enable_shared
12605 # Whether or not to build static libraries.
12606 build_old_libs=$enable_static
12608 # What type of objects to build.
12611 # Whether or not to optimize for fast installation.
12612 fast_install=$enable_fast_install
12615 host_alias=$host_alias
12619 # The build system.
12620 build_alias=$build_alias
12624 # A sed program that does not truncate output.
12627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12628 Xsed="\$SED -e 1s/^X//"
12630 # A grep program that handles long lines.
12636 # A literal string matcher.
12639 # A BSD- or MS-compatible name lister.
12642 # Whether we need soft or hard links.
12645 # What is the maximum length of a command?
12646 max_cmd_len=$max_cmd_len
12648 # Object file suffix (normally "o").
12651 # Executable file suffix (normally "").
12654 # whether the shell understands "unset".
12657 # turn spaces into newlines.
12660 # turn newlines into spaces.
12663 # How to create reloadable object files.
12664 reload_flag=$lt_reload_flag
12665 reload_cmds=$lt_reload_cmds
12667 # An object symbol dumper.
12668 OBJDUMP=$lt_OBJDUMP
12670 # Method to check whether dependent libraries are shared objects.
12671 deplibs_check_method=$lt_deplibs_check_method
12673 # Command to use when deplibs_check_method == "file_magic".
12674 file_magic_cmd=$lt_file_magic_cmd
12678 AR_FLAGS=$lt_AR_FLAGS
12680 # A symbol stripping program.
12683 # Commands used to install an old-style archive.
12685 old_postinstall_cmds=$lt_old_postinstall_cmds
12686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12691 # LTCC compiler flags.
12692 LTCFLAGS=$lt_CFLAGS
12694 # Take the output of nm and produce a listing of raw symbols and C names.
12695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12697 # Transform the output of nm in a proper C declaration.
12698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12700 # Transform the output of nm in a C name address pair.
12701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12703 # Transform the output of nm in a C name address pair when lib prefix is needed.
12704 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12706 # The name of the directory that contains temporary libtool files.
12709 # Shell to use when invoking shell scripts.
12712 # An echo program that does not interpret backslashes.
12715 # Used to examine libraries when file_magic_cmd begins with "file".
12716 MAGIC_CMD=$MAGIC_CMD
12718 # Must we lock files when doing compilation?
12719 need_locks=$lt_need_locks
12721 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12722 DSYMUTIL=$lt_DSYMUTIL
12724 # Tool to change global to local symbols on Mac OS X.
12727 # Tool to manipulate fat objects and archives on Mac OS X.
12730 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12733 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12734 OTOOL64=$lt_OTOOL64
12736 # Old archive suffix (normally "a").
12739 # Shared library suffix (normally ".so").
12740 shrext_cmds=$lt_shrext_cmds
12742 # The commands to extract the exported symbol list from a shared archive.
12743 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12745 # Variables whose values should be saved in libtool wrapper scripts and
12746 # restored at link time.
12747 variables_saved_for_relink=$lt_variables_saved_for_relink
12749 # Do we need the "lib" prefix for modules?
12750 need_lib_prefix=$need_lib_prefix
12752 # Do we need a version for libraries?
12753 need_version=$need_version
12755 # Library versioning type.
12756 version_type=$version_type
12758 # Shared library runtime path variable.
12759 runpath_var=$runpath_var
12761 # Shared library path variable.
12762 shlibpath_var=$shlibpath_var
12764 # Is shlibpath searched before the hard-coded library search path?
12765 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12767 # Format of library name prefix.
12768 libname_spec=$lt_libname_spec
12770 # List of archive names. First name is the real one, the rest are links.
12771 # The last name is the one that the linker finds with -lNAME
12772 library_names_spec=$lt_library_names_spec
12774 # The coded name of the library, if different from the real name.
12775 soname_spec=$lt_soname_spec
12777 # Command to use after installation of a shared archive.
12778 postinstall_cmds=$lt_postinstall_cmds
12780 # Command to use after uninstallation of a shared archive.
12781 postuninstall_cmds=$lt_postuninstall_cmds
12783 # Commands used to finish a libtool library installation in a directory.
12784 finish_cmds=$lt_finish_cmds
12786 # As "finish_cmds", except a single script fragment to be evaled but
12788 finish_eval=$lt_finish_eval
12790 # Whether we should hardcode library paths into libraries.
12791 hardcode_into_libs=$hardcode_into_libs
12793 # Compile-time system search path for libraries.
12794 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12796 # Run-time system search path for libraries.
12797 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12799 # Whether dlopen is supported.
12800 dlopen_support=$enable_dlopen
12802 # Whether dlopen of programs is supported.
12803 dlopen_self=$enable_dlopen_self
12805 # Whether dlopen of statically linked programs is supported.
12806 dlopen_self_static=$enable_dlopen_self_static
12808 # Commands to strip libraries.
12809 old_striplib=$lt_old_striplib
12810 striplib=$lt_striplib
12813 # The linker used to build libraries.
12816 # Commands used to build an old-style archive.
12817 old_archive_cmds=$lt_old_archive_cmds
12819 # A language specific compiler.
12822 # Is the compiler the GNU compiler?
12825 # Compiler flag to turn off builtin functions.
12826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12828 # How to pass a linker flag through the compiler.
12829 wl=$lt_lt_prog_compiler_wl
12831 # Additional compiler flags for building library objects.
12832 pic_flag=$lt_lt_prog_compiler_pic
12834 # Compiler flag to prevent dynamic linking.
12835 link_static_flag=$lt_lt_prog_compiler_static
12837 # Does compiler simultaneously support -c and -o options?
12838 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12840 # Whether or not to add -lc for building shared libraries.
12841 build_libtool_need_lc=$archive_cmds_need_lc
12843 # Whether or not to disallow shared libs when runtime libs are static.
12844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12846 # Compiler flag to allow reflexive dlopens.
12847 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12849 # Compiler flag to generate shared objects directly from archives.
12850 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12852 # Whether the compiler copes with passing no objects directly.
12853 compiler_needs_object=$lt_compiler_needs_object
12855 # Create an old-style archive from a shared archive.
12856 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12858 # Create a temporary old-style archive to link instead of a shared archive.
12859 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12861 # Commands used to build a shared archive.
12862 archive_cmds=$lt_archive_cmds
12863 archive_expsym_cmds=$lt_archive_expsym_cmds
12865 # Commands used to build a loadable module if different from building
12866 # a shared archive.
12867 module_cmds=$lt_module_cmds
12868 module_expsym_cmds=$lt_module_expsym_cmds
12870 # Whether we are building with GNU ld or not.
12871 with_gnu_ld=$lt_with_gnu_ld
12873 # Flag that allows shared libraries with undefined symbols to be built.
12874 allow_undefined_flag=$lt_allow_undefined_flag
12876 # Flag that enforces no undefined symbols.
12877 no_undefined_flag=$lt_no_undefined_flag
12879 # Flag to hardcode \$libdir into a binary during linking.
12880 # This must work even if \$libdir does not exist
12881 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12883 # If ld is used when linking, flag to hardcode \$libdir into a binary
12884 # during linking. This must work even if \$libdir does not exist.
12885 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12887 # Whether we need a single "-rpath" flag with a separated argument.
12888 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12891 # DIR into the resulting binary.
12892 hardcode_direct=$hardcode_direct
12894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12895 # DIR into the resulting binary and the resulting library dependency is
12896 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12897 # library is relocated.
12898 hardcode_direct_absolute=$hardcode_direct_absolute
12900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12901 # into the resulting binary.
12902 hardcode_minus_L=$hardcode_minus_L
12904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12905 # into the resulting binary.
12906 hardcode_shlibpath_var=$hardcode_shlibpath_var
12908 # Set to "yes" if building a shared library automatically hardcodes DIR
12909 # into the library and all subsequent libraries and executables linked
12911 hardcode_automatic=$hardcode_automatic
12913 # Set to yes if linker adds runtime paths of dependent libraries
12914 # to runtime path list.
12915 inherit_rpath=$inherit_rpath
12917 # Whether libtool must link a program against all its dependency libraries.
12918 link_all_deplibs=$link_all_deplibs
12920 # Fix the shell variable \$srcfile for the compiler.
12921 fix_srcfile_path=$lt_fix_srcfile_path
12923 # Set to "yes" if exported symbols are required.
12924 always_export_symbols=$always_export_symbols
12926 # The commands to list exported symbols.
12927 export_symbols_cmds=$lt_export_symbols_cmds
12929 # Symbols that should not be listed in the preloaded symbols.
12930 exclude_expsyms=$lt_exclude_expsyms
12932 # Symbols that must always be exported.
12933 include_expsyms=$lt_include_expsyms
12935 # Commands necessary for linking programs (against libraries) with templates.
12936 prelink_cmds=$lt_prelink_cmds
12938 # Specify filename containing input files.
12939 file_list_spec=$lt_file_list_spec
12941 # How to hardcode a shared library path into an executable.
12942 hardcode_action=$hardcode_action
12944 # ### END LIBTOOL CONFIG
12950 cat <<\_LT_EOF >> "$cfgfile"
12951 # AIX sometimes has problems with the GCC collect2 program. For some
12952 # reason, if we set the COLLECT_NAMES environment variable, the problems
12953 # vanish in a puff of smoke.
12954 if test "X${COLLECT_NAMES+set}" != Xset; then
12956 export COLLECT_NAMES
12963 ltmain="$ac_aux_dir/ltmain.sh"
12966 # We use sed instead of cat because bash on DJGPP gets confused if
12967 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12968 # text mode, it properly converts lines to CR/LF. This bash problem
12969 # is reportedly fixed, but why not run on old versions too?
12970 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12971 || (rm -f "$cfgfile"; exit 1)
12975 cat << \_LT_EOF >> "$cfgfile"
12977 # func_dirname file append nondir_replacement
12978 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12979 # otherwise set result to NONDIR_REPLACEMENT.
12983 */*) func_dirname_result="${1%/*}${2}" ;;
12984 * ) func_dirname_result="${3}" ;;
12988 # func_basename file
12991 func_basename_result="${1##*/}"
12994 # func_dirname_and_basename file append nondir_replacement
12995 # perform func_basename and func_dirname in a single function
12997 # dirname: Compute the dirname of FILE. If nonempty,
12998 # add APPEND to the result, otherwise set result
12999 # to NONDIR_REPLACEMENT.
13000 # value returned in "$func_dirname_result"
13001 # basename: Compute filename of FILE.
13002 # value retuned in "$func_basename_result"
13003 # Implementation must be kept synchronized with func_dirname
13004 # and func_basename. For efficiency, we do not delegate to
13005 # those functions but instead duplicate the functionality here.
13006 func_dirname_and_basename ()
13009 */*) func_dirname_result="${1%/*}${2}" ;;
13010 * ) func_dirname_result="${3}" ;;
13012 func_basename_result="${1##*/}"
13015 # func_stripname prefix suffix name
13016 # strip PREFIX and SUFFIX off of NAME.
13017 # PREFIX and SUFFIX must not contain globbing or regex special
13018 # characters, hashes, percent signs, but SUFFIX may contain a leading
13019 # dot (in which case that matches only a dot).
13022 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13023 # positional parameters, so assign one to ordinary parameter first.
13024 func_stripname_result=${3}
13025 func_stripname_result=${func_stripname_result#"${1}"}
13026 func_stripname_result=${func_stripname_result%"${2}"}
13032 func_opt_split_opt=${1%%=*}
13033 func_opt_split_arg=${1#*=}
13040 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13041 *) func_lo2o_result=${1} ;;
13045 # func_xform libobj-or-source
13048 func_xform_result=${1%.*}.lo
13051 # func_arith arithmetic-term...
13054 func_arith_result=$(( $* ))
13058 # STRING may not start with a hyphen.
13061 func_len_result=${#1}
13066 *) # Bourne compatible functions.
13067 cat << \_LT_EOF >> "$cfgfile"
13069 # func_dirname file append nondir_replacement
13070 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13071 # otherwise set result to NONDIR_REPLACEMENT.
13074 # Extract subdirectory from the argument.
13075 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13076 if test "X$func_dirname_result" = "X${1}"; then
13077 func_dirname_result="${3}"
13079 func_dirname_result="$func_dirname_result${2}"
13083 # func_basename file
13086 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13090 # func_stripname prefix suffix name
13091 # strip PREFIX and SUFFIX off of NAME.
13092 # PREFIX and SUFFIX must not contain globbing or regex special
13093 # characters, hashes, percent signs, but SUFFIX may contain a leading
13094 # dot (in which case that matches only a dot).
13095 # func_strip_suffix prefix name
13099 .*) func_stripname_result=`$ECHO "X${3}" \
13100 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13101 *) func_stripname_result=`$ECHO "X${3}" \
13102 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13107 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13108 my_sed_long_arg='1s/^-[^=]*=//'
13113 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13114 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13120 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13123 # func_xform libobj-or-source
13126 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13129 # func_arith arithmetic-term...
13132 func_arith_result=`expr "$@"`
13136 # STRING may not start with a hyphen.
13139 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13145 case $lt_shell_append in
13147 cat << \_LT_EOF >> "$cfgfile"
13149 # func_append var value
13150 # Append VALUE to the end of shell variable VAR.
13158 cat << \_LT_EOF >> "$cfgfile"
13160 # func_append var value
13161 # Append VALUE to the end of shell variable VAR.
13172 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13173 || (rm -f "$cfgfile"; exit 1)
13175 mv -f "$cfgfile" "$ofile" ||
13176 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13187 ac_clean_files=$ac_clean_files_save
13189 test $ac_write_fail = 0 ||
13190 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13193 # configure is writing to config.log, and then calls config.status.
13194 # config.status does its own redirection, appending to config.log.
13195 # Unfortunately, on DOS this fails, as config.log is still kept open
13196 # by configure, so config.status won't be able to write to it; its
13197 # output is simply discarded. So we exec the FD to /dev/null,
13198 # effectively closing config.log, so it can be properly (re)opened and
13199 # appended to by config.status. When coming back to configure, we
13200 # need to make the FD available again.
13201 if test "$no_create" != yes; then
13203 ac_config_status_args=
13204 test "$silent" = yes &&
13205 ac_config_status_args="$ac_config_status_args --quiet"
13207 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13209 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13210 # would make configure fail if this is the last instruction.
13211 $ac_cs_success || as_fn_exit $?
13213 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13215 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}