2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libwebsockets 0.3.
5 # Report bugs to <andy@warmcat.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and andy@warmcat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libwebsockets'
572 PACKAGE_TARNAME='libwebsockets'
573 PACKAGE_VERSION='0.3'
574 PACKAGE_STRING='libwebsockets 0.3'
575 PACKAGE_BUGREPORT='andy@warmcat.com'
578 ac_unique_file="test-server/test-server.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
680 INSTALL_STRIP_PROGRAM
722 program_transform_name
735 enable_option_checking
740 enable_dependency_tracking
751 ac_precious_vars='build_alias
762 # Initialize some variables set by options.
764 ac_init_version=false
765 ac_unrecognized_opts=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
776 program_transform_name=s,x,x,
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
827 # Accept the important Cygnus configure options, so we can diagnose typos.
829 case $ac_dashdash$ac_option in
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
851 cache_file=config.cache ;;
853 -datadir | --datadir | --datadi | --datad)
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
879 eval enable_$ac_useropt=no ;;
881 -docdir | --docdir | --docdi | --doc | --do)
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=\$ac_optarg ;;
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
920 -help | --help | --hel | --he | -h)
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 htmldir=$ac_optarg ;;
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
950 -libdir | --libdir | --libdi | --libd)
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
962 -localedir | --localedir | --localedi | --localed | --locale)
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980 # Obsolete; use --without-fp.
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1041 -psdir | --psdir | --psdi | --psd | --ps)
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 sbindir=$ac_optarg ;;
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 sharedstatedir=$ac_optarg ;;
1067 -site | --site | --sit)
1069 -site=* | --site=* | --sit=*)
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1109 eval with_$ac_useropt=\$ac_optarg ;;
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=no ;;
1128 # Obsolete; use --with-x.
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1196 # Be sure to have absolute directory names.
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1209 target=$target_alias
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used" >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1225 test "$silent" = yes && exec 6>/dev/null
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error $? "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error $? "pwd does not report name of working directory"
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1268 ac_srcdir_defaulted=no
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 # Report the --help message.
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1302 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1309 Defaults for the options are specified in brackets.
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking ...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1333 For better control, use the options below.
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/libwebsockets]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-shared[=PKGS] build shared libraries [default=yes]
1381 --enable-static[=PKGS] build static libraries [default=yes]
1382 --enable-fast-install[=PKGS]
1383 optimize for fast installation [default=yes]
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1386 --disable-libtool-lock avoid locking (might break parallel builds)
1387 --enable-openssl Enables https support and needs openssl libs
1388 --enable-nofork Disables fork-related options
1389 --enable-libcrypto Use libcrypto MD5 and SHA1 implementations
1390 --enable-x-google-mux Build experimental x-google-mux
1391 --enable-noping Do not build ping test app, which has some unixy stuff in sources
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-pic try to use only PIC/non-PIC objects [default=use
1398 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399 --with-sysroot=DIR Search for dependent libraries within DIR
1400 (or the compiler's sysroot if not specified).
1401 --with-client-cert-dir directory containing client certs, defaults to
1404 Some influential environment variables:
1405 CC C compiler command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1408 nonstandard directory <lib dir>
1409 LIBS libraries to pass to the linker, e.g. -l<library>
1410 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1411 you have headers in a nonstandard directory <include dir>
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to <andy@warmcat.com>.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1447 .) # We are building in place.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1480 libwebsockets configure 0.3
1481 generated by GNU Autoconf 2.68
1483 Copyright (C) 2010 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528 as_fn_set_status $ac_retval
1530 } # ac_fn_c_try_compile
1532 # ac_fn_c_try_link LINENO
1533 # -----------------------
1534 # Try to link conftest.$ac_ext, and return whether this succeeded.
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext conftest$ac_exeext
1539 if { { ac_try="$ac_link"
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_link") 2>conftest.err
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest$ac_exeext && {
1558 test "$cross_compiling" = yes ||
1559 $as_test_x conftest$ac_exeext
1563 $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1568 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1569 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1570 # interfere with the next link command; also delete a directory that is
1571 # left behind by Apple's compiler. We do this before executing the actions.
1572 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_link
1578 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1579 # -------------------------------------------------------
1580 # Tests whether HEADER exists and can be compiled using the include files in
1581 # INCLUDES, setting the cache variable VAR accordingly.
1582 ac_fn_c_check_header_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588 $as_echo_n "(cached) " >&6
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1595 if ac_fn_c_try_compile "$LINENO"; then :
1600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 } # ac_fn_c_check_header_compile
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } > conftest.i && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642 as_fn_set_status $ac_retval
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=$ac_status
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1688 # ac_fn_c_check_func LINENO FUNC VAR
1689 # ----------------------------------
1690 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1691 ac_fn_c_check_func ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697 $as_echo_n "(cached) " >&6
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1703 #define $2 innocuous_$2
1705 /* System header to define __stub macros and hopefully few prototypes,
1706 which can conflict with char $2 (); below.
1707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1708 <limits.h> exists even on freestanding compilers. */
1711 # include <limits.h>
1713 # include <assert.h>
1718 /* Override any GCC internal prototype to avoid an error.
1719 Use char because int might match the return type of a GCC
1720 builtin and then its argument prototype would still apply. */
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined __stub_$2 || defined __stub___$2
1740 if ac_fn_c_try_link "$LINENO"; then :
1745 rm -f core conftest.err conftest.$ac_objext \
1746 conftest$ac_exeext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 } # ac_fn_c_check_func
1755 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1756 # -------------------------------------------
1757 # Tests whether TYPE exists after having included INCLUDES, setting cache
1758 # variable VAR accordingly.
1759 ac_fn_c_check_type ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1793 if ac_fn_c_try_compile "$LINENO"; then :
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 } # ac_fn_c_check_type
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1814 ac_fn_c_check_header_mongrel ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 if eval \${$3+:} false; then :
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1827 # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836 ac_header_compiler=yes
1838 ac_header_compiler=no
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852 ac_header_preproc=yes
1854 ac_header_preproc=no
1856 rm -f conftest.err conftest.i conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1860 # So? What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ( $as_echo "## ------------------------------- ##
1880 ## Report this to andy@warmcat.com ##
1881 ## ------------------------------- ##"
1882 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_header_mongrel
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1903 It was created by libwebsockets $as_me 0.3, which was
1904 generated by GNU Autoconf 2.68. Invocation command line was
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1925 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1926 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1929 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1930 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1931 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 test -z "$as_dir" && as_dir=.
1940 $as_echo "PATH: $as_dir"
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1964 ac_must_keep_next=false
1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972 | -silent | --silent | --silen | --sile | --sil)
1975 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1980 as_fn_append ac_configure_args1 " '$ac_arg'"
1981 if test $ac_must_keep_next = true; then
1982 ac_must_keep_next=false # Got value, back to normal.
1985 *=* | --config-cache | -C | -disable-* | --disable-* \
1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988 | -with-* | --with-* | -without-* | --without-* | --x)
1989 case "$ac_configure_args0 " in
1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 -* ) ac_must_keep_next=true ;;
1996 as_fn_append ac_configure_args " '$ac_arg'"
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log. We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010 # Save into config.log some information that might help in debugging.
2014 $as_echo "## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##"
2018 # The following way of writing the cache mishandles newlines in values,
2020 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021 eval ac_val=\$$ac_var
2025 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 _ | IFS | as_nl) ;; #(
2030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031 *) { eval $ac_var=; unset $ac_var;} ;;
2036 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037 *${as_nl}ac_space=\ *)
2039 "s/'\''/'\''\\\\'\'''\''/g;
2040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2050 $as_echo "## ----------------- ##
2051 ## Output variables. ##
2052 ## ----------------- ##"
2054 for ac_var in $ac_subst_vars
2056 eval ac_val=\$$ac_var
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 $as_echo "$ac_var='\''$ac_val'\''"
2064 if test -n "$ac_subst_files"; then
2065 $as_echo "## ------------------- ##
2066 ## File substitutions. ##
2067 ## ------------------- ##"
2069 for ac_var in $ac_subst_files
2071 eval ac_val=\$$ac_var
2073 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075 $as_echo "$ac_var='\''$ac_val'\''"
2080 if test -s confdefs.h; then
2081 $as_echo "## ----------- ##
2088 test "$ac_signal" != 0 &&
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 for ac_signal in 1 2 13 15; do
2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2104 $as_echo "/* confdefs.h */" > confdefs.h
2106 # Predefined preprocessor variables.
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2137 if test -n "$CONFIG_SITE"; then
2138 # We do not want a PATH search for config.site.
2139 case $CONFIG_SITE in #((
2140 -*) ac_site_file1=./$CONFIG_SITE;;
2141 */*) ac_site_file1=$CONFIG_SITE;;
2142 *) ac_site_file1=./$CONFIG_SITE;;
2144 elif test "x$prefix" != xNONE; then
2145 ac_site_file1=$prefix/share/config.site
2146 ac_site_file2=$prefix/etc/config.site
2148 ac_site_file1=$ac_default_prefix/share/config.site
2149 ac_site_file2=$ac_default_prefix/etc/config.site
2151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2153 test "x$ac_site_file" = xNONE && continue
2154 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157 sed 's/^/| /' "$ac_site_file" >&5
2159 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2166 if test -r "$cache_file"; then
2167 # Some versions of bash will fail to source /dev/null (special files
2168 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2169 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 $as_echo "$as_me: loading cache $cache_file" >&6;}
2173 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174 *) . "./$cache_file";;
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 $as_echo "$as_me: creating cache $cache_file" >&6;}
2183 # Check that the precious variables saved in the cache have kept the same
2185 ac_cache_corrupted=false
2186 for ac_var in $ac_precious_vars; do
2187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188 eval ac_new_set=\$ac_env_${ac_var}_set
2189 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190 eval ac_new_val=\$ac_env_${ac_var}_value
2191 case $ac_old_set,$ac_new_set in
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195 ac_cache_corrupted=: ;;
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199 ac_cache_corrupted=: ;;
2202 if test "x$ac_old_val" != "x$ac_new_val"; then
2203 # differences in whitespace do not lead to failure.
2204 ac_old_val_w=`echo x $ac_old_val`
2205 ac_new_val_w=`echo x $ac_new_val`
2206 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209 ac_cache_corrupted=:
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213 eval $ac_var=\$ac_old_val
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2216 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2218 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 # Pass precious variables to config.status.
2222 if test "$ac_new_set" = set; then
2224 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 *) ac_arg=$ac_var=$ac_new_val ;;
2227 case " $ac_configure_args " in
2228 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2229 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2233 if $ac_cache_corrupted; then
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2240 ## -------------------- ##
2241 ## Main body of script. ##
2242 ## -------------------- ##
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2252 ac_config_headers="$ac_config_headers config.h"
2255 am__api_version='1.11'
2258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2259 if test -f "$ac_dir/install-sh"; then
2261 ac_install_sh="$ac_aux_dir/install-sh -c"
2263 elif test -f "$ac_dir/install.sh"; then
2265 ac_install_sh="$ac_aux_dir/install.sh -c"
2267 elif test -f "$ac_dir/shtool"; then
2269 ac_install_sh="$ac_aux_dir/shtool install -c"
2273 if test -z "$ac_aux_dir"; then
2274 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286 # Find a good install program. We prefer a C program (faster),
2287 # so one script is as good as another. But avoid the broken or
2288 # incompatible versions:
2289 # SysV /etc/install, /usr/sbin/install
2290 # SunOS /usr/etc/install
2291 # IRIX /sbin/install
2293 # AmigaOS /C/install, which installs bootblocks on floppy discs
2294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2297 # OS/2's system install, which has a completely different semantic
2298 # ./install, which can be erroneously created by make from ./install.sh.
2299 # Reject install programs that cannot install multiple files.
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2301 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2302 if test -z "$INSTALL"; then
2303 if ${ac_cv_path_install+:} false; then :
2304 $as_echo_n "(cached) " >&6
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 test -z "$as_dir" && as_dir=.
2311 # Account for people who put trailing slashes in PATH elements.
2312 case $as_dir/ in #((
2313 ./ | .// | /[cC]/* | \
2314 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2315 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2318 # OSF1 and SCO ODT 3.0 have their own names for install.
2319 # Don't use installbsd from OSF since it installs stuff as root
2321 for ac_prog in ginstall scoinst install; do
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2324 if test $ac_prog = install &&
2325 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2326 # AIX install. It has an incompatible calling convention.
2328 elif test $ac_prog = install &&
2329 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330 # program-specific install script used by HP pwplus--don't use.
2333 rm -rf conftest.one conftest.two conftest.dir
2334 echo one > conftest.one
2335 echo two > conftest.two
2337 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2338 test -s conftest.one && test -s conftest.two &&
2339 test -s conftest.dir/conftest.one &&
2340 test -s conftest.dir/conftest.two
2342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2355 rm -rf conftest.one conftest.two conftest.dir
2358 if test "${ac_cv_path_install+set}" = set; then
2359 INSTALL=$ac_cv_path_install
2361 # As a last resort, use the slow shell script. Don't cache a
2362 # value for INSTALL within a source directory, because that will
2363 # break other packages using the cache if that directory is
2364 # removed, or if the value is a relative name.
2365 INSTALL=$ac_install_sh
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2369 $as_echo "$INSTALL" >&6; }
2371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2372 # It thinks the first close brace ends the variable substitution.
2373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2380 $as_echo_n "checking whether build environment is sane... " >&6; }
2383 echo timestamp > conftest.file
2384 # Reject unsafe characters in $srcdir or the absolute working directory
2385 # name. Accept space and tab only in the latter.
2389 *[\\\"\#\$\&\'\`$am_lf]*)
2390 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2393 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2394 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2397 # Do `set' in a subshell so we don't clobber the current shell's
2398 # arguments. Must try -L first in case configure is actually a
2399 # symlink; some systems play weird games with the mod time of symlinks
2400 # (eg FreeBSD returns the mod time of the symlink's containing
2403 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2404 if test "$*" = "X"; then
2406 set X `ls -t "$srcdir/configure" conftest.file`
2409 if test "$*" != "X $srcdir/configure conftest.file" \
2410 && test "$*" != "X conftest.file $srcdir/configure"; then
2412 # If neither matched, then we have a broken ls. This can happen
2413 # if, for instance, CONFIG_SHELL is bash and it inherits a
2414 # broken ls alias from the environment. This has actually
2415 # happened. Such a system could not be considered "sane".
2416 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2417 alias in your environment" "$LINENO" 5
2420 test "$2" = conftest.file
2426 as_fn_error $? "newly created file is older than distributed files!
2427 Check your system clock" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2430 $as_echo "yes" >&6; }
2431 test "$program_prefix" != NONE &&
2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2441 # expand $ac_aux_dir to an absolute path
2442 am_aux_dir=`cd $ac_aux_dir && pwd`
2444 if test x"${MISSING+set}" != xset; then
2447 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2449 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2452 # Use eval to expand $SHELL
2453 if eval "$MISSING --run true"; then
2454 am_missing_run="$MISSING --run "
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2458 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2461 if test x"${install_sh}" != xset; then
2464 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2466 install_sh="\${SHELL} $am_aux_dir/install-sh"
2470 # Installed binaries are usually stripped using `strip' when the user
2471 # run `make install-strip'. However `strip' might not be the right
2472 # tool to use in cross-compilation environments, therefore Automake
2473 # will honor the `STRIP' environment variable to overrule this program.
2474 if test "$cross_compiling" != no; then
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_STRIP+:} false; then :
2481 $as_echo_n "(cached) " >&6
2483 if test -n "$STRIP"; then
2484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 STRIP=$ac_cv_prog_STRIP
2504 if test -n "$STRIP"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2506 $as_echo "$STRIP" >&6; }
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2514 if test -z "$ac_cv_prog_STRIP"; then
2516 # Extract the first word of "strip", so it can be a program name with args.
2517 set dummy strip; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$ac_ct_STRIP"; then
2524 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_ac_ct_STRIP="strip"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2544 if test -n "$ac_ct_STRIP"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2546 $as_echo "$ac_ct_STRIP" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2552 if test "x$ac_ct_STRIP" = x; then
2555 case $cross_compiling:$ac_tool_warned in
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2564 STRIP="$ac_cv_prog_STRIP"
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2571 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2572 if test -z "$MKDIR_P"; then
2573 if ${ac_cv_path_mkdir+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2580 test -z "$as_dir" && as_dir=.
2581 for ac_prog in mkdir gmkdir; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2584 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2585 'mkdir (GNU coreutils) '* | \
2586 'mkdir (coreutils) '* | \
2587 'mkdir (fileutils) '4.1*)
2588 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2598 test -d ./--version && rmdir ./--version
2599 if test "${ac_cv_path_mkdir+set}" = set; then
2600 MKDIR_P="$ac_cv_path_mkdir -p"
2602 # As a last resort, use the slow shell script. Don't cache a
2603 # value for MKDIR_P within a source directory, because that will
2604 # break other packages using the cache if that directory is
2605 # removed, or if the value is a relative name.
2606 MKDIR_P="$ac_install_sh -d"
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2610 $as_echo "$MKDIR_P" >&6; }
2614 [\\/$]* | ?:[\\/]*) ;;
2615 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2618 for ac_prog in gawk mawk nawk awk
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625 $as_echo_n "(cached) " >&6
2627 if test -n "$AWK"; then
2628 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_AWK="$ac_prog"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 if test -n "$AWK"; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2657 test -n "$AWK" && break
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665 $as_echo_n "(cached) " >&6
2667 cat >conftest.make <<\_ACEOF
2670 @echo '@@@%%%=$(MAKE)=@@@%%%'
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2675 eval ac_cv_prog_make_${ac_make}_set=yes;;
2677 eval ac_cv_prog_make_${ac_make}_set=no;;
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688 SET_MAKE="MAKE=${MAKE-make}"
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2698 rmdir .tst 2>/dev/null
2700 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2701 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2702 # is not polluted with repeated "-I."
2703 am__isrc=' -I$(srcdir)'
2704 # test to see if srcdir already configured
2705 if test -f $srcdir/config.status; then
2706 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2710 # test whether we have cygpath
2711 if test -z "$CYGPATH_W"; then
2712 if (cygpath --version) >/dev/null 2>/dev/null; then
2713 CYGPATH_W='cygpath -w'
2720 # Define the identity of the package.
2721 PACKAGE='libwebsockets'
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE "$PACKAGE"
2730 cat >>confdefs.h <<_ACEOF
2731 #define VERSION "$VERSION"
2734 # Some tools Automake needs.
2736 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2739 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2742 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2745 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2748 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2750 # We need awk for the "check" target. The system "awk" is bad on
2752 # Always define AMTAR for backward compatibility.
2754 AMTAR=${AMTAR-"${am_missing_run}tar"}
2756 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2771 macro_revision='1.3293'
2785 ltmain="$ac_aux_dir/ltmain.sh"
2787 # Make sure we can run config.sub.
2788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2789 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2792 $as_echo_n "checking build system type... " >&6; }
2793 if ${ac_cv_build+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 ac_build_alias=$build_alias
2797 test "x$ac_build_alias" = x &&
2798 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2799 test "x$ac_build_alias" = x &&
2800 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2806 $as_echo "$ac_cv_build" >&6; }
2807 case $ac_cv_build in
2809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2812 ac_save_IFS=$IFS; IFS='-'
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2826 $as_echo_n "checking host system type... " >&6; }
2827 if ${ac_cv_host+:} false; then :
2828 $as_echo_n "(cached) " >&6
2830 if test "x$host_alias" = x; then
2831 ac_cv_host=$ac_cv_build
2833 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2839 $as_echo "$ac_cv_host" >&6; }
2842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2845 ac_save_IFS=$IFS; IFS='-'
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2858 # Backslashify metacharacters that are still active within
2859 # double-quoted strings.
2860 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2862 # Same as above, but do not quote variable references.
2863 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2865 # Sed substitution to delay expansion of an escaped shell variable in a
2866 # double_quote_subst'ed string.
2867 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2869 # Sed substitution to delay expansion of an escaped single quote.
2870 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2872 # Sed substitution to avoid accidental globbing in evaled expressions
2873 no_glob_subst='s/\*/\\\*/g'
2875 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2880 $as_echo_n "checking how to print strings... " >&6; }
2881 # Test print first, because it will be a builtin if present.
2882 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2883 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2885 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2888 # Use this function as a fallback that always works.
2889 func_fallback_echo ()
2891 eval 'cat <<_LTECHO_EOF
2895 ECHO='func_fallback_echo'
2898 # func_echo_all arg...
2899 # Invoke $ECHO with all args, space-separated.
2906 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2907 $as_echo "printf" >&6; } ;;
2908 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2909 $as_echo "print -r" >&6; } ;;
2910 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2911 $as_echo "cat" >&6; } ;;
2927 DEPDIR="${am__leading_dot}deps"
2929 ac_config_commands="$ac_config_commands depfiles"
2932 am_make=${MAKE-make}
2933 cat > confinc << 'END'
2935 @echo this is the am__doit target
2938 # If we don't find an include directive, just comment out the code.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2940 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2944 # First try GNU make style include.
2945 echo "include confinc" > confmf
2946 # Ignore all kinds of additional output from `make'.
2947 case `$am_make -s -f confmf 2> /dev/null` in #(
2948 *the\ am__doit\ target*)
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956 echo '.include "confinc"' > confmf
2957 case `$am_make -s -f confmf 2> /dev/null` in #(
2958 *the\ am__doit\ target*)
2959 am__include=.include
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2968 $as_echo "$_am_result" >&6; }
2969 rm -f confinc confmf
2971 # Check whether --enable-dependency-tracking was given.
2972 if test "${enable_dependency_tracking+set}" = set; then :
2973 enableval=$enable_dependency_tracking;
2976 if test "x$enable_dependency_tracking" != xno; then
2977 am_depcomp="$ac_aux_dir/depcomp"
2980 if test "x$enable_dependency_tracking" != xno; then
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3033 if test -z "$ac_cv_prog_CC"; then
3035 # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$ac_ct_CC"; then
3043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_ac_ct_CC="gcc"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3071 if test "x$ac_ct_CC" = x; then
3074 case $cross_compiling:$ac_tool_warned in
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3086 if test -z "$CC"; then
3087 if test -n "$ac_tool_prefix"; then
3088 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093 $as_echo_n "(cached) " >&6
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="${ac_tool_prefix}cc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 if test -n "$CC"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147 ac_prog_rejected=yes
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test $ac_prog_rejected = yes; then
3159 # We found a bogon in the path, so make sure we never use it.
3160 set dummy $ac_cv_prog_CC
3162 if test $# != 0; then
3163 # We chose a different compiler from the bogus one.
3164 # However, it has the same basename, so the bogon will be chosen
3165 # first if we set CC to just the basename; use the full file name.
3167 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 if test -n "$ac_tool_prefix"; then
3185 for ac_prog in cl.exe
3187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192 $as_echo_n "(cached) " >&6
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 if test -n "$CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3224 test -n "$CC" && break
3227 if test -z "$CC"; then
3229 for ac_prog in cl.exe
3231 # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$ac_ct_CC"; then
3239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_ac_ct_CC="$ac_prog"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3268 test -n "$ac_ct_CC" && break
3271 if test "x$ac_ct_CC" = x; then
3274 case $cross_compiling:$ac_tool_warned in
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3287 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 # Provide some information about the compiler.
3293 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3296 for ac_option in --version -v -V -qversion; do
3297 { { ac_try="$ac_compiler $ac_option >&5"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3306 if test -s conftest.err; then
3308 ... rest of stderr output deleted ...
3309 10q' conftest.err >conftest.er1
3310 cat conftest.er1 >&5
3312 rm -f conftest.er1 conftest.err
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3328 ac_clean_files_save=$ac_clean_files
3329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 # Try to create an executable without -o first, disregard a.out.
3331 # It will help us diagnose broken compilers, and finding out an intuition
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3337 # The possible output files:
3338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3341 for ac_file in $ac_files
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3350 if { { ac_try="$ac_link_default"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link_default") 2>&5
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }; then :
3361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3366 for ac_file in $ac_files ''
3368 test -f "$ac_file" || continue
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3373 # We found the default executable, but exeext='' is most
3377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 # We set ac_cv_exeext here because the later test for it is not
3382 # safe: cross compilers may not add the suffix if given an `-o'
3383 # argument, so we may need to know it at that point already.
3384 # Even if this section looks crufty: it has the advantage of
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3396 if test -z "$ac_file"; then :
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error 77 "C compiler cannot create executables
3405 See \`config.log' for more details" "$LINENO" 5; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413 $as_echo "$ac_file" >&6; }
3414 ac_exeext=$ac_cv_exeext
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_link") 2>&5
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 for ac_file in conftest.exe conftest conftest.*; do
3436 test -f "$ac_file" || continue
3438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details" "$LINENO" 5; }
3450 rm -f conftest conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3463 FILE *f = fopen ("conftest.out", "w");
3464 return ferror (f) || fclose (f) != 0;
3470 ac_clean_files="$ac_clean_files conftest.out"
3471 # Check that the compiler produces executables we can run. If not, either
3472 # the compiler is broken, or we cross compile.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474 $as_echo_n "checking whether we are cross compiling... " >&6; }
3475 if test "$cross_compiling" != yes; then
3476 { { ac_try="$ac_link"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_link") 2>&5
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }
3487 if { ac_try='./conftest$ac_cv_exeext'
3488 { { case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_try") 2>&5
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; }; then
3500 if test "$cross_compiling" = maybe; then
3503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details" "$LINENO" 5; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517 $as_echo_n "checking for suffix of object files... " >&6; }
3518 if ${ac_cv_objext+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3532 rm -f conftest.o conftest.obj
3533 if { { ac_try="$ac_compile"
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_compile") 2>&5
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 for ac_file in conftest.o conftest.obj conftest.*; do
3545 test -f "$ac_file" || continue;
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of object files: cannot compile
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564 $as_echo "$ac_cv_objext" >&6; }
3565 OBJEXT=$ac_cv_objext
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569 if ${ac_cv_c_compiler_gnu+:} false; then :
3570 $as_echo_n "(cached) " >&6
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3586 if ac_fn_c_try_compile "$LINENO"; then :
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597 if test $ac_compiler_gnu = yes; then
3602 ac_test_CFLAGS=${CFLAGS+set}
3603 ac_save_CFLAGS=$CFLAGS
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606 if ${ac_cv_prog_cc_g+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 ac_save_c_werror_flag=$ac_c_werror_flag
3610 ac_c_werror_flag=yes
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 if ac_fn_c_try_compile "$LINENO"; then :
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_c_werror_flag=$ac_save_c_werror_flag
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3655 if ac_fn_c_try_compile "$LINENO"; then :
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666 $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 if test "$ac_test_CFLAGS" = set; then
3668 CFLAGS=$ac_save_CFLAGS
3669 elif test $ac_cv_prog_cc_g = yes; then
3670 if test "$GCC" = yes; then
3676 if test "$GCC" = yes; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684 if ${ac_cv_prog_cc_c89+:} false; then :
3685 $as_echo_n "(cached) " >&6
3687 ac_cv_prog_cc_c89=no
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3693 #include <sys/types.h>
3694 #include <sys/stat.h>
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3709 s = g (p, va_arg (v,int));
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3715 function prototypes and stuff, but not '\xHH' hex character constants.
3716 These don't provoke an error unfortunately, instead are silently treated
3717 as 'x'. The following induces an error, until -std is added to get
3718 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3719 array size at least. It's necessary to write '\x00'==0 to get something
3720 that's true only with -std. */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724 inside strings and character constants. */
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3737 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3745 CC="$ac_save_CC $ac_arg"
3746 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_cv_prog_cc_c89=$ac_arg
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3752 rm -f conftest.$ac_ext
3757 case "x$ac_cv_prog_cc_c89" in
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 depcc="$CC" am_compiler_list=
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787 # We make a subdir and do the tests there. Otherwise we can end up
3788 # making bogus files that we don't know about and never remove. For
3789 # instance it was reported that on HP-UX the gcc test will end up
3790 # making a dummy file named `D' -- because `-MD' means `put the output
3793 # Copy depcomp to subdir because otherwise we won't find it if we're
3794 # using a relative directory.
3795 cp "$am_depcomp" conftest.dir
3797 # We will build objects and dependencies in a subdirectory because
3798 # it helps to detect inapplicable dependency modes. For instance
3799 # both Tru64's cc and ICC support -MD to output dependencies as a
3800 # side effect of compilation, but ICC will put the dependencies in
3801 # the current directory while Tru64 will put them in the object
3805 am_cv_CC_dependencies_compiler_type=none
3806 if test "$am_compiler_list" = ""; then
3807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3810 case " $depcc " in #(
3811 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3814 for depmode in $am_compiler_list; do
3815 # Setup a source with many dependencies, because some compilers
3816 # like to wrap large dependency lists on column 80 (with \), and
3817 # we should not choose a depcomp mode which is confused by this.
3819 # We need to recreate these files for each test, as the compiler may
3820 # overwrite some of them when testing with obscure command lines.
3821 # This happens at least with the AIX C compiler.
3823 for i in 1 2 3 4 5 6; do
3824 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826 # Solaris 8's {/usr,}/bin/sh.
3827 touch sub/conftst$i.h
3829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3831 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3832 # mode. It turns out that the SunPro C++ compiler does not properly
3833 # handle `-M -o', and we need to detect this. Also, some Intel
3834 # versions had trouble with output in subdirs
3835 am__obj=sub/conftest.${OBJEXT-o}
3836 am__minus_obj="-o $am__obj"
3839 # This depmode causes a compiler race in universal mode.
3840 test "$am__universal" = false || continue
3843 # after this tag, mechanisms are not by side-effect, so they'll
3844 # only be used when explicitly requested
3845 if test "x$enable_dependency_tracking" = xyes; then
3851 msvisualcpp | msvcmsys)
3852 # This compiler won't grok `-c -o', but also, the minuso test has
3853 # not run yet. These depmodes are late enough in the game, and
3854 # so weak that their functioning should not be impacted.
3855 am__obj=conftest.${OBJEXT-o}
3860 if depmode=$depmode \
3861 source=sub/conftest.c object=$am__obj \
3862 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864 >/dev/null 2>conftest.err &&
3865 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869 # icc doesn't choke on unknown options, it will just issue warnings
3870 # or remarks (even with -Werror). So we grep stderr for any message
3871 # that says an option was ignored or not supported.
3872 # When given -MP, icc 7.0 and 7.1 complain thusly:
3873 # icc: Command line warning: ignoring option '-M'; no argument required
3874 # The diagnosis changed in icc 8.0:
3875 # icc: Command line remark: option '-MP' not supported
3876 if (grep 'ignoring option' conftest.err ||
3877 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878 am_cv_CC_dependencies_compiler_type=$depmode
3887 am_cv_CC_dependencies_compiler_type=none
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3896 test "x$enable_dependency_tracking" != xno \
3897 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3899 am__fastdepCC_FALSE='#'
3901 am__fastdepCC_TRUE='#'
3902 am__fastdepCC_FALSE=
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3908 if ${ac_cv_path_SED+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3912 for ac_i in 1 2 3 4 5 6 7; do
3913 ac_script="$ac_script$as_nl$ac_script"
3915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3916 { ac_script=; unset ac_script;}
3917 if test -z "$SED"; then
3918 ac_path_SED_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in sed gsed; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3929 # Check for GNU ac_path_SED and select it if it is found.
3930 # Check for GNU $ac_path_SED
3931 case `"$ac_path_SED" --version 2>&1` in
3933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3936 $as_echo_n 0123456789 >"conftest.in"
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo '' >> "conftest.nl"
3943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 as_fn_arith $ac_count + 1 && ac_count=$as_val
3946 if test $ac_count -gt ${ac_path_SED_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_SED="$ac_path_SED"
3949 ac_path_SED_max=$ac_count
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957 $ac_path_SED_found && break 3
3962 if test -z "$ac_cv_path_SED"; then
3963 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3971 $as_echo "$ac_cv_path_SED" >&6; }
3972 SED="$ac_cv_path_SED"
3975 test -z "$SED" && SED=sed
3976 Xsed="$SED -e 1s/^X//"
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990 if ${ac_cv_path_GREP+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 if test -z "$GREP"; then
3994 ac_path_GREP_found=false
3995 # Loop through the user's path and test for each of PROGNAME-LIST
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4000 test -z "$as_dir" && as_dir=.
4001 for ac_prog in grep ggrep; do
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 # Check for GNU ac_path_GREP and select it if it is found.
4006 # Check for GNU $ac_path_GREP
4007 case `"$ac_path_GREP" --version 2>&1` in
4009 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4012 $as_echo_n 0123456789 >"conftest.in"
4015 cat "conftest.in" "conftest.in" >"conftest.tmp"
4016 mv "conftest.tmp" "conftest.in"
4017 cp "conftest.in" "conftest.nl"
4018 $as_echo 'GREP' >> "conftest.nl"
4019 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021 as_fn_arith $ac_count + 1 && ac_count=$as_val
4022 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023 # Best one so far, save it but keep looking for a better one
4024 ac_cv_path_GREP="$ac_path_GREP"
4025 ac_path_GREP_max=$ac_count
4027 # 10*(2^10) chars as input seems more than enough
4028 test $ac_count -gt 10 && break
4030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4033 $ac_path_GREP_found && break 3
4038 if test -z "$ac_cv_path_GREP"; then
4039 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4042 ac_cv_path_GREP=$GREP
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047 $as_echo "$ac_cv_path_GREP" >&6; }
4048 GREP="$ac_cv_path_GREP"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052 $as_echo_n "checking for egrep... " >&6; }
4053 if ${ac_cv_path_EGREP+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057 then ac_cv_path_EGREP="$GREP -E"
4059 if test -z "$EGREP"; then
4060 ac_path_EGREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in egrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072 # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4075 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4078 $as_echo_n 0123456789 >"conftest.in"
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 $as_echo 'EGREP' >> "conftest.nl"
4085 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_EGREP="$ac_path_EGREP"
4091 ac_path_EGREP_max=$ac_count
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4099 $ac_path_EGREP_found && break 3
4104 if test -z "$ac_cv_path_EGREP"; then
4105 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4108 ac_cv_path_EGREP=$EGREP
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 $as_echo "$ac_cv_path_EGREP" >&6; }
4115 EGREP="$ac_cv_path_EGREP"
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4119 $as_echo_n "checking for fgrep... " >&6; }
4120 if ${ac_cv_path_FGREP+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4124 then ac_cv_path_FGREP="$GREP -F"
4126 if test -z "$FGREP"; then
4127 ac_path_FGREP_found=false
4128 # Loop through the user's path and test for each of PROGNAME-LIST
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4133 test -z "$as_dir" && as_dir=.
4134 for ac_prog in fgrep; do
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4137 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4138 # Check for GNU ac_path_FGREP and select it if it is found.
4139 # Check for GNU $ac_path_FGREP
4140 case `"$ac_path_FGREP" --version 2>&1` in
4142 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4145 $as_echo_n 0123456789 >"conftest.in"
4148 cat "conftest.in" "conftest.in" >"conftest.tmp"
4149 mv "conftest.tmp" "conftest.in"
4150 cp "conftest.in" "conftest.nl"
4151 $as_echo 'FGREP' >> "conftest.nl"
4152 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154 as_fn_arith $ac_count + 1 && ac_count=$as_val
4155 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4156 # Best one so far, save it but keep looking for a better one
4157 ac_cv_path_FGREP="$ac_path_FGREP"
4158 ac_path_FGREP_max=$ac_count
4160 # 10*(2^10) chars as input seems more than enough
4161 test $ac_count -gt 10 && break
4163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4166 $ac_path_FGREP_found && break 3
4171 if test -z "$ac_cv_path_FGREP"; then
4172 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4175 ac_cv_path_FGREP=$FGREP
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4181 $as_echo "$ac_cv_path_FGREP" >&6; }
4182 FGREP="$ac_cv_path_FGREP"
4185 test -z "$GREP" && GREP=grep
4205 # Check whether --with-gnu-ld was given.
4206 if test "${with_gnu_ld+set}" = set; then :
4207 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4213 if test "$GCC" = yes; then
4214 # Check if gcc -print-prog-name=ld gives a path.
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4216 $as_echo_n "checking for ld used by $CC... " >&6; }
4219 # gcc leaves a trailing carriage return which upsets mingw
4220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4225 # Accept absolute paths.
4227 re_direlt='/[^/][^/]*/\.\./'
4228 # Canonicalize the pathname of ld
4229 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4230 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4231 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4233 test -z "$LD" && LD="$ac_prog"
4236 # If it fails, then pretend we aren't using GCC.
4240 # If it is relative, then search for the first ld in PATH.
4244 elif test "$with_gnu_ld" = yes; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4246 $as_echo_n "checking for GNU ld... " >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4249 $as_echo_n "checking for non-GNU ld... " >&6; }
4251 if ${lt_cv_path_LD+:} false; then :
4252 $as_echo_n "(cached) " >&6
4254 if test -z "$LD"; then
4255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4256 for ac_dir in $PATH; do
4258 test -z "$ac_dir" && ac_dir=.
4259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4260 lt_cv_path_LD="$ac_dir/$ac_prog"
4261 # Check to see if the program is GNU ld. I'd rather use --version,
4262 # but apparently some variants of GNU ld only accept -v.
4263 # Break only if it was the GNU/non-GNU ld that we prefer.
4264 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4265 *GNU* | *'with BFD'*)
4266 test "$with_gnu_ld" != no && break
4269 test "$with_gnu_ld" != yes && break
4276 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4281 if test -n "$LD"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4283 $as_echo "$LD" >&6; }
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4291 if ${lt_cv_prog_gnu_ld+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4295 case `$LD -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
4297 lt_cv_prog_gnu_ld=yes
4300 lt_cv_prog_gnu_ld=no
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4306 with_gnu_ld=$lt_cv_prog_gnu_ld
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4318 if ${lt_cv_path_NM+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -n "$NM"; then
4322 # Let the user override the test.
4325 lt_nm_to_check="${ac_tool_prefix}nm"
4326 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4327 lt_nm_to_check="$lt_nm_to_check nm"
4329 for lt_tmp_nm in $lt_nm_to_check; do
4330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4331 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4333 test -z "$ac_dir" && ac_dir=.
4334 tmp_nm="$ac_dir/$lt_tmp_nm"
4335 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4336 # Check to see if the nm accepts a BSD-compat flag.
4337 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338 # nm: unknown option "B" ignored
4339 # Tru64's nm complains that /dev/null is an invalid object file
4340 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4341 */dev/null* | *'Invalid file or object type'*)
4342 lt_cv_path_NM="$tmp_nm -B"
4346 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4348 lt_cv_path_NM="$tmp_nm -p"
4352 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4353 continue # so that we can try to find one that supports BSD flags
4362 : ${lt_cv_path_NM=no}
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4366 $as_echo "$lt_cv_path_NM" >&6; }
4367 if test "$lt_cv_path_NM" != "no"; then
4370 # Didn't find any BSD compatible name lister, look for dumpbin.
4371 if test -n "$DUMPBIN"; then :
4372 # Let the user override the test.
4374 if test -n "$ac_tool_prefix"; then
4375 for ac_prog in dumpbin "link -dump"
4377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_DUMPBIN+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$DUMPBIN"; then
4385 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 DUMPBIN=$ac_cv_prog_DUMPBIN
4405 if test -n "$DUMPBIN"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4407 $as_echo "$DUMPBIN" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$DUMPBIN" && break
4417 if test -z "$DUMPBIN"; then
4418 ac_ct_DUMPBIN=$DUMPBIN
4419 for ac_prog in dumpbin "link -dump"
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$ac_ct_DUMPBIN"; then
4429 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4449 if test -n "$ac_ct_DUMPBIN"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4451 $as_echo "$ac_ct_DUMPBIN" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$ac_ct_DUMPBIN" && break
4461 if test "x$ac_ct_DUMPBIN" = x; then
4464 case $cross_compiling:$ac_tool_warned in
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4470 DUMPBIN=$ac_ct_DUMPBIN
4474 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4476 DUMPBIN="$DUMPBIN -symbols"
4484 if test "$DUMPBIN" != ":"; then
4488 test -z "$NM" && NM=nm
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4497 if ${lt_cv_nm_interface+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 lt_cv_nm_interface="BSD nm"
4501 echo "int some_variable = 0;" > conftest.$ac_ext
4502 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4503 (eval "$ac_compile" 2>conftest.err)
4504 cat conftest.err >&5
4505 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4506 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4507 cat conftest.err >&5
4508 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4509 cat conftest.out >&5
4510 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4511 lt_cv_nm_interface="MS dumpbin"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4516 $as_echo "$lt_cv_nm_interface" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519 $as_echo_n "checking whether ln -s works... " >&6; }
4521 if test "$LN_S" = "ln -s"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526 $as_echo "no, using $LN_S" >&6; }
4529 # find the maximum length of command line arguments
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532 if ${lt_cv_sys_max_cmd_len+:} false; then :
4533 $as_echo_n "(cached) " >&6
4540 # On DJGPP, this test can blow up pretty badly due to problems in libc
4541 # (any single argument exceeding 2000 bytes causes a buffer overrun
4542 # during glob expansion). Even if it were fixed, the result of this
4543 # check would be larger than it should be.
4544 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4548 # Under GNU Hurd, this test is not required because there is
4549 # no limit to the length of command line arguments.
4550 # Libtool will interpret -1 as no limit whatsoever
4551 lt_cv_sys_max_cmd_len=-1;
4554 cygwin* | mingw* | cegcc*)
4555 # On Win9x/ME, this test blows up -- it succeeds, but takes
4556 # about 5 minutes as the teststring grows exponentially.
4557 # Worse, since 9x/ME are not pre-emptively multitasking,
4558 # you end up with a "frozen" computer, even though with patience
4559 # the test eventually succeeds (with a max line length of 256k).
4560 # Instead, let's just punt: use the minimum linelength reported by
4561 # all of the supported platforms: 8192 (on NT/2K/XP).
4562 lt_cv_sys_max_cmd_len=8192;
4566 # On MiNT this can take a long time and run out of memory.
4567 lt_cv_sys_max_cmd_len=8192;
4571 # On AmigaOS with pdksh, this test takes hours, literally.
4572 # So we just punt and use a minimum line length of 8192.
4573 lt_cv_sys_max_cmd_len=8192;
4576 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4577 # This has been around since 386BSD, at least. Likely further.
4578 if test -x /sbin/sysctl; then
4579 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4580 elif test -x /usr/sbin/sysctl; then
4581 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4583 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4585 # And add a safety zone
4586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4591 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4592 lt_cv_sys_max_cmd_len=196608
4596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4598 # nice to cause kernel panics so lets avoid the loop below.
4599 # First set a reasonable default.
4600 lt_cv_sys_max_cmd_len=16384
4602 if test -x /sbin/sysconfig; then
4603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4609 lt_cv_sys_max_cmd_len=102400
4611 sysv5* | sco5v6* | sysv4.2uw2*)
4612 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4613 if test -n "$kargmax"; then
4614 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4616 lt_cv_sys_max_cmd_len=32768
4620 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4621 if test -n "$lt_cv_sys_max_cmd_len"; then
4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4625 # Make teststring a little bigger before we do anything with it.
4626 # a 1K string should be a reasonable start.
4627 for i in 1 2 3 4 5 6 7 8 ; do
4628 teststring=$teststring$teststring
4630 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4631 # If test is not a shell built-in, we'll probably end up computing a
4632 # maximum length that is only half of the actual maximum length, but
4634 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4635 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4636 test $i != 17 # 1/2 MB should be enough
4639 teststring=$teststring$teststring
4641 # Only check the string length outside the loop.
4642 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4644 # Add a significant safety factor because C++ compilers can tack on
4645 # massive amounts of additional arguments before passing them to the
4646 # linker. It appears as though 1/2 is a usable value.
4647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4654 if test -n $lt_cv_sys_max_cmd_len ; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4656 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4659 $as_echo "none" >&6; }
4661 max_cmd_len=$lt_cv_sys_max_cmd_len
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4673 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4674 # Try some XSI features
4677 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4679 && eval 'test $(( 1 + 1 )) -eq 2 \
4680 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4683 $as_echo "$xsi_shell" >&6; }
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4687 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4689 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4691 && lt_shell_append=yes
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4693 $as_echo "$lt_shell_append" >&6; }
4696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4706 # test EBCDIC or ASCII
4707 case `echo X|tr X '\101'` in
4708 A) # ASCII based system
4709 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4710 lt_SP2NL='tr \040 \012'
4711 lt_NL2SP='tr \015\012 \040\040'
4713 *) # EBCDIC based system
4714 lt_SP2NL='tr \100 \n'
4715 lt_NL2SP='tr \r\n \100\100'
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4728 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4729 if ${lt_cv_to_host_file_cmd+:} false; then :
4730 $as_echo_n "(cached) " >&6
4735 *-*-mingw* ) # actually msys
4736 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4739 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4741 * ) # otherwise, assume *nix
4742 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4748 *-*-mingw* ) # actually msys
4749 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4752 lt_cv_to_host_file_cmd=func_convert_file_noop
4754 * ) # otherwise, assume *nix
4755 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4759 * ) # unhandled hosts (and "normal" native builds)
4760 lt_cv_to_host_file_cmd=func_convert_file_noop
4766 to_host_file_cmd=$lt_cv_to_host_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4768 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4775 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4776 if ${lt_cv_to_tool_file_cmd+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 #assume ordinary cross tools, or native build.
4780 lt_cv_to_tool_file_cmd=func_convert_file_noop
4784 *-*-mingw* ) # actually msys
4785 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4793 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4795 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4803 if ${lt_cv_ld_reload_flag+:} false; then :
4804 $as_echo_n "(cached) " >&6
4806 lt_cv_ld_reload_flag='-r'
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4810 reload_flag=$lt_cv_ld_reload_flag
4811 case $reload_flag in
4813 *) reload_flag=" $reload_flag" ;;
4815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4817 cygwin* | mingw* | pw32* | cegcc*)
4818 if test "$GCC" != yes; then
4823 if test "$GCC" = yes; then
4824 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839 if test -n "$ac_tool_prefix"; then
4840 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_OBJDUMP+:} false; then :
4845 $as_echo_n "(cached) " >&6
4847 if test -n "$OBJDUMP"; then
4848 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 OBJDUMP=$ac_cv_prog_OBJDUMP
4868 if test -n "$OBJDUMP"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4870 $as_echo "$OBJDUMP" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4878 if test -z "$ac_cv_prog_OBJDUMP"; then
4879 ac_ct_OBJDUMP=$OBJDUMP
4880 # Extract the first word of "objdump", so it can be a program name with args.
4881 set dummy objdump; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 if test -n "$ac_ct_OBJDUMP"; then
4888 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4908 if test -n "$ac_ct_OBJDUMP"; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4910 $as_echo "$ac_ct_OBJDUMP" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4916 if test "x$ac_ct_OBJDUMP" = x; then
4919 case $cross_compiling:$ac_tool_warned in
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4925 OBJDUMP=$ac_ct_OBJDUMP
4928 OBJDUMP="$ac_cv_prog_OBJDUMP"
4931 test -z "$OBJDUMP" && OBJDUMP=objdump
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4942 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4943 if ${lt_cv_deplibs_check_method+:} false; then :
4944 $as_echo_n "(cached) " >&6
4946 lt_cv_file_magic_cmd='$MAGIC_CMD'
4947 lt_cv_file_magic_test_file=
4948 lt_cv_deplibs_check_method='unknown'
4949 # Need to set the preceding variable on all platforms that support
4950 # interlibrary dependencies.
4951 # 'none' -- dependencies not supported.
4952 # `unknown' -- same as none, but documents that we really don't know.
4953 # 'pass_all' -- all dependencies passed with no checks.
4954 # 'test_compile' -- check by making test program.
4955 # 'file_magic [[regex]]' -- check by looking for files in library path
4956 # which responds to the $file_magic_cmd with a given extended regex.
4957 # If you have `file' or equivalent on your system and you're not sure
4958 # whether `pass_all' will *always* work, you probably want this one.
4962 lt_cv_deplibs_check_method=pass_all
4966 lt_cv_deplibs_check_method=pass_all
4970 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4971 lt_cv_file_magic_cmd='/usr/bin/file -L'
4972 lt_cv_file_magic_test_file=/shlib/libc.so
4976 # func_win32_libid is a shell function defined in ltmain.sh
4977 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4978 lt_cv_file_magic_cmd='func_win32_libid'
4982 # Base MSYS/MinGW do not provide the 'file' command needed by
4983 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4984 # unless we find 'file', for example because we are cross-compiling.
4985 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4986 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4988 lt_cv_file_magic_cmd='func_win32_libid'
4990 # Keep this pattern in sync with the one in func_win32_libid.
4991 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4992 lt_cv_file_magic_cmd='$OBJDUMP -f'
4997 # use the weaker test based on 'objdump'. See mingw*.
4998 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4999 lt_cv_file_magic_cmd='$OBJDUMP -f'
5002 darwin* | rhapsody*)
5003 lt_cv_deplibs_check_method=pass_all
5006 freebsd* | dragonfly*)
5007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5010 # Not sure whether the presence of OpenBSD here was a mistake.
5011 # Let's accept both of them until this is cleared up.
5012 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5013 lt_cv_file_magic_cmd=/usr/bin/file
5014 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5018 lt_cv_deplibs_check_method=pass_all
5023 lt_cv_deplibs_check_method=pass_all
5027 lt_cv_deplibs_check_method=pass_all
5030 hpux10.20* | hpux11*)
5031 lt_cv_file_magic_cmd=/usr/bin/file
5034 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5035 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5039 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5043 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5049 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5053 irix5* | irix6* | nonstopux*)
5055 *-32|*"-32 ") libmagic=32-bit;;
5056 *-n32|*"-n32 ") libmagic=N32;;
5057 *-64|*"-64 ") libmagic=64-bit;;
5058 *) libmagic=never-match;;
5060 lt_cv_deplibs_check_method=pass_all
5063 # This must be Linux ELF.
5064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5065 lt_cv_deplibs_check_method=pass_all
5069 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5078 lt_cv_file_magic_cmd=/usr/bin/file
5079 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5083 lt_cv_deplibs_check_method=pass_all
5087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5088 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5094 osf3* | osf4* | osf5*)
5095 lt_cv_deplibs_check_method=pass_all
5099 lt_cv_deplibs_check_method=pass_all
5103 lt_cv_deplibs_check_method=pass_all
5106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5107 lt_cv_deplibs_check_method=pass_all
5111 case $host_vendor in
5113 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]'
5114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5117 lt_cv_deplibs_check_method=pass_all
5120 lt_cv_file_magic_cmd='/bin/file'
5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5124 lt_cv_file_magic_cmd='/bin/file'
5125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5126 lt_cv_file_magic_test_file=/lib/libc.so
5129 lt_cv_deplibs_check_method=pass_all
5132 lt_cv_deplibs_check_method=pass_all
5138 lt_cv_deplibs_check_method=pass_all
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5148 if test "$build" = "$host"; then
5151 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5154 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5160 file_magic_cmd=$lt_cv_file_magic_cmd
5161 deplibs_check_method=$lt_cv_deplibs_check_method
5162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5185 if test -n "$ac_tool_prefix"; then
5186 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_DLLTOOL+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$DLLTOOL"; then
5194 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 DLLTOOL=$ac_cv_prog_DLLTOOL
5214 if test -n "$DLLTOOL"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5216 $as_echo "$DLLTOOL" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5224 if test -z "$ac_cv_prog_DLLTOOL"; then
5225 ac_ct_DLLTOOL=$DLLTOOL
5226 # Extract the first word of "dlltool", so it can be a program name with args.
5227 set dummy dlltool; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5231 $as_echo_n "(cached) " >&6
5233 if test -n "$ac_ct_DLLTOOL"; then
5234 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 test -z "$as_dir" && as_dir=.
5241 for ac_exec_ext in '' $ac_executable_extensions; do
5242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5254 if test -n "$ac_ct_DLLTOOL"; then
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5256 $as_echo "$ac_ct_DLLTOOL" >&6; }
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5262 if test "x$ac_ct_DLLTOOL" = x; then
5265 case $cross_compiling:$ac_tool_warned in
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5269 ac_tool_warned=yes ;;
5271 DLLTOOL=$ac_ct_DLLTOOL
5274 DLLTOOL="$ac_cv_prog_DLLTOOL"
5277 test -z "$DLLTOOL" && DLLTOOL=dlltool
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5289 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5290 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 lt_cv_sharedlib_from_linklib_cmd='unknown'
5296 cygwin* | mingw* | pw32* | cegcc*)
5297 # two different shell functions defined in ltmain.sh
5298 # decide which to use based on capabilities of $DLLTOOL
5299 case `$DLLTOOL --help 2>&1` in
5300 *--identify-strict*)
5301 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5304 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5309 # fallback: assume linklib IS sharedlib
5310 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5316 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5317 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5318 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5327 if test -n "$ac_tool_prefix"; then
5330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_AR+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 if test -n "$AR"; then
5338 ac_cv_prog_AR="$AR" # Let the user override the test.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 if test -n "$AR"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5360 $as_echo "$AR" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 test -n "$AR" && break
5370 if test -z "$AR"; then
5374 # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5379 $as_echo_n "(cached) " >&6
5381 if test -n "$ac_ct_AR"; then
5382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_ac_ct_AR="$ac_prog"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402 if test -n "$ac_ct_AR"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5404 $as_echo "$ac_ct_AR" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5411 test -n "$ac_ct_AR" && break
5414 if test "x$ac_ct_AR" = x; then
5417 case $cross_compiling:$ac_tool_warned in
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421 ac_tool_warned=yes ;;
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5441 $as_echo_n "checking for archiver @FILE support... " >&6; }
5442 if ${lt_cv_ar_at_file+:} false; then :
5443 $as_echo_n "(cached) " >&6
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 echo conftest.$ac_objext > conftest.lst
5459 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5461 (eval $lt_ar_try) 2>&5
5463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5464 test $ac_status = 0; }
5465 if test "$ac_status" -eq 0; then
5466 # Ensure the archiver fails upon bogus file names.
5467 rm -f conftest.$ac_objext libconftest.a
5468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5469 (eval $lt_ar_try) 2>&5
5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }
5473 if test "$ac_status" -ne 0; then
5477 rm -f conftest.* libconftest.a
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5484 $as_echo "$lt_cv_ar_at_file" >&6; }
5486 if test "x$lt_cv_ar_at_file" = xno; then
5489 archiver_list_spec=$lt_cv_ar_at_file
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}strip; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_STRIP+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 if test -n "$STRIP"; then
5507 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 STRIP=$ac_cv_prog_STRIP
5527 if test -n "$STRIP"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5529 $as_echo "$STRIP" >&6; }
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5537 if test -z "$ac_cv_prog_STRIP"; then
5539 # Extract the first word of "strip", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5544 $as_echo_n "(cached) " >&6
5546 if test -n "$ac_ct_STRIP"; then
5547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_STRIP="strip"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5569 $as_echo "$ac_ct_STRIP" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5575 if test "x$ac_ct_STRIP" = x; then
5578 case $cross_compiling:$ac_tool_warned in
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5587 STRIP="$ac_cv_prog_STRIP"
5590 test -z "$STRIP" && STRIP=:
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_RANLIB+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB=$RANLIB
5638 # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_RANLIB="ranlib"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_RANLIB" = x; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5683 RANLIB=$ac_ct_RANLIB
5686 RANLIB="$ac_cv_prog_RANLIB"
5689 test -z "$RANLIB" && RANLIB=:
5696 # Determine commands to create old-style static archives.
5697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5698 old_postinstall_cmds='chmod 644 $oldlib'
5699 old_postuninstall_cmds=
5701 if test -n "$RANLIB"; then
5704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5715 lock_old_archive_extraction=yes ;;
5717 lock_old_archive_extraction=no ;;
5758 # If no C compiler was specified, use CC.
5761 # If no C compiler flags were specified, use CFLAGS.
5762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5764 # Allow CC to be a program name with arguments.
5768 # Check for command to grab the raw symbol name followed by C symbol from nm.
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5770 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5771 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5772 $as_echo_n "(cached) " >&6
5775 # These are sane defaults that work on at least a few old systems.
5776 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5778 # Character class describing NM global symbol codes.
5779 symcode='[BCDEGRST]'
5781 # Regexp to match symbols that can be accessed directly from C.
5782 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5784 # Define system-specific variables.
5789 cygwin* | mingw* | pw32* | cegcc*)
5790 symcode='[ABCDGISTW]'
5793 if test "$host_cpu" = ia64; then
5794 symcode='[ABCDEGRST]'
5798 symcode='[BCDEGRST]'
5801 symcode='[BCDEGQRST]'
5812 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5820 # If we're using GNU nm, then use its standard symbol codes.
5821 case `$NM -V 2>&1` in
5822 *GNU* | *'with BFD'*)
5823 symcode='[ABCDGIRSTW]' ;;
5826 # Transform an extracted symbol line into a proper C declaration.
5827 # Some systems (esp. on ia64) link data and code symbols differently,
5828 # so use this general approach.
5829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5831 # Transform an extracted symbol line into symbol name and symbol address
5832 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5833 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'"
5835 # Handle CRLF in mingw tool chain
5839 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5843 # Try without a prefix underscore, then with it.
5844 for ac_symprfx in "" "_"; do
5846 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5847 symxfrm="\\1 $ac_symprfx\\2 \\2"
5849 # Write the raw and C identifiers.
5850 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851 # Fake it for dumpbin and say T for any non-static function
5852 # and D for any global variable.
5853 # Also find C++ and __fastcall symbols from MSVC++,
5854 # which start with @ or ?.
5855 lt_cv_sys_global_symbol_pipe="$AWK '"\
5856 " {last_section=section; section=\$ 3};"\
5857 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5858 " \$ 0!~/External *\|/{next};"\
5859 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5860 " {if(hide[section]) next};"\
5861 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5862 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5863 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5864 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5865 " ' prfx=^$ac_symprfx"
5867 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5869 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5871 # Check to see that the pipe works correctly.
5875 cat > conftest.$ac_ext <<_LT_EOF
5880 void nm_test_func(void);
5881 void nm_test_func(void){}
5885 int main(){nm_test_var='a';nm_test_func();return(0);}
5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889 (eval $ac_compile) 2>&5
5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892 test $ac_status = 0; }; then
5893 # Now try to grab the symbols.
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5896 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; } && test -s "$nlist"; then
5900 # Try sorting and uniquifying the output.
5901 if sort "$nlist" | uniq > "$nlist"T; then
5902 mv -f "$nlist"T "$nlist"
5907 # Make sure that we snagged all the symbols we need.
5908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910 cat <<_LT_EOF > conftest.$ac_ext
5911 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5912 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5913 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5914 relocations are performed -- see ld's documentation on pseudo-relocs. */
5915 # define LT_DLSYM_CONST
5916 #elif defined(__osf__)
5917 /* This system does not cope well with relocations in const data. */
5918 # define LT_DLSYM_CONST
5920 # define LT_DLSYM_CONST const
5928 # Now generate the symbol file.
5929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5931 cat <<_LT_EOF >> conftest.$ac_ext
5933 /* The mapping between symbol names and symbols. */
5934 LT_DLSYM_CONST struct {
5938 lt__PROGRAM__LTX_preloaded_symbols[] =
5940 { "@PROGRAM@", (void *) 0 },
5942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5943 cat <<\_LT_EOF >> conftest.$ac_ext
5947 /* This works around a problem in FreeBSD linker */
5948 #ifdef FREEBSD_WORKAROUND
5949 static const void *lt_preloaded_setup() {
5950 return lt__PROGRAM__LTX_preloaded_symbols;
5958 # Now try linking the two files.
5959 mv conftest.$ac_objext conftstm.$ac_objext
5960 lt_globsym_save_LIBS=$LIBS
5961 lt_globsym_save_CFLAGS=$CFLAGS
5962 LIBS="conftstm.$ac_objext"
5963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5965 (eval $ac_link) 2>&5
5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5971 LIBS=$lt_globsym_save_LIBS
5972 CFLAGS=$lt_globsym_save_CFLAGS
5974 echo "cannot find nm_test_func in $nlist" >&5
5977 echo "cannot find nm_test_var in $nlist" >&5
5980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5983 echo "$progname: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5986 rm -rf conftest* conftst*
5988 # Do not use the global_symbol_pipe unless it works.
5989 if test "$pipe_works" = yes; then
5992 lt_cv_sys_global_symbol_pipe=
5998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5999 lt_cv_sys_global_symbol_to_cdecl=
6001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6003 $as_echo "failed" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6006 $as_echo "ok" >&6; }
6009 # Response file support.
6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011 nm_file_list_spec='@'
6012 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6013 nm_file_list_spec='@'
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6043 $as_echo_n "checking for sysroot... " >&6; }
6045 # Check whether --with-sysroot was given.
6046 if test "${with_sysroot+set}" = set; then :
6047 withval=$with_sysroot;
6054 case ${with_sysroot} in #(
6056 if test "$GCC" = yes; then
6057 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6067 $as_echo "${with_sysroot}" >&6; }
6068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6073 $as_echo "${lt_sysroot:-no}" >&6; }
6079 # Check whether --enable-libtool-lock was given.
6080 if test "${enable_libtool_lock+set}" = set; then :
6081 enableval=$enable_libtool_lock;
6084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6086 # Some flags need to be propagated to the compiler or linker for good
6090 # Find out which ABI we are using.
6091 echo 'int i;' > conftest.$ac_ext
6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093 (eval $ac_compile) 2>&5
6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096 test $ac_status = 0; }; then
6097 case `/usr/bin/file conftest.$ac_objext` in
6109 # Find out which ABI we are using.
6110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6112 (eval $ac_compile) 2>&5
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; }; then
6116 if test "$lt_cv_prog_gnu_ld" = yes; then
6117 case `/usr/bin/file conftest.$ac_objext` in
6119 LD="${LD-ld} -melf32bsmip"
6122 LD="${LD-ld} -melf32bmipn32"
6125 LD="${LD-ld} -melf64bmip"
6129 case `/usr/bin/file conftest.$ac_objext` in
6145 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6146 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6147 # Find out which ABI we are using.
6148 echo 'int i;' > conftest.$ac_ext
6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6150 (eval $ac_compile) 2>&5
6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153 test $ac_status = 0; }; then
6154 case `/usr/bin/file conftest.o` in
6157 x86_64-*kfreebsd*-gnu)
6158 LD="${LD-ld} -m elf_i386_fbsd"
6161 LD="${LD-ld} -m elf_i386"
6163 ppc64-*linux*|powerpc64-*linux*)
6164 LD="${LD-ld} -m elf32ppclinux"
6167 LD="${LD-ld} -m elf_s390"
6170 LD="${LD-ld} -m elf32_sparc"
6176 x86_64-*kfreebsd*-gnu)
6177 LD="${LD-ld} -m elf_x86_64_fbsd"
6180 LD="${LD-ld} -m elf_x86_64"
6182 ppc*-*linux*|powerpc*-*linux*)
6183 LD="${LD-ld} -m elf64ppc"
6185 s390*-*linux*|s390*-*tpf*)
6186 LD="${LD-ld} -m elf64_s390"
6189 LD="${LD-ld} -m elf64_sparc"
6199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6200 SAVE_CFLAGS="$CFLAGS"
6201 CFLAGS="$CFLAGS -belf"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6204 if ${lt_cv_cc_needs_belf+:} false; then :
6205 $as_echo_n "(cached) " >&6
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 lt_cv_cc_needs_belf=yes
6227 lt_cv_cc_needs_belf=no
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6242 CFLAGS="$SAVE_CFLAGS"
6246 # Find out which ABI we are using.
6247 echo 'int i;' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 case `/usr/bin/file conftest.o` in
6255 case $lt_cv_prog_gnu_ld in
6256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6270 need_locks="$enable_libtool_lock"
6272 if test -n "$ac_tool_prefix"; then
6273 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}mt; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 if test -n "$MANIFEST_TOOL"; then
6281 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6301 if test -n "$MANIFEST_TOOL"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6303 $as_echo "$MANIFEST_TOOL" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6312 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6313 # Extract the first word of "mt", so it can be a program name with args.
6314 set dummy mt; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$ac_ct_MANIFEST_TOOL"; then
6321 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6341 if test -n "$ac_ct_MANIFEST_TOOL"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6349 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6352 case $cross_compiling:$ac_tool_warned in
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6358 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6361 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6367 if ${lt_cv_path_mainfest_tool+:} false; then :
6368 $as_echo_n "(cached) " >&6
6370 lt_cv_path_mainfest_tool=no
6371 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6372 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6373 cat conftest.err >&5
6374 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6375 lt_cv_path_mainfest_tool=yes
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6391 rhapsody* | darwin*)
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -n "$DSYMUTIL"; then
6401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6421 if test -n "$DSYMUTIL"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6423 $as_echo "$DSYMUTIL" >&6; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6431 if test -z "$ac_cv_prog_DSYMUTIL"; then
6432 ac_ct_DSYMUTIL=$DSYMUTIL
6433 # Extract the first word of "dsymutil", so it can be a program name with args.
6434 set dummy dsymutil; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 if test -n "$ac_ct_DSYMUTIL"; then
6441 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6461 if test -n "$ac_ct_DSYMUTIL"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6469 if test "x$ac_ct_DSYMUTIL" = x; then
6472 case $cross_compiling:$ac_tool_warned in
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6478 DSYMUTIL=$ac_ct_DSYMUTIL
6481 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6484 if test -n "$ac_tool_prefix"; then
6485 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_NMEDIT+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 if test -n "$NMEDIT"; then
6493 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 NMEDIT=$ac_cv_prog_NMEDIT
6513 if test -n "$NMEDIT"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6515 $as_echo "$NMEDIT" >&6; }
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6523 if test -z "$ac_cv_prog_NMEDIT"; then
6524 ac_ct_NMEDIT=$NMEDIT
6525 # Extract the first word of "nmedit", so it can be a program name with args.
6526 set dummy nmedit; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6530 $as_echo_n "(cached) " >&6
6532 if test -n "$ac_ct_NMEDIT"; then
6533 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6553 if test -n "$ac_ct_NMEDIT"; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6555 $as_echo "$ac_ct_NMEDIT" >&6; }
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6561 if test "x$ac_ct_NMEDIT" = x; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6570 NMEDIT=$ac_ct_NMEDIT
6573 NMEDIT="$ac_cv_prog_NMEDIT"
6576 if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_LIPO+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$LIPO"; then
6585 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 LIPO=$ac_cv_prog_LIPO
6605 if test -n "$LIPO"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6607 $as_echo "$LIPO" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6615 if test -z "$ac_cv_prog_LIPO"; then
6617 # Extract the first word of "lipo", so it can be a program name with args.
6618 set dummy lipo; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6622 $as_echo_n "(cached) " >&6
6624 if test -n "$ac_ct_LIPO"; then
6625 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_ac_ct_LIPO="lipo"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6645 if test -n "$ac_ct_LIPO"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6647 $as_echo "$ac_ct_LIPO" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6653 if test "x$ac_ct_LIPO" = x; then
6656 case $cross_compiling:$ac_tool_warned in
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6665 LIPO="$ac_cv_prog_LIPO"
6668 if test -n "$ac_tool_prefix"; then
6669 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}otool; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_OTOOL+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 if test -n "$OTOOL"; then
6677 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 OTOOL=$ac_cv_prog_OTOOL
6697 if test -n "$OTOOL"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6699 $as_echo "$OTOOL" >&6; }
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6707 if test -z "$ac_cv_prog_OTOOL"; then
6709 # Extract the first word of "otool", so it can be a program name with args.
6710 set dummy otool; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$ac_ct_OTOOL"; then
6717 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_ac_ct_OTOOL="otool"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6737 if test -n "$ac_ct_OTOOL"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6739 $as_echo "$ac_ct_OTOOL" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6745 if test "x$ac_ct_OTOOL" = x; then
6748 case $cross_compiling:$ac_tool_warned in
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6757 OTOOL="$ac_cv_prog_OTOOL"
6760 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_OTOOL64+:} false; then :
6766 $as_echo_n "(cached) " >&6
6768 if test -n "$OTOOL64"; then
6769 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 OTOOL64=$ac_cv_prog_OTOOL64
6789 if test -n "$OTOOL64"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6791 $as_echo "$OTOOL64" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6799 if test -z "$ac_cv_prog_OTOOL64"; then
6800 ac_ct_OTOOL64=$OTOOL64
6801 # Extract the first word of "otool64", so it can be a program name with args.
6802 set dummy otool64; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6806 $as_echo_n "(cached) " >&6
6808 if test -n "$ac_ct_OTOOL64"; then
6809 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818 ac_cv_prog_ac_ct_OTOOL64="otool64"
6819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6829 if test -n "$ac_ct_OTOOL64"; then
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6831 $as_echo "$ac_ct_OTOOL64" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6837 if test "x$ac_ct_OTOOL64" = x; then
6840 case $cross_compiling:$ac_tool_warned in
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6846 OTOOL64=$ac_ct_OTOOL64
6849 OTOOL64="$ac_cv_prog_OTOOL64"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6879 $as_echo_n "checking for -single_module linker flag... " >&6; }
6880 if ${lt_cv_apple_cc_single_mod+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 lt_cv_apple_cc_single_mod=no
6884 if test -z "${LT_MULTI_MODULE}"; then
6885 # By default we will add the -single_module flag. You can override
6886 # by either setting the environment variable LT_MULTI_MODULE
6887 # non-empty at configure time, or by adding -multi_module to the
6889 rm -rf libconftest.dylib*
6890 echo "int foo(void){return 1;}" > conftest.c
6891 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6892 -dynamiclib -Wl,-single_module conftest.c" >&5
6893 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6894 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6896 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6897 lt_cv_apple_cc_single_mod=yes
6899 cat conftest.err >&5
6901 rm -rf libconftest.dylib*
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6906 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6908 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6909 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6910 $as_echo_n "(cached) " >&6
6912 lt_cv_ld_exported_symbols_list=no
6913 save_LDFLAGS=$LDFLAGS
6914 echo "_main" > conftest.sym
6915 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6927 if ac_fn_c_try_link "$LINENO"; then :
6928 lt_cv_ld_exported_symbols_list=yes
6930 lt_cv_ld_exported_symbols_list=no
6932 rm -f core conftest.err conftest.$ac_objext \
6933 conftest$ac_exeext conftest.$ac_ext
6934 LDFLAGS="$save_LDFLAGS"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6938 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6940 $as_echo_n "checking for -force_load linker flag... " >&6; }
6941 if ${lt_cv_ld_force_load+:} false; then :
6942 $as_echo_n "(cached) " >&6
6944 lt_cv_ld_force_load=no
6945 cat > conftest.c << _LT_EOF
6946 int forced_loaded() { return 2;}
6948 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6949 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6950 echo "$AR cru libconftest.a conftest.o" >&5
6951 $AR cru libconftest.a conftest.o 2>&5
6952 echo "$RANLIB libconftest.a" >&5
6953 $RANLIB libconftest.a 2>&5
6954 cat > conftest.c << _LT_EOF
6955 int main() { return 0;}
6957 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6958 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6960 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6961 lt_cv_ld_force_load=yes
6963 cat conftest.err >&5
6965 rm -f conftest.err libconftest.a conftest conftest.c
6966 rm -rf conftest.dSYM
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6970 $as_echo "$lt_cv_ld_force_load" >&6; }
6972 rhapsody* | darwin1.[012])
6973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976 darwin*) # darwin 5.x on
6977 # if running on 10.5 or later, the deployment target defaults
6978 # to the OS version, if on x86, and 10.4, the deployment
6979 # target defaults to 10.4. Don't you love it?
6980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6991 _lt_dar_single_mod='$single_module'
6993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6998 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6999 _lt_dsymutil='~$DSYMUTIL $lib || :'
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7013 # On Suns, sometimes $CPP names a directory.
7014 if test -n "$CPP" && test -d "$CPP"; then
7017 if test -z "$CPP"; then
7018 if ${ac_cv_prog_CPP+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 # Double quotes because CPP needs to be expanded
7022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7025 for ac_c_preproc_warn_flag in '' yes
7027 # Use a header file that comes with gcc, so configuring glibc
7028 # with a fresh cross-compiler works.
7029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030 # <limits.h> exists even on freestanding compilers.
7031 # On the NeXT, cc -E runs the code through the compiler's parser,
7032 # not just through cpp. "Syntax error" is here to catch this case.
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7036 # include <limits.h>
7038 # include <assert.h>
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7045 # Broken: fails on valid input.
7048 rm -f conftest.err conftest.i conftest.$ac_ext
7050 # OK, works on sane cases. Now check whether nonexistent headers
7051 # can be detected and how.
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <ac_nonexistent.h>
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057 # Broken: success on invalid input.
7060 # Passes both tests.
7064 rm -f conftest.err conftest.i conftest.$ac_ext
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.i conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7082 $as_echo "$CPP" >&6; }
7084 for ac_c_preproc_warn_flag in '' yes
7086 # Use a header file that comes with gcc, so configuring glibc
7087 # with a fresh cross-compiler works.
7088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089 # <limits.h> exists even on freestanding compilers.
7090 # On the NeXT, cc -E runs the code through the compiler's parser,
7091 # not just through cpp. "Syntax error" is here to catch this case.
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7095 # include <limits.h>
7097 # include <assert.h>
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7104 # Broken: fails on valid input.
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7109 # OK, works on sane cases. Now check whether nonexistent headers
7110 # can be detected and how.
7111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7113 #include <ac_nonexistent.h>
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116 # Broken: success on invalid input.
7119 # Passes both tests.
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.i conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details" "$LINENO" 5; }
7138 ac_cpp='$CPP $CPPFLAGS'
7139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7145 $as_echo_n "checking for ANSI C header files... " >&6; }
7146 if ${ac_cv_header_stdc+:} false; then :
7147 $as_echo_n "(cached) " >&6
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165 ac_cv_header_stdc=yes
7167 ac_cv_header_stdc=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171 if test $ac_cv_header_stdc = yes; then
7172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179 $EGREP "memchr" >/dev/null 2>&1; then :
7182 ac_cv_header_stdc=no
7188 if test $ac_cv_header_stdc = yes; then
7189 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196 $EGREP "free" >/dev/null 2>&1; then :
7199 ac_cv_header_stdc=no
7205 if test $ac_cv_header_stdc = yes; then
7206 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7207 if test "$cross_compiling" = yes; then :
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 #if ((' ' & 0x0FF) == 0x020)
7215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7218 # define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7237 if ac_fn_c_try_run "$LINENO"; then :
7240 ac_cv_header_stdc=no
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7243 conftest.$ac_objext conftest.beam conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7249 $as_echo "$ac_cv_header_stdc" >&6; }
7250 if test $ac_cv_header_stdc = yes; then
7252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7258 inttypes.h stdint.h unistd.h
7260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7264 cat >>confdefs.h <<_ACEOF
7265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7273 for ac_header in dlfcn.h
7275 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7277 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7278 cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DLFCN_H 1
7291 # Check whether --enable-shared was given.
7292 if test "${enable_shared+set}" = set; then :
7293 enableval=$enable_shared; p=${PACKAGE-default}
7295 yes) enable_shared=yes ;;
7296 no) enable_shared=no ;;
7299 # Look at the argument we got. We use all the common list separators.
7300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7301 for pkg in $enableval; do
7303 if test "X$pkg" = "X$p"; then
7330 # Check whether --enable-static was given.
7331 if test "${enable_static+set}" = set; then :
7332 enableval=$enable_static; p=${PACKAGE-default}
7334 yes) enable_static=yes ;;
7335 no) enable_static=no ;;
7338 # Look at the argument we got. We use all the common list separators.
7339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7340 for pkg in $enableval; do
7342 if test "X$pkg" = "X$p"; then
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then :
7364 withval=$with_pic; pic_mode="$withval"
7370 test -z "$pic_mode" && pic_mode=default
7378 # Check whether --enable-fast-install was given.
7379 if test "${enable_fast_install+set}" = set; then :
7380 enableval=$enable_fast_install; p=${PACKAGE-default}
7382 yes) enable_fast_install=yes ;;
7383 no) enable_fast_install=no ;;
7385 enable_fast_install=no
7386 # Look at the argument we got. We use all the common list separators.
7387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388 for pkg in $enableval; do
7390 if test "X$pkg" = "X$p"; then
7391 enable_fast_install=yes
7398 enable_fast_install=yes
7411 # This can be used to rebuild libtool when needed
7412 LIBTOOL_DEPS="$ltmain"
7414 # Always use our own libtool.
7415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7442 test -z "$LN_S" && LN_S="ln -s"
7457 if test -n "${ZSH_VERSION+set}" ; then
7458 setopt NO_GLOB_SUBST
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7462 $as_echo_n "checking for objdir... " >&6; }
7463 if ${lt_cv_objdir+:} false; then :
7464 $as_echo_n "(cached) " >&6
7466 rm -f .libs 2>/dev/null
7467 mkdir .libs 2>/dev/null
7468 if test -d .libs; then
7471 # MS-DOS does not allow filenames that begin with a dot.
7474 rmdir .libs 2>/dev/null
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7477 $as_echo "$lt_cv_objdir" >&6; }
7478 objdir=$lt_cv_objdir
7484 cat >>confdefs.h <<_ACEOF
7485 #define LT_OBJDIR "$lt_cv_objdir/"
7493 # AIX sometimes has problems with the GCC collect2 program. For some
7494 # reason, if we set the COLLECT_NAMES environment variable, the problems
7495 # vanish in a puff of smoke.
7496 if test "X${COLLECT_NAMES+set}" != Xset; then
7498 export COLLECT_NAMES
7505 can_build_shared=yes
7507 # All known linkers require a `.a' archive for static linking (except MSVC,
7508 # which needs '.lib').
7511 with_gnu_ld="$lt_cv_prog_gnu_ld"
7514 old_CFLAGS="$CFLAGS"
7516 # Set sane defaults for various variables
7517 test -z "$CC" && CC=cc
7518 test -z "$LTCC" && LTCC=$CC
7519 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7520 test -z "$LD" && LD=ld
7521 test -z "$ac_objext" && ac_objext=o
7523 for cc_temp in $compiler""; do
7525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7531 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7534 # Only perform the check for file, if the check method requires it
7535 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7536 case $deplibs_check_method in
7538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7542 $as_echo_n "(cached) " >&6
7546 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7549 lt_save_MAGIC_CMD="$MAGIC_CMD"
7550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7552 for ac_dir in $ac_dummy; do
7554 test -z "$ac_dir" && ac_dir=.
7555 if test -f $ac_dir/${ac_tool_prefix}file; then
7556 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7557 if test -n "$file_magic_test_file"; then
7558 case $deplibs_check_method in
7560 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7563 $EGREP "$file_magic_regex" > /dev/null; then
7568 *** Warning: the command libtool uses to detect shared libraries,
7569 *** $file_magic_cmd, produces output that libtool cannot recognize.
7570 *** The result is that libtool may fail to recognize shared libraries
7571 *** as such. This will affect the creation of libtool libraries that
7572 *** depend on shared libraries, but programs linked with such libtool
7573 *** libraries will work regardless of this problem. Nevertheless, you
7574 *** may want to report the problem to your system manager and/or to
7575 *** bug-libtool@gnu.org
7585 MAGIC_CMD="$lt_save_MAGIC_CMD"
7590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591 if test -n "$MAGIC_CMD"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7593 $as_echo "$MAGIC_CMD" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7603 if test -z "$lt_cv_path_MAGIC_CMD"; then
7604 if test -n "$ac_tool_prefix"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7606 $as_echo_n "checking for file... " >&6; }
7607 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7608 $as_echo_n "(cached) " >&6
7612 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7615 lt_save_MAGIC_CMD="$MAGIC_CMD"
7616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618 for ac_dir in $ac_dummy; do
7620 test -z "$ac_dir" && ac_dir=.
7621 if test -f $ac_dir/file; then
7622 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623 if test -n "$file_magic_test_file"; then
7624 case $deplibs_check_method in
7626 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629 $EGREP "$file_magic_regex" > /dev/null; then
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such. This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem. Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7651 MAGIC_CMD="$lt_save_MAGIC_CMD"
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7659 $as_echo "$MAGIC_CMD" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7675 # Use C for the default configuration in the libtool script
7679 ac_cpp='$CPP $CPPFLAGS'
7680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7685 # Source file extension for C test sources.
7688 # Object file extension for compiled C test sources.
7692 # Code to be used in simple compile tests
7693 lt_simple_compile_test_code="int some_variable = 0;"
7695 # Code to be used in simple link tests
7696 lt_simple_link_test_code='int main(){return(0);}'
7704 # If no C compiler was specified, use CC.
7707 # If no C compiler flags were specified, use CFLAGS.
7708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7710 # Allow CC to be a program name with arguments.
7713 # Save the default compiler, since it gets overwritten when the other
7714 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7715 compiler_DEFAULT=$CC
7717 # save warnings/boilerplate of simple test code
7718 ac_outfile=conftest.$ac_objext
7719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7721 _lt_compiler_boilerplate=`cat conftest.err`
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7727 _lt_linker_boilerplate=`cat conftest.err`
7731 if test -n "$compiler"; then
7733 lt_prog_compiler_no_builtin_flag=
7735 if test "$GCC" = yes; then
7736 case $cc_basename in
7738 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7740 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7744 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7745 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 lt_cv_prog_compiler_rtti_exceptions=no
7749 ac_outfile=conftest.$ac_objext
7750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7751 lt_compiler_flag="-fno-rtti -fno-exceptions"
7752 # Insert the option either (1) after the last *FLAGS variable, or
7753 # (2) before a word containing "conftest.", or (3) at the end.
7754 # Note that $ac_compile itself does not contain backslashes and begins
7755 # with a dollar sign (not a hyphen), so the echo should work correctly.
7756 # The option is referenced via a variable to avoid confusing sed.
7757 lt_compile=`echo "$ac_compile" | $SED \
7758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7760 -e 's:$: $lt_compiler_flag:'`
7761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7762 (eval "$lt_compile" 2>conftest.err)
7764 cat conftest.err >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 if (exit $ac_status) && test -s "$ac_outfile"; then
7767 # The compiler can only warn and ignore the option if not recognized
7768 # So say no if there are warnings other than the usual output.
7769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7772 lt_cv_prog_compiler_rtti_exceptions=yes
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7779 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7781 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7782 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7794 lt_prog_compiler_wl=
7795 lt_prog_compiler_pic=
7796 lt_prog_compiler_static=
7799 if test "$GCC" = yes; then
7800 lt_prog_compiler_wl='-Wl,'
7801 lt_prog_compiler_static='-static'
7805 # All AIX code is PIC.
7806 if test "$host_cpu" = ia64; then
7807 # AIX 5 now supports IA64 processor
7808 lt_prog_compiler_static='-Bstatic'
7815 # see comment about AmigaOS4 .so support
7816 lt_prog_compiler_pic='-fPIC'
7819 # FIXME: we need at least 68020 code to build shared libraries, but
7820 # adding the `-m68020' flag to GCC prevents building anything better,
7822 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7827 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7828 # PIC is the default for these OSes.
7831 mingw* | cygwin* | pw32* | os2* | cegcc*)
7832 # This hack is so that the source file can tell whether it is being
7833 # built for inclusion in a dll (and should export symbols for example).
7834 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7835 # (--disable-auto-import) libraries
7836 lt_prog_compiler_pic='-DDLL_EXPORT'
7839 darwin* | rhapsody*)
7840 # PIC is the default on this platform
7841 # Common symbols not allowed in MH_DYLIB files
7842 lt_prog_compiler_pic='-fno-common'
7846 # PIC is the default for Haiku.
7847 # The "-static" flag exists, but is broken.
7848 lt_prog_compiler_static=
7852 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7853 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7854 # sets the default TLS model and affects inlining.
7860 lt_prog_compiler_pic='-fPIC'
7866 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7867 # Instead, we relocate shared libraries at runtime.
7871 # Just because we use GCC doesn't mean we suddenly get shared libraries
7872 # on systems that don't support them.
7873 lt_prog_compiler_can_build_shared=no
7878 # QNX uses GNU C++, but need to define -shared option too, otherwise
7880 lt_prog_compiler_pic='-fPIC -shared'
7884 if test -d /usr/nec; then
7885 lt_prog_compiler_pic=-Kconform_pic
7890 lt_prog_compiler_pic='-fPIC'
7894 case $cc_basename in
7895 nvcc*) # Cuda Compiler Driver 2.2
7896 lt_prog_compiler_wl='-Xlinker '
7897 lt_prog_compiler_pic='-Xcompiler -fPIC'
7901 # PORTME Check for flag to pass linker flags through the system compiler.
7904 lt_prog_compiler_wl='-Wl,'
7905 if test "$host_cpu" = ia64; then
7906 # AIX 5 now supports IA64 processor
7907 lt_prog_compiler_static='-Bstatic'
7909 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7913 mingw* | cygwin* | pw32* | os2* | cegcc*)
7914 # This hack is so that the source file can tell whether it is being
7915 # built for inclusion in a dll (and should export symbols for example).
7916 lt_prog_compiler_pic='-DDLL_EXPORT'
7919 hpux9* | hpux10* | hpux11*)
7920 lt_prog_compiler_wl='-Wl,'
7921 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7928 lt_prog_compiler_pic='+Z'
7931 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932 lt_prog_compiler_static='${wl}-a ${wl}archive'
7935 irix5* | irix6* | nonstopux*)
7936 lt_prog_compiler_wl='-Wl,'
7937 # PIC (with -KPIC) is the default.
7938 lt_prog_compiler_static='-non_shared'
7941 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7942 case $cc_basename in
7943 # old Intel for x86_64 which still supported -KPIC.
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-KPIC'
7947 lt_prog_compiler_static='-static'
7949 # icc used to be incompatible with GCC.
7950 # ICC 10 doesn't accept -KPIC any more.
7952 lt_prog_compiler_wl='-Wl,'
7953 lt_prog_compiler_pic='-fPIC'
7954 lt_prog_compiler_static='-static'
7956 # Lahey Fortran 8.1.
7958 lt_prog_compiler_wl='-Wl,'
7959 lt_prog_compiler_pic='--shared'
7960 lt_prog_compiler_static='--static'
7963 # NAG Fortran compiler
7964 lt_prog_compiler_wl='-Wl,-Wl,,'
7965 lt_prog_compiler_pic='-PIC'
7966 lt_prog_compiler_static='-Bstatic'
7968 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7969 # Portland Group compilers (*not* the Pentium gcc compiler,
7970 # which looks to be a dead project)
7971 lt_prog_compiler_wl='-Wl,'
7972 lt_prog_compiler_pic='-fpic'
7973 lt_prog_compiler_static='-Bstatic'
7976 lt_prog_compiler_wl='-Wl,'
7977 # All Alpha code is PIC.
7978 lt_prog_compiler_static='-non_shared'
7980 xl* | bgxl* | bgf* | mpixl*)
7981 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7982 lt_prog_compiler_wl='-Wl,'
7983 lt_prog_compiler_pic='-qpic'
7984 lt_prog_compiler_static='-qstaticlink'
7987 case `$CC -V 2>&1 | sed 5q` in
7988 *Sun\ F* | *Sun*Fortran*)
7989 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7990 lt_prog_compiler_pic='-KPIC'
7991 lt_prog_compiler_static='-Bstatic'
7992 lt_prog_compiler_wl=''
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-Bstatic'
7998 lt_prog_compiler_wl='-Wl,'
8006 lt_prog_compiler_pic='-KPIC'
8007 lt_prog_compiler_static='-Bstatic'
8011 # QNX uses GNU C++, but need to define -shared option too, otherwise
8013 lt_prog_compiler_pic='-fPIC -shared'
8016 osf3* | osf4* | osf5*)
8017 lt_prog_compiler_wl='-Wl,'
8018 # All OSF/1 code is PIC.
8019 lt_prog_compiler_static='-non_shared'
8023 lt_prog_compiler_static='-non_shared'
8027 lt_prog_compiler_pic='-KPIC'
8028 lt_prog_compiler_static='-Bstatic'
8029 case $cc_basename in
8030 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8031 lt_prog_compiler_wl='-Qoption ld ';;
8033 lt_prog_compiler_wl='-Wl,';;
8038 lt_prog_compiler_wl='-Qoption ld '
8039 lt_prog_compiler_pic='-PIC'
8040 lt_prog_compiler_static='-Bstatic'
8043 sysv4 | sysv4.2uw2* | sysv4.3*)
8044 lt_prog_compiler_wl='-Wl,'
8045 lt_prog_compiler_pic='-KPIC'
8046 lt_prog_compiler_static='-Bstatic'
8050 if test -d /usr/nec ;then
8051 lt_prog_compiler_pic='-Kconform_pic'
8052 lt_prog_compiler_static='-Bstatic'
8056 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8057 lt_prog_compiler_wl='-Wl,'
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_can_build_shared=no
8068 lt_prog_compiler_pic='-pic'
8069 lt_prog_compiler_static='-Bstatic'
8073 lt_prog_compiler_can_build_shared=no
8079 # For platforms which do not support PIC, -DPIC is meaningless:
8081 lt_prog_compiler_pic=
8084 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8090 if ${lt_cv_prog_compiler_pic+:} false; then :
8091 $as_echo_n "(cached) " >&6
8093 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8096 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8097 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8100 # Check to make sure the PIC flag actually works.
8102 if test -n "$lt_prog_compiler_pic"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8106 $as_echo_n "(cached) " >&6
8108 lt_cv_prog_compiler_pic_works=no
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112 # Insert the option either (1) after the last *FLAGS variable, or
8113 # (2) before a word containing "conftest.", or (3) at the end.
8114 # Note that $ac_compile itself does not contain backslashes and begins
8115 # with a dollar sign (not a hyphen), so the echo should work correctly.
8116 # The option is referenced via a variable to avoid confusing sed.
8117 lt_compile=`echo "$ac_compile" | $SED \
8118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120 -e 's:$: $lt_compiler_flag:'`
8121 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8122 (eval "$lt_compile" 2>conftest.err)
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 if (exit $ac_status) && test -s "$ac_outfile"; then
8127 # The compiler can only warn and ignore the option if not recognized
8128 # So say no if there are warnings other than the usual output.
8129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132 lt_cv_prog_compiler_pic_works=yes
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142 case $lt_prog_compiler_pic in
8144 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8147 lt_prog_compiler_pic=
8148 lt_prog_compiler_can_build_shared=no
8164 # Check to make sure the static flag actually works.
8166 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8168 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8169 if ${lt_cv_prog_compiler_static_works+:} false; then :
8170 $as_echo_n "(cached) " >&6
8172 lt_cv_prog_compiler_static_works=no
8173 save_LDFLAGS="$LDFLAGS"
8174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8175 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8177 # The linker can only warn and ignore the option if not recognized
8178 # So say no if there are warnings
8179 if test -s conftest.err; then
8180 # Append any errors to the config.log.
8181 cat conftest.err 1>&5
8182 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if diff conftest.exp conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_static_works=yes
8188 lt_cv_prog_compiler_static_works=yes
8192 LDFLAGS="$save_LDFLAGS"
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8196 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8198 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8201 lt_prog_compiler_static=
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8211 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8212 if ${lt_cv_prog_compiler_c_o+:} false; then :
8213 $as_echo_n "(cached) " >&6
8215 lt_cv_prog_compiler_c_o=no
8216 $RM -r conftest 2>/dev/null
8220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222 lt_compiler_flag="-o out/conftest2.$ac_objext"
8223 # Insert the option either (1) after the last *FLAGS variable, or
8224 # (2) before a word containing "conftest.", or (3) at the end.
8225 # Note that $ac_compile itself does not contain backslashes and begins
8226 # with a dollar sign (not a hyphen), so the echo should work correctly.
8227 lt_compile=`echo "$ac_compile" | $SED \
8228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230 -e 's:$: $lt_compiler_flag:'`
8231 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232 (eval "$lt_compile" 2>out/conftest.err)
8234 cat out/conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8238 # The compiler can only warn and ignore the option if not recognized
8239 # So say no if there are warnings
8240 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8243 lt_cv_prog_compiler_c_o=yes
8248 # SGI C++ compiler will create directory out/ii_files/ for
8249 # template instantiation
8250 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8251 $RM out/* && rmdir out
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8258 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267 if ${lt_cv_prog_compiler_c_o+:} false; then :
8268 $as_echo_n "(cached) " >&6
8270 lt_cv_prog_compiler_c_o=no
8271 $RM -r conftest 2>/dev/null
8275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8277 lt_compiler_flag="-o out/conftest2.$ac_objext"
8278 # Insert the option either (1) after the last *FLAGS variable, or
8279 # (2) before a word containing "conftest.", or (3) at the end.
8280 # Note that $ac_compile itself does not contain backslashes and begins
8281 # with a dollar sign (not a hyphen), so the echo should work correctly.
8282 lt_compile=`echo "$ac_compile" | $SED \
8283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285 -e 's:$: $lt_compiler_flag:'`
8286 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287 (eval "$lt_compile" 2>out/conftest.err)
8289 cat out/conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8293 # The compiler can only warn and ignore the option if not recognized
8294 # So say no if there are warnings
8295 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298 lt_cv_prog_compiler_c_o=yes
8303 # SGI C++ compiler will create directory out/ii_files/ for
8304 # template instantiation
8305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306 $RM out/* && rmdir out
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8313 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8318 hard_links="nottested"
8319 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8320 # do not overwrite the value of need_locks provided by the user
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8322 $as_echo_n "checking if we can lock with hard links... " >&6; }
8325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8327 ln conftest.a conftest.b 2>&5 || hard_links=no
8328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8330 $as_echo "$hard_links" >&6; }
8331 if test "$hard_links" = no; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8333 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8349 allow_undefined_flag=
8350 always_export_symbols=no
8352 archive_expsym_cmds=
8353 compiler_needs_object=no
8354 enable_shared_with_static_runtimes=no
8355 export_dynamic_flag_spec=
8356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8357 hardcode_automatic=no
8359 hardcode_direct_absolute=no
8360 hardcode_libdir_flag_spec=
8361 hardcode_libdir_flag_spec_ld=
8362 hardcode_libdir_separator=
8364 hardcode_shlibpath_var=unsupported
8366 link_all_deplibs=unknown
8369 old_archive_from_new_cmds=
8370 old_archive_from_expsyms_cmds=
8371 thread_safe_flag_spec=
8372 whole_archive_flag_spec=
8373 # include_expsyms should be a list of space-separated symbols to be *always*
8374 # included in the symbol list
8376 # exclude_expsyms can be an extended regexp of symbols to exclude
8377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8379 # as well as any symbol that contains `d'.
8380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8382 # platforms (ab)use it in PIC code, but their linkers get confused if
8383 # the symbol is explicitly referenced. Since portable code cannot
8384 # rely on this symbol name, it's probably fine to never include it in
8385 # preloaded symbol tables.
8386 # Exclude shared library initialization/finalization symbols.
8387 extract_expsyms_cmds=
8390 cygwin* | mingw* | pw32* | cegcc*)
8391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8392 # When not using gcc, we currently assume that we are using
8393 # Microsoft Visual C++.
8394 if test "$GCC" != yes; then
8399 # we just hope/assume this is gcc and not c89 (= MSVC++)
8409 # On some targets, GNU ld is compatible enough with the native linker
8410 # that we're better off using the native interface for both.
8411 lt_use_gnu_ld_interface=no
8412 if test "$with_gnu_ld" = yes; then
8415 # The AIX port of GNU ld has always aspired to compatibility
8416 # with the native linker. However, as the warning in the GNU ld
8417 # block says, versions before 2.19.5* couldn't really create working
8418 # shared libraries, regardless of the interface used.
8419 case `$LD -v 2>&1` in
8420 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8421 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8422 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8424 lt_use_gnu_ld_interface=yes
8429 lt_use_gnu_ld_interface=yes
8434 if test "$lt_use_gnu_ld_interface" = yes; then
8435 # If archive_cmds runs LD, not CC, wlarc should be empty
8438 # Set some defaults for GNU ld with shared library support. These
8439 # are reset later if shared libraries are not supported. Putting them
8440 # here allows them to be overridden if necessary.
8441 runpath_var=LD_RUN_PATH
8442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8443 export_dynamic_flag_spec='${wl}--export-dynamic'
8444 # ancient GNU ld didn't support --whole-archive et. al.
8445 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8446 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8448 whole_archive_flag_spec=
8450 supports_anon_versioning=no
8451 case `$LD -v 2>&1` in
8452 *GNU\ gold*) supports_anon_versioning=yes ;;
8453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8456 *\ 2.11.*) ;; # other 2.11 versions
8457 *) supports_anon_versioning=yes ;;
8460 # See if GNU ld supports shared libraries.
8463 # On AIX/PPC, the GNU linker is very broken
8464 if test "$host_cpu" != ia64; then
8468 *** Warning: the GNU linker, at least up to release 2.19, is reported
8469 *** to be unable to reliably create shared libraries on AIX.
8470 *** Therefore, libtool is disabling shared libraries support. If you
8471 *** really care for shared libraries, you may want to install binutils
8472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8473 *** You will then need to restart the configuration process.
8482 # see comment about AmigaOS4 .so support
8483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484 archive_expsym_cmds=''
8487 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)'
8488 hardcode_libdir_flag_spec='-L$libdir'
8489 hardcode_minus_L=yes
8495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8496 allow_undefined_flag=unsupported
8497 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8498 # support --undefined. This deserves some investigation. FIXME
8499 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8505 cygwin* | mingw* | pw32* | cegcc*)
8506 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8507 # as there is no search path for DLLs.
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 export_dynamic_flag_spec='${wl}--export-all-symbols'
8510 allow_undefined_flag=unsupported
8511 always_export_symbols=no
8512 enable_shared_with_static_runtimes=yes
8513 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8514 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8516 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8518 # If the export-symbols file already is a .def file (1st line
8519 # is EXPORTS), use it as is; otherwise, prepend...
8520 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8521 cp $export_symbols $output_objdir/$soname.def;
8523 echo EXPORTS > $output_objdir/$soname.def;
8524 cat $export_symbols >> $output_objdir/$soname.def;
8526 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534 link_all_deplibs=yes
8539 hardcode_shlibpath_var=no
8540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541 export_dynamic_flag_spec='${wl}-E'
8542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8543 # Instead, shared libraries are loaded at an image base (0x10000000 by
8544 # default) and relocated if they conflict, which is a slow very memory
8545 # consuming and fragmenting process. To avoid this, we pick a random,
8546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8549 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'
8552 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8554 if test "$host_os" = linux-dietlibc; then
8555 case $cc_basename in
8556 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8559 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8560 && test "$tmp_diet" = no
8562 tmp_addflag=' $pic_flag'
8563 tmp_sharedflag='-shared'
8564 case $cc_basename,$host_cpu in
8565 pgcc*) # Portland Group C compiler
8566 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8567 tmp_addflag=' $pic_flag'
8569 pgf77* | pgf90* | pgf95* | pgfortran*)
8570 # Portland Group f77 and f90 compilers
8571 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8572 tmp_addflag=' $pic_flag -Mnomain' ;;
8573 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8574 tmp_addflag=' -i_dynamic' ;;
8575 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8576 tmp_addflag=' -i_dynamic -nofor_main' ;;
8577 ifc* | ifort*) # Intel Fortran compiler
8578 tmp_addflag=' -nofor_main' ;;
8579 lf95*) # Lahey Fortran 8.1
8580 whole_archive_flag_spec=
8581 tmp_sharedflag='--shared' ;;
8582 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8583 tmp_sharedflag='-qmkshrobj'
8585 nvcc*) # Cuda Compiler Driver 2.2
8586 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8587 compiler_needs_object=yes
8590 case `$CC -V 2>&1 | sed 5q` in
8591 *Sun\ C*) # Sun C 5.9
8592 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8593 compiler_needs_object=yes
8594 tmp_sharedflag='-G' ;;
8595 *Sun\ F*) # Sun Fortran 8.3
8596 tmp_sharedflag='-G' ;;
8598 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8600 if test "x$supports_anon_versioning" = xyes; then
8601 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603 echo "local: *; };" >> $output_objdir/$libname.ver~
8604 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8607 case $cc_basename in
8608 xlf* | bgf* | bgxlf* | mpixlf*)
8609 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8610 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8611 hardcode_libdir_flag_spec=
8612 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8614 if test "x$supports_anon_versioning" = xyes; then
8615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8617 echo "local: *; };" >> $output_objdir/$libname.ver~
8618 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8638 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643 *** create shared libraries on Solaris systems. Therefore, libtool
8644 *** is disabling shared libraries support. We urge you to upgrade GNU
8645 *** binutils to release 2.9.1 or newer. Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8650 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659 case `$LD -v 2>&1` in
8660 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665 *** reliably create shared libraries on SCO systems. Therefore, libtool
8666 *** is disabling shared libraries support. We urge you to upgrade GNU
8667 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8668 *** your PATH or compiler configuration so that the native linker is
8669 *** used, and then restart.
8674 # For security reasons, it is highly recommended that you always
8675 # use absolute paths for naming shared libraries, and exclude the
8676 # DT_RUNPATH tag from executables and libraries. But doing so
8677 # requires that you compile everything twice, which is a pain.
8678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8690 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_shlibpath_var=no
8697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8706 if test "$ld_shlibs" = no; then
8708 hardcode_libdir_flag_spec=
8709 export_dynamic_flag_spec=
8710 whole_archive_flag_spec=
8713 # PORTME fill in a description of your system's linker (not GNU ld)
8716 allow_undefined_flag=unsupported
8717 always_export_symbols=yes
8718 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'
8719 # Note: this linker hardcodes the directories in LIBPATH if there
8720 # are no directories specified by -L.
8721 hardcode_minus_L=yes
8722 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8723 # Neither direct hardcoding nor static linking is supported with a
8725 hardcode_direct=unsupported
8730 if test "$host_cpu" = ia64; then
8731 # On IA64, the linker does run time linking by default, so we don't
8732 # have to do anything special.
8733 aix_use_runtimelinking=no
8734 exp_sym_flag='-Bexport'
8737 # If we're using GNU nm, then we don't want the "-C" option.
8738 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8739 # Also, AIX nm treats weak defined symbols like other global
8740 # defined symbols, whereas GNU nm marks them as "W".
8741 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8742 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8744 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'
8746 aix_use_runtimelinking=no
8748 # Test if we are trying to use run time linking or normal
8749 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8750 # need to do runtime linking.
8751 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8752 for ld_flag in $LDFLAGS; do
8753 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8754 aix_use_runtimelinking=yes
8761 exp_sym_flag='-bexport'
8762 no_entry_flag='-bnoentry'
8765 # When large executables or shared objects are built, AIX ld can
8766 # have problems creating the table of contents. If linking a library
8767 # or program results in "error TOC overflow" add -mminimal-toc to
8768 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8769 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8773 hardcode_direct_absolute=yes
8774 hardcode_libdir_separator=':'
8775 link_all_deplibs=yes
8776 file_list_spec='${wl}-f,'
8778 if test "$GCC" = yes; then
8779 case $host_os in aix4.[012]|aix4.[012].*)
8780 # We only want to do this on AIX 4.2 and lower, the check
8781 # below for broken collect2 doesn't work under 4.3+
8782 collect2name=`${CC} -print-prog-name=collect2`
8783 if test -f "$collect2name" &&
8784 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8786 # We have reworked collect2
8789 # We have old collect2
8790 hardcode_direct=unsupported
8791 # It fails to find uninstalled libraries when the uninstalled
8792 # path is not listed in the libpath. Setting hardcode_minus_L
8793 # to unsupported forces relinking
8794 hardcode_minus_L=yes
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_libdir_separator=
8800 shared_flag='-shared'
8801 if test "$aix_use_runtimelinking" = yes; then
8802 shared_flag="$shared_flag "'${wl}-G'
8806 if test "$host_cpu" = ia64; then
8807 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808 # chokes on -Wl,-G. The following line is correct:
8811 if test "$aix_use_runtimelinking" = yes; then
8812 shared_flag='${wl}-G'
8814 shared_flag='${wl}-bM:SRE'
8819 export_dynamic_flag_spec='${wl}-bexpall'
8820 # It seems that -bexpall does not export symbols beginning with
8821 # underscore (_), so it is better to generate a list of symbols to export.
8822 always_export_symbols=yes
8823 if test "$aix_use_runtimelinking" = yes; then
8824 # Warning - without using the other runtime loading flags (-brtl),
8825 # -berok will link without error, but may produce a broken library.
8826 allow_undefined_flag='-berok'
8827 # Determine the default libpath from the value encoded in an
8829 if test "${lt_cv_aix_libpath+set}" = set; then
8830 aix_libpath=$lt_cv_aix_libpath
8832 if ${lt_cv_aix_libpath_+:} false; then :
8833 $as_echo_n "(cached) " >&6
8835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h. */
8846 if ac_fn_c_try_link "$LINENO"; then :
8848 lt_aix_libpath_sed='
8849 /Import File Strings/,/^$/ {
8851 s/^0 *\([^ ]*\) *$/\1/
8855 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856 # Check for a 64-bit object if we didn't find anything.
8857 if test -z "$lt_cv_aix_libpath_"; then
8858 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863 if test -z "$lt_cv_aix_libpath_"; then
8864 lt_cv_aix_libpath_="/usr/lib:/lib"
8869 aix_libpath=$lt_cv_aix_libpath_
8872 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8873 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8875 if test "$host_cpu" = ia64; then
8876 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8877 allow_undefined_flag="-z nodefs"
8878 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"
8880 # Determine the default libpath from the value encoded in an
8882 if test "${lt_cv_aix_libpath+set}" = set; then
8883 aix_libpath=$lt_cv_aix_libpath
8885 if ${lt_cv_aix_libpath_+:} false; then :
8886 $as_echo_n "(cached) " >&6
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8899 if ac_fn_c_try_link "$LINENO"; then :
8901 lt_aix_libpath_sed='
8902 /Import File Strings/,/^$/ {
8904 s/^0 *\([^ ]*\) *$/\1/
8908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909 # Check for a 64-bit object if we didn't find anything.
8910 if test -z "$lt_cv_aix_libpath_"; then
8911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8914 rm -f core conftest.err conftest.$ac_objext \
8915 conftest$ac_exeext conftest.$ac_ext
8916 if test -z "$lt_cv_aix_libpath_"; then
8917 lt_cv_aix_libpath_="/usr/lib:/lib"
8922 aix_libpath=$lt_cv_aix_libpath_
8925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926 # Warning - without using the other run time loading flags,
8927 # -berok will link without error, but may produce a broken library.
8928 no_undefined_flag=' ${wl}-bernotok'
8929 allow_undefined_flag=' ${wl}-berok'
8930 if test "$with_gnu_ld" = yes; then
8931 # We only use this code for GNU lds that support --whole-archive.
8932 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8934 # Exported symbols can be pulled into shared objects from archives
8935 whole_archive_flag_spec='$convenience'
8937 archive_cmds_need_lc=yes
8938 # This is similar to how AIX traditionally builds its shared libraries.
8939 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'
8947 # see comment about AmigaOS4 .so support
8948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 archive_expsym_cmds=''
8952 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)'
8953 hardcode_libdir_flag_spec='-L$libdir'
8954 hardcode_minus_L=yes
8960 export_dynamic_flag_spec=-rdynamic
8963 cygwin* | mingw* | pw32* | cegcc*)
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 # hardcode_libdir_flag_spec is actually meaningless, as there is
8967 # no search path for DLLs.
8968 case $cc_basename in
8971 hardcode_libdir_flag_spec=' '
8972 allow_undefined_flag=unsupported
8973 always_export_symbols=yes
8975 # Tell ltmain to make .lib files, not .a files.
8977 # Tell ltmain to make .dll files, not .so files.
8979 # FIXME: Setting linknames here is a bad hack.
8980 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8981 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8982 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8984 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8986 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8988 # The linker will not automatically build a static lib if we build a DLL.
8989 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8990 enable_shared_with_static_runtimes=yes
8991 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8993 old_postinstall_cmds='chmod 644 $oldlib'
8994 postlink_cmds='lt_outputfile="@OUTPUT@"~
8995 lt_tool_outputfile="@TOOL_OUTPUT@"~
8996 case $lt_outputfile in
8999 lt_outputfile="$lt_outputfile.exe"
9000 lt_tool_outputfile="$lt_tool_outputfile.exe"
9003 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9004 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9005 $RM "$lt_outputfile.manifest";
9009 # Assume MSVC wrapper
9010 hardcode_libdir_flag_spec=' '
9011 allow_undefined_flag=unsupported
9012 # Tell ltmain to make .lib files, not .a files.
9014 # Tell ltmain to make .dll files, not .so files.
9016 # FIXME: Setting linknames here is a bad hack.
9017 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9018 # The linker will automatically build a .lib file if we build a DLL.
9019 old_archive_from_new_cmds='true'
9020 # FIXME: Should let the user specify the lib program.
9021 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9022 enable_shared_with_static_runtimes=yes
9027 darwin* | rhapsody*)
9030 archive_cmds_need_lc=no
9032 hardcode_automatic=yes
9033 hardcode_shlibpath_var=unsupported
9034 if test "$lt_cv_ld_force_load" = "yes"; then
9035 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9037 whole_archive_flag_spec=''
9039 link_all_deplibs=yes
9040 allow_undefined_flag="$_lt_dar_allow_undefined"
9041 case $cc_basename in
9042 ifort*) _lt_dar_can_shared=yes ;;
9043 *) _lt_dar_can_shared=$GCC ;;
9045 if test "$_lt_dar_can_shared" = "yes"; then
9046 output_verbose_link_cmd=func_echo_all
9047 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9048 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9049 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}"
9050 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}"
9059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060 hardcode_libdir_flag_spec='-L$libdir'
9061 hardcode_shlibpath_var=no
9068 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9069 # support. Future versions do this automatically, but an explicit c++rt0.o
9070 # does not break anything, and helps significantly (at the cost of a little
9073 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9074 hardcode_libdir_flag_spec='-R$libdir'
9076 hardcode_shlibpath_var=no
9079 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_minus_L=yes
9084 hardcode_shlibpath_var=no
9087 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9088 freebsd* | dragonfly*)
9089 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9090 hardcode_libdir_flag_spec='-R$libdir'
9092 hardcode_shlibpath_var=no
9096 if test "$GCC" = yes; then
9097 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9099 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'
9101 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102 hardcode_libdir_separator=:
9105 # hardcode_minus_L: Not really in the search PATH,
9106 # but as the default location of the library.
9107 hardcode_minus_L=yes
9108 export_dynamic_flag_spec='${wl}-E'
9112 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9113 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117 if test "$with_gnu_ld" = no; then
9118 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119 hardcode_libdir_flag_spec_ld='+b $libdir'
9120 hardcode_libdir_separator=:
9122 hardcode_direct_absolute=yes
9123 export_dynamic_flag_spec='${wl}-E'
9124 # hardcode_minus_L: Not really in the search PATH,
9125 # but as the default location of the library.
9126 hardcode_minus_L=yes
9131 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9134 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9146 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9149 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9153 # Older versions of the 11.00 compiler do not understand -b yet
9154 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9156 $as_echo_n "checking if $CC understands -b... " >&6; }
9157 if ${lt_cv_prog_compiler__b+:} false; then :
9158 $as_echo_n "(cached) " >&6
9160 lt_cv_prog_compiler__b=no
9161 save_LDFLAGS="$LDFLAGS"
9162 LDFLAGS="$LDFLAGS -b"
9163 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9164 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9165 # The linker can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
9167 if test -s conftest.err; then
9168 # Append any errors to the config.log.
9169 cat conftest.err 1>&5
9170 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172 if diff conftest.exp conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler__b=yes
9176 lt_cv_prog_compiler__b=yes
9180 LDFLAGS="$save_LDFLAGS"
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9184 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9186 if test x"$lt_cv_prog_compiler__b" = xyes; then
9187 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9195 if test "$with_gnu_ld" = no; then
9196 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9197 hardcode_libdir_separator=:
9202 hardcode_shlibpath_var=no
9206 hardcode_direct_absolute=yes
9207 export_dynamic_flag_spec='${wl}-E'
9209 # hardcode_minus_L: Not really in the search PATH,
9210 # but as the default location of the library.
9211 hardcode_minus_L=yes
9217 irix5* | irix6* | nonstopux*)
9218 if test "$GCC" = yes; then
9219 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9220 # Try to use the -exported_symbol ld option, if it does not
9221 # work, assume that -exports_file does not work either and
9222 # implicitly export all symbols.
9223 # This should be the same for all languages, so no per-tag cache variable.
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9225 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9226 if ${lt_cv_irix_exported_symbol+:} false; then :
9227 $as_echo_n "(cached) " >&6
9229 save_LDFLAGS="$LDFLAGS"
9230 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 int foo (void) { return 0; }
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 lt_cv_irix_exported_symbol=yes
9238 lt_cv_irix_exported_symbol=no
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LDFLAGS="$save_LDFLAGS"
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9245 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9246 if test "$lt_cv_irix_exported_symbol" = yes; then
9247 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9251 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9253 archive_cmds_need_lc='no'
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9257 link_all_deplibs=yes
9261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9266 hardcode_libdir_flag_spec='-R$libdir'
9268 hardcode_shlibpath_var=no
9272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275 hardcode_libdir_separator=:
9276 hardcode_shlibpath_var=no
9283 if test -f /usr/libexec/ld.so; then
9285 hardcode_shlibpath_var=no
9286 hardcode_direct_absolute=yes
9287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9290 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9291 export_dynamic_flag_spec='${wl}-E'
9294 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9295 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9296 hardcode_libdir_flag_spec='-R$libdir'
9299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9300 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310 hardcode_libdir_flag_spec='-L$libdir'
9311 hardcode_minus_L=yes
9312 allow_undefined_flag=unsupported
9313 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'
9314 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9318 if test "$GCC" = yes; then
9319 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9322 allow_undefined_flag=' -expect_unresolved \*'
9323 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9325 archive_cmds_need_lc='no'
9326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327 hardcode_libdir_separator=:
9330 osf4* | osf5*) # as osf3* with the addition of -msym flag
9331 if test "$GCC" = yes; then
9332 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9333 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336 allow_undefined_flag=' -expect_unresolved \*'
9337 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9338 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~
9339 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9341 # Both c and cxx compiler support -rpath directly
9342 hardcode_libdir_flag_spec='-rpath $libdir'
9344 archive_cmds_need_lc='no'
9345 hardcode_libdir_separator=:
9349 no_undefined_flag=' -z defs'
9350 if test "$GCC" = yes; then
9352 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9354 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9356 case `$CC -V 2>&1` in
9359 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9361 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9365 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9367 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_shlibpath_var=no
9374 solaris2.[0-5] | solaris2.[0-5].*) ;;
9376 # The compiler driver will combine and reorder linker options,
9377 # but understands `-z linker_flag'. GCC discards it without `$wl',
9378 # but is careful enough not to reorder.
9379 # Supported since Solaris 2.6 (maybe 2.5.1?)
9380 if test "$GCC" = yes; then
9381 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9383 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9387 link_all_deplibs=yes
9391 if test "x$host_vendor" = xsequent; then
9392 # Use $CC to link under sequent, because it throws in some extra .o
9393 # files that make .init and .fini sections work.
9394 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9396 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9398 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_minus_L=yes
9401 hardcode_shlibpath_var=no
9405 case $host_vendor in
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_direct=yes # is this really true???
9411 ## LD is ld it makes a PLAMLIB
9412 ## CC just makes a GrossModule.
9413 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9414 reload_cmds='$CC -r -o $output$reload_objs'
9418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9422 runpath_var='LD_RUN_PATH'
9423 hardcode_shlibpath_var=no
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_shlibpath_var=no
9429 export_dynamic_flag_spec='-Bexport'
9433 if test -d /usr/nec; then
9434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435 hardcode_shlibpath_var=no
9436 runpath_var=LD_RUN_PATH
9437 hardcode_runpath_var=yes
9442 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9443 no_undefined_flag='${wl}-z,text'
9444 archive_cmds_need_lc=no
9445 hardcode_shlibpath_var=no
9446 runpath_var='LD_RUN_PATH'
9448 if test "$GCC" = yes; then
9449 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457 sysv5* | sco3.2v5* | sco5v6*)
9458 # Note: We can NOT use -z defs as we might desire, because we do not
9459 # link with -lc, and that would cause any symbols used from libc to
9460 # always be unresolved, which means just about no library would
9461 # ever link correctly. If we're not using GNU ld we use -z text
9462 # though, which does catch some bad symbols but isn't as heavy-handed
9464 no_undefined_flag='${wl}-z,text'
9465 allow_undefined_flag='${wl}-z,nodefs'
9466 archive_cmds_need_lc=no
9467 hardcode_shlibpath_var=no
9468 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9469 hardcode_libdir_separator=':'
9470 link_all_deplibs=yes
9471 export_dynamic_flag_spec='${wl}-Bexport'
9472 runpath_var='LD_RUN_PATH'
9474 if test "$GCC" = yes; then
9475 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_shlibpath_var=no
9494 if test x$host_vendor = xsni; then
9496 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9497 export_dynamic_flag_spec='${wl}-Blargedynsym'
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9504 $as_echo "$ld_shlibs" >&6; }
9505 test "$ld_shlibs" = no && can_build_shared=no
9507 with_gnu_ld=$with_gnu_ld
9524 # Do we need to explicitly link libc?
9526 case "x$archive_cmds_need_lc" in
9528 # Assume -lc should be added
9529 archive_cmds_need_lc=yes
9531 if test "$enable_shared" = yes && test "$GCC" = yes; then
9532 case $archive_cmds in
9534 # FIXME: we may have to deal with multi-command sequences.
9537 # Test whether the compiler implicitly links with -lc since on some
9538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9539 # to ld, don't add -lc before -lgcc.
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9541 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9542 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9543 $as_echo_n "(cached) " >&6
9546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9549 (eval $ac_compile) 2>&5
9551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552 test $ac_status = 0; } 2>conftest.err; then
9555 libobjs=conftest.$ac_objext
9557 wl=$lt_prog_compiler_wl
9558 pic_flag=$lt_prog_compiler_pic
9564 lt_save_allow_undefined_flag=$allow_undefined_flag
9565 allow_undefined_flag=
9566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9567 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9570 test $ac_status = 0; }
9572 lt_cv_archive_cmds_need_lc=no
9574 lt_cv_archive_cmds_need_lc=yes
9576 allow_undefined_flag=$lt_save_allow_undefined_flag
9578 cat conftest.err 1>&5
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9584 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9585 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9751 if test "$GCC" = yes; then
9753 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9754 *) lt_awk_arg="/^libraries:/" ;;
9757 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9758 *) lt_sed_strip_eq="s,=/,/,g" ;;
9760 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9761 case $lt_search_path_spec in
9763 # if the path contains ";" then we assume it to be the separator
9764 # otherwise default to the standard path separator (i.e. ":") - it is
9765 # assumed that no part of a normal pathname contains ";" but that should
9766 # okay in the real world where ";" in dirpaths is itself problematic.
9767 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9770 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9773 # Ok, now we have the path, separated by spaces, we can step through it
9774 # and add multilib dir if necessary.
9775 lt_tmp_lt_search_path_spec=
9776 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9777 for lt_sys_path in $lt_search_path_spec; do
9778 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9779 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9781 test -d "$lt_sys_path" && \
9782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9785 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9786 BEGIN {RS=" "; FS="/|\n";} {
9789 for (lt_i = NF; lt_i > 0; lt_i--) {
9790 if ($lt_i != "" && $lt_i != ".") {
9791 if ($lt_i == "..") {
9794 if (lt_count == 0) {
9795 lt_foo="/" $lt_i lt_foo;
9802 if (lt_foo != "") { lt_freq[lt_foo]++; }
9803 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9805 # AWK program above erroneously prepends '/' to C:/dos/paths
9808 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9809 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9811 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9816 libname_spec='lib$name'
9824 shlibpath_overrides_runpath=unknown
9826 dynamic_linker="$host_os ld.so"
9827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9828 need_lib_prefix=unknown
9829 hardcode_into_libs=no
9831 # when you set need_version to no, make sure it does not cause -set_version
9832 # flags to be left without arguments
9833 need_version=unknown
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9839 shlibpath_var=LIBPATH
9841 # AIX 3 has no versioning support, so we append a major version to the name.
9842 soname_spec='${libname}${release}${shared_ext}$major'
9849 hardcode_into_libs=yes
9850 if test "$host_cpu" = ia64; then
9851 # AIX 5 supports IA64
9852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9853 shlibpath_var=LD_LIBRARY_PATH
9855 # With GCC up to 2.95.x, collect2 would create an import file
9856 # for dependence libraries. The import file would start with
9857 # the line `#! .'. This would cause the generated library to
9858 # depend on `.', always an invalid library. This was fixed in
9859 # development snapshots of GCC prior to 3.0.
9861 aix4 | aix4.[01] | aix4.[01].*)
9862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9864 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9872 # soname into executable. Probably we can add versioning support to
9873 # collect2, so additional links can be useful in future.
9874 if test "$aix_use_runtimelinking" = yes; then
9875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9876 # instead of lib<name>.a to let people know that these are not
9877 # typical AIX shared libraries.
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880 # We preserve .a as extension for shared libraries through AIX4.2
9881 # and later when we are not doing run time linking.
9882 library_names_spec='${libname}${release}.a $libname.a'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9885 shlibpath_var=LIBPATH
9892 # Since July 2007 AmigaOS4 officially supports .so libraries.
9893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 library_names_spec='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9905 library_names_spec='${libname}${shared_ext}'
9906 dynamic_linker="$host_os ld.so"
9907 shlibpath_var=LIBRARY_PATH
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9919 # the default ld.so.conf also contains /usr/contrib/lib and
9920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9921 # libtool to hard-code these into programs
9924 cygwin* | mingw* | pw32* | cegcc*)
9925 version_type=windows
9930 case $GCC,$cc_basename in
9933 library_names_spec='$libname.dll.a'
9934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9935 postinstall_cmds='base_file=`basename \${file}`~
9936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9937 dldir=$destdir/`dirname \$dlpath`~
9938 test -d \$dldir || mkdir -p \$dldir~
9939 $install_prog $dir/$dlname \$dldir/$dlname~
9940 chmod a+x \$dldir/$dlname~
9941 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9942 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9944 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945 dlpath=$dir/\$dldll~
9947 shlibpath_overrides_runpath=yes
9951 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9954 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9957 # MinGW DLLs use traditional 'lib' prefix
9958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9961 # pw32 DLLs use 'pw' prefix rather than 'lib'
9962 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965 dynamic_linker='Win32 ld.exe'
9970 libname_spec='$name'
9971 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972 library_names_spec='${libname}.dll.lib'
9976 sys_lib_search_path_spec=
9982 # Let DOS variable expansion print the short 8.3 style file name.
9983 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9984 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9987 # Convert to MSYS style.
9988 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9991 # Convert to unix form, then to dos form, then back to unix form
9992 # but this time dos style (no spaces!) so that the unix form looks
9993 # like /cygdrive/c/PROGRA~1:/cygdr...
9994 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9995 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9996 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9999 sys_lib_search_path_spec="$LIB"
10000 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10001 # It is most probably a Windows format PATH.
10002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10006 # FIXME: find the short name or the path components, as spaces are
10007 # common. (e.g. "Program Files" -> "PROGRA~1")
10011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10012 postinstall_cmds='base_file=`basename \${file}`~
10013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10014 dldir=$destdir/`dirname \$dlpath`~
10015 test -d \$dldir || mkdir -p \$dldir~
10016 $install_prog $dir/$dlname \$dldir/$dlname'
10017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10018 dlpath=$dir/\$dldll~
10020 shlibpath_overrides_runpath=yes
10021 dynamic_linker='Win32 link.exe'
10025 # Assume MSVC wrapper
10026 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027 dynamic_linker='Win32 ld.exe'
10030 # FIXME: first we should search . and the directory the executable is in
10034 darwin* | rhapsody*)
10035 dynamic_linker="$host_os dyld"
10036 version_type=darwin
10039 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040 soname_spec='${libname}${release}${major}$shared_ext'
10041 shlibpath_overrides_runpath=yes
10042 shlibpath_var=DYLD_LIBRARY_PATH
10043 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LD_LIBRARY_PATH
10062 freebsd* | dragonfly*)
10063 # DragonFly does not have aout. When/if they implement a new
10064 # versioning mechanism, adjust this.
10065 if test -x /usr/bin/objformat; then
10066 objformat=`/usr/bin/objformat`
10069 freebsd[123]*) objformat=aout ;;
10070 *) objformat=elf ;;
10073 version_type=freebsd-$objformat
10074 case $version_type in
10076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10085 shlibpath_var=LD_LIBRARY_PATH
10088 shlibpath_overrides_runpath=yes
10090 freebsd3.[01]* | freebsdelf3.[01]*)
10091 shlibpath_overrides_runpath=yes
10092 hardcode_into_libs=yes
10094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10096 shlibpath_overrides_runpath=no
10097 hardcode_into_libs=yes
10099 *) # from 4.6 on, and DragonFly
10100 shlibpath_overrides_runpath=yes
10101 hardcode_into_libs=yes
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111 soname_spec='${libname}${release}${shared_ext}$major'
10112 shlibpath_var=LD_LIBRARY_PATH
10113 hardcode_into_libs=yes
10120 dynamic_linker="$host_os runtime_loader"
10121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10122 soname_spec='${libname}${release}${shared_ext}$major'
10123 shlibpath_var=LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10125 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10126 hardcode_into_libs=yes
10129 hpux9* | hpux10* | hpux11*)
10130 # Give a soname corresponding to the major version so that dld.sl refuses to
10131 # link against other versions.
10138 hardcode_into_libs=yes
10139 dynamic_linker="$host_os dld.so"
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143 soname_spec='${libname}${release}${shared_ext}$major'
10144 if test "X$HPUX_IA64_MODE" = X32; then
10145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10153 hardcode_into_libs=yes
10154 dynamic_linker="$host_os dld.sl"
10155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164 dynamic_linker="$host_os dld.sl"
10165 shlibpath_var=SHLIB_PATH
10166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10171 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10172 postinstall_cmds='chmod 555 $lib'
10173 # or fails outright, so override atomically:
10174 install_override_mode=555
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=no
10186 hardcode_into_libs=yes
10189 irix5* | irix6* | nonstopux*)
10191 nonstopux*) version_type=nonstopux ;;
10193 if test "$lt_cv_prog_gnu_ld" = yes; then
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 irix5* | nonstopux*)
10205 libsuff= shlibsuff=
10208 case $LD in # libtool.m4 will add one of these switches to LD
10209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210 libsuff= shlibsuff= libmagic=32-bit;;
10211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212 libsuff=32 shlibsuff=N32 libmagic=N32;;
10213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215 *) libsuff= shlibsuff= libmagic=never-match;;
10219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220 shlibpath_overrides_runpath=no
10221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223 hardcode_into_libs=yes
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10231 # This must be Linux ELF.
10232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=no
10242 # Some binutils ld are patched to set DT_RUNPATH
10243 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10244 $as_echo_n "(cached) " >&6
10246 lt_cv_shlibpath_overrides_runpath=no
10247 save_LDFLAGS=$LDFLAGS
10248 save_libdir=$libdir
10249 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10250 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10262 if ac_fn_c_try_link "$LINENO"; then :
10263 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10264 lt_cv_shlibpath_overrides_runpath=yes
10267 rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LDFLAGS=$save_LDFLAGS
10270 libdir=$save_libdir
10274 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10276 # This implies no fast_install, which is unacceptable.
10277 # Some rework will be needed to allow for fast_install
10278 # before this can be enabled.
10279 hardcode_into_libs=yes
10281 # Add ABI-specific directories to the system library path.
10282 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10284 # Append ld.so.conf contents to the search path
10285 if test -f /etc/ld.so.conf; then
10286 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10287 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10291 # We used to test for /lib/ld.so.1 and disable shared libraries on
10292 # powerpc, because MkLinux only supported shared libraries with the
10293 # GNU dynamic linker. Since this was broken with cross compilers,
10294 # most powerpc-linux boxes support dynamic linking these days and
10295 # people can always --disable-shared, the test was removed, and we
10296 # assume the GNU/Linux dynamic linker is in use.
10297 dynamic_linker='GNU/Linux ld.so'
10304 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10307 dynamic_linker='NetBSD (a.out) ld.so'
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 dynamic_linker='NetBSD ld.elf_so'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321 shlibpath_var=LD_LIBRARY_PATH
10322 shlibpath_overrides_runpath=yes
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec='${libname}${release}${shared_ext}$major'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=no
10333 hardcode_into_libs=yes
10334 dynamic_linker='ldqnx.so'
10339 sys_lib_dlsearch_path_spec="/usr/lib"
10341 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10343 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10344 *) need_version=no ;;
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10351 openbsd2.[89] | openbsd2.[89].*)
10352 shlibpath_overrides_runpath=no
10355 shlibpath_overrides_runpath=yes
10359 shlibpath_overrides_runpath=yes
10364 libname_spec='$name'
10367 library_names_spec='$libname${shared_ext} $libname.a'
10368 dynamic_linker='OS/2 ld.exe'
10369 shlibpath_var=LIBPATH
10372 osf3* | osf4* | osf5*)
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378 shlibpath_var=LD_LIBRARY_PATH
10379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10395 hardcode_into_libs=yes
10396 # ldd complains unless libraries are executable
10397 postinstall_cmds='chmod +x $lib'
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 shlibpath_overrides_runpath=yes
10406 if test "$with_gnu_ld" = yes; then
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 case $host_vendor in
10419 shlibpath_overrides_runpath=no
10421 runpath_var=LD_RUN_PATH
10429 shlibpath_overrides_runpath=no
10430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10436 if test -d /usr/nec ;then
10438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10439 soname_spec='$libname${shared_ext}.$major'
10440 shlibpath_var=LD_LIBRARY_PATH
10444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10445 version_type=freebsd-elf
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=yes
10452 hardcode_into_libs=yes
10453 if test "$with_gnu_ld" = yes; then
10454 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10459 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10463 sys_lib_dlsearch_path_spec='/usr/lib'
10467 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 shlibpath_overrides_runpath=no
10474 hardcode_into_libs=yes
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10489 $as_echo "$dynamic_linker" >&6; }
10490 test "$dynamic_linker" = no && can_build_shared=no
10492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10493 if test "$GCC" = yes; then
10494 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10498 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10501 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10596 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10598 if test -n "$hardcode_libdir_flag_spec" ||
10599 test -n "$runpath_var" ||
10600 test "X$hardcode_automatic" = "Xyes" ; then
10602 # We can hardcode non-existent directories.
10603 if test "$hardcode_direct" != no &&
10604 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10605 # have to relink, otherwise we might link with an installed library
10606 # when we should be linking with a yet-to-be-installed one
10607 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10608 test "$hardcode_minus_L" != no; then
10609 # Linking always hardcodes the temporary library directory.
10610 hardcode_action=relink
10612 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10613 hardcode_action=immediate
10616 # We cannot hardcode anything, or else we can only hardcode existing
10618 hardcode_action=unsupported
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10621 $as_echo "$hardcode_action" >&6; }
10623 if test "$hardcode_action" = relink ||
10624 test "$inherit_rpath" = yes; then
10625 # Fast installation is not supported
10626 enable_fast_install=no
10627 elif test "$shlibpath_overrides_runpath" = yes ||
10628 test "$enable_shared" = no; then
10629 # Fast installation is not necessary
10630 enable_fast_install=needless
10638 if test "x$enable_dlopen" != xyes; then
10639 enable_dlopen=unknown
10640 enable_dlopen_self=unknown
10641 enable_dlopen_self_static=unknown
10648 lt_cv_dlopen="load_add_on"
10650 lt_cv_dlopen_self=yes
10653 mingw* | pw32* | cegcc*)
10654 lt_cv_dlopen="LoadLibrary"
10659 lt_cv_dlopen="dlopen"
10664 # if libdl is installed we need to link against it
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10667 if ${ac_cv_lib_dl_dlopen+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 ac_check_lib_save_LIBS=$LIBS
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_dl_dlopen=yes
10693 ac_cv_lib_dl_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10705 lt_cv_dlopen="dyld"
10707 lt_cv_dlopen_self=yes
10714 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10715 if test "x$ac_cv_func_shl_load" = xyes; then :
10716 lt_cv_dlopen="shl_load"
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10719 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10720 if ${ac_cv_lib_dld_shl_load+:} false; then :
10721 $as_echo_n "(cached) " >&6
10723 ac_check_lib_save_LIBS=$LIBS
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10738 return shl_load ();
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 ac_cv_lib_dld_shl_load=yes
10746 ac_cv_lib_dld_shl_load=no
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10753 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10754 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10755 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10757 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10758 if test "x$ac_cv_func_dlopen" = xyes; then :
10759 lt_cv_dlopen="dlopen"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10763 if ${ac_cv_lib_dl_dlopen+:} false; then :
10764 $as_echo_n "(cached) " >&6
10766 ac_check_lib_save_LIBS=$LIBS
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10771 /* Override any GCC internal prototype to avoid an error.
10772 Use char because int might match the return type of a GCC
10773 builtin and then its argument prototype would still apply. */
10786 if ac_fn_c_try_link "$LINENO"; then :
10787 ac_cv_lib_dl_dlopen=yes
10789 ac_cv_lib_dl_dlopen=no
10791 rm -f core conftest.err conftest.$ac_objext \
10792 conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10797 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10798 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10801 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10802 if ${ac_cv_lib_svld_dlopen+:} false; then :
10803 $as_echo_n "(cached) " >&6
10805 ac_check_lib_save_LIBS=$LIBS
10806 LIBS="-lsvld $LIBS"
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10825 if ac_fn_c_try_link "$LINENO"; then :
10826 ac_cv_lib_svld_dlopen=yes
10828 ac_cv_lib_svld_dlopen=no
10830 rm -f core conftest.err conftest.$ac_objext \
10831 conftest$ac_exeext conftest.$ac_ext
10832 LIBS=$ac_check_lib_save_LIBS
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10835 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10836 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10837 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10840 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10841 if ${ac_cv_lib_dld_dld_link+:} false; then :
10842 $as_echo_n "(cached) " >&6
10844 ac_check_lib_save_LIBS=$LIBS
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h. */
10849 /* Override any GCC internal prototype to avoid an error.
10850 Use char because int might match the return type of a GCC
10851 builtin and then its argument prototype would still apply. */
10859 return dld_link ();
10864 if ac_fn_c_try_link "$LINENO"; then :
10865 ac_cv_lib_dld_dld_link=yes
10867 ac_cv_lib_dld_dld_link=no
10869 rm -f core conftest.err conftest.$ac_objext \
10870 conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10874 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10875 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10876 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10897 if test "x$lt_cv_dlopen" != xno; then
10903 case $lt_cv_dlopen in
10905 save_CPPFLAGS="$CPPFLAGS"
10906 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10908 save_LDFLAGS="$LDFLAGS"
10909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10912 LIBS="$lt_cv_dlopen_libs $LIBS"
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10915 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10916 if ${lt_cv_dlopen_self+:} false; then :
10917 $as_echo_n "(cached) " >&6
10919 if test "$cross_compiling" = yes; then :
10920 lt_cv_dlopen_self=cross
10922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923 lt_status=$lt_dlunknown
10924 cat > conftest.$ac_ext <<_LT_EOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10935 # define LT_DLGLOBAL RTLD_GLOBAL
10938 # define LT_DLGLOBAL DL_GLOBAL
10940 # define LT_DLGLOBAL 0
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945 find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10948 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10951 # define LT_DLLAZY_OR_NOW DL_LAZY
10954 # define LT_DLLAZY_OR_NOW RTLD_NOW
10957 # define LT_DLLAZY_OR_NOW DL_NOW
10959 # define LT_DLLAZY_OR_NOW 0
10966 /* When -fvisbility=hidden is used, assume the code has been annotated
10967 correspondingly for the symbols needed. */
10968 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10969 int fnord () __attribute__((visibility("default")));
10972 int fnord () { return 42; }
10975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10976 int status = $lt_dlunknown;
10980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10984 else puts (dlerror ());
10986 /* dlclose (self); */
10994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10995 (eval $ac_link) 2>&5
10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10999 (./conftest; exit; ) >&5 2>/dev/null
11001 case x$lt_status in
11002 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11003 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11004 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11007 # compilation failed
11008 lt_cv_dlopen_self=no
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11016 $as_echo "$lt_cv_dlopen_self" >&6; }
11018 if test "x$lt_cv_dlopen_self" = xyes; then
11019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11021 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11022 if ${lt_cv_dlopen_self_static+:} false; then :
11023 $as_echo_n "(cached) " >&6
11025 if test "$cross_compiling" = yes; then :
11026 lt_cv_dlopen_self_static=cross
11028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11029 lt_status=$lt_dlunknown
11030 cat > conftest.$ac_ext <<_LT_EOF
11031 #line $LINENO "configure"
11032 #include "confdefs.h"
11041 # define LT_DLGLOBAL RTLD_GLOBAL
11044 # define LT_DLGLOBAL DL_GLOBAL
11046 # define LT_DLGLOBAL 0
11050 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11051 find out it does not work in some platform. */
11052 #ifndef LT_DLLAZY_OR_NOW
11054 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11057 # define LT_DLLAZY_OR_NOW DL_LAZY
11060 # define LT_DLLAZY_OR_NOW RTLD_NOW
11063 # define LT_DLLAZY_OR_NOW DL_NOW
11065 # define LT_DLLAZY_OR_NOW 0
11072 /* When -fvisbility=hidden is used, assume the code has been annotated
11073 correspondingly for the symbols needed. */
11074 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11075 int fnord () __attribute__((visibility("default")));
11078 int fnord () { return 42; }
11081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11082 int status = $lt_dlunknown;
11086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11090 else puts (dlerror ());
11092 /* dlclose (self); */
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11101 (eval $ac_link) 2>&5
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11105 (./conftest; exit; ) >&5 2>/dev/null
11107 case x$lt_status in
11108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11110 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11113 # compilation failed
11114 lt_cv_dlopen_self_static=no
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11122 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11125 CPPFLAGS="$save_CPPFLAGS"
11126 LDFLAGS="$save_LDFLAGS"
11131 case $lt_cv_dlopen_self in
11132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11133 *) enable_dlopen_self=unknown ;;
11136 case $lt_cv_dlopen_self_static in
11137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11138 *) enable_dlopen_self_static=unknown ;;
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11161 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11162 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11164 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11166 $as_echo "yes" >&6; }
11168 # FIXME - insert some real tests, host_os isn't really good enough
11171 if test -n "$STRIP" ; then
11172 striplib="$STRIP -x"
11173 old_striplib="$STRIP -S"
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11199 # Report which library types will actually be built
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11201 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11203 $as_echo "$can_build_shared" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11206 $as_echo_n "checking whether to build shared libraries... " >&6; }
11207 test "$can_build_shared" = "no" && enable_shared=no
11209 # On AIX, shared libraries and static libraries use the same namespace, and
11210 # are all built from PIC.
11213 test "$enable_shared" = yes && enable_static=no
11214 if test -n "$RANLIB"; then
11215 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11216 postinstall_cmds='$RANLIB $lib'
11221 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11222 test "$enable_shared" = yes && enable_static=no
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11227 $as_echo "$enable_shared" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11230 $as_echo_n "checking whether to build static libraries... " >&6; }
11231 # Make sure either enable_shared or enable_static is yes.
11232 test "$enable_shared" = yes || enable_static=yes
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11234 $as_echo "$enable_static" >&6; }
11241 ac_cpp='$CPP $CPPFLAGS'
11242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260 ac_config_commands="$ac_config_commands libtool"
11265 # Only expand once:
11271 # Checks for programs.
11273 ac_cpp='$CPP $CPPFLAGS'
11274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277 if test -n "$ac_tool_prefix"; then
11278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if ${ac_cv_prog_CC+:} false; then :
11283 $as_echo_n "(cached) " >&6
11285 if test -n "$CC"; then
11286 ac_cv_prog_CC="$CC" # Let the user override the test.
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11306 if test -n "$CC"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11308 $as_echo "$CC" >&6; }
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11316 if test -z "$ac_cv_prog_CC"; then
11318 # Extract the first word of "gcc", so it can be a program name with args.
11319 set dummy gcc; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11323 $as_echo_n "(cached) " >&6
11325 if test -n "$ac_ct_CC"; then
11326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335 ac_cv_prog_ac_ct_CC="gcc"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11346 if test -n "$ac_ct_CC"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11348 $as_echo "$ac_ct_CC" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11354 if test "x$ac_ct_CC" = x; then
11357 case $cross_compiling:$ac_tool_warned in
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361 ac_tool_warned=yes ;;
11366 CC="$ac_cv_prog_CC"
11369 if test -z "$CC"; then
11370 if test -n "$ac_tool_prefix"; then
11371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11372 set dummy ${ac_tool_prefix}cc; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_prog_CC+:} false; then :
11376 $as_echo_n "(cached) " >&6
11378 if test -n "$CC"; then
11379 ac_cv_prog_CC="$CC" # Let the user override the test.
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11385 test -z "$as_dir" && as_dir=.
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388 ac_cv_prog_CC="${ac_tool_prefix}cc"
11389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 if test -n "$CC"; then
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11401 $as_echo "$CC" >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11410 if test -z "$CC"; then
11411 # Extract the first word of "cc", so it can be a program name with args.
11412 set dummy cc; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_prog_CC+:} false; then :
11416 $as_echo_n "(cached) " >&6
11418 if test -n "$CC"; then
11419 ac_cv_prog_CC="$CC" # Let the user override the test.
11421 ac_prog_rejected=no
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11426 test -z "$as_dir" && as_dir=.
11427 for ac_exec_ext in '' $ac_executable_extensions; do
11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11430 ac_prog_rejected=yes
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 if test $ac_prog_rejected = yes; then
11442 # We found a bogon in the path, so make sure we never use it.
11443 set dummy $ac_cv_prog_CC
11445 if test $# != 0; then
11446 # We chose a different compiler from the bogus one.
11447 # However, it has the same basename, so the bogon will be chosen
11448 # first if we set CC to just the basename; use the full file name.
11450 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11456 if test -n "$CC"; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11458 $as_echo "$CC" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11466 if test -z "$CC"; then
11467 if test -n "$ac_tool_prefix"; then
11468 for ac_prog in cl.exe
11470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_prog_CC+:} false; then :
11475 $as_echo_n "(cached) " >&6
11477 if test -n "$CC"; then
11478 ac_cv_prog_CC="$CC" # Let the user override the test.
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11484 test -z "$as_dir" && as_dir=.
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11498 if test -n "$CC"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11500 $as_echo "$CC" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11507 test -n "$CC" && break
11510 if test -z "$CC"; then
11512 for ac_prog in cl.exe
11514 # Extract the first word of "$ac_prog", so it can be a program name with args.
11515 set dummy $ac_prog; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11519 $as_echo_n "(cached) " >&6
11521 if test -n "$ac_ct_CC"; then
11522 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11531 ac_cv_prog_ac_ct_CC="$ac_prog"
11532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11542 if test -n "$ac_ct_CC"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11544 $as_echo "$ac_ct_CC" >&6; }
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11551 test -n "$ac_ct_CC" && break
11554 if test "x$ac_ct_CC" = x; then
11557 case $cross_compiling:$ac_tool_warned in
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11561 ac_tool_warned=yes ;;
11570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11572 as_fn_error $? "no acceptable C compiler found in \$PATH
11573 See \`config.log' for more details" "$LINENO" 5; }
11575 # Provide some information about the compiler.
11576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11579 for ac_option in --version -v -V -qversion; do
11580 { { ac_try="$ac_compiler $ac_option >&5"
11581 case "(($ac_try" in
11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583 *) ac_try_echo=$ac_try;;
11585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11586 $as_echo "$ac_try_echo"; } >&5
11587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11589 if test -s conftest.err; then
11591 ... rest of stderr output deleted ...
11592 10q' conftest.err >conftest.er1
11593 cat conftest.er1 >&5
11595 rm -f conftest.er1 conftest.err
11596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597 test $ac_status = 0; }
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11602 if ${ac_cv_c_compiler_gnu+:} false; then :
11603 $as_echo_n "(cached) " >&6
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620 ac_compiler_gnu=yes
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11630 if test $ac_compiler_gnu = yes; then
11635 ac_test_CFLAGS=${CFLAGS+set}
11636 ac_save_CFLAGS=$CFLAGS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11639 if ${ac_cv_prog_cc_g+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 ac_save_c_werror_flag=$ac_c_werror_flag
11643 ac_c_werror_flag=yes
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11657 if ac_fn_c_try_compile "$LINENO"; then :
11658 ac_cv_prog_cc_g=yes
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11672 if ac_fn_c_try_compile "$LINENO"; then :
11675 ac_c_werror_flag=$ac_save_c_werror_flag
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11688 if ac_fn_c_try_compile "$LINENO"; then :
11689 ac_cv_prog_cc_g=yes
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696 ac_c_werror_flag=$ac_save_c_werror_flag
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11699 $as_echo "$ac_cv_prog_cc_g" >&6; }
11700 if test "$ac_test_CFLAGS" = set; then
11701 CFLAGS=$ac_save_CFLAGS
11702 elif test $ac_cv_prog_cc_g = yes; then
11703 if test "$GCC" = yes; then
11709 if test "$GCC" = yes; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11717 if ${ac_cv_prog_cc_c89+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 ac_cv_prog_cc_c89=no
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11724 #include <stdarg.h>
11726 #include <sys/types.h>
11727 #include <sys/stat.h>
11728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11729 struct buf { int x; };
11730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11731 static char *e (p, i)
11737 static char *f (char * (*g) (char **, int), char **p, ...)
11742 s = g (p, va_arg (v,int));
11747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11748 function prototypes and stuff, but not '\xHH' hex character constants.
11749 These don't provoke an error unfortunately, instead are silently treated
11750 as 'x'. The following induces an error, until -std is added to get
11751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11752 array size at least. It's necessary to write '\x00'==0 to get something
11753 that's true only with -std. */
11754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11757 inside strings and character constants. */
11759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11761 int test (int i, double x);
11762 struct s1 {int (*f) (int a);};
11763 struct s2 {int (*f) (double a);};
11764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11778 CC="$ac_save_CC $ac_arg"
11779 if ac_fn_c_try_compile "$LINENO"; then :
11780 ac_cv_prog_cc_c89=$ac_arg
11782 rm -f core conftest.err conftest.$ac_objext
11783 test "x$ac_cv_prog_cc_c89" != "xno" && break
11785 rm -f conftest.$ac_ext
11790 case "x$ac_cv_prog_cc_c89" in
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11793 $as_echo "none needed" >&6; } ;;
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11796 $as_echo "unsupported" >&6; } ;;
11798 CC="$CC $ac_cv_prog_cc_c89"
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11802 if test "x$ac_cv_prog_cc_c89" != xno; then :
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11812 depcc="$CC" am_compiler_list=
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11815 $as_echo_n "checking dependency style of $depcc... " >&6; }
11816 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11817 $as_echo_n "(cached) " >&6
11819 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11820 # We make a subdir and do the tests there. Otherwise we can end up
11821 # making bogus files that we don't know about and never remove. For
11822 # instance it was reported that on HP-UX the gcc test will end up
11823 # making a dummy file named `D' -- because `-MD' means `put the output
11826 # Copy depcomp to subdir because otherwise we won't find it if we're
11827 # using a relative directory.
11828 cp "$am_depcomp" conftest.dir
11830 # We will build objects and dependencies in a subdirectory because
11831 # it helps to detect inapplicable dependency modes. For instance
11832 # both Tru64's cc and ICC support -MD to output dependencies as a
11833 # side effect of compilation, but ICC will put the dependencies in
11834 # the current directory while Tru64 will put them in the object
11838 am_cv_CC_dependencies_compiler_type=none
11839 if test "$am_compiler_list" = ""; then
11840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11842 am__universal=false
11843 case " $depcc " in #(
11844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11847 for depmode in $am_compiler_list; do
11848 # Setup a source with many dependencies, because some compilers
11849 # like to wrap large dependency lists on column 80 (with \), and
11850 # we should not choose a depcomp mode which is confused by this.
11852 # We need to recreate these files for each test, as the compiler may
11853 # overwrite some of them when testing with obscure command lines.
11854 # This happens at least with the AIX C compiler.
11856 for i in 1 2 3 4 5 6; do
11857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11858 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11859 # Solaris 8's {/usr,}/bin/sh.
11860 touch sub/conftst$i.h
11862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11864 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11865 # mode. It turns out that the SunPro C++ compiler does not properly
11866 # handle `-M -o', and we need to detect this. Also, some Intel
11867 # versions had trouble with output in subdirs
11868 am__obj=sub/conftest.${OBJEXT-o}
11869 am__minus_obj="-o $am__obj"
11872 # This depmode causes a compiler race in universal mode.
11873 test "$am__universal" = false || continue
11876 # after this tag, mechanisms are not by side-effect, so they'll
11877 # only be used when explicitly requested
11878 if test "x$enable_dependency_tracking" = xyes; then
11884 msvisualcpp | msvcmsys)
11885 # This compiler won't grok `-c -o', but also, the minuso test has
11886 # not run yet. These depmodes are late enough in the game, and
11887 # so weak that their functioning should not be impacted.
11888 am__obj=conftest.${OBJEXT-o}
11893 if depmode=$depmode \
11894 source=sub/conftest.c object=$am__obj \
11895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11897 >/dev/null 2>conftest.err &&
11898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11902 # icc doesn't choke on unknown options, it will just issue warnings
11903 # or remarks (even with -Werror). So we grep stderr for any message
11904 # that says an option was ignored or not supported.
11905 # When given -MP, icc 7.0 and 7.1 complain thusly:
11906 # icc: Command line warning: ignoring option '-M'; no argument required
11907 # The diagnosis changed in icc 8.0:
11908 # icc: Command line remark: option '-MP' not supported
11909 if (grep 'ignoring option' conftest.err ||
11910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11911 am_cv_CC_dependencies_compiler_type=$depmode
11918 rm -rf conftest.dir
11920 am_cv_CC_dependencies_compiler_type=none
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11929 test "x$enable_dependency_tracking" != xno \
11930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11931 am__fastdepCC_TRUE=
11932 am__fastdepCC_FALSE='#'
11934 am__fastdepCC_TRUE='#'
11935 am__fastdepCC_FALSE=
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11944 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 cat >conftest.make <<\_ACEOF
11950 @echo '@@@%%%=$(MAKE)=@@@%%%'
11952 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11954 *@@@%%%=?*=@@@%%%*)
11955 eval ac_cv_prog_make_${ac_make}_set=yes;;
11957 eval ac_cv_prog_make_${ac_make}_set=no;;
11959 rm -f conftest.make
11961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11963 $as_echo "yes" >&6; }
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968 SET_MAKE="MAKE=${MAKE-make}"
11977 # Check whether --enable-openssl was given.
11978 if test "${enable_openssl+set}" = set; then :
11979 enableval=$enable_openssl; openssl=yes
11984 if test "x$openssl" = "xyes" ; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
11986 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
11987 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
11988 $as_echo_n "(cached) " >&6
11990 ac_check_lib_save_LIBS=$LIBS
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
12001 char SSL_library_init ();
12005 return SSL_library_init ();
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_ssl_SSL_library_init=yes
12013 ac_cv_lib_ssl_SSL_library_init=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12020 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12021 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12022 cat >>confdefs.h <<_ACEOF
12023 #define HAVE_LIBSSL 1
12030 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12036 # Check whether --enable-nofork was given.
12037 if test "${enable_nofork+set}" = set; then :
12038 enableval=$enable_nofork; nofork=yes
12043 if test "x$nofork" = "xyes" ; then
12044 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12046 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12047 if test "x$ac_cv_type_pid_t" = xyes; then :
12051 cat >>confdefs.h <<_ACEOF
12057 for ac_header in vfork.h
12059 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_vfork_h" = xyes; then :
12061 cat >>confdefs.h <<_ACEOF
12062 #define HAVE_VFORK_H 1
12069 for ac_func in fork vfork
12071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12074 cat >>confdefs.h <<_ACEOF
12075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 if test "x$ac_cv_func_fork" = xyes; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12083 $as_echo_n "checking for working fork... " >&6; }
12084 if ${ac_cv_func_fork_works+:} false; then :
12085 $as_echo_n "(cached) " >&6
12087 if test "$cross_compiling" = yes; then :
12088 ac_cv_func_fork_works=cross
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092 $ac_includes_default
12097 /* By Ruediger Kuhlmann. */
12098 return fork () < 0;
12104 if ac_fn_c_try_run "$LINENO"; then :
12105 ac_cv_func_fork_works=yes
12107 ac_cv_func_fork_works=no
12109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12110 conftest.$ac_objext conftest.beam conftest.$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12115 $as_echo "$ac_cv_func_fork_works" >&6; }
12118 ac_cv_func_fork_works=$ac_cv_func_fork
12120 if test "x$ac_cv_func_fork_works" = xcross; then
12122 *-*-amigaos* | *-*-msdosdjgpp*)
12123 # Override, as these systems have only a dummy fork() stub
12124 ac_cv_func_fork_works=no
12127 ac_cv_func_fork_works=yes
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12131 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12133 ac_cv_func_vfork_works=$ac_cv_func_vfork
12134 if test "x$ac_cv_func_vfork" = xyes; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12136 $as_echo_n "checking for working vfork... " >&6; }
12137 if ${ac_cv_func_vfork_works+:} false; then :
12138 $as_echo_n "(cached) " >&6
12140 if test "$cross_compiling" = yes; then :
12141 ac_cv_func_vfork_works=cross
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12145 /* Thanks to Paul Eggert for this test. */
12146 $ac_includes_default
12147 #include <sys/wait.h>
12148 #ifdef HAVE_VFORK_H
12149 # include <vfork.h>
12151 /* On some sparc systems, changes by the child to local and incoming
12152 argument registers are propagated back to the parent. The compiler
12153 is told about this with #include <vfork.h>, but some compilers
12154 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12155 static variable whose address is put into a register that is
12156 clobbered by the vfork. */
12159 sparc_address_test (int arg)
12161 sparc_address_test (arg) int arg;
12164 static pid_t child;
12182 pid_t parent = getpid ();
12185 sparc_address_test (0);
12190 /* Here is another test for sparc vfork register problems. This
12191 test uses lots of local variables, at least as many local
12192 variables as main has allocated so far including compiler
12193 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12194 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12195 reuse the register of parent for one of the local variables,
12196 since it will think that parent can't possibly be used any more
12197 in this routine. Assigning to the local variable will thus
12198 munge parent in the parent process. */
12200 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12201 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12202 /* Convince the compiler that p..p7 are live; otherwise, it might
12203 use the same hardware register for all 8 local variables. */
12204 if (p != p1 || p != p2 || p != p3 || p != p4
12205 || p != p5 || p != p6 || p != p7)
12208 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12209 from child file descriptors. If the child closes a descriptor
12210 before it execs or exits, this munges the parent's descriptor
12211 as well. Test for this by closing stdout in the child. */
12212 _exit(close(fileno(stdout)) != 0);
12217 while (wait(&status) != child)
12220 /* Was there some problem with vforking? */
12223 /* Did the child fail? (This shouldn't happen.) */
12226 /* Did the vfork/compiler bug occur? */
12227 || parent != getpid()
12229 /* Did the file descriptor bug occur? */
12230 || fstat(fileno(stdout), &st) != 0
12235 if ac_fn_c_try_run "$LINENO"; then :
12236 ac_cv_func_vfork_works=yes
12238 ac_cv_func_vfork_works=no
12240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12241 conftest.$ac_objext conftest.beam conftest.$ac_ext
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12246 $as_echo "$ac_cv_func_vfork_works" >&6; }
12249 if test "x$ac_cv_func_fork_works" = xcross; then
12250 ac_cv_func_vfork_works=$ac_cv_func_vfork
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12252 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12255 if test "x$ac_cv_func_vfork_works" = xyes; then
12257 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12261 $as_echo "#define vfork fork" >>confdefs.h
12264 if test "x$ac_cv_func_fork_works" = xyes; then
12266 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12275 # Check whether --enable-libcrypto was given.
12276 if test "${enable_libcrypto+set}" = set; then :
12277 enableval=$enable_libcrypto; libcrypto=yes
12282 if test "x$libcrypto" = "xyes" ; then
12283 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12284 LDFLAGS="$LDFLAGS -lcrypto"
12286 if test x$libcrypto = xyes; then
12288 LIBCRYPTO_FALSE='#'
12299 # Check whether --enable-x-google-mux was given.
12300 if test "${enable_x_google_mux+set}" = set; then :
12301 enableval=$enable_x_google_mux; x_google_mux=yes
12305 if test "x$x_google_mux" = "xyes" ; then
12306 CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
12308 if test x$x_google_mux = xyes; then
12309 EXT_GOOGLE_MUX_TRUE=
12310 EXT_GOOGLE_MUX_FALSE='#'
12312 EXT_GOOGLE_MUX_TRUE='#'
12313 EXT_GOOGLE_MUX_FALSE=
12322 # Check whether --with-client-cert-dir was given.
12323 if test "${with_client_cert_dir+set}" = set; then :
12324 withval=$with_client_cert_dir; clientcertdir=$withval
12326 clientcertdir=/etc/pki/tls/certs/
12338 # Check whether --enable-noping was given.
12339 if test "${enable_noping+set}" = set; then :
12340 enableval=$enable_noping; noping=yes
12345 if test x$noping = xyes; then
12356 # Checks for header files.
12357 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12362 cat >>confdefs.h <<_ACEOF
12363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12371 # Checks for typedefs, structures, and compiler characteristics.
12372 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12373 if test "x$ac_cv_type_size_t" = xyes; then :
12377 cat >>confdefs.h <<_ACEOF
12378 #define size_t unsigned int
12384 # Checks for library functions.
12386 for ac_header in stdlib.h
12388 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12389 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_STDLIB_H 1
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12399 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12400 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12401 $as_echo_n "(cached) " >&6
12403 if test "$cross_compiling" = yes; then :
12404 ac_cv_func_malloc_0_nonnull=no
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12409 # include <stdlib.h>
12417 return ! malloc (0);
12422 if ac_fn_c_try_run "$LINENO"; then :
12423 ac_cv_func_malloc_0_nonnull=yes
12425 ac_cv_func_malloc_0_nonnull=no
12427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12428 conftest.$ac_objext conftest.beam conftest.$ac_ext
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12433 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12434 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12436 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12439 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12441 case " $LIBOBJS " in
12442 *" malloc.$ac_objext "* ) ;;
12443 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12448 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12453 for ac_header in stdlib.h
12455 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_STDLIB_H 1
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12466 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12467 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12468 $as_echo_n "(cached) " >&6
12470 if test "$cross_compiling" = yes; then :
12471 ac_cv_func_realloc_0_nonnull=no
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12475 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12476 # include <stdlib.h>
12484 return ! realloc (0, 0);
12489 if ac_fn_c_try_run "$LINENO"; then :
12490 ac_cv_func_realloc_0_nonnull=yes
12492 ac_cv_func_realloc_0_nonnull=no
12494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12495 conftest.$ac_objext conftest.beam conftest.$ac_ext
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12500 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12501 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12503 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12506 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12508 case " $LIBOBJS " in
12509 *" realloc.$ac_objext "* ) ;;
12510 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12515 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12520 for ac_func in bzero memset socket strerror
12522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12524 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12525 cat >>confdefs.h <<_ACEOF
12526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12533 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12536 cat >confcache <<\_ACEOF
12537 # This file is a shell script that caches the results of configure
12538 # tests run on this system so they can be shared between configure
12539 # scripts and configure runs, see configure's option --config-cache.
12540 # It is not useful on other systems. If it contains results you don't
12541 # want to keep, you may remove or edit it.
12543 # config.status only pays attention to the cache file if you give it
12544 # the --recheck option to rerun configure.
12546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12548 # following values.
12552 # The following way of writing the cache mishandles newlines in values,
12553 # but we know of no workaround that is simple, portable, and efficient.
12554 # So, we kill variables containing newlines.
12555 # Ultrix sh set writes to stderr and can't be redirected directly,
12556 # and sets the high bit in the cache file unless we assign to the vars.
12558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12559 eval ac_val=\$$ac_var
12563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12567 _ | IFS | as_nl) ;; #(
12568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12569 *) { eval $ac_var=; unset $ac_var;} ;;
12575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12576 *${as_nl}ac_space=\ *)
12577 # `set' does not quote correctly, so add quotes: double-quote
12578 # substitution turns \\\\ into \\, and sed turns \\ into \.
12581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12584 # `set' quotes correctly as required by POSIX, so do not add quotes.
12585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12599 if test -w "$cache_file"; then
12600 if test "x$cache_file" != "x/dev/null"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12602 $as_echo "$as_me: updating cache $cache_file" >&6;}
12603 if test ! -f "$cache_file" || test -h "$cache_file"; then
12604 cat confcache >"$cache_file"
12606 case $cache_file in #(
12608 mv -f confcache "$cache_file"$$ &&
12609 mv -f "$cache_file"$$ "$cache_file" ;; #(
12611 mv -f confcache "$cache_file" ;;
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12623 # Let make expand exec_prefix.
12624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12626 DEFS=-DHAVE_CONFIG_H
12631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12632 # 1. Remove the extension, and $U if already installed.
12633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12634 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12636 # will be set to the directory where LIBOBJS objects are built.
12637 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12638 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12640 LIBOBJS=$ac_libobjs
12642 LTLIBOBJS=$ac_ltlibobjs
12645 if test -n "$EXEEXT"; then
12647 am__EXEEXT_FALSE='#'
12649 am__EXEEXT_TRUE='#'
12653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12654 as_fn_error $? "conditional \"AMDEP\" was never defined.
12655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12658 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12662 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12665 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12666 as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12669 if test -z "${EXT_GOOGLE_MUX_TRUE}" && test -z "${EXT_GOOGLE_MUX_FALSE}"; then
12670 as_fn_error $? "conditional \"EXT_GOOGLE_MUX\" was never defined.
12671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12673 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12674 as_fn_error $? "conditional \"NOPING\" was never defined.
12675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12678 : "${CONFIG_STATUS=./config.status}"
12680 ac_clean_files_save=$ac_clean_files
12681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12687 # Generated by $as_me.
12688 # Run this file to recreate the current configuration.
12689 # Compiler output produced by configure, useful for debugging
12690 # configure, is in config.log if it exists.
12693 ac_cs_recheck=false
12696 SHELL=\${CONFIG_SHELL-$SHELL}
12699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12700 ## -------------------- ##
12701 ## M4sh Initialization. ##
12702 ## -------------------- ##
12704 # Be more Bourne compatible
12705 DUALCASE=1; export DUALCASE # for MKS sh
12706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12709 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12710 # is contrary to our usage. Disable this feature.
12711 alias -g '${1+"$@"}'='"$@"'
12712 setopt NO_GLOB_SUBST
12714 case `(set -o) 2>/dev/null` in #(
12726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12730 # Prefer a ksh shell builtin over an external printf program on Solaris,
12731 # but without wasting forks for bash or zsh.
12732 if test -z "$BASH_VERSION$ZSH_VERSION" \
12733 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12734 as_echo='print -r --'
12735 as_echo_n='print -rn --'
12736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12737 as_echo='printf %s\n'
12738 as_echo_n='printf %s'
12740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12742 as_echo_n='/usr/ucb/echo -n'
12744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12745 as_echo_n_body='eval
12749 expr "X$arg" : "X\\(.*\\)$as_nl";
12750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12754 export as_echo_n_body
12755 as_echo_n='sh -c $as_echo_n_body as_echo'
12757 export as_echo_body
12758 as_echo='sh -c $as_echo_body as_echo'
12761 # The user is always right.
12762 if test "${PATH_SEPARATOR+set}" != set; then
12764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12772 # We need space, tab and new line, in precisely that order. Quoting is
12773 # there to prevent editors from complaining about space-tab.
12774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12775 # splitting by setting IFS to empty value.)
12778 # Find who we are. Look in the path if we contain no directory separator.
12781 *[\\/]* ) as_myself=$0 ;;
12782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12786 test -z "$as_dir" && as_dir=.
12787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12793 # We did not find ourselves, most probably we were run as `sh COMMAND'
12794 # in which case we are not to be found in the path.
12795 if test "x$as_myself" = x; then
12798 if test ! -f "$as_myself"; then
12799 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12803 # Unset variables that we do not need and which cause bugs (e.g. in
12804 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12805 # suppresses any "Segmentation fault" message there. '((' could
12806 # trigger a bug in pdksh 5.2.14.
12807 for as_var in BASH_ENV ENV MAIL MAILPATH
12808 do eval test x\${$as_var+set} = xset \
12809 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12825 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12826 # ----------------------------------------
12827 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12828 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12829 # script with STATUS, using 1 if that was 0.
12832 as_status=$1; test $as_status -eq 0 && as_status=1
12834 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12835 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12837 $as_echo "$as_me: error: $2" >&2
12838 as_fn_exit $as_status
12842 # as_fn_set_status STATUS
12843 # -----------------------
12844 # Set $? to STATUS, without forking.
12845 as_fn_set_status ()
12848 } # as_fn_set_status
12850 # as_fn_exit STATUS
12851 # -----------------
12852 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12856 as_fn_set_status $1
12862 # Portably unset VAR.
12865 { eval $1=; unset $1;}
12867 as_unset=as_fn_unset
12868 # as_fn_append VAR VALUE
12869 # ----------------------
12870 # Append the text in VALUE to the end of the definition contained in VAR. Take
12871 # advantage of any shell optimizations that allow amortized linear growth over
12872 # repeated appends, instead of the typical quadratic growth present in naive
12874 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12875 eval 'as_fn_append ()
12886 # as_fn_arith ARG...
12887 # ------------------
12888 # Perform arithmetic evaluation on the ARGs, and store the result in the
12889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12890 # must be portable across $(()) and expr.
12891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12892 eval 'as_fn_arith ()
12899 as_val=`expr "$@" || test $? -eq 1`
12904 if expr a : '\(a\)' >/dev/null 2>&1 &&
12905 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12912 as_basename=basename
12917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12923 as_me=`$as_basename -- "$0" ||
12924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12925 X"$0" : 'X\(//\)$' \| \
12926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12928 sed '/^.*\/\([^/][^/]*\)\/*$/{
12942 # Avoid depending upon Character Ranges.
12943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12946 as_cr_digits='0123456789'
12947 as_cr_alnum=$as_cr_Letters$as_cr_digits
12949 ECHO_C= ECHO_N= ECHO_T=
12950 case `echo -n x` in #(((((
12952 case `echo 'xy\c'` in
12953 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12962 rm -f conf$$ conf$$.exe conf$$.file
12963 if test -d conf$$.dir; then
12964 rm -f conf$$.dir/conf$$.file
12967 mkdir conf$$.dir 2>/dev/null
12969 if (echo >conf$$.file) 2>/dev/null; then
12970 if ln -s conf$$.file conf$$ 2>/dev/null; then
12972 # ... but there are two gotchas:
12973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12975 # In both cases, we have to default to `cp -p'.
12976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12978 elif ln conf$$.file conf$$ 2>/dev/null; then
12986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12987 rmdir conf$$.dir 2>/dev/null
12992 # Create "$as_dir" as a directory, including parents if necessary.
12997 -*) as_dir=./$as_dir;;
12999 test -d "$as_dir" || eval $as_mkdir_p || {
13003 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13004 *) as_qdir=$as_dir;;
13006 as_dirs="'$as_qdir' $as_dirs"
13007 as_dir=`$as_dirname -- "$as_dir" ||
13008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13009 X"$as_dir" : 'X\(//\)[^/]' \| \
13010 X"$as_dir" : 'X\(//\)$' \| \
13011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13012 $as_echo X"$as_dir" |
13013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13017 /^X\(\/\/\)[^/].*/{
13030 test -d "$as_dir" && break
13032 test -z "$as_dirs" || eval "mkdir $as_dirs"
13033 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13037 if mkdir -p . 2>/dev/null; then
13038 as_mkdir_p='mkdir -p "$as_dir"'
13040 test -d ./-p && rmdir ./-p
13044 if test -x / >/dev/null 2>&1; then
13045 as_test_x='test -x'
13047 if ls -dL / >/dev/null 2>&1; then
13054 if test -d "$1"; then
13060 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13061 ???[sx]*):;;*)false;;esac;fi
13065 as_executable_p=$as_test_x
13067 # Sed expression to map a string onto a valid CPP name.
13068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13070 # Sed expression to map a string onto a valid variable name.
13071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13075 ## ----------------------------------- ##
13076 ## Main body of $CONFIG_STATUS script. ##
13077 ## ----------------------------------- ##
13079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082 # Save the log message, to keep $0 and so on meaningful, and to
13083 # report actual input values of CONFIG_FILES etc. instead of their
13084 # values after options handling.
13086 This file was extended by libwebsockets $as_me 0.3, which was
13087 generated by GNU Autoconf 2.68. Invocation command line was
13089 CONFIG_FILES = $CONFIG_FILES
13090 CONFIG_HEADERS = $CONFIG_HEADERS
13091 CONFIG_LINKS = $CONFIG_LINKS
13092 CONFIG_COMMANDS = $CONFIG_COMMANDS
13095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13100 case $ac_config_files in *"
13101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13104 case $ac_config_headers in *"
13105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13110 # Files that config.status was made for.
13111 config_files="$ac_config_files"
13112 config_headers="$ac_config_headers"
13113 config_commands="$ac_config_commands"
13117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13119 \`$as_me' instantiates files and other configuration actions
13120 from templates according to the current configuration. Unless the files
13121 and actions are specified as TAGs, all are instantiated by default.
13123 Usage: $0 [OPTION]... [TAG]...
13125 -h, --help print this help, then exit
13126 -V, --version print version number and configuration settings, then exit
13127 --config print configuration, then exit
13128 -q, --quiet, --silent
13129 do not print progress messages
13130 -d, --debug don't remove temporary files
13131 --recheck update $as_me by reconfiguring in the same conditions
13132 --file=FILE[:TEMPLATE]
13133 instantiate the configuration file FILE
13134 --header=FILE[:TEMPLATE]
13135 instantiate the configuration header FILE
13137 Configuration files:
13140 Configuration headers:
13143 Configuration commands:
13146 Report bugs to <andy@warmcat.com>."
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13152 libwebsockets config.status 0.3
13153 configured by $0, generated by GNU Autoconf 2.68,
13154 with options \\"\$ac_cs_config\\"
13156 Copyright (C) 2010 Free Software Foundation, Inc.
13157 This config.status script is free software; the Free Software Foundation
13158 gives unlimited permission to copy, distribute and modify it."
13165 test -n "\$AWK" || AWK=awk
13168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169 # The default lists apply if the user does not specify any file.
13175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13192 # Handling of the options.
13193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13196 $as_echo "$ac_cs_version"; exit ;;
13197 --config | --confi | --conf | --con | --co | --c )
13198 $as_echo "$ac_cs_config"; exit ;;
13199 --debug | --debu | --deb | --de | --d | -d )
13201 --file | --fil | --fi | --f )
13204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13205 '') as_fn_error $? "missing file argument" ;;
13207 as_fn_append CONFIG_FILES " '$ac_optarg'"
13208 ac_need_defaults=false;;
13209 --header | --heade | --head | --hea )
13212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13214 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13215 ac_need_defaults=false;;
13217 # Conflict between --help and --header
13218 as_fn_error $? "ambiguous option: \`$1'
13219 Try \`$0 --help' for more information.";;
13220 --help | --hel | -h )
13221 $as_echo "$ac_cs_usage"; exit ;;
13222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13226 # This is an error.
13227 -*) as_fn_error $? "unrecognized option: \`$1'
13228 Try \`$0 --help' for more information." ;;
13230 *) as_fn_append ac_config_targets " $1"
13231 ac_need_defaults=false ;;
13237 ac_configure_extra_args=
13239 if $ac_cs_silent; then
13241 ac_configure_extra_args="$ac_configure_extra_args --silent"
13245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246 if \$ac_cs_recheck; then
13247 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13249 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13250 CONFIG_SHELL='$SHELL'
13251 export CONFIG_SHELL
13256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13261 ## Running $as_me. ##
13267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13274 # The HP-UX ksh and POSIX shell print the target directory to stdout
13275 # if CDPATH is set.
13276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13278 sed_quote_subst='$sed_quote_subst'
13279 double_quote_subst='$double_quote_subst'
13280 delay_variable_subst='$delay_variable_subst'
13281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13284 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13285 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13286 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13287 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13288 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13313 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13314 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13315 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13316 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13317 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13371 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13372 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13373 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13374 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13375 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13376 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13377 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13378 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13379 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13380 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13381 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13382 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13383 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13384 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13385 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13386 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13387 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13388 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13389 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13390 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13391 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13392 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13393 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13394 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13395 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13396 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13397 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13398 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13399 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13400 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13401 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13402 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13403 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13404 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13405 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13406 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13407 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13408 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13409 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13410 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13413 LTCFLAGS='$LTCFLAGS'
13414 compiler='$compiler_DEFAULT'
13416 # A function that is used when there is no print builtin or printf.
13417 func_fallback_echo ()
13419 eval 'cat <<_LTECHO_EOF
13424 # Quote evaled strings.
13438 deplibs_check_method \
13443 sharedlib_from_linklib_cmd \
13446 archiver_list_spec \
13452 lt_cv_sys_global_symbol_pipe \
13453 lt_cv_sys_global_symbol_to_cdecl \
13454 lt_cv_sys_global_symbol_to_c_name_address \
13455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13456 nm_file_list_spec \
13457 lt_prog_compiler_no_builtin_flag \
13458 lt_prog_compiler_pic \
13459 lt_prog_compiler_wl \
13460 lt_prog_compiler_static \
13461 lt_cv_prog_compiler_c_o \
13470 export_dynamic_flag_spec \
13471 whole_archive_flag_spec \
13472 compiler_needs_object \
13474 allow_undefined_flag \
13475 no_undefined_flag \
13476 hardcode_libdir_flag_spec \
13477 hardcode_libdir_flag_spec_ld \
13478 hardcode_libdir_separator \
13482 variables_saved_for_relink \
13484 library_names_spec \
13486 install_override_mode \
13490 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13491 *[\\\\\\\`\\"\\\$]*)
13492 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13495 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13500 # Double-quote double-evaled strings.
13501 for var in reload_cmds \
13502 old_postinstall_cmds \
13503 old_postuninstall_cmds \
13505 extract_expsyms_cmds \
13506 old_archive_from_new_cmds \
13507 old_archive_from_expsyms_cmds \
13509 archive_expsym_cmds \
13511 module_expsym_cmds \
13512 export_symbols_cmds \
13516 postuninstall_cmds \
13518 sys_lib_search_path_spec \
13519 sys_lib_dlsearch_path_spec; do
13520 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13521 *[\\\\\\\`\\"\\\$]*)
13522 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13525 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13530 ac_aux_dir='$ac_aux_dir'
13531 xsi_shell='$xsi_shell'
13532 lt_shell_append='$lt_shell_append'
13534 # See if we are running on zsh, and set the options which allow our
13535 # commands through without removal of \ escapes INIT.
13536 if test -n "\${ZSH_VERSION+set}" ; then
13537 setopt NO_GLOB_SUBST
13543 TIMESTAMP='$TIMESTAMP'
13552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554 # Handling of arguments.
13555 for ac_config_target in $ac_config_targets
13557 case $ac_config_target in
13558 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13561 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13562 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13563 "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13565 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13570 # If the user did not use the arguments to specify the items to instantiate,
13571 # then the envvar interface is used. Set only those that are not.
13572 # We use the long form for the default assignment because of an extremely
13573 # bizarre bug on SunOS 4.1.3.
13574 if $ac_need_defaults; then
13575 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13576 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13577 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13580 # Have a temporary directory for convenience. Make it in the build tree
13581 # simply because there is no reason against having it here, and in addition,
13582 # creating and moving files from /tmp can sometimes cause problems.
13583 # Hook for its removal unless debugging.
13584 # Note that there is a small window in which the directory will not be cleaned:
13585 # after its creation but before its name has been assigned to `$tmp'.
13589 trap 'exit_status=$?
13590 : "${ac_tmp:=$tmp}"
13591 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13593 trap 'as_fn_exit 1' 1 2 13 15
13595 # Create a (secure) tmp directory for tmp files.
13598 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13602 tmp=./conf$$-$RANDOM
13603 (umask 077 && mkdir "$tmp")
13604 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13607 # Set up the scripts for CONFIG_FILES section.
13608 # No need to generate them if there are no CONFIG_FILES.
13609 # This happens for instance with `./config.status config.h'.
13610 if test -n "$CONFIG_FILES"; then
13613 ac_cr=`echo X | tr X '\015'`
13614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13615 # But we know of no other shell where ac_cr would be empty at this
13616 # point, so we can use a bashism as a fallback.
13617 if test "x$ac_cr" = x; then
13618 eval ac_cr=\$\'\\r\'
13620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13624 ac_cs_awk_cr=$ac_cr
13627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13632 echo "cat >conf$$subs.awk <<_ACEOF" &&
13633 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13635 } >conf$$subs.sh ||
13636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13639 for ac_last_try in false false false false false :; do
13640 . ./conf$$subs.sh ||
13641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13643 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13644 if test $ac_delim_n = $ac_delim_num; then
13646 elif $ac_last_try; then
13647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13649 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13652 rm -f conf$$subs.sh
13654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13659 s/^/S["/; s/!.*/"]=/
13669 s/\(.\{148\}\)..*/\1/
13671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13683 s/\(.\{148\}\)..*/\1/
13685 s/["\\]/\\&/g; s/^/"/; s/$/"/
13689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13694 ' <conf$$subs.awk | sed '
13699 ' >>$CONFIG_STATUS || ac_write_fail=1
13700 rm -f conf$$subs.awk
13701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13704 for (key in S) S_is_set[key] = 1
13710 nfields = split(line, field, "@")
13712 len = length(field[1])
13713 for (i = 2; i < nfields; i++) {
13715 keylen = length(key)
13716 if (S_is_set[key]) {
13718 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13719 len += length(value) + length(field[++i])
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13732 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13735 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13736 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13741 # trailing colons and then remove the whole line if VPATH becomes empty
13742 # (actually we leave an empty line to preserve line numbers).
13743 if test "x$srcdir" = x.; then
13744 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13763 fi # test -n "$CONFIG_FILES"
13765 # Set up the scripts for CONFIG_HEADERS section.
13766 # No need to generate them if there are no CONFIG_HEADERS.
13767 # This happens for instance with `./config.status Makefile'.
13768 if test -n "$CONFIG_HEADERS"; then
13769 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13773 # Transform confdefs.h into an awk script `defines.awk', embedded as
13774 # here-document in config.status, that substitutes the proper values into
13775 # config.h.in to produce config.h.
13777 # Create a delimiter string that does not exist in confdefs.h, to ease
13778 # handling of long lines.
13780 for ac_last_try in false false :; do
13781 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13782 if test -z "$ac_tt"; then
13784 elif $ac_last_try; then
13785 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13791 # For the awk script, D is an array of macro values keyed by name,
13792 # likewise P contains macro parameters if any. Preserve backslash
13793 # newline sequences.
13795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13797 s/.\{148\}/&'"$ac_delim"'/g
13800 s/^[ ]*#[ ]*define[ ][ ]*/ /
13807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13809 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13814 D["\1"]=" \3\\\\\\n"\\/p
13816 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13821 s/.\{148\}/&'"$ac_delim"'/g
13826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13831 ' <confdefs.h | sed '
13832 s/'"$ac_delim"'/"\\\
13833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13836 for (key in D) D_is_set[key] = 1
13839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13841 split(line, arg, " ")
13842 if (arg[1] == "#") {
13846 defundef = substr(arg[1], 2)
13849 split(mac1, mac2, "(") #)
13851 prefix = substr(line, 1, index(line, defundef) - 1)
13852 if (D_is_set[macro]) {
13853 # Preserve the white space surrounding the "#".
13854 print prefix "define", macro P[macro] D[macro]
13857 # Replace #undef with comments. This is necessary, for example,
13858 # in the case of _POSIX_SOURCE, which is predefined and required
13859 # on some systems where configure will not decide to define it.
13860 if (defundef == "undef") {
13861 print "/*", prefix defundef, macro, "*/"
13869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13870 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13871 fi # test -n "$CONFIG_HEADERS"
13874 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13879 :[FHLC]) ac_mode=$ac_tag; continue;;
13881 case $ac_mode$ac_tag in
13883 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13884 :[FH]-) ac_tag=-:-;;
13885 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13902 -) ac_f="$ac_tmp/stdin";;
13903 *) # Look for the file first in the build tree, then in the source tree
13904 # (if the path is not absolute). The absolute path cannot be DOS-style,
13905 # because $ac_f cannot contain `:'.
13909 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13911 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13913 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13914 as_fn_append ac_file_inputs " '$ac_f'"
13917 # Let's still pretend it is `configure' which instantiates (i.e., don't
13918 # use $as_me), people would be surprised to read:
13919 # /* config.h. Generated by config.status. */
13920 configure_input='Generated from '`
13921 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13923 if test x"$ac_file" != x-; then
13924 configure_input="$ac_file. $configure_input"
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13926 $as_echo "$as_me: creating $ac_file" >&6;}
13928 # Neutralize special characters interpreted by sed in replacement strings.
13929 case $configure_input in #(
13930 *\&* | *\|* | *\\* )
13931 ac_sed_conf_input=`$as_echo "$configure_input" |
13932 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13933 *) ac_sed_conf_input=$configure_input;;
13937 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13938 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13943 ac_dir=`$as_dirname -- "$ac_file" ||
13944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13945 X"$ac_file" : 'X\(//\)[^/]' \| \
13946 X"$ac_file" : 'X\(//\)$' \| \
13947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13948 $as_echo X"$ac_file" |
13949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13953 /^X\(\/\/\)[^/].*/{
13966 as_dir="$ac_dir"; as_fn_mkdir_p
13970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13972 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13973 # A ".." for each directory in $ac_dir_suffix.
13974 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13975 case $ac_top_builddir_sub in
13976 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13977 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13980 ac_abs_top_builddir=$ac_pwd
13981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13982 # for backward compatibility:
13983 ac_top_builddir=$ac_top_build_prefix
13986 .) # We are building in place.
13988 ac_top_srcdir=$ac_top_builddir_sub
13989 ac_abs_top_srcdir=$ac_pwd ;;
13990 [\\/]* | ?:[\\/]* ) # Absolute name.
13991 ac_srcdir=$srcdir$ac_dir_suffix;
13992 ac_top_srcdir=$srcdir
13993 ac_abs_top_srcdir=$srcdir ;;
13994 *) # Relative name.
13995 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13996 ac_top_srcdir=$ac_top_build_prefix$srcdir
13997 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14009 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14010 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14012 ac_MKDIR_P=$MKDIR_P
14014 [\\/$]* | ?:[\\/]* ) ;;
14015 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020 # If the template does not know about datarootdir, expand it.
14021 # FIXME: This hack should be removed a few years after 2.60.
14022 ac_datarootdir_hack=; ac_datarootdir_seen=
14033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14034 *datarootdir*) ac_datarootdir_seen=yes;;
14035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14040 ac_datarootdir_hack='
14041 s&@datadir@&$datadir&g
14042 s&@docdir@&$docdir&g
14043 s&@infodir@&$infodir&g
14044 s&@localedir@&$localedir&g
14045 s&@mandir@&$mandir&g
14046 s&\\\${datarootdir}&$datarootdir&g' ;;
14050 # Neutralize VPATH when `$srcdir' = `.'.
14051 # Shell code in configure.ac might set extrasub.
14052 # FIXME: do we really want to maintain this feature?
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054 ac_sed_extra="$ac_vpsub
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14060 s|@configure_input@|$ac_sed_conf_input|;t t
14061 s&@top_builddir@&$ac_top_builddir_sub&;t t
14062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14063 s&@srcdir@&$ac_srcdir&;t t
14064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14065 s&@top_srcdir@&$ac_top_srcdir&;t t
14066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14067 s&@builddir@&$ac_builddir&;t t
14068 s&@abs_builddir@&$ac_abs_builddir&;t t
14069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14070 s&@INSTALL@&$ac_INSTALL&;t t
14071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14072 $ac_datarootdir_hack
14074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14075 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14078 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14079 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14080 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14082 which seems to be undefined. Please make sure it is defined" >&5
14083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14084 which seems to be undefined. Please make sure it is defined" >&2;}
14086 rm -f "$ac_tmp/stdin"
14088 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14089 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14097 if test x"$ac_file" != x-; then
14099 $as_echo "/* $configure_input */" \
14100 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14101 } >"$ac_tmp/config.h" \
14102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14103 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14108 mv "$ac_tmp/config.h" "$ac_file" \
14109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14112 $as_echo "/* $configure_input */" \
14113 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14114 || as_fn_error $? "could not create -" "$LINENO" 5
14116 # Compute "$ac_file"'s index in $config_headers.
14119 for _am_header in $config_headers :; do
14120 case $_am_header in
14121 $_am_arg | $_am_arg:* )
14124 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14127 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14128 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14129 X"$_am_arg" : 'X\(//\)[^/]' \| \
14130 X"$_am_arg" : 'X\(//\)$' \| \
14131 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14132 $as_echo X"$_am_arg" |
14133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14137 /^X\(\/\/\)[^/].*/{
14149 s/.*/./; q'`/stamp-h$_am_stamp_count
14152 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14153 $as_echo "$as_me: executing $ac_file commands" >&6;}
14158 case $ac_file$ac_mode in
14159 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14160 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14161 # are listed without --file. Let's play safe and only enable the eval
14162 # if we detect the quoting.
14163 case $CONFIG_FILES in
14164 *\'*) eval set x "$CONFIG_FILES" ;;
14165 *) set x $CONFIG_FILES ;;
14170 # Strip MF so we end up with the name of the file.
14171 mf=`echo "$mf" | sed -e 's/:.*$//'`
14172 # Check whether this is an Automake generated Makefile or not.
14173 # We used to match only the files named `Makefile.in', but
14174 # some people rename them; so instead we look at the file content.
14175 # Grep'ing the first line is not enough: some people post-process
14176 # each Makefile.in and add a new line on top of each file to say so.
14177 # Grep'ing the whole file is not good either: AIX grep has a line
14178 # limit of 2048, but all sed's we know have understand at least 4000.
14179 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14180 dirpart=`$as_dirname -- "$mf" ||
14181 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14182 X"$mf" : 'X\(//\)[^/]' \| \
14183 X"$mf" : 'X\(//\)$' \| \
14184 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14190 /^X\(\/\/\)[^/].*/{
14206 # Extract the definition of DEPDIR, am__include, and am__quote
14207 # from the Makefile without running `make'.
14208 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14209 test -z "$DEPDIR" && continue
14210 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14211 test -z "am__include" && continue
14212 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14213 # When using ansi2knr, U may be empty or an underscore; expand it
14214 U=`sed -n 's/^U = //p' < "$mf"`
14215 # Find all dependency output files, they are included files with
14216 # $(DEPDIR) in their names. We invoke sed twice because it is the
14217 # simplest approach to changing $(DEPDIR) to its actual value in the
14219 for file in `sed -n "
14220 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14221 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14222 # Make sure the directory exists.
14223 test -f "$dirpart/$file" && continue
14224 fdir=`$as_dirname -- "$file" ||
14225 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14226 X"$file" : 'X\(//\)[^/]' \| \
14227 X"$file" : 'X\(//\)$' \| \
14228 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14229 $as_echo X"$file" |
14230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14234 /^X\(\/\/\)[^/].*/{
14247 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14248 # echo "creating $dirpart/$file"
14249 echo '# dummy' > "$dirpart/$file"
14256 # See if we are running on zsh, and set the options which allow our
14257 # commands through without removal of \ escapes.
14258 if test -n "${ZSH_VERSION+set}" ; then
14259 setopt NO_GLOB_SUBST
14262 cfgfile="${ofile}T"
14263 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14266 cat <<_LT_EOF >> "$cfgfile"
14269 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14270 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14272 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14274 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14275 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14277 # Written by Gordon Matzigkeit, 1996
14279 # This file is part of GNU Libtool.
14281 # GNU Libtool is free software; you can redistribute it and/or
14282 # modify it under the terms of the GNU General Public License as
14283 # published by the Free Software Foundation; either version 2 of
14284 # the License, or (at your option) any later version.
14286 # As a special exception to the GNU General Public License,
14287 # if you distribute this file as part of a program or library that
14288 # is built using GNU Libtool, you may include this file under the
14289 # same distribution terms that you use for the rest of that program.
14291 # GNU Libtool is distributed in the hope that it will be useful,
14292 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14293 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14294 # GNU General Public License for more details.
14296 # You should have received a copy of the GNU General Public License
14297 # along with GNU Libtool; see the file COPYING. If not, a copy
14298 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14299 # obtained by writing to the Free Software Foundation, Inc.,
14300 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14303 # The names of the tagged configurations supported by this script.
14306 # ### BEGIN LIBTOOL CONFIG
14308 # Which release of libtool.m4 was used?
14309 macro_version=$macro_version
14310 macro_revision=$macro_revision
14312 # Whether or not to build shared libraries.
14313 build_libtool_libs=$enable_shared
14315 # Whether or not to build static libraries.
14316 build_old_libs=$enable_static
14318 # What type of objects to build.
14321 # Whether or not to optimize for fast installation.
14322 fast_install=$enable_fast_install
14324 # Shell to use when invoking shell scripts.
14327 # An echo program that protects backslashes.
14331 host_alias=$host_alias
14335 # The build system.
14336 build_alias=$build_alias
14340 # A sed program that does not truncate output.
14343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14344 Xsed="\$SED -e 1s/^X//"
14346 # A grep program that handles long lines.
14352 # A literal string matcher.
14355 # A BSD- or MS-compatible name lister.
14358 # Whether we need soft or hard links.
14361 # What is the maximum length of a command?
14362 max_cmd_len=$max_cmd_len
14364 # Object file suffix (normally "o").
14367 # Executable file suffix (normally "").
14370 # whether the shell understands "unset".
14373 # turn spaces into newlines.
14376 # turn newlines into spaces.
14379 # convert \$build file names to \$host format.
14380 to_host_file_cmd=$lt_cv_to_host_file_cmd
14382 # convert \$build files to toolchain format.
14383 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14385 # An object symbol dumper.
14386 OBJDUMP=$lt_OBJDUMP
14388 # Method to check whether dependent libraries are shared objects.
14389 deplibs_check_method=$lt_deplibs_check_method
14391 # Command to use when deplibs_check_method = "file_magic".
14392 file_magic_cmd=$lt_file_magic_cmd
14394 # How to find potential files when deplibs_check_method = "file_magic".
14395 file_magic_glob=$lt_file_magic_glob
14397 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14398 want_nocaseglob=$lt_want_nocaseglob
14400 # DLL creation program.
14401 DLLTOOL=$lt_DLLTOOL
14403 # Command to associate shared and link libraries.
14404 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14409 # Flags to create an archive.
14410 AR_FLAGS=$lt_AR_FLAGS
14412 # How to feed a file listing to the archiver.
14413 archiver_list_spec=$lt_archiver_list_spec
14415 # A symbol stripping program.
14418 # Commands used to install an old-style archive.
14420 old_postinstall_cmds=$lt_old_postinstall_cmds
14421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14423 # Whether to use a lock for old archive extraction.
14424 lock_old_archive_extraction=$lock_old_archive_extraction
14429 # LTCC compiler flags.
14430 LTCFLAGS=$lt_CFLAGS
14432 # Take the output of nm and produce a listing of raw symbols and C names.
14433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14435 # Transform the output of nm in a proper C declaration.
14436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14438 # Transform the output of nm in a C name address pair.
14439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14441 # Transform the output of nm in a C name address pair when lib prefix is needed.
14442 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14444 # Specify filename containing input files for \$NM.
14445 nm_file_list_spec=$lt_nm_file_list_spec
14447 # The root where to search for dependent libraries,and in which our libraries should be installed.
14448 lt_sysroot=$lt_sysroot
14450 # The name of the directory that contains temporary libtool files.
14453 # Used to examine libraries when file_magic_cmd begins with "file".
14454 MAGIC_CMD=$MAGIC_CMD
14456 # Must we lock files when doing compilation?
14457 need_locks=$lt_need_locks
14460 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14462 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14463 DSYMUTIL=$lt_DSYMUTIL
14465 # Tool to change global to local symbols on Mac OS X.
14468 # Tool to manipulate fat objects and archives on Mac OS X.
14471 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14474 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14475 OTOOL64=$lt_OTOOL64
14477 # Old archive suffix (normally "a").
14480 # Shared library suffix (normally ".so").
14481 shrext_cmds=$lt_shrext_cmds
14483 # The commands to extract the exported symbol list from a shared archive.
14484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14486 # Variables whose values should be saved in libtool wrapper scripts and
14487 # restored at link time.
14488 variables_saved_for_relink=$lt_variables_saved_for_relink
14490 # Do we need the "lib" prefix for modules?
14491 need_lib_prefix=$need_lib_prefix
14493 # Do we need a version for libraries?
14494 need_version=$need_version
14496 # Library versioning type.
14497 version_type=$version_type
14499 # Shared library runtime path variable.
14500 runpath_var=$runpath_var
14502 # Shared library path variable.
14503 shlibpath_var=$shlibpath_var
14505 # Is shlibpath searched before the hard-coded library search path?
14506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14508 # Format of library name prefix.
14509 libname_spec=$lt_libname_spec
14511 # List of archive names. First name is the real one, the rest are links.
14512 # The last name is the one that the linker finds with -lNAME
14513 library_names_spec=$lt_library_names_spec
14515 # The coded name of the library, if different from the real name.
14516 soname_spec=$lt_soname_spec
14518 # Permission mode override for installation of shared libraries.
14519 install_override_mode=$lt_install_override_mode
14521 # Command to use after installation of a shared archive.
14522 postinstall_cmds=$lt_postinstall_cmds
14524 # Command to use after uninstallation of a shared archive.
14525 postuninstall_cmds=$lt_postuninstall_cmds
14527 # Commands used to finish a libtool library installation in a directory.
14528 finish_cmds=$lt_finish_cmds
14530 # As "finish_cmds", except a single script fragment to be evaled but
14532 finish_eval=$lt_finish_eval
14534 # Whether we should hardcode library paths into libraries.
14535 hardcode_into_libs=$hardcode_into_libs
14537 # Compile-time system search path for libraries.
14538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14540 # Run-time system search path for libraries.
14541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14543 # Whether dlopen is supported.
14544 dlopen_support=$enable_dlopen
14546 # Whether dlopen of programs is supported.
14547 dlopen_self=$enable_dlopen_self
14549 # Whether dlopen of statically linked programs is supported.
14550 dlopen_self_static=$enable_dlopen_self_static
14552 # Commands to strip libraries.
14553 old_striplib=$lt_old_striplib
14554 striplib=$lt_striplib
14557 # The linker used to build libraries.
14560 # How to create reloadable object files.
14561 reload_flag=$lt_reload_flag
14562 reload_cmds=$lt_reload_cmds
14564 # Commands used to build an old-style archive.
14565 old_archive_cmds=$lt_old_archive_cmds
14567 # A language specific compiler.
14570 # Is the compiler the GNU compiler?
14573 # Compiler flag to turn off builtin functions.
14574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14576 # Additional compiler flags for building library objects.
14577 pic_flag=$lt_lt_prog_compiler_pic
14579 # How to pass a linker flag through the compiler.
14580 wl=$lt_lt_prog_compiler_wl
14582 # Compiler flag to prevent dynamic linking.
14583 link_static_flag=$lt_lt_prog_compiler_static
14585 # Does compiler simultaneously support -c and -o options?
14586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14588 # Whether or not to add -lc for building shared libraries.
14589 build_libtool_need_lc=$archive_cmds_need_lc
14591 # Whether or not to disallow shared libs when runtime libs are static.
14592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14594 # Compiler flag to allow reflexive dlopens.
14595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14597 # Compiler flag to generate shared objects directly from archives.
14598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14600 # Whether the compiler copes with passing no objects directly.
14601 compiler_needs_object=$lt_compiler_needs_object
14603 # Create an old-style archive from a shared archive.
14604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14606 # Create a temporary old-style archive to link instead of a shared archive.
14607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14609 # Commands used to build a shared archive.
14610 archive_cmds=$lt_archive_cmds
14611 archive_expsym_cmds=$lt_archive_expsym_cmds
14613 # Commands used to build a loadable module if different from building
14614 # a shared archive.
14615 module_cmds=$lt_module_cmds
14616 module_expsym_cmds=$lt_module_expsym_cmds
14618 # Whether we are building with GNU ld or not.
14619 with_gnu_ld=$lt_with_gnu_ld
14621 # Flag that allows shared libraries with undefined symbols to be built.
14622 allow_undefined_flag=$lt_allow_undefined_flag
14624 # Flag that enforces no undefined symbols.
14625 no_undefined_flag=$lt_no_undefined_flag
14627 # Flag to hardcode \$libdir into a binary during linking.
14628 # This must work even if \$libdir does not exist
14629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14631 # If ld is used when linking, flag to hardcode \$libdir into a binary
14632 # during linking. This must work even if \$libdir does not exist.
14633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14635 # Whether we need a single "-rpath" flag with a separated argument.
14636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14639 # DIR into the resulting binary.
14640 hardcode_direct=$hardcode_direct
14642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14643 # DIR into the resulting binary and the resulting library dependency is
14644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14645 # library is relocated.
14646 hardcode_direct_absolute=$hardcode_direct_absolute
14648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14649 # into the resulting binary.
14650 hardcode_minus_L=$hardcode_minus_L
14652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14653 # into the resulting binary.
14654 hardcode_shlibpath_var=$hardcode_shlibpath_var
14656 # Set to "yes" if building a shared library automatically hardcodes DIR
14657 # into the library and all subsequent libraries and executables linked
14659 hardcode_automatic=$hardcode_automatic
14661 # Set to yes if linker adds runtime paths of dependent libraries
14662 # to runtime path list.
14663 inherit_rpath=$inherit_rpath
14665 # Whether libtool must link a program against all its dependency libraries.
14666 link_all_deplibs=$link_all_deplibs
14668 # Set to "yes" if exported symbols are required.
14669 always_export_symbols=$always_export_symbols
14671 # The commands to list exported symbols.
14672 export_symbols_cmds=$lt_export_symbols_cmds
14674 # Symbols that should not be listed in the preloaded symbols.
14675 exclude_expsyms=$lt_exclude_expsyms
14677 # Symbols that must always be exported.
14678 include_expsyms=$lt_include_expsyms
14680 # Commands necessary for linking programs (against libraries) with templates.
14681 prelink_cmds=$lt_prelink_cmds
14683 # Commands necessary for finishing linking programs.
14684 postlink_cmds=$lt_postlink_cmds
14686 # Specify filename containing input files.
14687 file_list_spec=$lt_file_list_spec
14689 # How to hardcode a shared library path into an executable.
14690 hardcode_action=$hardcode_action
14692 # ### END LIBTOOL CONFIG
14698 cat <<\_LT_EOF >> "$cfgfile"
14699 # AIX sometimes has problems with the GCC collect2 program. For some
14700 # reason, if we set the COLLECT_NAMES environment variable, the problems
14701 # vanish in a puff of smoke.
14702 if test "X${COLLECT_NAMES+set}" != Xset; then
14704 export COLLECT_NAMES
14711 ltmain="$ac_aux_dir/ltmain.sh"
14714 # We use sed instead of cat because bash on DJGPP gets confused if
14715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14716 # text mode, it properly converts lines to CR/LF. This bash problem
14717 # is reportedly fixed, but why not run on old versions too?
14718 sed '$q' "$ltmain" >> "$cfgfile" \
14719 || (rm -f "$cfgfile"; exit 1)
14721 if test x"$xsi_shell" = xyes; then
14722 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14726 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14727 \ * ) func_dirname_result="${3}" ;;\
14729 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14730 && mv -f "$cfgfile.tmp" "$cfgfile" \
14731 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14732 test 0 -eq $? || _lt_function_replace_fail=:
14735 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14738 \ func_basename_result="${1##*/}"\
14739 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14740 && mv -f "$cfgfile.tmp" "$cfgfile" \
14741 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14742 test 0 -eq $? || _lt_function_replace_fail=:
14745 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14746 func_dirname_and_basename ()\
14749 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14750 \ * ) func_dirname_result="${3}" ;;\
14752 \ func_basename_result="${1##*/}"\
14753 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14754 && mv -f "$cfgfile.tmp" "$cfgfile" \
14755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14759 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14762 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14763 \ # positional parameters, so assign one to ordinary parameter first.\
14764 \ func_stripname_result=${3}\
14765 \ func_stripname_result=${func_stripname_result#"${1}"}\
14766 \ func_stripname_result=${func_stripname_result%"${2}"}\
14767 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14768 && mv -f "$cfgfile.tmp" "$cfgfile" \
14769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770 test 0 -eq $? || _lt_function_replace_fail=:
14773 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14774 func_split_long_opt ()\
14776 \ func_split_long_opt_name=${1%%=*}\
14777 \ func_split_long_opt_arg=${1#*=}\
14778 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14779 && mv -f "$cfgfile.tmp" "$cfgfile" \
14780 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14784 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14785 func_split_short_opt ()\
14787 \ func_split_short_opt_arg=${1#??}\
14788 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14789 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14790 && mv -f "$cfgfile.tmp" "$cfgfile" \
14791 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792 test 0 -eq $? || _lt_function_replace_fail=:
14795 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14799 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14800 \ *) func_lo2o_result=${1} ;;\
14802 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14803 && mv -f "$cfgfile.tmp" "$cfgfile" \
14804 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14805 test 0 -eq $? || _lt_function_replace_fail=:
14808 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14811 func_xform_result=${1%.*}.lo\
14812 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14813 && mv -f "$cfgfile.tmp" "$cfgfile" \
14814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14815 test 0 -eq $? || _lt_function_replace_fail=:
14818 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14821 func_arith_result=$(( $* ))\
14822 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14823 && mv -f "$cfgfile.tmp" "$cfgfile" \
14824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14825 test 0 -eq $? || _lt_function_replace_fail=:
14828 sed -e '/^func_len ()$/,/^} # func_len /c\
14831 func_len_result=${#1}\
14832 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14833 && mv -f "$cfgfile.tmp" "$cfgfile" \
14834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14835 test 0 -eq $? || _lt_function_replace_fail=:
14839 if test x"$lt_shell_append" = xyes; then
14840 sed -e '/^func_append ()$/,/^} # func_append /c\
14843 eval "${1}+=\\${2}"\
14844 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14845 && mv -f "$cfgfile.tmp" "$cfgfile" \
14846 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14847 test 0 -eq $? || _lt_function_replace_fail=:
14850 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14851 func_append_quoted ()\
14853 \ func_quote_for_eval "${2}"\
14854 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14855 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14856 && mv -f "$cfgfile.tmp" "$cfgfile" \
14857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14858 test 0 -eq $? || _lt_function_replace_fail=:
14861 # Save a `func_append' function call where possible by direct use of '+='
14862 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14863 && mv -f "$cfgfile.tmp" "$cfgfile" \
14864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865 test 0 -eq $? || _lt_function_replace_fail=:
14867 # Save a `func_append' function call even when '+=' is not available
14868 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14869 && mv -f "$cfgfile.tmp" "$cfgfile" \
14870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14871 test 0 -eq $? || _lt_function_replace_fail=:
14874 if test x"$_lt_function_replace_fail" = x":"; then
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14876 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14880 mv -f "$cfgfile" "$ofile" ||
14881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14892 ac_clean_files=$ac_clean_files_save
14894 test $ac_write_fail = 0 ||
14895 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14898 # configure is writing to config.log, and then calls config.status.
14899 # config.status does its own redirection, appending to config.log.
14900 # Unfortunately, on DOS this fails, as config.log is still kept open
14901 # by configure, so config.status won't be able to write to it; its
14902 # output is simply discarded. So we exec the FD to /dev/null,
14903 # effectively closing config.log, so it can be properly (re)opened and
14904 # appended to by config.status. When coming back to configure, we
14905 # need to make the FD available again.
14906 if test "$no_create" != yes; then
14908 ac_config_status_args=
14909 test "$silent" = yes &&
14910 ac_config_status_args="$ac_config_status_args --quiet"
14912 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14914 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14915 # would make configure fail if this is the last instruction.
14916 $ac_cs_success || as_fn_exit 1
14918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}