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
683 INSTALL_STRIP_PROGRAM
725 program_transform_name
738 enable_option_checking
743 enable_dependency_tracking
755 ac_precious_vars='build_alias
766 # Initialize some variables set by options.
768 ac_init_version=false
769 ac_unrecognized_opts=
771 # The variables have the same names as the options, with
772 # dashes changed to underlines.
780 program_transform_name=s,x,x,
788 # Installation directory options.
789 # These are left unexpanded so users can "make install exec_prefix=/foo"
790 # and all the variables that are supposed to be based on exec_prefix
791 # by default will actually change.
792 # Use braces instead of parens because sh, perl, etc. also accept them.
793 # (The list follows the same order as the GNU Coding Standards.)
794 bindir='${exec_prefix}/bin'
795 sbindir='${exec_prefix}/sbin'
796 libexecdir='${exec_prefix}/libexec'
797 datarootdir='${prefix}/share'
798 datadir='${datarootdir}'
799 sysconfdir='${prefix}/etc'
800 sharedstatedir='${prefix}/com'
801 localstatedir='${prefix}/var'
802 includedir='${prefix}/include'
803 oldincludedir='/usr/include'
804 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
805 infodir='${datarootdir}/info'
810 libdir='${exec_prefix}/lib'
811 localedir='${datarootdir}/locale'
812 mandir='${datarootdir}/man'
818 # If the previous option needs an argument, assign it.
819 if test -n "$ac_prev"; then
820 eval $ac_prev=\$ac_option
826 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 as_fn_error $? "invalid feature name: $ac_useropt"
874 ac_useropt_orig=$ac_useropt
875 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876 case $ac_user_opts in
880 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
881 ac_unrecognized_sep=', ';;
883 eval enable_$ac_useropt=no ;;
885 -docdir | --docdir | --docdi | --doc | --do)
887 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 -enable-* | --enable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
909 eval enable_$ac_useropt=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
924 -help | --help | --hel | --he | -h)
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 # Obsolete; use --without-fp.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1073 -site=* | --site=* | --sit=*)
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1100 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=no ;;
1132 # Obsolete; use --with-x.
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1150 Try \`$0 --help' for more information"
1154 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1155 # Reject names that are not valid shell variable names.
1156 case $ac_envvar in #(
1157 '' | [0-9]* | *[!_$as_cr_alnum]* )
1158 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 as_fn_error $? "missing argument to $ac_option"
1179 if test -n "$ac_unrecognized_opts"; then
1180 case $enable_option_checking in
1182 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1183 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187 # Check all directory arguments for consistency.
1188 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189 datadir sysconfdir sharedstatedir localstatedir includedir \
1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191 libdir localedir mandir
1193 eval ac_val=\$$ac_var
1194 # Remove trailing slashes.
1197 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198 eval $ac_var=\$ac_val;;
1200 # Be sure to have absolute directory names.
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208 # There might be people who depend on the old broken behavior: `$host'
1209 # used to hold the argument of --host etc.
1210 # FIXME: To remove some day.
1213 target=$target_alias
1215 # FIXME: To remove some day.
1216 if test "x$host_alias" != x; then
1217 if test "x$build_alias" = x; then
1218 cross_compiling=maybe
1219 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1220 If a cross compiler is detected then cross compile mode will be used" >&2
1221 elif test "x$build_alias" != "x$host_alias"; then
1227 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229 test "$silent" = yes && exec 6>/dev/null
1232 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233 ac_ls_di=`ls -di .` &&
1234 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235 as_fn_error $? "working directory cannot be determined"
1236 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237 as_fn_error $? "pwd does not report name of working directory"
1240 # Find the source files, if location was not specified.
1241 if test -z "$srcdir"; then
1242 ac_srcdir_defaulted=yes
1243 # Try the directory containing this script, then the parent directory.
1244 ac_confdir=`$as_dirname -- "$as_myself" ||
1245 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246 X"$as_myself" : 'X\(//\)[^/]' \| \
1247 X"$as_myself" : 'X\(//\)$' \| \
1248 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249 $as_echo X"$as_myself" |
1250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1272 ac_srcdir_defaulted=no
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1278 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1282 # When building in place, set srcdir=.
1283 if test "$ac_abs_confdir" = "$ac_pwd"; then
1286 # Remove unnecessary trailing slashes from srcdir.
1287 # Double slashes in file names in object file debugging info
1288 # mess up M-x gdb in Emacs.
1290 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292 for ac_var in $ac_precious_vars; do
1293 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_env_${ac_var}_value=\$${ac_var}
1295 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1300 # Report the --help message.
1302 if test "$ac_init_help" = "long"; then
1303 # Omit some internal or obsolete options to make the list less imposing.
1304 # This message is too long to be a string in the A/UX 3.1 sh.
1306 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1308 Usage: $0 [OPTION]... [VAR=VALUE]...
1310 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311 VAR=VALUE. See below for descriptions of some of the useful variables.
1313 Defaults for the options are specified in brackets.
1316 -h, --help display this help and exit
1317 --help=short display options specific to this package
1318 --help=recursive display the short help of all the included packages
1319 -V, --version display version information and exit
1320 -q, --quiet, --silent do not print \`checking ...' messages
1321 --cache-file=FILE cache test results in FILE [disabled]
1322 -C, --config-cache alias for \`--cache-file=config.cache'
1323 -n, --no-create do not create output files
1324 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1326 Installation directories:
1327 --prefix=PREFIX install architecture-independent files in PREFIX
1328 [$ac_default_prefix]
1329 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1332 By default, \`make install' will install all the files in
1333 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1334 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335 for instance \`--prefix=\$HOME'.
1337 For better control, use the options below.
1339 Fine tuning of the installation directories:
1340 --bindir=DIR user executables [EPREFIX/bin]
1341 --sbindir=DIR system admin executables [EPREFIX/sbin]
1342 --libexecdir=DIR program executables [EPREFIX/libexec]
1343 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1344 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1345 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1346 --libdir=DIR object code libraries [EPREFIX/lib]
1347 --includedir=DIR C header files [PREFIX/include]
1348 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1349 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1350 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1351 --infodir=DIR info documentation [DATAROOTDIR/info]
1352 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1353 --mandir=DIR man documentation [DATAROOTDIR/man]
1354 --docdir=DIR documentation root [DATAROOTDIR/doc/libwebsockets]
1355 --htmldir=DIR html documentation [DOCDIR]
1356 --dvidir=DIR dvi documentation [DOCDIR]
1357 --pdfdir=DIR pdf documentation [DOCDIR]
1358 --psdir=DIR ps documentation [DOCDIR]
1364 --program-prefix=PREFIX prepend PREFIX to installed program names
1365 --program-suffix=SUFFIX append SUFFIX to installed program names
1366 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-shared[=PKGS] build shared libraries [default=yes]
1385 --enable-static[=PKGS] build static libraries [default=yes]
1386 --enable-fast-install[=PKGS]
1387 optimize for fast installation [default=yes]
1388 --disable-dependency-tracking speeds up one-time build
1389 --enable-dependency-tracking do not reject slow dependency extractors
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1391 --enable-openssl Enables https support and needs openssl libs
1392 --enable-nofork Disables fork-related options
1393 --enable-libcrypto Use libcrypto MD5 and SHA1 implementations
1394 --enable-x-google-mux Build experimental x-google-mux
1395 --enable-mingw Using mingw compilers, disables ping test build
1396 --enable-noping Do not build ping test app, which has some unixy stuff in sources
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1404 --with-sysroot=DIR Search for dependent libraries within DIR
1405 (or the compiler's sysroot if not specified).
1406 --with-client-cert-dir directory containing client certs, defaults to
1409 Some influential environment variables:
1410 CC C compiler command
1411 CFLAGS C compiler flags
1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1413 nonstandard directory <lib dir>
1414 LIBS libraries to pass to the linker, e.g. -l<library>
1415 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1416 you have headers in a nonstandard directory <include dir>
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 Report bugs to <andy@warmcat.com>.
1427 if test "$ac_init_help" = "recursive"; then
1428 # If there are subdirs, report their specific --help.
1429 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1430 test -d "$ac_dir" ||
1431 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1439 # A ".." for each directory in $ac_dir_suffix.
1440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1441 case $ac_top_builddir_sub in
1442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446 ac_abs_top_builddir=$ac_pwd
1447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1448 # for backward compatibility:
1449 ac_top_builddir=$ac_top_build_prefix
1452 .) # We are building in place.
1454 ac_top_srcdir=$ac_top_builddir_sub
1455 ac_abs_top_srcdir=$ac_pwd ;;
1456 [\\/]* | ?:[\\/]* ) # Absolute name.
1457 ac_srcdir=$srcdir$ac_dir_suffix;
1458 ac_top_srcdir=$srcdir
1459 ac_abs_top_srcdir=$srcdir ;;
1461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1462 ac_top_srcdir=$ac_top_build_prefix$srcdir
1463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1467 cd "$ac_dir" || { ac_status=$?; continue; }
1468 # Check for guested configure.
1469 if test -f "$ac_srcdir/configure.gnu"; then
1471 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1472 elif test -f "$ac_srcdir/configure"; then
1474 $SHELL "$ac_srcdir/configure" --help=recursive
1476 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1478 cd "$ac_pwd" || { ac_status=$?; break; }
1482 test -n "$ac_init_help" && exit $ac_status
1483 if $ac_init_version; then
1485 libwebsockets configure 0.3
1486 generated by GNU Autoconf 2.68
1488 Copyright (C) 2010 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1495 ## ------------------------ ##
1496 ## Autoconf initialization. ##
1497 ## ------------------------ ##
1499 # ac_fn_c_try_compile LINENO
1500 # --------------------------
1501 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1502 ac_fn_c_try_compile ()
1504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1505 rm -f conftest.$ac_objext
1506 if { { ac_try="$ac_compile"
1508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509 *) ac_try_echo=$ac_try;;
1511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512 $as_echo "$ac_try_echo"; } >&5
1513 (eval "$ac_compile") 2>conftest.err
1515 if test -s conftest.err; then
1516 grep -v '^ *+' conftest.err >conftest.er1
1517 cat conftest.er1 >&5
1518 mv -f conftest.er1 conftest.err
1520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1521 test $ac_status = 0; } && {
1522 test -z "$ac_c_werror_flag" ||
1523 test ! -s conftest.err
1524 } && test -s conftest.$ac_objext; then :
1527 $as_echo "$as_me: failed program was:" >&5
1528 sed 's/^/| /' conftest.$ac_ext >&5
1532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1533 as_fn_set_status $ac_retval
1535 } # ac_fn_c_try_compile
1537 # ac_fn_c_try_link LINENO
1538 # -----------------------
1539 # Try to link conftest.$ac_ext, and return whether this succeeded.
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext conftest$ac_exeext
1544 if { { ac_try="$ac_link"
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_link") 2>conftest.err
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest$ac_exeext && {
1563 test "$cross_compiling" = yes ||
1564 $as_test_x conftest$ac_exeext
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1575 # interfere with the next link command; also delete a directory that is
1576 # left behind by Apple's compiler. We do this before executing the actions.
1577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1581 } # ac_fn_c_try_link
1583 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists and can be compiled using the include files in
1586 # INCLUDES, setting the cache variable VAR accordingly.
1587 ac_fn_c_check_header_compile ()
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593 $as_echo_n "(cached) " >&6
1595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1596 /* end confdefs.h. */
1600 if ac_fn_c_try_compile "$LINENO"; then :
1605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 } # ac_fn_c_check_header_compile
1614 # ac_fn_c_try_cpp LINENO
1615 # ----------------------
1616 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_retval=$ac_status
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status $ac_retval
1693 # ac_fn_c_check_func LINENO FUNC VAR
1694 # ----------------------------------
1695 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1696 ac_fn_c_check_func ()
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1708 #define $2 innocuous_$2
1710 /* System header to define __stub macros and hopefully few prototypes,
1711 which can conflict with char $2 (); below.
1712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1713 <limits.h> exists even on freestanding compilers. */
1716 # include <limits.h>
1718 # include <assert.h>
1723 /* Override any GCC internal prototype to avoid an error.
1724 Use char because int might match the return type of a GCC
1725 builtin and then its argument prototype would still apply. */
1730 /* The GNU C library defines this for functions which it implements
1731 to always fail with ENOSYS. Some functions are actually named
1732 something starting with __ and the normal name is an alias. */
1733 #if defined __stub_$2 || defined __stub___$2
1745 if ac_fn_c_try_link "$LINENO"; then :
1750 rm -f core conftest.err conftest.$ac_objext \
1751 conftest$ac_exeext conftest.$ac_ext
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 } # ac_fn_c_check_func
1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761 # -------------------------------------------
1762 # Tests whether TYPE exists after having included INCLUDES, setting cache
1763 # variable VAR accordingly.
1764 ac_fn_c_check_type ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if eval \${$3+:} false; then :
1770 $as_echo_n "(cached) " >&6
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_type
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1819 ac_fn_c_check_header_mongrel ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if eval \${$3+:} false; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1843 ac_header_compiler=no
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1859 ac_header_preproc=no
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 ( $as_echo "## ------------------------------- ##
1885 ## Report this to andy@warmcat.com ##
1886 ## ------------------------------- ##"
1887 ) | sed "s/^/$as_me: WARNING: /" >&2
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1895 eval "$3=\$ac_header_compiler"
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 } # ac_fn_c_check_header_mongrel
1904 cat >config.log <<_ACEOF
1905 This file contains any messages produced by compilers while
1906 running configure, to aid debugging if configure makes a mistake.
1908 It was created by libwebsockets $as_me 0.3, which was
1909 generated by GNU Autoconf 2.68. Invocation command line was
1921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1933 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 $as_echo "PATH: $as_dir"
1961 # Keep a trace of the command line.
1962 # Strip out --no-create and --no-recursion so they do not pile up.
1963 # Strip out --silent because we don't want to record it for future runs.
1964 # Also quote any args containing shell meta-characters.
1965 # Make two passes to allow for proper duplicate-argument suppression.
1969 ac_must_keep_next=false
1975 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1977 | -silent | --silent | --silen | --sile | --sil)
1980 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1985 as_fn_append ac_configure_args1 " '$ac_arg'"
1986 if test $ac_must_keep_next = true; then
1987 ac_must_keep_next=false # Got value, back to normal.
1990 *=* | --config-cache | -C | -disable-* | --disable-* \
1991 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1992 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1993 | -with-* | --with-* | -without-* | --without-* | --x)
1994 case "$ac_configure_args0 " in
1995 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 -* ) ac_must_keep_next=true ;;
2001 as_fn_append ac_configure_args " '$ac_arg'"
2006 { ac_configure_args0=; unset ac_configure_args0;}
2007 { ac_configure_args1=; unset ac_configure_args1;}
2009 # When interrupted or exit'd, cleanup temporary files, and complete
2010 # config.log. We remove comments because anyway the quotes in there
2011 # would cause problems or look ugly.
2012 # WARNING: Use '\'' to represent an apostrophe within the trap.
2013 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2014 trap 'exit_status=$?
2015 # Save into config.log some information that might help in debugging.
2019 $as_echo "## ---------------- ##
2020 ## Cache variables. ##
2021 ## ---------------- ##"
2023 # The following way of writing the cache mishandles newlines in values,
2025 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2026 eval ac_val=\$$ac_var
2030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 _ | IFS | as_nl) ;; #(
2035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2036 *) { eval $ac_var=; unset $ac_var;} ;;
2041 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2042 *${as_nl}ac_space=\ *)
2044 "s/'\''/'\''\\\\'\'''\''/g;
2045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2055 $as_echo "## ----------------- ##
2056 ## Output variables. ##
2057 ## ----------------- ##"
2059 for ac_var in $ac_subst_vars
2061 eval ac_val=\$$ac_var
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 $as_echo "$ac_var='\''$ac_val'\''"
2069 if test -n "$ac_subst_files"; then
2070 $as_echo "## ------------------- ##
2071 ## File substitutions. ##
2072 ## ------------------- ##"
2074 for ac_var in $ac_subst_files
2076 eval ac_val=\$$ac_var
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 $as_echo "$ac_var='\''$ac_val'\''"
2085 if test -s confdefs.h; then
2086 $as_echo "## ----------- ##
2093 test "$ac_signal" != 0 &&
2094 $as_echo "$as_me: caught signal $ac_signal"
2095 $as_echo "$as_me: exit $exit_status"
2097 rm -f core *.core core.conftest.* &&
2098 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2101 for ac_signal in 1 2 13 15; do
2102 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2106 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2107 rm -f -r conftest* confdefs.h
2109 $as_echo "/* confdefs.h */" > confdefs.h
2111 # Predefined preprocessor variables.
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_NAME "$PACKAGE_NAME"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_STRING "$PACKAGE_STRING"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_URL "$PACKAGE_URL"
2138 # Let the site file select an alternate cache file if it wants to.
2139 # Prefer an explicitly selected file to automatically selected ones.
2142 if test -n "$CONFIG_SITE"; then
2143 # We do not want a PATH search for config.site.
2144 case $CONFIG_SITE in #((
2145 -*) ac_site_file1=./$CONFIG_SITE;;
2146 */*) ac_site_file1=$CONFIG_SITE;;
2147 *) ac_site_file1=./$CONFIG_SITE;;
2149 elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
2156 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2158 test "x$ac_site_file" = xNONE && continue
2159 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2162 sed 's/^/| /' "$ac_site_file" >&5
2164 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2166 as_fn_error $? "failed to load site script $ac_site_file
2167 See \`config.log' for more details" "$LINENO" 5; }
2171 if test -r "$cache_file"; then
2172 # Some versions of bash will fail to source /dev/null (special files
2173 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2174 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2176 $as_echo "$as_me: loading cache $cache_file" >&6;}
2178 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2179 *) . "./$cache_file";;
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2184 $as_echo "$as_me: creating cache $cache_file" >&6;}
2188 # Check that the precious variables saved in the cache have kept the same
2190 ac_cache_corrupted=false
2191 for ac_var in $ac_precious_vars; do
2192 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2193 eval ac_new_set=\$ac_env_${ac_var}_set
2194 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2195 eval ac_new_val=\$ac_env_${ac_var}_value
2196 case $ac_old_set,$ac_new_set in
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2200 ac_cache_corrupted=: ;;
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2204 ac_cache_corrupted=: ;;
2207 if test "x$ac_old_val" != "x$ac_new_val"; then
2208 # differences in whitespace do not lead to failure.
2209 ac_old_val_w=`echo x $ac_old_val`
2210 ac_new_val_w=`echo x $ac_new_val`
2211 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2213 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2214 ac_cache_corrupted=:
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2217 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2218 eval $ac_var=\$ac_old_val
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2221 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2223 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2226 # Pass precious variables to config.status.
2227 if test "$ac_new_set" = set; then
2229 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 *) ac_arg=$ac_var=$ac_new_val ;;
2232 case " $ac_configure_args " in
2233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2234 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2238 if $ac_cache_corrupted; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2242 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2243 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2245 ## -------------------- ##
2246 ## Main body of script. ##
2247 ## -------------------- ##
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2257 ac_config_headers="$ac_config_headers config.h"
2260 am__api_version='1.11'
2263 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2264 if test -f "$ac_dir/install-sh"; then
2266 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 elif test -f "$ac_dir/install.sh"; then
2270 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 elif test -f "$ac_dir/shtool"; then
2274 ac_install_sh="$ac_aux_dir/shtool install -c"
2278 if test -z "$ac_aux_dir"; then
2279 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2282 # These three variables are undocumented and unsupported,
2283 # and are intended to be withdrawn in a future Autoconf release.
2284 # They can cause serious problems if a builder's source tree is in a directory
2285 # whose full name contains unusual characters.
2286 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2287 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2288 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291 # Find a good install program. We prefer a C program (faster),
2292 # so one script is as good as another. But avoid the broken or
2293 # incompatible versions:
2294 # SysV /etc/install, /usr/sbin/install
2295 # SunOS /usr/etc/install
2296 # IRIX /sbin/install
2298 # AmigaOS /C/install, which installs bootblocks on floppy discs
2299 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2300 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2301 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2302 # OS/2's system install, which has a completely different semantic
2303 # ./install, which can be erroneously created by make from ./install.sh.
2304 # Reject install programs that cannot install multiple files.
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2306 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2307 if test -z "$INSTALL"; then
2308 if ${ac_cv_path_install+:} false; then :
2309 $as_echo_n "(cached) " >&6
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 test -z "$as_dir" && as_dir=.
2316 # Account for people who put trailing slashes in PATH elements.
2317 case $as_dir/ in #((
2318 ./ | .// | /[cC]/* | \
2319 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2320 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323 # OSF1 and SCO ODT 3.0 have their own names for install.
2324 # Don't use installbsd from OSF since it installs stuff as root
2326 for ac_prog in ginstall scoinst install; do
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2329 if test $ac_prog = install &&
2330 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2331 # AIX install. It has an incompatible calling convention.
2333 elif test $ac_prog = install &&
2334 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2335 # program-specific install script used by HP pwplus--don't use.
2338 rm -rf conftest.one conftest.two conftest.dir
2339 echo one > conftest.one
2340 echo two > conftest.two
2342 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2343 test -s conftest.one && test -s conftest.two &&
2344 test -s conftest.dir/conftest.one &&
2345 test -s conftest.dir/conftest.two
2347 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2360 rm -rf conftest.one conftest.two conftest.dir
2363 if test "${ac_cv_path_install+set}" = set; then
2364 INSTALL=$ac_cv_path_install
2366 # As a last resort, use the slow shell script. Don't cache a
2367 # value for INSTALL within a source directory, because that will
2368 # break other packages using the cache if that directory is
2369 # removed, or if the value is a relative name.
2370 INSTALL=$ac_install_sh
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2374 $as_echo "$INSTALL" >&6; }
2376 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2377 # It thinks the first close brace ends the variable substitution.
2378 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2385 $as_echo_n "checking whether build environment is sane... " >&6; }
2388 echo timestamp > conftest.file
2389 # Reject unsafe characters in $srcdir or the absolute working directory
2390 # name. Accept space and tab only in the latter.
2394 *[\\\"\#\$\&\'\`$am_lf]*)
2395 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2398 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2399 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2402 # Do `set' in a subshell so we don't clobber the current shell's
2403 # arguments. Must try -L first in case configure is actually a
2404 # symlink; some systems play weird games with the mod time of symlinks
2405 # (eg FreeBSD returns the mod time of the symlink's containing
2408 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2409 if test "$*" = "X"; then
2411 set X `ls -t "$srcdir/configure" conftest.file`
2414 if test "$*" != "X $srcdir/configure conftest.file" \
2415 && test "$*" != "X conftest.file $srcdir/configure"; then
2417 # If neither matched, then we have a broken ls. This can happen
2418 # if, for instance, CONFIG_SHELL is bash and it inherits a
2419 # broken ls alias from the environment. This has actually
2420 # happened. Such a system could not be considered "sane".
2421 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2425 test "$2" = conftest.file
2431 as_fn_error $? "newly created file is older than distributed files!
2432 Check your system clock" "$LINENO" 5
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2435 $as_echo "yes" >&6; }
2436 test "$program_prefix" != NONE &&
2437 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2438 # Use a double $ so make ignores it.
2439 test "$program_suffix" != NONE &&
2440 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2441 # Double any \ or $.
2442 # By default was `s,x,x', remove it if useless.
2443 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2444 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2446 # expand $ac_aux_dir to an absolute path
2447 am_aux_dir=`cd $ac_aux_dir && pwd`
2449 if test x"${MISSING+set}" != xset; then
2452 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2454 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2457 # Use eval to expand $SHELL
2458 if eval "$MISSING --run true"; then
2459 am_missing_run="$MISSING --run "
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2463 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2466 if test x"${install_sh}" != xset; then
2469 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2471 install_sh="\${SHELL} $am_aux_dir/install-sh"
2475 # Installed binaries are usually stripped using `strip' when the user
2476 # run `make install-strip'. However `strip' might not be the right
2477 # tool to use in cross-compilation environments, therefore Automake
2478 # will honor the `STRIP' environment variable to overrule this program.
2479 if test "$cross_compiling" != no; then
2480 if test -n "$ac_tool_prefix"; then
2481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2482 set dummy ${ac_tool_prefix}strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_STRIP+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 if test -n "$STRIP"; then
2489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 STRIP=$ac_cv_prog_STRIP
2509 if test -n "$STRIP"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2511 $as_echo "$STRIP" >&6; }
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2519 if test -z "$ac_cv_prog_STRIP"; then
2521 # Extract the first word of "strip", so it can be a program name with args.
2522 set dummy strip; ac_word=$2
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524 $as_echo_n "checking for $ac_word... " >&6; }
2525 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2526 $as_echo_n "(cached) " >&6
2528 if test -n "$ac_ct_STRIP"; then
2529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_ac_ct_STRIP="strip"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2549 if test -n "$ac_ct_STRIP"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2551 $as_echo "$ac_ct_STRIP" >&6; }
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554 $as_echo "no" >&6; }
2557 if test "x$ac_ct_STRIP" = x; then
2560 case $cross_compiling:$ac_tool_warned in
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2564 ac_tool_warned=yes ;;
2569 STRIP="$ac_cv_prog_STRIP"
2573 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2576 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2577 if test -z "$MKDIR_P"; then
2578 if ${ac_cv_path_mkdir+:} false; then :
2579 $as_echo_n "(cached) " >&6
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2585 test -z "$as_dir" && as_dir=.
2586 for ac_prog in mkdir gmkdir; do
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2589 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2590 'mkdir (GNU coreutils) '* | \
2591 'mkdir (coreutils) '* | \
2592 'mkdir (fileutils) '4.1*)
2593 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2603 test -d ./--version && rmdir ./--version
2604 if test "${ac_cv_path_mkdir+set}" = set; then
2605 MKDIR_P="$ac_cv_path_mkdir -p"
2607 # As a last resort, use the slow shell script. Don't cache a
2608 # value for MKDIR_P within a source directory, because that will
2609 # break other packages using the cache if that directory is
2610 # removed, or if the value is a relative name.
2611 MKDIR_P="$ac_install_sh -d"
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2615 $as_echo "$MKDIR_P" >&6; }
2619 [\\/$]* | ?:[\\/]*) ;;
2620 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2623 for ac_prog in gawk mawk nawk awk
2625 # Extract the first word of "$ac_prog", so it can be a program name with args.
2626 set dummy $ac_prog; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_AWK+:} false; then :
2630 $as_echo_n "(cached) " >&6
2632 if test -n "$AWK"; then
2633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_AWK="$ac_prog"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 if test -n "$AWK"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2655 $as_echo "$AWK" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2662 test -n "$AWK" && break
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2666 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2668 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2669 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 cat >conftest.make <<\_ACEOF
2675 @echo '@@@%%%=$(MAKE)=@@@%%%'
2677 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2678 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2680 eval ac_cv_prog_make_${ac_make}_set=yes;;
2682 eval ac_cv_prog_make_${ac_make}_set=no;;
2686 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2688 $as_echo "yes" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2693 SET_MAKE="MAKE=${MAKE-make}"
2696 rm -rf .tst 2>/dev/null
2697 mkdir .tst 2>/dev/null
2698 if test -d .tst; then
2703 rmdir .tst 2>/dev/null
2705 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2706 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2707 # is not polluted with repeated "-I."
2708 am__isrc=' -I$(srcdir)'
2709 # test to see if srcdir already configured
2710 if test -f $srcdir/config.status; then
2711 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2715 # test whether we have cygpath
2716 if test -z "$CYGPATH_W"; then
2717 if (cygpath --version) >/dev/null 2>/dev/null; then
2718 CYGPATH_W='cygpath -w'
2725 # Define the identity of the package.
2726 PACKAGE='libwebsockets'
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE "$PACKAGE"
2735 cat >>confdefs.h <<_ACEOF
2736 #define VERSION "$VERSION"
2739 # Some tools Automake needs.
2741 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2744 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2747 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2750 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2753 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2755 # We need awk for the "check" target. The system "awk" is bad on
2757 # Always define AMTAR for backward compatibility.
2759 AMTAR=${AMTAR-"${am_missing_run}tar"}
2761 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2770 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2775 macro_version='2.4.2'
2776 macro_revision='1.3337'
2790 ltmain="$ac_aux_dir/ltmain.sh"
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2817 ac_save_IFS=$IFS; IFS='-'
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2850 ac_save_IFS=$IFS; IFS='-'
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2863 # Backslashify metacharacters that are still active within
2864 # double-quoted strings.
2865 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2867 # Same as above, but do not quote variable references.
2868 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2870 # Sed substitution to delay expansion of an escaped shell variable in a
2871 # double_quote_subst'ed string.
2872 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2874 # Sed substitution to delay expansion of an escaped single quote.
2875 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2877 # Sed substitution to avoid accidental globbing in evaled expressions
2878 no_glob_subst='s/\*/\\\*/g'
2880 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2881 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2882 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2885 $as_echo_n "checking how to print strings... " >&6; }
2886 # Test print first, because it will be a builtin if present.
2887 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2888 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2890 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2893 # Use this function as a fallback that always works.
2894 func_fallback_echo ()
2896 eval 'cat <<_LTECHO_EOF
2900 ECHO='func_fallback_echo'
2903 # func_echo_all arg...
2904 # Invoke $ECHO with all args, space-separated.
2911 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2912 $as_echo "printf" >&6; } ;;
2913 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2914 $as_echo "print -r" >&6; } ;;
2915 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2916 $as_echo "cat" >&6; } ;;
2932 DEPDIR="${am__leading_dot}deps"
2934 ac_config_commands="$ac_config_commands depfiles"
2937 am_make=${MAKE-make}
2938 cat > confinc << 'END'
2940 @echo this is the am__doit target
2943 # If we don't find an include directive, just comment out the code.
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2949 # First try GNU make style include.
2950 echo "include confinc" > confmf
2951 # Ignore all kinds of additional output from `make'.
2952 case `$am_make -s -f confmf 2> /dev/null` in #(
2953 *the\ am__doit\ target*)
2959 # Now try BSD make style include.
2960 if test "$am__include" = "#"; then
2961 echo '.include "confinc"' > confmf
2962 case `$am_make -s -f confmf 2> /dev/null` in #(
2963 *the\ am__doit\ target*)
2964 am__include=.include
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2973 $as_echo "$_am_result" >&6; }
2974 rm -f confinc confmf
2976 # Check whether --enable-dependency-tracking was given.
2977 if test "${enable_dependency_tracking+set}" = set; then :
2978 enableval=$enable_dependency_tracking;
2981 if test "x$enable_dependency_tracking" != xno; then
2982 am_depcomp="$ac_aux_dir/depcomp"
2986 if test "x$enable_dependency_tracking" != xno; then
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3018 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$ac_cv_prog_CC"; then
3041 # Extract the first word of "gcc", so it can be a program name with args.
3042 set dummy gcc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$ac_ct_CC"; then
3049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_ac_ct_CC="gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069 if test -n "$ac_ct_CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3071 $as_echo "$ac_ct_CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3077 if test "x$ac_ct_CC" = x; then
3080 case $cross_compiling:$ac_tool_warned in
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3095 set dummy ${ac_tool_prefix}cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="${ac_tool_prefix}cc"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3133 if test -z "$CC"; then
3134 # Extract the first word of "cc", so it can be a program name with args.
3135 set dummy cc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC="$CC" # Let the user override the test.
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3153 ac_prog_rejected=yes
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test $ac_prog_rejected = yes; then
3165 # We found a bogon in the path, so make sure we never use it.
3166 set dummy $ac_cv_prog_CC
3168 if test $# != 0; then
3169 # We chose a different compiler from the bogus one.
3170 # However, it has the same basename, so the bogon will be chosen
3171 # first if we set CC to just the basename; use the full file name.
3173 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3179 if test -n "$CC"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3181 $as_echo "$CC" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3189 if test -z "$CC"; then
3190 if test -n "$ac_tool_prefix"; then
3191 for ac_prog in cl.exe
3193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3230 test -n "$CC" && break
3233 if test -z "$CC"; then
3235 for ac_prog in cl.exe
3237 # Extract the first word of "$ac_prog", so it can be a program name with args.
3238 set dummy $ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC="$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3267 $as_echo "$ac_ct_CC" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3274 test -n "$ac_ct_CC" && break
3277 if test "x$ac_ct_CC" = x; then
3280 case $cross_compiling:$ac_tool_warned in
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3284 ac_tool_warned=yes ;;
3293 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error $? "no acceptable C compiler found in \$PATH
3296 See \`config.log' for more details" "$LINENO" 5; }
3298 # Provide some information about the compiler.
3299 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3302 for ac_option in --version -v -V -qversion; do
3303 { { ac_try="$ac_compiler $ac_option >&5"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3312 if test -s conftest.err; then
3314 ... rest of stderr output deleted ...
3315 10q' conftest.err >conftest.er1
3316 cat conftest.er1 >&5
3318 rm -f conftest.er1 conftest.err
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 ac_clean_files_save=$ac_clean_files
3335 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3336 # Try to create an executable without -o first, disregard a.out.
3337 # It will help us diagnose broken compilers, and finding out an intuition
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3343 # The possible output files:
3344 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3347 for ac_file in $ac_files
3350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 if { { ac_try="$ac_link_default"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362 $as_echo "$ac_try_echo"; } >&5
3363 (eval "$ac_link_default") 2>&5
3365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3366 test $ac_status = 0; }; then :
3367 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3368 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3369 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3370 # so that the user can short-circuit this test for compilers unknown to
3372 for ac_file in $ac_files ''
3374 test -f "$ac_file" || continue
3376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3379 # We found the default executable, but exeext='' is most
3383 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3385 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3387 # We set ac_cv_exeext here because the later test for it is not
3388 # safe: cross compilers may not add the suffix if given an `-o'
3389 # argument, so we may need to know it at that point already.
3390 # Even if this section looks crufty: it has the advantage of
3397 test "$ac_cv_exeext" = no && ac_cv_exeext=
3402 if test -z "$ac_file"; then :
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error 77 "C compiler cannot create executables
3411 See \`config.log' for more details" "$LINENO" 5; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3417 $as_echo_n "checking for C compiler default output file name... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3419 $as_echo "$ac_file" >&6; }
3420 ac_exeext=$ac_cv_exeext
3422 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3423 ac_clean_files=$ac_clean_files_save
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { { ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details" "$LINENO" 5; }
3456 rm -f conftest conftest$ac_cv_exeext
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3458 $as_echo "$ac_cv_exeext" >&6; }
3460 rm -f conftest.$ac_ext
3461 EXEEXT=$ac_cv_exeext
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3469 FILE *f = fopen ("conftest.out", "w");
3470 return ferror (f) || fclose (f) != 0;
3476 ac_clean_files="$ac_clean_files conftest.out"
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3480 $as_echo_n "checking whether we are cross compiling... " >&6; }
3481 if test "$cross_compiling" != yes; then
3482 { { ac_try="$ac_link"
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link") 2>&5
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }
3493 if { ac_try='./conftest$ac_cv_exeext'
3494 { { case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_try") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; }; then
3506 if test "$cross_compiling" = maybe; then
3509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 as_fn_error $? "cannot run C compiled programs.
3512 If you meant to cross compile, use \`--host'.
3513 See \`config.log' for more details" "$LINENO" 5; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3518 $as_echo "$cross_compiling" >&6; }
3520 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3521 ac_clean_files=$ac_clean_files_save
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3523 $as_echo_n "checking for suffix of object files... " >&6; }
3524 if ${ac_cv_objext+:} false; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 rm -f conftest.o conftest.obj
3539 if { { ac_try="$ac_compile"
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compile") 2>&5
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 for ac_file in conftest.o conftest.obj conftest.*; do
3551 test -f "$ac_file" || continue;
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details" "$LINENO" 5; }
3567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3570 $as_echo "$ac_cv_objext" >&6; }
3571 OBJEXT=$ac_cv_objext
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3575 if ${ac_cv_c_compiler_gnu+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3592 if ac_fn_c_try_compile "$LINENO"; then :
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3602 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3603 if test $ac_compiler_gnu = yes; then
3608 ac_test_CFLAGS=${CFLAGS+set}
3609 ac_save_CFLAGS=$CFLAGS
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3611 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3612 if ${ac_cv_prog_cc_g+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 ac_save_c_werror_flag=$ac_c_werror_flag
3616 ac_c_werror_flag=yes
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 if ac_fn_c_try_compile "$LINENO"; then :
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3661 if ac_fn_c_try_compile "$LINENO"; then :
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_c_werror_flag=$ac_save_c_werror_flag
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3672 $as_echo "$ac_cv_prog_cc_g" >&6; }
3673 if test "$ac_test_CFLAGS" = set; then
3674 CFLAGS=$ac_save_CFLAGS
3675 elif test $ac_cv_prog_cc_g = yes; then
3676 if test "$GCC" = yes; then
3682 if test "$GCC" = yes; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3689 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3690 if ${ac_cv_prog_cc_c89+:} false; then :
3691 $as_echo_n "(cached) " >&6
3693 ac_cv_prog_cc_c89=no
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3715 s = g (p, va_arg (v,int));
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_c89=$ac_arg
3755 rm -f core conftest.err conftest.$ac_objext
3756 test "x$ac_cv_prog_cc_c89" != "xno" && break
3758 rm -f conftest.$ac_ext
3763 case "x$ac_cv_prog_cc_c89" in
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3766 $as_echo "none needed" >&6; } ;;
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3769 $as_echo "unsupported" >&6; } ;;
3771 CC="$CC $ac_cv_prog_cc_c89"
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3773 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3775 if test "x$ac_cv_prog_cc_c89" != xno; then :
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 depcc="$CC" am_compiler_list=
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793 # We make a subdir and do the tests there. Otherwise we can end up
3794 # making bogus files that we don't know about and never remove. For
3795 # instance it was reported that on HP-UX the gcc test will end up
3796 # making a dummy file named `D' -- because `-MD' means `put the output
3800 # Copy depcomp to subdir because otherwise we won't find it if we're
3801 # using a relative directory.
3802 cp "$am_depcomp" conftest.dir
3804 # We will build objects and dependencies in a subdirectory because
3805 # it helps to detect inapplicable dependency modes. For instance
3806 # both Tru64's cc and ICC support -MD to output dependencies as a
3807 # side effect of compilation, but ICC will put the dependencies in
3808 # the current directory while Tru64 will put them in the object
3812 am_cv_CC_dependencies_compiler_type=none
3813 if test "$am_compiler_list" = ""; then
3814 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 case " $depcc " in #(
3818 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 for depmode in $am_compiler_list; do
3822 # Setup a source with many dependencies, because some compilers
3823 # like to wrap large dependency lists on column 80 (with \), and
3824 # we should not choose a depcomp mode which is confused by this.
3826 # We need to recreate these files for each test, as the compiler may
3827 # overwrite some of them when testing with obscure command lines.
3828 # This happens at least with the AIX C compiler.
3830 for i in 1 2 3 4 5 6; do
3831 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3833 # Solaris 8's {/usr,}/bin/sh.
3834 touch sub/conftst$i.h
3836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3839 # mode. It turns out that the SunPro C++ compiler does not properly
3840 # handle `-M -o', and we need to detect this. Also, some Intel
3841 # versions had trouble with output in subdirs
3842 am__obj=sub/conftest.${OBJEXT-o}
3843 am__minus_obj="-o $am__obj"
3846 # This depmode causes a compiler race in universal mode.
3847 test "$am__universal" = false || continue
3850 # after this tag, mechanisms are not by side-effect, so they'll
3851 # only be used when explicitly requested
3852 if test "x$enable_dependency_tracking" = xyes; then
3858 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3859 # This compiler won't grok `-c -o', but also, the minuso test has
3860 # not run yet. These depmodes are late enough in the game, and
3861 # so weak that their functioning should not be impacted.
3862 am__obj=conftest.${OBJEXT-o}
3867 if depmode=$depmode \
3868 source=sub/conftest.c object=$am__obj \
3869 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3870 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3871 >/dev/null 2>conftest.err &&
3872 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3876 # icc doesn't choke on unknown options, it will just issue warnings
3877 # or remarks (even with -Werror). So we grep stderr for any message
3878 # that says an option was ignored or not supported.
3879 # When given -MP, icc 7.0 and 7.1 complain thusly:
3880 # icc: Command line warning: ignoring option '-M'; no argument required
3881 # The diagnosis changed in icc 8.0:
3882 # icc: Command line remark: option '-MP' not supported
3883 if (grep 'ignoring option' conftest.err ||
3884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3885 am_cv_CC_dependencies_compiler_type=$depmode
3894 am_cv_CC_dependencies_compiler_type=none
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3899 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903 test "x$enable_dependency_tracking" != xno \
3904 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_FALSE='#'
3908 am__fastdepCC_TRUE='#'
3909 am__fastdepCC_FALSE=
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3915 if ${ac_cv_path_SED+:} false; then :
3916 $as_echo_n "(cached) " >&6
3918 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3919 for ac_i in 1 2 3 4 5 6 7; do
3920 ac_script="$ac_script$as_nl$ac_script"
3922 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3923 { ac_script=; unset ac_script;}
3924 if test -z "$SED"; then
3925 ac_path_SED_found=false
3926 # Loop through the user's path and test for each of PROGNAME-LIST
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_prog in sed gsed; do
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3935 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3936 # Check for GNU ac_path_SED and select it if it is found.
3937 # Check for GNU $ac_path_SED
3938 case `"$ac_path_SED" --version 2>&1` in
3940 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3943 $as_echo_n 0123456789 >"conftest.in"
3946 cat "conftest.in" "conftest.in" >"conftest.tmp"
3947 mv "conftest.tmp" "conftest.in"
3948 cp "conftest.in" "conftest.nl"
3949 $as_echo '' >> "conftest.nl"
3950 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3952 as_fn_arith $ac_count + 1 && ac_count=$as_val
3953 if test $ac_count -gt ${ac_path_SED_max-0}; then
3954 # Best one so far, save it but keep looking for a better one
3955 ac_cv_path_SED="$ac_path_SED"
3956 ac_path_SED_max=$ac_count
3958 # 10*(2^10) chars as input seems more than enough
3959 test $ac_count -gt 10 && break
3961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3964 $ac_path_SED_found && break 3
3969 if test -z "$ac_cv_path_SED"; then
3970 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3978 $as_echo "$ac_cv_path_SED" >&6; }
3979 SED="$ac_cv_path_SED"
3982 test -z "$SED" && SED=sed
3983 Xsed="$SED -e 1s/^X//"
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3996 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3997 if ${ac_cv_path_GREP+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -z "$GREP"; then
4001 ac_path_GREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in grep ggrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4012 # Check for GNU ac_path_GREP and select it if it is found.
4013 # Check for GNU $ac_path_GREP
4014 case `"$ac_path_GREP" --version 2>&1` in
4016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4019 $as_echo_n 0123456789 >"conftest.in"
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'GREP' >> "conftest.nl"
4026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_GREP="$ac_path_GREP"
4032 ac_path_GREP_max=$ac_count
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4040 $ac_path_GREP_found && break 3
4045 if test -z "$ac_cv_path_GREP"; then
4046 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4049 ac_cv_path_GREP=$GREP
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4054 $as_echo "$ac_cv_path_GREP" >&6; }
4055 GREP="$ac_cv_path_GREP"
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4059 $as_echo_n "checking for egrep... " >&6; }
4060 if ${ac_cv_path_EGREP+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4064 then ac_cv_path_EGREP="$GREP -E"
4066 if test -z "$EGREP"; then
4067 ac_path_EGREP_found=false
4068 # Loop through the user's path and test for each of PROGNAME-LIST
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4073 test -z "$as_dir" && as_dir=.
4074 for ac_prog in egrep; do
4075 for ac_exec_ext in '' $ac_executable_extensions; do
4076 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4077 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4078 # Check for GNU ac_path_EGREP and select it if it is found.
4079 # Check for GNU $ac_path_EGREP
4080 case `"$ac_path_EGREP" --version 2>&1` in
4082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4085 $as_echo_n 0123456789 >"conftest.in"
4088 cat "conftest.in" "conftest.in" >"conftest.tmp"
4089 mv "conftest.tmp" "conftest.in"
4090 cp "conftest.in" "conftest.nl"
4091 $as_echo 'EGREP' >> "conftest.nl"
4092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4094 as_fn_arith $ac_count + 1 && ac_count=$as_val
4095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4096 # Best one so far, save it but keep looking for a better one
4097 ac_cv_path_EGREP="$ac_path_EGREP"
4098 ac_path_EGREP_max=$ac_count
4100 # 10*(2^10) chars as input seems more than enough
4101 test $ac_count -gt 10 && break
4103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4106 $ac_path_EGREP_found && break 3
4111 if test -z "$ac_cv_path_EGREP"; then
4112 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4115 ac_cv_path_EGREP=$EGREP
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4121 $as_echo "$ac_cv_path_EGREP" >&6; }
4122 EGREP="$ac_cv_path_EGREP"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4126 $as_echo_n "checking for fgrep... " >&6; }
4127 if ${ac_cv_path_FGREP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4131 then ac_cv_path_FGREP="$GREP -F"
4133 if test -z "$FGREP"; then
4134 ac_path_FGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in fgrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4145 # Check for GNU ac_path_FGREP and select it if it is found.
4146 # Check for GNU $ac_path_FGREP
4147 case `"$ac_path_FGREP" --version 2>&1` in
4149 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4152 $as_echo_n 0123456789 >"conftest.in"
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'FGREP' >> "conftest.nl"
4159 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_FGREP="$ac_path_FGREP"
4165 ac_path_FGREP_max=$ac_count
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 $ac_path_FGREP_found && break 3
4178 if test -z "$ac_cv_path_FGREP"; then
4179 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4182 ac_cv_path_FGREP=$FGREP
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4188 $as_echo "$ac_cv_path_FGREP" >&6; }
4189 FGREP="$ac_cv_path_FGREP"
4192 test -z "$GREP" && GREP=grep
4212 # Check whether --with-gnu-ld was given.
4213 if test "${with_gnu_ld+set}" = set; then :
4214 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4220 if test "$GCC" = yes; then
4221 # Check if gcc -print-prog-name=ld gives a path.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4223 $as_echo_n "checking for ld used by $CC... " >&6; }
4226 # gcc leaves a trailing carriage return which upsets mingw
4227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4232 # Accept absolute paths.
4234 re_direlt='/[^/][^/]*/\.\./'
4235 # Canonicalize the pathname of ld
4236 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4237 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4238 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4240 test -z "$LD" && LD="$ac_prog"
4243 # If it fails, then pretend we aren't using GCC.
4247 # If it is relative, then search for the first ld in PATH.
4251 elif test "$with_gnu_ld" = yes; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4253 $as_echo_n "checking for GNU ld... " >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4256 $as_echo_n "checking for non-GNU ld... " >&6; }
4258 if ${lt_cv_path_LD+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if test -z "$LD"; then
4262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4263 for ac_dir in $PATH; do
4265 test -z "$ac_dir" && ac_dir=.
4266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4267 lt_cv_path_LD="$ac_dir/$ac_prog"
4268 # Check to see if the program is GNU ld. I'd rather use --version,
4269 # but apparently some variants of GNU ld only accept -v.
4270 # Break only if it was the GNU/non-GNU ld that we prefer.
4271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4272 *GNU* | *'with BFD'*)
4273 test "$with_gnu_ld" != no && break
4276 test "$with_gnu_ld" != yes && break
4283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4288 if test -n "$LD"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4290 $as_echo "$LD" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4295 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4298 if ${lt_cv_prog_gnu_ld+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4302 case `$LD -v 2>&1 </dev/null` in
4303 *GNU* | *'with BFD'*)
4304 lt_cv_prog_gnu_ld=yes
4307 lt_cv_prog_gnu_ld=no
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4312 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4313 with_gnu_ld=$lt_cv_prog_gnu_ld
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4324 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4325 if ${lt_cv_path_NM+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$NM"; then
4329 # Let the user override the test.
4332 lt_nm_to_check="${ac_tool_prefix}nm"
4333 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4334 lt_nm_to_check="$lt_nm_to_check nm"
4336 for lt_tmp_nm in $lt_nm_to_check; do
4337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4340 test -z "$ac_dir" && ac_dir=.
4341 tmp_nm="$ac_dir/$lt_tmp_nm"
4342 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4343 # Check to see if the nm accepts a BSD-compat flag.
4344 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4345 # nm: unknown option "B" ignored
4346 # Tru64's nm complains that /dev/null is an invalid object file
4347 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4348 */dev/null* | *'Invalid file or object type'*)
4349 lt_cv_path_NM="$tmp_nm -B"
4353 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4355 lt_cv_path_NM="$tmp_nm -p"
4359 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4360 continue # so that we can try to find one that supports BSD flags
4369 : ${lt_cv_path_NM=no}
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4373 $as_echo "$lt_cv_path_NM" >&6; }
4374 if test "$lt_cv_path_NM" != "no"; then
4377 # Didn't find any BSD compatible name lister, look for dumpbin.
4378 if test -n "$DUMPBIN"; then :
4379 # Let the user override the test.
4381 if test -n "$ac_tool_prefix"; then
4382 for ac_prog in dumpbin "link -dump"
4384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4387 $as_echo_n "checking for $ac_word... " >&6; }
4388 if ${ac_cv_prog_DUMPBIN+:} false; then :
4389 $as_echo_n "(cached) " >&6
4391 if test -n "$DUMPBIN"; then
4392 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 DUMPBIN=$ac_cv_prog_DUMPBIN
4412 if test -n "$DUMPBIN"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4414 $as_echo "$DUMPBIN" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4421 test -n "$DUMPBIN" && break
4424 if test -z "$DUMPBIN"; then
4425 ac_ct_DUMPBIN=$DUMPBIN
4426 for ac_prog in dumpbin "link -dump"
4428 # Extract the first word of "$ac_prog", so it can be a program name with args.
4429 set dummy $ac_prog; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4433 $as_echo_n "(cached) " >&6
4435 if test -n "$ac_ct_DUMPBIN"; then
4436 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4456 if test -n "$ac_ct_DUMPBIN"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4458 $as_echo "$ac_ct_DUMPBIN" >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4465 test -n "$ac_ct_DUMPBIN" && break
4468 if test "x$ac_ct_DUMPBIN" = x; then
4471 case $cross_compiling:$ac_tool_warned in
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4475 ac_tool_warned=yes ;;
4477 DUMPBIN=$ac_ct_DUMPBIN
4481 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4483 DUMPBIN="$DUMPBIN -symbols"
4491 if test "$DUMPBIN" != ":"; then
4495 test -z "$NM" && NM=nm
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4503 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4504 if ${lt_cv_nm_interface+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 lt_cv_nm_interface="BSD nm"
4508 echo "int some_variable = 0;" > conftest.$ac_ext
4509 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4510 (eval "$ac_compile" 2>conftest.err)
4511 cat conftest.err >&5
4512 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4513 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4514 cat conftest.err >&5
4515 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4516 cat conftest.out >&5
4517 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4518 lt_cv_nm_interface="MS dumpbin"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4523 $as_echo "$lt_cv_nm_interface" >&6; }
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4526 $as_echo_n "checking whether ln -s works... " >&6; }
4528 if test "$LN_S" = "ln -s"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4533 $as_echo "no, using $LN_S" >&6; }
4536 # find the maximum length of command line arguments
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4539 if ${lt_cv_sys_max_cmd_len+:} false; then :
4540 $as_echo_n "(cached) " >&6
4547 # On DJGPP, this test can blow up pretty badly due to problems in libc
4548 # (any single argument exceeding 2000 bytes causes a buffer overrun
4549 # during glob expansion). Even if it were fixed, the result of this
4550 # check would be larger than it should be.
4551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4555 # Under GNU Hurd, this test is not required because there is
4556 # no limit to the length of command line arguments.
4557 # Libtool will interpret -1 as no limit whatsoever
4558 lt_cv_sys_max_cmd_len=-1;
4561 cygwin* | mingw* | cegcc*)
4562 # On Win9x/ME, this test blows up -- it succeeds, but takes
4563 # about 5 minutes as the teststring grows exponentially.
4564 # Worse, since 9x/ME are not pre-emptively multitasking,
4565 # you end up with a "frozen" computer, even though with patience
4566 # the test eventually succeeds (with a max line length of 256k).
4567 # Instead, let's just punt: use the minimum linelength reported by
4568 # all of the supported platforms: 8192 (on NT/2K/XP).
4569 lt_cv_sys_max_cmd_len=8192;
4573 # On MiNT this can take a long time and run out of memory.
4574 lt_cv_sys_max_cmd_len=8192;
4578 # On AmigaOS with pdksh, this test takes hours, literally.
4579 # So we just punt and use a minimum line length of 8192.
4580 lt_cv_sys_max_cmd_len=8192;
4583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4584 # This has been around since 386BSD, at least. Likely further.
4585 if test -x /sbin/sysctl; then
4586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4587 elif test -x /usr/sbin/sysctl; then
4588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4592 # And add a safety zone
4593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4599 lt_cv_sys_max_cmd_len=196608
4603 # The test takes a long time on OS/2.
4604 lt_cv_sys_max_cmd_len=8192
4608 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4609 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4610 # nice to cause kernel panics so lets avoid the loop below.
4611 # First set a reasonable default.
4612 lt_cv_sys_max_cmd_len=16384
4614 if test -x /sbin/sysconfig; then
4615 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4616 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4621 lt_cv_sys_max_cmd_len=102400
4623 sysv5* | sco5v6* | sysv4.2uw2*)
4624 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4625 if test -n "$kargmax"; then
4626 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4628 lt_cv_sys_max_cmd_len=32768
4632 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4633 if test -n "$lt_cv_sys_max_cmd_len"; then
4634 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4637 # Make teststring a little bigger before we do anything with it.
4638 # a 1K string should be a reasonable start.
4639 for i in 1 2 3 4 5 6 7 8 ; do
4640 teststring=$teststring$teststring
4642 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4643 # If test is not a shell built-in, we'll probably end up computing a
4644 # maximum length that is only half of the actual maximum length, but
4646 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4647 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4648 test $i != 17 # 1/2 MB should be enough
4651 teststring=$teststring$teststring
4653 # Only check the string length outside the loop.
4654 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4656 # Add a significant safety factor because C++ compilers can tack on
4657 # massive amounts of additional arguments before passing them to the
4658 # linker. It appears as though 1/2 is a usable value.
4659 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4666 if test -n $lt_cv_sys_max_cmd_len ; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4668 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4671 $as_echo "none" >&6; }
4673 max_cmd_len=$lt_cv_sys_max_cmd_len
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4685 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4686 # Try some XSI features
4689 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4691 && eval 'test $(( 1 + 1 )) -eq 2 \
4692 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4695 $as_echo "$xsi_shell" >&6; }
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4699 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4701 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4703 && lt_shell_append=yes
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4705 $as_echo "$lt_shell_append" >&6; }
4708 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4718 # test EBCDIC or ASCII
4719 case `echo X|tr X '\101'` in
4720 A) # ASCII based system
4721 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4722 lt_SP2NL='tr \040 \012'
4723 lt_NL2SP='tr \015\012 \040\040'
4725 *) # EBCDIC based system
4726 lt_SP2NL='tr \100 \n'
4727 lt_NL2SP='tr \r\n \100\100'
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4740 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4741 if ${lt_cv_to_host_file_cmd+:} false; then :
4742 $as_echo_n "(cached) " >&6
4747 *-*-mingw* ) # actually msys
4748 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4751 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4753 * ) # otherwise, assume *nix
4754 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4760 *-*-mingw* ) # actually msys
4761 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4764 lt_cv_to_host_file_cmd=func_convert_file_noop
4766 * ) # otherwise, assume *nix
4767 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4771 * ) # unhandled hosts (and "normal" native builds)
4772 lt_cv_to_host_file_cmd=func_convert_file_noop
4778 to_host_file_cmd=$lt_cv_to_host_file_cmd
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4780 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4787 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4788 if ${lt_cv_to_tool_file_cmd+:} false; then :
4789 $as_echo_n "(cached) " >&6
4791 #assume ordinary cross tools, or native build.
4792 lt_cv_to_tool_file_cmd=func_convert_file_noop
4796 *-*-mingw* ) # actually msys
4797 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4805 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4807 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4814 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4815 if ${lt_cv_ld_reload_flag+:} false; then :
4816 $as_echo_n "(cached) " >&6
4818 lt_cv_ld_reload_flag='-r'
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4821 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4822 reload_flag=$lt_cv_ld_reload_flag
4823 case $reload_flag in
4825 *) reload_flag=" $reload_flag" ;;
4827 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4829 cygwin* | mingw* | pw32* | cegcc*)
4830 if test "$GCC" != yes; then
4835 if test "$GCC" = yes; then
4836 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4838 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_OBJDUMP+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$OBJDUMP"; then
4860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 OBJDUMP=$ac_cv_prog_OBJDUMP
4880 if test -n "$OBJDUMP"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4882 $as_echo "$OBJDUMP" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_OBJDUMP"; then
4891 ac_ct_OBJDUMP=$OBJDUMP
4892 # Extract the first word of "objdump", so it can be a program name with args.
4893 set dummy objdump; ac_word=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$ac_ct_OBJDUMP"; then
4900 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4920 if test -n "$ac_ct_OBJDUMP"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4922 $as_echo "$ac_ct_OBJDUMP" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_OBJDUMP" = x; then
4931 case $cross_compiling:$ac_tool_warned in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned=yes ;;
4937 OBJDUMP=$ac_ct_OBJDUMP
4940 OBJDUMP="$ac_cv_prog_OBJDUMP"
4943 test -z "$OBJDUMP" && OBJDUMP=objdump
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4954 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4955 if ${lt_cv_deplibs_check_method+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 lt_cv_file_magic_cmd='$MAGIC_CMD'
4959 lt_cv_file_magic_test_file=
4960 lt_cv_deplibs_check_method='unknown'
4961 # Need to set the preceding variable on all platforms that support
4962 # interlibrary dependencies.
4963 # 'none' -- dependencies not supported.
4964 # `unknown' -- same as none, but documents that we really don't know.
4965 # 'pass_all' -- all dependencies passed with no checks.
4966 # 'test_compile' -- check by making test program.
4967 # 'file_magic [[regex]]' -- check by looking for files in library path
4968 # which responds to the $file_magic_cmd with a given extended regex.
4969 # If you have `file' or equivalent on your system and you're not sure
4970 # whether `pass_all' will *always* work, you probably want this one.
4974 lt_cv_deplibs_check_method=pass_all
4978 lt_cv_deplibs_check_method=pass_all
4982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4983 lt_cv_file_magic_cmd='/usr/bin/file -L'
4984 lt_cv_file_magic_test_file=/shlib/libc.so
4988 # func_win32_libid is a shell function defined in ltmain.sh
4989 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990 lt_cv_file_magic_cmd='func_win32_libid'
4994 # Base MSYS/MinGW do not provide the 'file' command needed by
4995 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4996 # unless we find 'file', for example because we are cross-compiling.
4997 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4998 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000 lt_cv_file_magic_cmd='func_win32_libid'
5002 # Keep this pattern in sync with the one in func_win32_libid.
5003 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5004 lt_cv_file_magic_cmd='$OBJDUMP -f'
5009 # use the weaker test based on 'objdump'. See mingw*.
5010 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5011 lt_cv_file_magic_cmd='$OBJDUMP -f'
5014 darwin* | rhapsody*)
5015 lt_cv_deplibs_check_method=pass_all
5018 freebsd* | dragonfly*)
5019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5022 # Not sure whether the presence of OpenBSD here was a mistake.
5023 # Let's accept both of them until this is cleared up.
5024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5025 lt_cv_file_magic_cmd=/usr/bin/file
5026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5030 lt_cv_deplibs_check_method=pass_all
5035 lt_cv_deplibs_check_method=pass_all
5039 lt_cv_deplibs_check_method=pass_all
5042 hpux10.20* | hpux11*)
5043 lt_cv_file_magic_cmd=/usr/bin/file
5046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5050 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]'
5051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5065 irix5* | irix6* | nonstopux*)
5067 *-32|*"-32 ") libmagic=32-bit;;
5068 *-n32|*"-n32 ") libmagic=N32;;
5069 *-64|*"-64 ") libmagic=64-bit;;
5070 *) libmagic=never-match;;
5072 lt_cv_deplibs_check_method=pass_all
5075 # This must be glibc/ELF.
5076 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5077 lt_cv_deplibs_check_method=pass_all
5081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5090 lt_cv_file_magic_cmd=/usr/bin/file
5091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5095 lt_cv_deplibs_check_method=pass_all
5099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106 osf3* | osf4* | osf5*)
5107 lt_cv_deplibs_check_method=pass_all
5111 lt_cv_deplibs_check_method=pass_all
5115 lt_cv_deplibs_check_method=pass_all
5118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5119 lt_cv_deplibs_check_method=pass_all
5123 case $host_vendor in
5125 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]'
5126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5129 lt_cv_deplibs_check_method=pass_all
5132 lt_cv_file_magic_cmd='/bin/file'
5133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5136 lt_cv_file_magic_cmd='/bin/file'
5137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5138 lt_cv_file_magic_test_file=/lib/libc.so
5141 lt_cv_deplibs_check_method=pass_all
5144 lt_cv_deplibs_check_method=pass_all
5150 lt_cv_deplibs_check_method=pass_all
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5156 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5160 if test "$build" = "$host"; then
5163 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5166 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5172 file_magic_cmd=$lt_cv_file_magic_cmd
5173 deplibs_check_method=$lt_cv_deplibs_check_method
5174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_DLLTOOL+:} false; then :
5203 $as_echo_n "(cached) " >&6
5205 if test -n "$DLLTOOL"; then
5206 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 DLLTOOL=$ac_cv_prog_DLLTOOL
5226 if test -n "$DLLTOOL"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5228 $as_echo "$DLLTOOL" >&6; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5236 if test -z "$ac_cv_prog_DLLTOOL"; then
5237 ac_ct_DLLTOOL=$DLLTOOL
5238 # Extract the first word of "dlltool", so it can be a program name with args.
5239 set dummy dlltool; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5243 $as_echo_n "(cached) " >&6
5245 if test -n "$ac_ct_DLLTOOL"; then
5246 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5266 if test -n "$ac_ct_DLLTOOL"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5268 $as_echo "$ac_ct_DLLTOOL" >&6; }
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5274 if test "x$ac_ct_DLLTOOL" = x; then
5277 case $cross_compiling:$ac_tool_warned in
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5283 DLLTOOL=$ac_ct_DLLTOOL
5286 DLLTOOL="$ac_cv_prog_DLLTOOL"
5289 test -z "$DLLTOOL" && DLLTOOL=dlltool
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5301 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5302 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5303 $as_echo_n "(cached) " >&6
5305 lt_cv_sharedlib_from_linklib_cmd='unknown'
5308 cygwin* | mingw* | pw32* | cegcc*)
5309 # two different shell functions defined in ltmain.sh
5310 # decide which to use based on capabilities of $DLLTOOL
5311 case `$DLLTOOL --help 2>&1` in
5312 *--identify-strict*)
5313 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5321 # fallback: assume linklib IS sharedlib
5322 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5328 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5329 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5330 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5339 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_prog_AR+:} false; then :
5347 $as_echo_n "(cached) " >&6
5349 if test -n "$AR"; then
5350 ac_cv_prog_AR="$AR" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 if test -n "$AR"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5372 $as_echo "$AR" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 test -n "$AR" && break
5382 if test -z "$AR"; then
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_AR"; then
5394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_AR="$ac_prog"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5414 if test -n "$ac_ct_AR"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5416 $as_echo "$ac_ct_AR" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 test -n "$ac_ct_AR" && break
5426 if test "x$ac_ct_AR" = x; then
5429 case $cross_compiling:$ac_tool_warned in
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5453 $as_echo_n "checking for archiver @FILE support... " >&6; }
5454 if ${lt_cv_ar_at_file+:} false; then :
5455 $as_echo_n "(cached) " >&6
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 echo conftest.$ac_objext > conftest.lst
5471 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5473 (eval $lt_ar_try) 2>&5
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; }
5477 if test "$ac_status" -eq 0; then
5478 # Ensure the archiver fails upon bogus file names.
5479 rm -f conftest.$ac_objext libconftest.a
5480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5481 (eval $lt_ar_try) 2>&5
5483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484 test $ac_status = 0; }
5485 if test "$ac_status" -ne 0; then
5489 rm -f conftest.* libconftest.a
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5496 $as_echo "$lt_cv_ar_at_file" >&6; }
5498 if test "x$lt_cv_ar_at_file" = xno; then
5501 archiver_list_spec=$lt_cv_ar_at_file
5510 if test -n "$ac_tool_prefix"; then
5511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5512 set dummy ${ac_tool_prefix}strip; ac_word=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_STRIP+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$STRIP"; then
5519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 STRIP=$ac_cv_prog_STRIP
5539 if test -n "$STRIP"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5541 $as_echo "$STRIP" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5549 if test -z "$ac_cv_prog_STRIP"; then
5551 # Extract the first word of "strip", so it can be a program name with args.
5552 set dummy strip; ac_word=$2
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5556 $as_echo_n "(cached) " >&6
5558 if test -n "$ac_ct_STRIP"; then
5559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 test -z "$as_dir" && as_dir=.
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568 ac_cv_prog_ac_ct_STRIP="strip"
5569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5579 if test -n "$ac_ct_STRIP"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5581 $as_echo "$ac_ct_STRIP" >&6; }
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5587 if test "x$ac_ct_STRIP" = x; then
5590 case $cross_compiling:$ac_tool_warned in
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594 ac_tool_warned=yes ;;
5599 STRIP="$ac_cv_prog_STRIP"
5602 test -z "$STRIP" && STRIP=:
5609 if test -n "$ac_tool_prefix"; then
5610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_RANLIB+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$RANLIB"; then
5618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 RANLIB=$ac_cv_prog_RANLIB
5638 if test -n "$RANLIB"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5640 $as_echo "$RANLIB" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5648 if test -z "$ac_cv_prog_RANLIB"; then
5649 ac_ct_RANLIB=$RANLIB
5650 # Extract the first word of "ranlib", so it can be a program name with args.
5651 set dummy ranlib; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5655 $as_echo_n "(cached) " >&6
5657 if test -n "$ac_ct_RANLIB"; then
5658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 ac_cv_prog_ac_ct_RANLIB="ranlib"
5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5678 if test -n "$ac_ct_RANLIB"; then
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5680 $as_echo "$ac_ct_RANLIB" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5686 if test "x$ac_ct_RANLIB" = x; then
5689 case $cross_compiling:$ac_tool_warned in
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5695 RANLIB=$ac_ct_RANLIB
5698 RANLIB="$ac_cv_prog_RANLIB"
5701 test -z "$RANLIB" && RANLIB=:
5708 # Determine commands to create old-style static archives.
5709 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5710 old_postinstall_cmds='chmod 644 $oldlib'
5711 old_postuninstall_cmds=
5713 if test -n "$RANLIB"; then
5716 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5722 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5727 lock_old_archive_extraction=yes ;;
5729 lock_old_archive_extraction=no ;;
5770 # If no C compiler was specified, use CC.
5773 # If no C compiler flags were specified, use CFLAGS.
5774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5776 # Allow CC to be a program name with arguments.
5780 # Check for command to grab the raw symbol name followed by C symbol from nm.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5782 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5783 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5784 $as_echo_n "(cached) " >&6
5787 # These are sane defaults that work on at least a few old systems.
5788 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5790 # Character class describing NM global symbol codes.
5791 symcode='[BCDEGRST]'
5793 # Regexp to match symbols that can be accessed directly from C.
5794 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5796 # Define system-specific variables.
5801 cygwin* | mingw* | pw32* | cegcc*)
5802 symcode='[ABCDGISTW]'
5805 if test "$host_cpu" = ia64; then
5806 symcode='[ABCDEGRST]'
5810 symcode='[BCDEGRST]'
5813 symcode='[BCDEGQRST]'
5824 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5832 # If we're using GNU nm, then use its standard symbol codes.
5833 case `$NM -V 2>&1` in
5834 *GNU* | *'with BFD'*)
5835 symcode='[ABCDGIRSTW]' ;;
5838 # Transform an extracted symbol line into a proper C declaration.
5839 # Some systems (esp. on ia64) link data and code symbols differently,
5840 # so use this general approach.
5841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5843 # Transform an extracted symbol line into symbol name and symbol address
5844 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5845 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'"
5847 # Handle CRLF in mingw tool chain
5851 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5855 # Try without a prefix underscore, then with it.
5856 for ac_symprfx in "" "_"; do
5858 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5859 symxfrm="\\1 $ac_symprfx\\2 \\2"
5861 # Write the raw and C identifiers.
5862 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5863 # Fake it for dumpbin and say T for any non-static function
5864 # and D for any global variable.
5865 # Also find C++ and __fastcall symbols from MSVC++,
5866 # which start with @ or ?.
5867 lt_cv_sys_global_symbol_pipe="$AWK '"\
5868 " {last_section=section; section=\$ 3};"\
5869 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5870 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5871 " \$ 0!~/External *\|/{next};"\
5872 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5873 " {if(hide[section]) next};"\
5874 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5875 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5876 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5877 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5878 " ' prfx=^$ac_symprfx"
5880 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5882 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5884 # Check to see that the pipe works correctly.
5888 cat > conftest.$ac_ext <<_LT_EOF
5893 void nm_test_func(void);
5894 void nm_test_func(void){}
5898 int main(){nm_test_var='a';nm_test_func();return(0);}
5901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5902 (eval $ac_compile) 2>&5
5904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5905 test $ac_status = 0; }; then
5906 # Now try to grab the symbols.
5908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5909 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; } && test -s "$nlist"; then
5913 # Try sorting and uniquifying the output.
5914 if sort "$nlist" | uniq > "$nlist"T; then
5915 mv -f "$nlist"T "$nlist"
5920 # Make sure that we snagged all the symbols we need.
5921 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5922 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5923 cat <<_LT_EOF > conftest.$ac_ext
5924 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5925 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5926 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5927 relocations are performed -- see ld's documentation on pseudo-relocs. */
5928 # define LT_DLSYM_CONST
5929 #elif defined(__osf__)
5930 /* This system does not cope well with relocations in const data. */
5931 # define LT_DLSYM_CONST
5933 # define LT_DLSYM_CONST const
5941 # Now generate the symbol file.
5942 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5944 cat <<_LT_EOF >> conftest.$ac_ext
5946 /* The mapping between symbol names and symbols. */
5947 LT_DLSYM_CONST struct {
5951 lt__PROGRAM__LTX_preloaded_symbols[] =
5953 { "@PROGRAM@", (void *) 0 },
5955 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5956 cat <<\_LT_EOF >> conftest.$ac_ext
5960 /* This works around a problem in FreeBSD linker */
5961 #ifdef FREEBSD_WORKAROUND
5962 static const void *lt_preloaded_setup() {
5963 return lt__PROGRAM__LTX_preloaded_symbols;
5971 # Now try linking the two files.
5972 mv conftest.$ac_objext conftstm.$ac_objext
5973 lt_globsym_save_LIBS=$LIBS
5974 lt_globsym_save_CFLAGS=$CFLAGS
5975 LIBS="conftstm.$ac_objext"
5976 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5978 (eval $ac_link) 2>&5
5980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5981 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5984 LIBS=$lt_globsym_save_LIBS
5985 CFLAGS=$lt_globsym_save_CFLAGS
5987 echo "cannot find nm_test_func in $nlist" >&5
5990 echo "cannot find nm_test_var in $nlist" >&5
5993 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5996 echo "$progname: failed program was:" >&5
5997 cat conftest.$ac_ext >&5
5999 rm -rf conftest* conftst*
6001 # Do not use the global_symbol_pipe unless it works.
6002 if test "$pipe_works" = yes; then
6005 lt_cv_sys_global_symbol_pipe=
6011 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6012 lt_cv_sys_global_symbol_to_cdecl=
6014 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6016 $as_echo "failed" >&6; }
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6019 $as_echo "ok" >&6; }
6022 # Response file support.
6023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6024 nm_file_list_spec='@'
6025 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6026 nm_file_list_spec='@'
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6056 $as_echo_n "checking for sysroot... " >&6; }
6058 # Check whether --with-sysroot was given.
6059 if test "${with_sysroot+set}" = set; then :
6060 withval=$with_sysroot;
6067 case ${with_sysroot} in #(
6069 if test "$GCC" = yes; then
6070 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6074 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6080 $as_echo "${with_sysroot}" >&6; }
6081 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6086 $as_echo "${lt_sysroot:-no}" >&6; }
6092 # Check whether --enable-libtool-lock was given.
6093 if test "${enable_libtool_lock+set}" = set; then :
6094 enableval=$enable_libtool_lock;
6097 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6099 # Some flags need to be propagated to the compiler or linker for good
6103 # Find out which ABI we are using.
6104 echo 'int i;' > conftest.$ac_ext
6105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6106 (eval $ac_compile) 2>&5
6108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109 test $ac_status = 0; }; then
6110 case `/usr/bin/file conftest.$ac_objext` in
6122 # Find out which ABI we are using.
6123 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6125 (eval $ac_compile) 2>&5
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }; then
6129 if test "$lt_cv_prog_gnu_ld" = yes; then
6130 case `/usr/bin/file conftest.$ac_objext` in
6132 LD="${LD-ld} -melf32bsmip"
6135 LD="${LD-ld} -melf32bmipn32"
6138 LD="${LD-ld} -melf64bmip"
6142 case `/usr/bin/file conftest.$ac_objext` in
6158 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6159 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6160 # Find out which ABI we are using.
6161 echo 'int i;' > conftest.$ac_ext
6162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6163 (eval $ac_compile) 2>&5
6165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6166 test $ac_status = 0; }; then
6167 case `/usr/bin/file conftest.o` in
6170 x86_64-*kfreebsd*-gnu)
6171 LD="${LD-ld} -m elf_i386_fbsd"
6174 LD="${LD-ld} -m elf_i386"
6176 ppc64-*linux*|powerpc64-*linux*)
6177 LD="${LD-ld} -m elf32ppclinux"
6180 LD="${LD-ld} -m elf_s390"
6183 LD="${LD-ld} -m elf32_sparc"
6189 x86_64-*kfreebsd*-gnu)
6190 LD="${LD-ld} -m elf_x86_64_fbsd"
6193 LD="${LD-ld} -m elf_x86_64"
6195 ppc*-*linux*|powerpc*-*linux*)
6196 LD="${LD-ld} -m elf64ppc"
6198 s390*-*linux*|s390*-*tpf*)
6199 LD="${LD-ld} -m elf64_s390"
6202 LD="${LD-ld} -m elf64_sparc"
6212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6213 SAVE_CFLAGS="$CFLAGS"
6214 CFLAGS="$CFLAGS -belf"
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6216 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6217 if ${lt_cv_cc_needs_belf+:} false; then :
6218 $as_echo_n "(cached) " >&6
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6237 if ac_fn_c_try_link "$LINENO"; then :
6238 lt_cv_cc_needs_belf=yes
6240 lt_cv_cc_needs_belf=no
6242 rm -f core conftest.err conftest.$ac_objext \
6243 conftest$ac_exeext conftest.$ac_ext
6245 ac_cpp='$CPP $CPPFLAGS'
6246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6252 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6253 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6254 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6255 CFLAGS="$SAVE_CFLAGS"
6259 # Find out which ABI we are using.
6260 echo 'int i;' > conftest.$ac_ext
6261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6262 (eval $ac_compile) 2>&5
6264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6265 test $ac_status = 0; }; then
6266 case `/usr/bin/file conftest.o` in
6268 case $lt_cv_prog_gnu_ld in
6272 LD="${LD-ld} -m elf_x86_64"
6275 LD="${LD-ld} -m elf64_sparc"
6278 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6279 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6284 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6296 need_locks="$enable_libtool_lock"
6298 if test -n "$ac_tool_prefix"; then
6299 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}mt; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -n "$MANIFEST_TOOL"; then
6307 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6327 if test -n "$MANIFEST_TOOL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6329 $as_echo "$MANIFEST_TOOL" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6337 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6338 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6339 # Extract the first word of "mt", so it can be a program name with args.
6340 set dummy mt; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6344 $as_echo_n "(cached) " >&6
6346 if test -n "$ac_ct_MANIFEST_TOOL"; then
6347 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6367 if test -n "$ac_ct_MANIFEST_TOOL"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6369 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6375 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6378 case $cross_compiling:$ac_tool_warned in
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6384 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6387 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6390 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6392 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6393 if ${lt_cv_path_mainfest_tool+:} false; then :
6394 $as_echo_n "(cached) " >&6
6396 lt_cv_path_mainfest_tool=no
6397 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6398 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6399 cat conftest.err >&5
6400 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6401 lt_cv_path_mainfest_tool=yes
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6406 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6407 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6417 rhapsody* | darwin*)
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$DSYMUTIL"; then
6427 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6447 if test -n "$DSYMUTIL"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6449 $as_echo "$DSYMUTIL" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6457 if test -z "$ac_cv_prog_DSYMUTIL"; then
6458 ac_ct_DSYMUTIL=$DSYMUTIL
6459 # Extract the first word of "dsymutil", so it can be a program name with args.
6460 set dummy dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6464 $as_echo_n "(cached) " >&6
6466 if test -n "$ac_ct_DSYMUTIL"; then
6467 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6487 if test -n "$ac_ct_DSYMUTIL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6489 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 if test "x$ac_ct_DSYMUTIL" = x; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6504 DSYMUTIL=$ac_ct_DSYMUTIL
6507 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_NMEDIT+:} false; then :
6516 $as_echo_n "(cached) " >&6
6518 if test -n "$NMEDIT"; then
6519 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 NMEDIT=$ac_cv_prog_NMEDIT
6539 if test -n "$NMEDIT"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6541 $as_echo "$NMEDIT" >&6; }
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_NMEDIT"; then
6550 ac_ct_NMEDIT=$NMEDIT
6551 # Extract the first word of "nmedit", so it can be a program name with args.
6552 set dummy nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$ac_ct_NMEDIT"; then
6559 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6579 if test -n "$ac_ct_NMEDIT"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6581 $as_echo "$ac_ct_NMEDIT" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_NMEDIT" = x; then
6590 case $cross_compiling:$ac_tool_warned in
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6596 NMEDIT=$ac_ct_NMEDIT
6599 NMEDIT="$ac_cv_prog_NMEDIT"
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_LIPO+:} false; then :
6608 $as_echo_n "(cached) " >&6
6610 if test -n "$LIPO"; then
6611 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 LIPO=$ac_cv_prog_LIPO
6631 if test -n "$LIPO"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6633 $as_echo "$LIPO" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6641 if test -z "$ac_cv_prog_LIPO"; then
6643 # Extract the first word of "lipo", so it can be a program name with args.
6644 set dummy lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6648 $as_echo_n "(cached) " >&6
6650 if test -n "$ac_ct_LIPO"; then
6651 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_ac_ct_LIPO="lipo"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6671 if test -n "$ac_ct_LIPO"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6673 $as_echo "$ac_ct_LIPO" >&6; }
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6679 if test "x$ac_ct_LIPO" = x; then
6682 case $cross_compiling:$ac_tool_warned in
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6691 LIPO="$ac_cv_prog_LIPO"
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}otool; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_OTOOL+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 if test -n "$OTOOL"; then
6703 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6722 OTOOL=$ac_cv_prog_OTOOL
6723 if test -n "$OTOOL"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6725 $as_echo "$OTOOL" >&6; }
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6733 if test -z "$ac_cv_prog_OTOOL"; then
6735 # Extract the first word of "otool", so it can be a program name with args.
6736 set dummy otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6740 $as_echo_n "(cached) " >&6
6742 if test -n "$ac_ct_OTOOL"; then
6743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_prog_ac_ct_OTOOL="otool"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6763 if test -n "$ac_ct_OTOOL"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6765 $as_echo "$ac_ct_OTOOL" >&6; }
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6771 if test "x$ac_ct_OTOOL" = x; then
6774 case $cross_compiling:$ac_tool_warned in
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6783 OTOOL="$ac_cv_prog_OTOOL"
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_OTOOL64+:} false; then :
6792 $as_echo_n "(cached) " >&6
6794 if test -n "$OTOOL64"; then
6795 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 OTOOL64=$ac_cv_prog_OTOOL64
6815 if test -n "$OTOOL64"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6817 $as_echo "$OTOOL64" >&6; }
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6825 if test -z "$ac_cv_prog_OTOOL64"; then
6826 ac_ct_OTOOL64=$OTOOL64
6827 # Extract the first word of "otool64", so it can be a program name with args.
6828 set dummy otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 if test -n "$ac_ct_OTOOL64"; then
6835 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_OTOOL64="otool64"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6855 if test -n "$ac_ct_OTOOL64"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6857 $as_echo "$ac_ct_OTOOL64" >&6; }
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6863 if test "x$ac_ct_OTOOL64" = x; then
6866 case $cross_compiling:$ac_tool_warned in
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6872 OTOOL64=$ac_ct_OTOOL64
6875 OTOOL64="$ac_cv_prog_OTOOL64"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6905 $as_echo_n "checking for -single_module linker flag... " >&6; }
6906 if ${lt_cv_apple_cc_single_mod+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 lt_cv_apple_cc_single_mod=no
6910 if test -z "${LT_MULTI_MODULE}"; then
6911 # By default we will add the -single_module flag. You can override
6912 # by either setting the environment variable LT_MULTI_MODULE
6913 # non-empty at configure time, or by adding -multi_module to the
6915 rm -rf libconftest.dylib*
6916 echo "int foo(void){return 1;}" > conftest.c
6917 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6918 -dynamiclib -Wl,-single_module conftest.c" >&5
6919 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6920 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6922 # If there is a non-empty error log, and "single_module"
6923 # appears in it, assume the flag caused a linker warning
6924 if test -s conftest.err && $GREP single_module conftest.err; then
6925 cat conftest.err >&5
6926 # Otherwise, if the output was created with a 0 exit code from
6927 # the compiler, it worked.
6928 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6929 lt_cv_apple_cc_single_mod=yes
6931 cat conftest.err >&5
6933 rm -rf libconftest.dylib*
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6941 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6942 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6943 $as_echo_n "(cached) " >&6
6945 lt_cv_ld_exported_symbols_list=no
6946 save_LDFLAGS=$LDFLAGS
6947 echo "_main" > conftest.sym
6948 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 lt_cv_ld_exported_symbols_list=yes
6963 lt_cv_ld_exported_symbols_list=no
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6967 LDFLAGS="$save_LDFLAGS"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6971 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6974 $as_echo_n "checking for -force_load linker flag... " >&6; }
6975 if ${lt_cv_ld_force_load+:} false; then :
6976 $as_echo_n "(cached) " >&6
6978 lt_cv_ld_force_load=no
6979 cat > conftest.c << _LT_EOF
6980 int forced_loaded() { return 2;}
6982 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6983 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6984 echo "$AR cru libconftest.a conftest.o" >&5
6985 $AR cru libconftest.a conftest.o 2>&5
6986 echo "$RANLIB libconftest.a" >&5
6987 $RANLIB libconftest.a 2>&5
6988 cat > conftest.c << _LT_EOF
6989 int main() { return 0;}
6991 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6992 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6994 if test -s conftest.err && $GREP force_load conftest.err; then
6995 cat conftest.err >&5
6996 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6997 lt_cv_ld_force_load=yes
6999 cat conftest.err >&5
7001 rm -f conftest.err libconftest.a conftest conftest.c
7002 rm -rf conftest.dSYM
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7006 $as_echo "$lt_cv_ld_force_load" >&6; }
7008 rhapsody* | darwin1.[012])
7009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7012 darwin*) # darwin 5.x on
7013 # if running on 10.5 or later, the deployment target defaults
7014 # to the OS version, if on x86, and 10.4, the deployment
7015 # target defaults to 10.4. Don't you love it?
7016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7027 _lt_dar_single_mod='$single_module'
7029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7034 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7035 _lt_dsymutil='~$DSYMUTIL $lib || :'
7043 ac_cpp='$CPP $CPPFLAGS'
7044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7048 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7049 # On Suns, sometimes $CPP names a directory.
7050 if test -n "$CPP" && test -d "$CPP"; then
7053 if test -z "$CPP"; then
7054 if ${ac_cv_prog_CPP+:} false; then :
7055 $as_echo_n "(cached) " >&6
7057 # Double quotes because CPP needs to be expanded
7058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7061 for ac_c_preproc_warn_flag in '' yes
7063 # Use a header file that comes with gcc, so configuring glibc
7064 # with a fresh cross-compiler works.
7065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7066 # <limits.h> exists even on freestanding compilers.
7067 # On the NeXT, cc -E runs the code through the compiler's parser,
7068 # not just through cpp. "Syntax error" is here to catch this case.
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7072 # include <limits.h>
7074 # include <assert.h>
7078 if ac_fn_c_try_cpp "$LINENO"; then :
7081 # Broken: fails on valid input.
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7086 # OK, works on sane cases. Now check whether nonexistent headers
7087 # can be detected and how.
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090 #include <ac_nonexistent.h>
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7093 # Broken: success on invalid input.
7096 # Passes both tests.
7100 rm -f conftest.err conftest.i conftest.$ac_ext
7103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7104 rm -f conftest.i conftest.err conftest.$ac_ext
7105 if $ac_preproc_ok; then :
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7118 $as_echo "$CPP" >&6; }
7120 for ac_c_preproc_warn_flag in '' yes
7122 # Use a header file that comes with gcc, so configuring glibc
7123 # with a fresh cross-compiler works.
7124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7125 # <limits.h> exists even on freestanding compilers.
7126 # On the NeXT, cc -E runs the code through the compiler's parser,
7127 # not just through cpp. "Syntax error" is here to catch this case.
7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7131 # include <limits.h>
7133 # include <assert.h>
7137 if ac_fn_c_try_cpp "$LINENO"; then :
7140 # Broken: fails on valid input.
7143 rm -f conftest.err conftest.i conftest.$ac_ext
7145 # OK, works on sane cases. Now check whether nonexistent headers
7146 # can be detected and how.
7147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7148 /* end confdefs.h. */
7149 #include <ac_nonexistent.h>
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7152 # Broken: success on invalid input.
7155 # Passes both tests.
7159 rm -f conftest.err conftest.i conftest.$ac_ext
7162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7163 rm -f conftest.i conftest.err conftest.$ac_ext
7164 if $ac_preproc_ok; then :
7167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7169 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7170 See \`config.log' for more details" "$LINENO" 5; }
7174 ac_cpp='$CPP $CPPFLAGS'
7175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7181 $as_echo_n "checking for ANSI C header files... " >&6; }
7182 if ${ac_cv_header_stdc+:} false; then :
7183 $as_echo_n "(cached) " >&6
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7200 if ac_fn_c_try_compile "$LINENO"; then :
7201 ac_cv_header_stdc=yes
7203 ac_cv_header_stdc=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 if test $ac_cv_header_stdc = yes; then
7208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7215 $EGREP "memchr" >/dev/null 2>&1; then :
7218 ac_cv_header_stdc=no
7224 if test $ac_cv_header_stdc = yes; then
7225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232 $EGREP "free" >/dev/null 2>&1; then :
7235 ac_cv_header_stdc=no
7241 if test $ac_cv_header_stdc = yes; then
7242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7243 if test "$cross_compiling" = yes; then :
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7250 #if ((' ' & 0x0FF) == 0x020)
7251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7254 # define ISLOWER(c) \
7255 (('a' <= (c) && (c) <= 'i') \
7256 || ('j' <= (c) && (c) <= 'r') \
7257 || ('s' <= (c) && (c) <= 'z'))
7258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7266 for (i = 0; i < 256; i++)
7267 if (XOR (islower (i), ISLOWER (i))
7268 || toupper (i) != TOUPPER (i))
7273 if ac_fn_c_try_run "$LINENO"; then :
7276 ac_cv_header_stdc=no
7278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7279 conftest.$ac_objext conftest.beam conftest.$ac_ext
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7285 $as_echo "$ac_cv_header_stdc" >&6; }
7286 if test $ac_cv_header_stdc = yes; then
7288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7292 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7293 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7294 inttypes.h stdint.h unistd.h
7296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7300 cat >>confdefs.h <<_ACEOF
7301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7309 for ac_header in dlfcn.h
7311 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7313 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7314 cat >>confdefs.h <<_ACEOF
7315 #define HAVE_DLFCN_H 1
7327 # Check whether --enable-shared was given.
7328 if test "${enable_shared+set}" = set; then :
7329 enableval=$enable_shared; p=${PACKAGE-default}
7331 yes) enable_shared=yes ;;
7332 no) enable_shared=no ;;
7335 # Look at the argument we got. We use all the common list separators.
7336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337 for pkg in $enableval; do
7339 if test "X$pkg" = "X$p"; then
7366 # Check whether --enable-static was given.
7367 if test "${enable_static+set}" = set; then :
7368 enableval=$enable_static; p=${PACKAGE-default}
7370 yes) enable_static=yes ;;
7371 no) enable_static=no ;;
7374 # Look at the argument we got. We use all the common list separators.
7375 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7376 for pkg in $enableval; do
7378 if test "X$pkg" = "X$p"; then
7398 # Check whether --with-pic was given.
7399 if test "${with_pic+set}" = set; then :
7400 withval=$with_pic; lt_p=${PACKAGE-default}
7402 yes|no) pic_mode=$withval ;;
7405 # Look at the argument we got. We use all the common list separators.
7406 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7407 for lt_pkg in $withval; do
7409 if test "X$lt_pkg" = "X$lt_p"; then
7421 test -z "$pic_mode" && pic_mode=default
7429 # Check whether --enable-fast-install was given.
7430 if test "${enable_fast_install+set}" = set; then :
7431 enableval=$enable_fast_install; p=${PACKAGE-default}
7433 yes) enable_fast_install=yes ;;
7434 no) enable_fast_install=no ;;
7436 enable_fast_install=no
7437 # Look at the argument we got. We use all the common list separators.
7438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439 for pkg in $enableval; do
7441 if test "X$pkg" = "X$p"; then
7442 enable_fast_install=yes
7449 enable_fast_install=yes
7462 # This can be used to rebuild libtool when needed
7463 LIBTOOL_DEPS="$ltmain"
7465 # Always use our own libtool.
7466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7497 test -z "$LN_S" && LN_S="ln -s"
7512 if test -n "${ZSH_VERSION+set}" ; then
7513 setopt NO_GLOB_SUBST
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7517 $as_echo_n "checking for objdir... " >&6; }
7518 if ${lt_cv_objdir+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 rm -f .libs 2>/dev/null
7522 mkdir .libs 2>/dev/null
7523 if test -d .libs; then
7526 # MS-DOS does not allow filenames that begin with a dot.
7529 rmdir .libs 2>/dev/null
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7532 $as_echo "$lt_cv_objdir" >&6; }
7533 objdir=$lt_cv_objdir
7539 cat >>confdefs.h <<_ACEOF
7540 #define LT_OBJDIR "$lt_cv_objdir/"
7548 # AIX sometimes has problems with the GCC collect2 program. For some
7549 # reason, if we set the COLLECT_NAMES environment variable, the problems
7550 # vanish in a puff of smoke.
7551 if test "X${COLLECT_NAMES+set}" != Xset; then
7553 export COLLECT_NAMES
7560 can_build_shared=yes
7562 # All known linkers require a `.a' archive for static linking (except MSVC,
7563 # which needs '.lib').
7566 with_gnu_ld="$lt_cv_prog_gnu_ld"
7569 old_CFLAGS="$CFLAGS"
7571 # Set sane defaults for various variables
7572 test -z "$CC" && CC=cc
7573 test -z "$LTCC" && LTCC=$CC
7574 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7575 test -z "$LD" && LD=ld
7576 test -z "$ac_objext" && ac_objext=o
7578 for cc_temp in $compiler""; do
7580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7586 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7589 # Only perform the check for file, if the check method requires it
7590 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7591 case $deplibs_check_method in
7593 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7595 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7596 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7597 $as_echo_n "(cached) " >&6
7601 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7604 lt_save_MAGIC_CMD="$MAGIC_CMD"
7605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7606 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7607 for ac_dir in $ac_dummy; do
7609 test -z "$ac_dir" && ac_dir=.
7610 if test -f $ac_dir/${ac_tool_prefix}file; then
7611 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7612 if test -n "$file_magic_test_file"; then
7613 case $deplibs_check_method in
7615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7618 $EGREP "$file_magic_regex" > /dev/null; then
7623 *** Warning: the command libtool uses to detect shared libraries,
7624 *** $file_magic_cmd, produces output that libtool cannot recognize.
7625 *** The result is that libtool may fail to recognize shared libraries
7626 *** as such. This will affect the creation of libtool libraries that
7627 *** depend on shared libraries, but programs linked with such libtool
7628 *** libraries will work regardless of this problem. Nevertheless, you
7629 *** may want to report the problem to your system manager and/or to
7630 *** bug-libtool@gnu.org
7640 MAGIC_CMD="$lt_save_MAGIC_CMD"
7645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7646 if test -n "$MAGIC_CMD"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7648 $as_echo "$MAGIC_CMD" >&6; }
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7658 if test -z "$lt_cv_path_MAGIC_CMD"; then
7659 if test -n "$ac_tool_prefix"; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7661 $as_echo_n "checking for file... " >&6; }
7662 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7663 $as_echo_n "(cached) " >&6
7667 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670 lt_save_MAGIC_CMD="$MAGIC_CMD"
7671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7673 for ac_dir in $ac_dummy; do
7675 test -z "$ac_dir" && ac_dir=.
7676 if test -f $ac_dir/file; then
7677 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7678 if test -n "$file_magic_test_file"; then
7679 case $deplibs_check_method in
7681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7682 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7684 $EGREP "$file_magic_regex" > /dev/null; then
7689 *** Warning: the command libtool uses to detect shared libraries,
7690 *** $file_magic_cmd, produces output that libtool cannot recognize.
7691 *** The result is that libtool may fail to recognize shared libraries
7692 *** as such. This will affect the creation of libtool libraries that
7693 *** depend on shared libraries, but programs linked with such libtool
7694 *** libraries will work regardless of this problem. Nevertheless, you
7695 *** may want to report the problem to your system manager and/or to
7696 *** bug-libtool@gnu.org
7706 MAGIC_CMD="$lt_save_MAGIC_CMD"
7711 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7712 if test -n "$MAGIC_CMD"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7714 $as_echo "$MAGIC_CMD" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7730 # Use C for the default configuration in the libtool script
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740 # Source file extension for C test sources.
7743 # Object file extension for compiled C test sources.
7747 # Code to be used in simple compile tests
7748 lt_simple_compile_test_code="int some_variable = 0;"
7750 # Code to be used in simple link tests
7751 lt_simple_link_test_code='int main(){return(0);}'
7759 # If no C compiler was specified, use CC.
7762 # If no C compiler flags were specified, use CFLAGS.
7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7765 # Allow CC to be a program name with arguments.
7768 # Save the default compiler, since it gets overwritten when the other
7769 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7770 compiler_DEFAULT=$CC
7772 # save warnings/boilerplate of simple test code
7773 ac_outfile=conftest.$ac_objext
7774 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7775 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776 _lt_compiler_boilerplate=`cat conftest.err`
7779 ac_outfile=conftest.$ac_objext
7780 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7781 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7782 _lt_linker_boilerplate=`cat conftest.err`
7786 if test -n "$compiler"; then
7788 lt_prog_compiler_no_builtin_flag=
7790 if test "$GCC" = yes; then
7791 case $cc_basename in
7793 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7795 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7800 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7801 $as_echo_n "(cached) " >&6
7803 lt_cv_prog_compiler_rtti_exceptions=no
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806 lt_compiler_flag="-fno-rtti -fno-exceptions"
7807 # Insert the option either (1) after the last *FLAGS variable, or
7808 # (2) before a word containing "conftest.", or (3) at the end.
7809 # Note that $ac_compile itself does not contain backslashes and begins
7810 # with a dollar sign (not a hyphen), so the echo should work correctly.
7811 # The option is referenced via a variable to avoid confusing sed.
7812 lt_compile=`echo "$ac_compile" | $SED \
7813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815 -e 's:$: $lt_compiler_flag:'`
7816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7817 (eval "$lt_compile" 2>conftest.err)
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 if (exit $ac_status) && test -s "$ac_outfile"; then
7822 # The compiler can only warn and ignore the option if not recognized
7823 # So say no if there are warnings other than the usual output.
7824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7827 lt_cv_prog_compiler_rtti_exceptions=yes
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7849 lt_prog_compiler_wl=
7850 lt_prog_compiler_pic=
7851 lt_prog_compiler_static=
7854 if test "$GCC" = yes; then
7855 lt_prog_compiler_wl='-Wl,'
7856 lt_prog_compiler_static='-static'
7860 # All AIX code is PIC.
7861 if test "$host_cpu" = ia64; then
7862 # AIX 5 now supports IA64 processor
7863 lt_prog_compiler_static='-Bstatic'
7870 # see comment about AmigaOS4 .so support
7871 lt_prog_compiler_pic='-fPIC'
7874 # FIXME: we need at least 68020 code to build shared libraries, but
7875 # adding the `-m68020' flag to GCC prevents building anything better,
7877 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7882 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7883 # PIC is the default for these OSes.
7886 mingw* | cygwin* | pw32* | os2* | cegcc*)
7887 # This hack is so that the source file can tell whether it is being
7888 # built for inclusion in a dll (and should export symbols for example).
7889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7890 # (--disable-auto-import) libraries
7891 lt_prog_compiler_pic='-DDLL_EXPORT'
7894 darwin* | rhapsody*)
7895 # PIC is the default on this platform
7896 # Common symbols not allowed in MH_DYLIB files
7897 lt_prog_compiler_pic='-fno-common'
7901 # PIC is the default for Haiku.
7902 # The "-static" flag exists, but is broken.
7903 lt_prog_compiler_static=
7907 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7908 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7909 # sets the default TLS model and affects inlining.
7915 lt_prog_compiler_pic='-fPIC'
7921 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7922 # Instead, we relocate shared libraries at runtime.
7926 # Just because we use GCC doesn't mean we suddenly get shared libraries
7927 # on systems that don't support them.
7928 lt_prog_compiler_can_build_shared=no
7933 # QNX uses GNU C++, but need to define -shared option too, otherwise
7935 lt_prog_compiler_pic='-fPIC -shared'
7939 if test -d /usr/nec; then
7940 lt_prog_compiler_pic=-Kconform_pic
7945 lt_prog_compiler_pic='-fPIC'
7949 case $cc_basename in
7950 nvcc*) # Cuda Compiler Driver 2.2
7951 lt_prog_compiler_wl='-Xlinker '
7952 if test -n "$lt_prog_compiler_pic"; then
7953 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7958 # PORTME Check for flag to pass linker flags through the system compiler.
7961 lt_prog_compiler_wl='-Wl,'
7962 if test "$host_cpu" = ia64; then
7963 # AIX 5 now supports IA64 processor
7964 lt_prog_compiler_static='-Bstatic'
7966 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7970 mingw* | cygwin* | pw32* | os2* | cegcc*)
7971 # This hack is so that the source file can tell whether it is being
7972 # built for inclusion in a dll (and should export symbols for example).
7973 lt_prog_compiler_pic='-DDLL_EXPORT'
7976 hpux9* | hpux10* | hpux11*)
7977 lt_prog_compiler_wl='-Wl,'
7978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7985 lt_prog_compiler_pic='+Z'
7988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7989 lt_prog_compiler_static='${wl}-a ${wl}archive'
7992 irix5* | irix6* | nonstopux*)
7993 lt_prog_compiler_wl='-Wl,'
7994 # PIC (with -KPIC) is the default.
7995 lt_prog_compiler_static='-non_shared'
7998 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7999 case $cc_basename in
8000 # old Intel for x86_64 which still supported -KPIC.
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-KPIC'
8004 lt_prog_compiler_static='-static'
8006 # icc used to be incompatible with GCC.
8007 # ICC 10 doesn't accept -KPIC any more.
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-fPIC'
8011 lt_prog_compiler_static='-static'
8013 # Lahey Fortran 8.1.
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='--shared'
8017 lt_prog_compiler_static='--static'
8020 # NAG Fortran compiler
8021 lt_prog_compiler_wl='-Wl,-Wl,,'
8022 lt_prog_compiler_pic='-PIC'
8023 lt_prog_compiler_static='-Bstatic'
8025 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8026 # Portland Group compilers (*not* the Pentium gcc compiler,
8027 # which looks to be a dead project)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-fpic'
8030 lt_prog_compiler_static='-Bstatic'
8033 lt_prog_compiler_wl='-Wl,'
8034 # All Alpha code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8037 xl* | bgxl* | bgf* | mpixl*)
8038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-qpic'
8041 lt_prog_compiler_static='-qstaticlink'
8044 case `$CC -V 2>&1 | sed 5q` in
8045 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_wl=''
8051 *Sun\ F* | *Sun*Fortran*)
8052 lt_prog_compiler_pic='-KPIC'
8053 lt_prog_compiler_static='-Bstatic'
8054 lt_prog_compiler_wl='-Qoption ld '
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
8060 lt_prog_compiler_wl='-Wl,'
8062 *Intel*\ [CF]*Compiler*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-fPIC'
8065 lt_prog_compiler_static='-static'
8068 lt_prog_compiler_wl='-Wl,'
8069 lt_prog_compiler_pic='-fpic'
8070 lt_prog_compiler_static='-Bstatic'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8083 # QNX uses GNU C++, but need to define -shared option too, otherwise
8085 lt_prog_compiler_pic='-fPIC -shared'
8088 osf3* | osf4* | osf5*)
8089 lt_prog_compiler_wl='-Wl,'
8090 # All OSF/1 code is PIC.
8091 lt_prog_compiler_static='-non_shared'
8095 lt_prog_compiler_static='-non_shared'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-Bstatic'
8101 case $cc_basename in
8102 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8103 lt_prog_compiler_wl='-Qoption ld ';;
8105 lt_prog_compiler_wl='-Wl,';;
8110 lt_prog_compiler_wl='-Qoption ld '
8111 lt_prog_compiler_pic='-PIC'
8112 lt_prog_compiler_static='-Bstatic'
8115 sysv4 | sysv4.2uw2* | sysv4.3*)
8116 lt_prog_compiler_wl='-Wl,'
8117 lt_prog_compiler_pic='-KPIC'
8118 lt_prog_compiler_static='-Bstatic'
8122 if test -d /usr/nec ;then
8123 lt_prog_compiler_pic='-Kconform_pic'
8124 lt_prog_compiler_static='-Bstatic'
8128 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-KPIC'
8131 lt_prog_compiler_static='-Bstatic'
8135 lt_prog_compiler_wl='-Wl,'
8136 lt_prog_compiler_can_build_shared=no
8140 lt_prog_compiler_pic='-pic'
8141 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_can_build_shared=no
8151 # For platforms which do not support PIC, -DPIC is meaningless:
8153 lt_prog_compiler_pic=
8156 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8161 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8162 if ${lt_cv_prog_compiler_pic+:} false; then :
8163 $as_echo_n "(cached) " >&6
8165 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8168 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8169 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8172 # Check to make sure the PIC flag actually works.
8174 if test -n "$lt_prog_compiler_pic"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8176 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8177 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 lt_cv_prog_compiler_pic_works=no
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8183 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8184 # Insert the option either (1) after the last *FLAGS variable, or
8185 # (2) before a word containing "conftest.", or (3) at the end.
8186 # Note that $ac_compile itself does not contain backslashes and begins
8187 # with a dollar sign (not a hyphen), so the echo should work correctly.
8188 # The option is referenced via a variable to avoid confusing sed.
8189 lt_compile=`echo "$ac_compile" | $SED \
8190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192 -e 's:$: $lt_compiler_flag:'`
8193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8194 (eval "$lt_compile" 2>conftest.err)
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 if (exit $ac_status) && test -s "$ac_outfile"; then
8199 # The compiler can only warn and ignore the option if not recognized
8200 # So say no if there are warnings other than the usual output.
8201 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8202 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204 lt_cv_prog_compiler_pic_works=yes
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8211 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8213 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8214 case $lt_prog_compiler_pic in
8216 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8219 lt_prog_compiler_pic=
8220 lt_prog_compiler_can_build_shared=no
8236 # Check to make sure the static flag actually works.
8238 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8240 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8241 if ${lt_cv_prog_compiler_static_works+:} false; then :
8242 $as_echo_n "(cached) " >&6
8244 lt_cv_prog_compiler_static_works=no
8245 save_LDFLAGS="$LDFLAGS"
8246 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8247 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8249 # The linker can only warn and ignore the option if not recognized
8250 # So say no if there are warnings
8251 if test -s conftest.err; then
8252 # Append any errors to the config.log.
8253 cat conftest.err 1>&5
8254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8256 if diff conftest.exp conftest.er2 >/dev/null; then
8257 lt_cv_prog_compiler_static_works=yes
8260 lt_cv_prog_compiler_static_works=yes
8264 LDFLAGS="$save_LDFLAGS"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8268 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8270 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8273 lt_prog_compiler_static=
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8284 if ${lt_cv_prog_compiler_c_o+:} false; then :
8285 $as_echo_n "(cached) " >&6
8287 lt_cv_prog_compiler_c_o=no
8288 $RM -r conftest 2>/dev/null
8292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8294 lt_compiler_flag="-o out/conftest2.$ac_objext"
8295 # Insert the option either (1) after the last *FLAGS variable, or
8296 # (2) before a word containing "conftest.", or (3) at the end.
8297 # Note that $ac_compile itself does not contain backslashes and begins
8298 # with a dollar sign (not a hyphen), so the echo should work correctly.
8299 lt_compile=`echo "$ac_compile" | $SED \
8300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8302 -e 's:$: $lt_compiler_flag:'`
8303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8304 (eval "$lt_compile" 2>out/conftest.err)
8306 cat out/conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8310 # The compiler can only warn and ignore the option if not recognized
8311 # So say no if there are warnings
8312 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_c_o=yes
8320 # SGI C++ compiler will create directory out/ii_files/ for
8321 # template instantiation
8322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8323 $RM out/* && rmdir out
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if ${lt_cv_prog_compiler_c_o+:} false; then :
8340 $as_echo_n "(cached) " >&6
8342 lt_cv_prog_compiler_c_o=no
8343 $RM -r conftest 2>/dev/null
8347 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349 lt_compiler_flag="-o out/conftest2.$ac_objext"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 lt_compile=`echo "$ac_compile" | $SED \
8355 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357 -e 's:$: $lt_compiler_flag:'`
8358 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8359 (eval "$lt_compile" 2>out/conftest.err)
8361 cat out/conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings
8367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8368 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_c_o=yes
8375 # SGI C++ compiler will create directory out/ii_files/ for
8376 # template instantiation
8377 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378 $RM out/* && rmdir out
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8390 hard_links="nottested"
8391 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8392 # do not overwrite the value of need_locks provided by the user
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8394 $as_echo_n "checking if we can lock with hard links... " >&6; }
8397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8399 ln conftest.a conftest.b 2>&5 || hard_links=no
8400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8402 $as_echo "$hard_links" >&6; }
8403 if test "$hard_links" = no; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8405 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8418 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8421 allow_undefined_flag=
8422 always_export_symbols=no
8424 archive_expsym_cmds=
8425 compiler_needs_object=no
8426 enable_shared_with_static_runtimes=no
8427 export_dynamic_flag_spec=
8428 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8429 hardcode_automatic=no
8431 hardcode_direct_absolute=no
8432 hardcode_libdir_flag_spec=
8433 hardcode_libdir_separator=
8435 hardcode_shlibpath_var=unsupported
8437 link_all_deplibs=unknown
8440 old_archive_from_new_cmds=
8441 old_archive_from_expsyms_cmds=
8442 thread_safe_flag_spec=
8443 whole_archive_flag_spec=
8444 # include_expsyms should be a list of space-separated symbols to be *always*
8445 # included in the symbol list
8447 # exclude_expsyms can be an extended regexp of symbols to exclude
8448 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450 # as well as any symbol that contains `d'.
8451 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8452 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453 # platforms (ab)use it in PIC code, but their linkers get confused if
8454 # the symbol is explicitly referenced. Since portable code cannot
8455 # rely on this symbol name, it's probably fine to never include it in
8456 # preloaded symbol tables.
8457 # Exclude shared library initialization/finalization symbols.
8458 extract_expsyms_cmds=
8461 cygwin* | mingw* | pw32* | cegcc*)
8462 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8463 # When not using gcc, we currently assume that we are using
8464 # Microsoft Visual C++.
8465 if test "$GCC" != yes; then
8470 # we just hope/assume this is gcc and not c89 (= MSVC++)
8480 # On some targets, GNU ld is compatible enough with the native linker
8481 # that we're better off using the native interface for both.
8482 lt_use_gnu_ld_interface=no
8483 if test "$with_gnu_ld" = yes; then
8486 # The AIX port of GNU ld has always aspired to compatibility
8487 # with the native linker. However, as the warning in the GNU ld
8488 # block says, versions before 2.19.5* couldn't really create working
8489 # shared libraries, regardless of the interface used.
8490 case `$LD -v 2>&1` in
8491 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8492 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8493 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8495 lt_use_gnu_ld_interface=yes
8500 lt_use_gnu_ld_interface=yes
8505 if test "$lt_use_gnu_ld_interface" = yes; then
8506 # If archive_cmds runs LD, not CC, wlarc should be empty
8509 # Set some defaults for GNU ld with shared library support. These
8510 # are reset later if shared libraries are not supported. Putting them
8511 # here allows them to be overridden if necessary.
8512 runpath_var=LD_RUN_PATH
8513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8514 export_dynamic_flag_spec='${wl}--export-dynamic'
8515 # ancient GNU ld didn't support --whole-archive et. al.
8516 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8517 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8519 whole_archive_flag_spec=
8521 supports_anon_versioning=no
8522 case `$LD -v 2>&1` in
8523 *GNU\ gold*) supports_anon_versioning=yes ;;
8524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8527 *\ 2.11.*) ;; # other 2.11 versions
8528 *) supports_anon_versioning=yes ;;
8531 # See if GNU ld supports shared libraries.
8534 # On AIX/PPC, the GNU linker is very broken
8535 if test "$host_cpu" != ia64; then
8539 *** Warning: the GNU linker, at least up to release 2.19, is reported
8540 *** to be unable to reliably create shared libraries on AIX.
8541 *** Therefore, libtool is disabling shared libraries support. If you
8542 *** really care for shared libraries, you may want to install binutils
8543 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8544 *** You will then need to restart the configuration process.
8553 # see comment about AmigaOS4 .so support
8554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8555 archive_expsym_cmds=''
8558 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)'
8559 hardcode_libdir_flag_spec='-L$libdir'
8560 hardcode_minus_L=yes
8566 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8567 allow_undefined_flag=unsupported
8568 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8569 # support --undefined. This deserves some investigation. FIXME
8570 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 cygwin* | mingw* | pw32* | cegcc*)
8577 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8578 # as there is no search path for DLLs.
8579 hardcode_libdir_flag_spec='-L$libdir'
8580 export_dynamic_flag_spec='${wl}--export-all-symbols'
8581 allow_undefined_flag=unsupported
8582 always_export_symbols=no
8583 enable_shared_with_static_runtimes=yes
8584 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'
8585 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8587 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8589 # If the export-symbols file already is a .def file (1st line
8590 # is EXPORTS), use it as is; otherwise, prepend...
8591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8592 cp $export_symbols $output_objdir/$soname.def;
8594 echo EXPORTS > $output_objdir/$soname.def;
8595 cat $export_symbols >> $output_objdir/$soname.def;
8597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 link_all_deplibs=yes
8610 hardcode_shlibpath_var=no
8611 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8612 export_dynamic_flag_spec='${wl}-E'
8613 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8614 # Instead, shared libraries are loaded at an image base (0x10000000 by
8615 # default) and relocated if they conflict, which is a slow very memory
8616 # consuming and fragmenting process. To avoid this, we pick a random,
8617 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8618 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8620 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'
8623 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8625 if test "$host_os" = linux-dietlibc; then
8626 case $cc_basename in
8627 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8630 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8631 && test "$tmp_diet" = no
8633 tmp_addflag=' $pic_flag'
8634 tmp_sharedflag='-shared'
8635 case $cc_basename,$host_cpu in
8636 pgcc*) # Portland Group C compiler
8637 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'
8638 tmp_addflag=' $pic_flag'
8640 pgf77* | pgf90* | pgf95* | pgfortran*)
8641 # Portland Group f77 and f90 compilers
8642 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'
8643 tmp_addflag=' $pic_flag -Mnomain' ;;
8644 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8645 tmp_addflag=' -i_dynamic' ;;
8646 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8647 tmp_addflag=' -i_dynamic -nofor_main' ;;
8648 ifc* | ifort*) # Intel Fortran compiler
8649 tmp_addflag=' -nofor_main' ;;
8650 lf95*) # Lahey Fortran 8.1
8651 whole_archive_flag_spec=
8652 tmp_sharedflag='--shared' ;;
8653 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8654 tmp_sharedflag='-qmkshrobj'
8656 nvcc*) # Cuda Compiler Driver 2.2
8657 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'
8658 compiler_needs_object=yes
8661 case `$CC -V 2>&1 | sed 5q` in
8662 *Sun\ C*) # Sun C 5.9
8663 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'
8664 compiler_needs_object=yes
8665 tmp_sharedflag='-G' ;;
8666 *Sun\ F*) # Sun Fortran 8.3
8667 tmp_sharedflag='-G' ;;
8669 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 if test "x$supports_anon_versioning" = xyes; then
8672 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8673 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8674 echo "local: *; };" >> $output_objdir/$libname.ver~
8675 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8678 case $cc_basename in
8679 xlf* | bgf* | bgxlf* | mpixlf*)
8680 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8681 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8683 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes; then
8685 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8699 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8720 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8729 case `$LD -v 2>&1` in
8730 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var=no
8767 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 if test "$ld_shlibs" = no; then
8778 hardcode_libdir_flag_spec=
8779 export_dynamic_flag_spec=
8780 whole_archive_flag_spec=
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8786 allow_undefined_flag=unsupported
8787 always_export_symbols=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8795 hardcode_direct=unsupported
8800 if test "$host_cpu" = ia64; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking=no
8804 exp_sym_flag='-Bexport'
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 # Also, AIX nm treats weak defined symbols like other global
8810 # defined symbols, whereas GNU nm marks them as "W".
8811 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8812 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'
8814 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'
8816 aix_use_runtimelinking=no
8818 # Test if we are trying to use run time linking or normal
8819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820 # need to do runtime linking.
8821 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8822 for ld_flag in $LDFLAGS; do
8823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824 aix_use_runtimelinking=yes
8831 exp_sym_flag='-bexport'
8832 no_entry_flag='-bnoentry'
8835 # When large executables or shared objects are built, AIX ld can
8836 # have problems creating the table of contents. If linking a library
8837 # or program results in "error TOC overflow" add -mminimal-toc to
8838 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8839 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8843 hardcode_direct_absolute=yes
8844 hardcode_libdir_separator=':'
8845 link_all_deplibs=yes
8846 file_list_spec='${wl}-f,'
8848 if test "$GCC" = yes; then
8849 case $host_os in aix4.[012]|aix4.[012].*)
8850 # We only want to do this on AIX 4.2 and lower, the check
8851 # below for broken collect2 doesn't work under 4.3+
8852 collect2name=`${CC} -print-prog-name=collect2`
8853 if test -f "$collect2name" &&
8854 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8856 # We have reworked collect2
8859 # We have old collect2
8860 hardcode_direct=unsupported
8861 # It fails to find uninstalled libraries when the uninstalled
8862 # path is not listed in the libpath. Setting hardcode_minus_L
8863 # to unsupported forces relinking
8864 hardcode_minus_L=yes
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_libdir_separator=
8870 shared_flag='-shared'
8871 if test "$aix_use_runtimelinking" = yes; then
8872 shared_flag="$shared_flag "'${wl}-G'
8876 if test "$host_cpu" = ia64; then
8877 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8878 # chokes on -Wl,-G. The following line is correct:
8881 if test "$aix_use_runtimelinking" = yes; then
8882 shared_flag='${wl}-G'
8884 shared_flag='${wl}-bM:SRE'
8889 export_dynamic_flag_spec='${wl}-bexpall'
8890 # It seems that -bexpall does not export symbols beginning with
8891 # underscore (_), so it is better to generate a list of symbols to export.
8892 always_export_symbols=yes
8893 if test "$aix_use_runtimelinking" = yes; then
8894 # Warning - without using the other runtime loading flags (-brtl),
8895 # -berok will link without error, but may produce a broken library.
8896 allow_undefined_flag='-berok'
8897 # Determine the default libpath from the value encoded in an
8899 if test "${lt_cv_aix_libpath+set}" = set; then
8900 aix_libpath=$lt_cv_aix_libpath
8902 if ${lt_cv_aix_libpath_+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8916 if ac_fn_c_try_link "$LINENO"; then :
8918 lt_aix_libpath_sed='
8919 /Import File Strings/,/^$/ {
8921 s/^0 *\([^ ]*\) *$/\1/
8925 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8926 # Check for a 64-bit object if we didn't find anything.
8927 if test -z "$lt_cv_aix_libpath_"; then
8928 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 if test -z "$lt_cv_aix_libpath_"; then
8934 lt_cv_aix_libpath_="/usr/lib:/lib"
8939 aix_libpath=$lt_cv_aix_libpath_
8942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943 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"
8945 if test "$host_cpu" = ia64; then
8946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8947 allow_undefined_flag="-z nodefs"
8948 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"
8950 # Determine the default libpath from the value encoded in an
8952 if test "${lt_cv_aix_libpath+set}" = set; then
8953 aix_libpath=$lt_cv_aix_libpath
8955 if ${lt_cv_aix_libpath_+:} false; then :
8956 $as_echo_n "(cached) " >&6
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8969 if ac_fn_c_try_link "$LINENO"; then :
8971 lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8974 s/^0 *\([^ ]*\) *$/\1/
8978 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 # Check for a 64-bit object if we didn't find anything.
8980 if test -z "$lt_cv_aix_libpath_"; then
8981 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 if test -z "$lt_cv_aix_libpath_"; then
8987 lt_cv_aix_libpath_="/usr/lib:/lib"
8992 aix_libpath=$lt_cv_aix_libpath_
8995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8996 # Warning - without using the other run time loading flags,
8997 # -berok will link without error, but may produce a broken library.
8998 no_undefined_flag=' ${wl}-bernotok'
8999 allow_undefined_flag=' ${wl}-berok'
9000 if test "$with_gnu_ld" = yes; then
9001 # We only use this code for GNU lds that support --whole-archive.
9002 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9004 # Exported symbols can be pulled into shared objects from archives
9005 whole_archive_flag_spec='$convenience'
9007 archive_cmds_need_lc=yes
9008 # This is similar to how AIX traditionally builds its shared libraries.
9009 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'
9017 # see comment about AmigaOS4 .so support
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds=''
9022 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)'
9023 hardcode_libdir_flag_spec='-L$libdir'
9024 hardcode_minus_L=yes
9030 export_dynamic_flag_spec=-rdynamic
9033 cygwin* | mingw* | pw32* | cegcc*)
9034 # When not using gcc, we currently assume that we are using
9035 # Microsoft Visual C++.
9036 # hardcode_libdir_flag_spec is actually meaningless, as there is
9037 # no search path for DLLs.
9038 case $cc_basename in
9041 hardcode_libdir_flag_spec=' '
9042 allow_undefined_flag=unsupported
9043 always_export_symbols=yes
9045 # Tell ltmain to make .lib files, not .a files.
9047 # Tell ltmain to make .dll files, not .so files.
9049 # FIXME: Setting linknames here is a bad hack.
9050 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9052 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9054 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9058 # The linker will not automatically build a static lib if we build a DLL.
9059 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9060 enable_shared_with_static_runtimes=yes
9061 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9062 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9064 old_postinstall_cmds='chmod 644 $oldlib'
9065 postlink_cmds='lt_outputfile="@OUTPUT@"~
9066 lt_tool_outputfile="@TOOL_OUTPUT@"~
9067 case $lt_outputfile in
9070 lt_outputfile="$lt_outputfile.exe"
9071 lt_tool_outputfile="$lt_tool_outputfile.exe"
9074 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9075 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9076 $RM "$lt_outputfile.manifest";
9080 # Assume MSVC wrapper
9081 hardcode_libdir_flag_spec=' '
9082 allow_undefined_flag=unsupported
9083 # Tell ltmain to make .lib files, not .a files.
9085 # Tell ltmain to make .dll files, not .so files.
9087 # FIXME: Setting linknames here is a bad hack.
9088 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9089 # The linker will automatically build a .lib file if we build a DLL.
9090 old_archive_from_new_cmds='true'
9091 # FIXME: Should let the user specify the lib program.
9092 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9093 enable_shared_with_static_runtimes=yes
9098 darwin* | rhapsody*)
9101 archive_cmds_need_lc=no
9103 hardcode_automatic=yes
9104 hardcode_shlibpath_var=unsupported
9105 if test "$lt_cv_ld_force_load" = "yes"; then
9106 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\"`'
9109 whole_archive_flag_spec=''
9111 link_all_deplibs=yes
9112 allow_undefined_flag="$_lt_dar_allow_undefined"
9113 case $cc_basename in
9114 ifort*) _lt_dar_can_shared=yes ;;
9115 *) _lt_dar_can_shared=$GCC ;;
9117 if test "$_lt_dar_can_shared" = "yes"; then
9118 output_verbose_link_cmd=func_echo_all
9119 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9120 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9121 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}"
9122 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}"
9131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_shlibpath_var=no
9136 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9137 # support. Future versions do this automatically, but an explicit c++rt0.o
9138 # does not break anything, and helps significantly (at the cost of a little
9141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9142 hardcode_libdir_flag_spec='-R$libdir'
9144 hardcode_shlibpath_var=no
9147 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9151 hardcode_minus_L=yes
9152 hardcode_shlibpath_var=no
9155 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9156 freebsd* | dragonfly*)
9157 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9158 hardcode_libdir_flag_spec='-R$libdir'
9160 hardcode_shlibpath_var=no
9164 if test "$GCC" = yes; then
9165 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'
9167 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'
9169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9170 hardcode_libdir_separator=:
9173 # hardcode_minus_L: Not really in the search PATH,
9174 # but as the default location of the library.
9175 hardcode_minus_L=yes
9176 export_dynamic_flag_spec='${wl}-E'
9180 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9181 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185 if test "$with_gnu_ld" = no; then
9186 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9187 hardcode_libdir_separator=:
9189 hardcode_direct_absolute=yes
9190 export_dynamic_flag_spec='${wl}-E'
9191 # hardcode_minus_L: Not really in the search PATH,
9192 # but as the default location of the library.
9193 hardcode_minus_L=yes
9198 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9201 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9220 # Older versions of the 11.00 compiler do not understand -b yet
9221 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9223 $as_echo_n "checking if $CC understands -b... " >&6; }
9224 if ${lt_cv_prog_compiler__b+:} false; then :
9225 $as_echo_n "(cached) " >&6
9227 lt_cv_prog_compiler__b=no
9228 save_LDFLAGS="$LDFLAGS"
9229 LDFLAGS="$LDFLAGS -b"
9230 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9231 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9232 # The linker can only warn and ignore the option if not recognized
9233 # So say no if there are warnings
9234 if test -s conftest.err; then
9235 # Append any errors to the config.log.
9236 cat conftest.err 1>&5
9237 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9239 if diff conftest.exp conftest.er2 >/dev/null; then
9240 lt_cv_prog_compiler__b=yes
9243 lt_cv_prog_compiler__b=yes
9247 LDFLAGS="$save_LDFLAGS"
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9251 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9253 if test x"$lt_cv_prog_compiler__b" = xyes; then
9254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9262 if test "$with_gnu_ld" = no; then
9263 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9264 hardcode_libdir_separator=:
9269 hardcode_shlibpath_var=no
9273 hardcode_direct_absolute=yes
9274 export_dynamic_flag_spec='${wl}-E'
9276 # hardcode_minus_L: Not really in the search PATH,
9277 # but as the default location of the library.
9278 hardcode_minus_L=yes
9284 irix5* | irix6* | nonstopux*)
9285 if test "$GCC" = yes; then
9286 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'
9287 # Try to use the -exported_symbol ld option, if it does not
9288 # work, assume that -exports_file does not work either and
9289 # implicitly export all symbols.
9290 # This should be the same for all languages, so no per-tag cache variable.
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9292 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9293 if ${lt_cv_irix_exported_symbol+:} false; then :
9294 $as_echo_n "(cached) " >&6
9296 save_LDFLAGS="$LDFLAGS"
9297 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 int foo (void) { return 0; }
9302 if ac_fn_c_try_link "$LINENO"; then :
9303 lt_cv_irix_exported_symbol=yes
9305 lt_cv_irix_exported_symbol=no
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309 LDFLAGS="$save_LDFLAGS"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9312 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9313 if test "$lt_cv_irix_exported_symbol" = yes; then
9314 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'
9317 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'
9318 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'
9320 archive_cmds_need_lc='no'
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 hardcode_libdir_separator=:
9324 link_all_deplibs=yes
9328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9331 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9333 hardcode_libdir_flag_spec='-R$libdir'
9335 hardcode_shlibpath_var=no
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9342 hardcode_libdir_separator=:
9343 hardcode_shlibpath_var=no
9350 if test -f /usr/libexec/ld.so; then
9352 hardcode_shlibpath_var=no
9353 hardcode_direct_absolute=yes
9354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9355 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9357 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358 export_dynamic_flag_spec='${wl}-E'
9361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_libdir_flag_spec='-R$libdir'
9366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 hardcode_minus_L=yes
9379 allow_undefined_flag=unsupported
9380 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'
9381 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9385 if test "$GCC" = yes; then
9386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9387 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'
9389 allow_undefined_flag=' -expect_unresolved \*'
9390 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'
9392 archive_cmds_need_lc='no'
9393 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394 hardcode_libdir_separator=:
9397 osf4* | osf5*) # as osf3* with the addition of -msym flag
9398 if test "$GCC" = yes; then
9399 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9400 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'
9401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9403 allow_undefined_flag=' -expect_unresolved \*'
9404 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'
9405 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~
9406 $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'
9408 # Both c and cxx compiler support -rpath directly
9409 hardcode_libdir_flag_spec='-rpath $libdir'
9411 archive_cmds_need_lc='no'
9412 hardcode_libdir_separator=:
9416 no_undefined_flag=' -z defs'
9417 if test "$GCC" = yes; then
9419 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9421 $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'
9423 case `$CC -V 2>&1` in
9426 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9428 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9432 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9434 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9438 hardcode_libdir_flag_spec='-R$libdir'
9439 hardcode_shlibpath_var=no
9441 solaris2.[0-5] | solaris2.[0-5].*) ;;
9443 # The compiler driver will combine and reorder linker options,
9444 # but understands `-z linker_flag'. GCC discards it without `$wl',
9445 # but is careful enough not to reorder.
9446 # Supported since Solaris 2.6 (maybe 2.5.1?)
9447 if test "$GCC" = yes; then
9448 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9450 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9454 link_all_deplibs=yes
9458 if test "x$host_vendor" = xsequent; then
9459 # Use $CC to link under sequent, because it throws in some extra .o
9460 # files that make .init and .fini sections work.
9461 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9463 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_libdir_flag_spec='-L$libdir'
9467 hardcode_minus_L=yes
9468 hardcode_shlibpath_var=no
9472 case $host_vendor in
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_direct=yes # is this really true???
9478 ## LD is ld it makes a PLAMLIB
9479 ## CC just makes a GrossModule.
9480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9481 reload_cmds='$CC -r -o $output$reload_objs'
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9489 runpath_var='LD_RUN_PATH'
9490 hardcode_shlibpath_var=no
9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9495 hardcode_shlibpath_var=no
9496 export_dynamic_flag_spec='-Bexport'
9500 if test -d /usr/nec; then
9501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502 hardcode_shlibpath_var=no
9503 runpath_var=LD_RUN_PATH
9504 hardcode_runpath_var=yes
9509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9510 no_undefined_flag='${wl}-z,text'
9511 archive_cmds_need_lc=no
9512 hardcode_shlibpath_var=no
9513 runpath_var='LD_RUN_PATH'
9515 if test "$GCC" = yes; then
9516 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9517 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 sysv5* | sco3.2v5* | sco5v6*)
9525 # Note: We can NOT use -z defs as we might desire, because we do not
9526 # link with -lc, and that would cause any symbols used from libc to
9527 # always be unresolved, which means just about no library would
9528 # ever link correctly. If we're not using GNU ld we use -z text
9529 # though, which does catch some bad symbols but isn't as heavy-handed
9531 no_undefined_flag='${wl}-z,text'
9532 allow_undefined_flag='${wl}-z,nodefs'
9533 archive_cmds_need_lc=no
9534 hardcode_shlibpath_var=no
9535 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9536 hardcode_libdir_separator=':'
9537 link_all_deplibs=yes
9538 export_dynamic_flag_spec='${wl}-Bexport'
9539 runpath_var='LD_RUN_PATH'
9541 if test "$GCC" = yes; then
9542 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9543 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9546 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_shlibpath_var=no
9561 if test x$host_vendor = xsni; then
9563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9564 export_dynamic_flag_spec='${wl}-Blargedynsym'
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9571 $as_echo "$ld_shlibs" >&6; }
9572 test "$ld_shlibs" = no && can_build_shared=no
9574 with_gnu_ld=$with_gnu_ld
9591 # Do we need to explicitly link libc?
9593 case "x$archive_cmds_need_lc" in
9595 # Assume -lc should be added
9596 archive_cmds_need_lc=yes
9598 if test "$enable_shared" = yes && test "$GCC" = yes; then
9599 case $archive_cmds in
9601 # FIXME: we may have to deal with multi-command sequences.
9604 # Test whether the compiler implicitly links with -lc since on some
9605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9606 # to ld, don't add -lc before -lgcc.
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9608 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9609 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9610 $as_echo_n "(cached) " >&6
9613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9616 (eval $ac_compile) 2>&5
9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; } 2>conftest.err; then
9622 libobjs=conftest.$ac_objext
9624 wl=$lt_prog_compiler_wl
9625 pic_flag=$lt_prog_compiler_pic
9631 lt_save_allow_undefined_flag=$allow_undefined_flag
9632 allow_undefined_flag=
9633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9634 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9637 test $ac_status = 0; }
9639 lt_cv_archive_cmds_need_lc=no
9641 lt_cv_archive_cmds_need_lc=yes
9643 allow_undefined_flag=$lt_save_allow_undefined_flag
9645 cat conftest.err 1>&5
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9651 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9652 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9813 if test "$GCC" = yes; then
9815 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9816 *) lt_awk_arg="/^libraries:/" ;;
9819 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9820 *) lt_sed_strip_eq="s,=/,/,g" ;;
9822 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9823 case $lt_search_path_spec in
9825 # if the path contains ";" then we assume it to be the separator
9826 # otherwise default to the standard path separator (i.e. ":") - it is
9827 # assumed that no part of a normal pathname contains ";" but that should
9828 # okay in the real world where ";" in dirpaths is itself problematic.
9829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9835 # Ok, now we have the path, separated by spaces, we can step through it
9836 # and add multilib dir if necessary.
9837 lt_tmp_lt_search_path_spec=
9838 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9839 for lt_sys_path in $lt_search_path_spec; do
9840 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9841 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9843 test -d "$lt_sys_path" && \
9844 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9847 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9848 BEGIN {RS=" "; FS="/|\n";} {
9851 for (lt_i = NF; lt_i > 0; lt_i--) {
9852 if ($lt_i != "" && $lt_i != ".") {
9853 if ($lt_i == "..") {
9856 if (lt_count == 0) {
9857 lt_foo="/" $lt_i lt_foo;
9864 if (lt_foo != "") { lt_freq[lt_foo]++; }
9865 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9867 # AWK program above erroneously prepends '/' to C:/dos/paths
9870 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9871 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9873 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9875 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9878 libname_spec='lib$name'
9886 shlibpath_overrides_runpath=unknown
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 need_lib_prefix=unknown
9891 hardcode_into_libs=no
9893 # when you set need_version to no, make sure it does not cause -set_version
9894 # flags to be left without arguments
9895 need_version=unknown
9899 version_type=linux # correct to gnu/linux during the next big refactor
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9901 shlibpath_var=LIBPATH
9903 # AIX 3 has no versioning support, so we append a major version to the name.
9904 soname_spec='${libname}${release}${shared_ext}$major'
9908 version_type=linux # correct to gnu/linux during the next big refactor
9911 hardcode_into_libs=yes
9912 if test "$host_cpu" = ia64; then
9913 # AIX 5 supports IA64
9914 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9915 shlibpath_var=LD_LIBRARY_PATH
9917 # With GCC up to 2.95.x, collect2 would create an import file
9918 # for dependence libraries. The import file would start with
9919 # the line `#! .'. This would cause the generated library to
9920 # depend on `.', always an invalid library. This was fixed in
9921 # development snapshots of GCC prior to 3.0.
9923 aix4 | aix4.[01] | aix4.[01].*)
9924 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9926 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9933 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9934 # soname into executable. Probably we can add versioning support to
9935 # collect2, so additional links can be useful in future.
9936 if test "$aix_use_runtimelinking" = yes; then
9937 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9938 # instead of lib<name>.a to let people know that these are not
9939 # typical AIX shared libraries.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 # We preserve .a as extension for shared libraries through AIX4.2
9943 # and later when we are not doing run time linking.
9944 library_names_spec='${libname}${release}.a $libname.a'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LIBPATH
9954 # Since July 2007 AmigaOS4 officially supports .so libraries.
9955 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 library_names_spec='$libname.ixlibrary $libname.a'
9960 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9961 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'
9967 library_names_spec='${libname}${shared_ext}'
9968 dynamic_linker="$host_os ld.so"
9969 shlibpath_var=LIBRARY_PATH
9973 version_type=linux # correct to gnu/linux during the next big refactor
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9978 shlibpath_var=LD_LIBRARY_PATH
9979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9981 # the default ld.so.conf also contains /usr/contrib/lib and
9982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9983 # libtool to hard-code these into programs
9986 cygwin* | mingw* | pw32* | cegcc*)
9987 version_type=windows
9992 case $GCC,$cc_basename in
9995 library_names_spec='$libname.dll.a'
9996 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9997 postinstall_cmds='base_file=`basename \${file}`~
9998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9999 dldir=$destdir/`dirname \$dlpath`~
10000 test -d \$dldir || mkdir -p \$dldir~
10001 $install_prog $dir/$dlname \$dldir/$dlname~
10002 chmod a+x \$dldir/$dlname~
10003 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10004 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10006 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10007 dlpath=$dir/\$dldll~
10009 shlibpath_overrides_runpath=yes
10013 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10014 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10019 # MinGW DLLs use traditional 'lib' prefix
10020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 # pw32 DLLs use 'pw' prefix rather than 'lib'
10024 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10027 dynamic_linker='Win32 ld.exe'
10032 libname_spec='$name'
10033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10034 library_names_spec='${libname}.dll.lib'
10038 sys_lib_search_path_spec=
10041 for lt_path in $LIB
10044 # Let DOS variable expansion print the short 8.3 style file name.
10045 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10046 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10049 # Convert to MSYS style.
10050 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10053 # Convert to unix form, then to dos form, then back to unix form
10054 # but this time dos style (no spaces!) so that the unix form looks
10055 # like /cygdrive/c/PROGRA~1:/cygdr...
10056 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10057 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10058 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10061 sys_lib_search_path_spec="$LIB"
10062 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10063 # It is most probably a Windows format PATH.
10064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10068 # FIXME: find the short name or the path components, as spaces are
10069 # common. (e.g. "Program Files" -> "PROGRA~1")
10073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10074 postinstall_cmds='base_file=`basename \${file}`~
10075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10076 dldir=$destdir/`dirname \$dlpath`~
10077 test -d \$dldir || mkdir -p \$dldir~
10078 $install_prog $dir/$dlname \$dldir/$dlname'
10079 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10080 dlpath=$dir/\$dldll~
10082 shlibpath_overrides_runpath=yes
10083 dynamic_linker='Win32 link.exe'
10087 # Assume MSVC wrapper
10088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10089 dynamic_linker='Win32 ld.exe'
10092 # FIXME: first we should search . and the directory the executable is in
10096 darwin* | rhapsody*)
10097 dynamic_linker="$host_os dyld"
10098 version_type=darwin
10101 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10102 soname_spec='${libname}${release}${major}$shared_ext'
10103 shlibpath_overrides_runpath=yes
10104 shlibpath_var=DYLD_LIBRARY_PATH
10105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10107 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10112 version_type=linux # correct to gnu/linux during the next big refactor
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 shlibpath_var=LD_LIBRARY_PATH
10120 freebsd* | dragonfly*)
10121 # DragonFly does not have aout. When/if they implement a new
10122 # versioning mechanism, adjust this.
10123 if test -x /usr/bin/objformat; then
10124 objformat=`/usr/bin/objformat`
10127 freebsd[23].*) objformat=aout ;;
10128 *) objformat=elf ;;
10131 version_type=freebsd-$objformat
10132 case $version_type in
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10143 shlibpath_var=LD_LIBRARY_PATH
10146 shlibpath_overrides_runpath=yes
10148 freebsd3.[01]* | freebsdelf3.[01]*)
10149 shlibpath_overrides_runpath=yes
10150 hardcode_into_libs=yes
10152 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10153 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10154 shlibpath_overrides_runpath=no
10155 hardcode_into_libs=yes
10157 *) # from 4.6 on, and DragonFly
10158 shlibpath_overrides_runpath=yes
10159 hardcode_into_libs=yes
10165 version_type=linux # correct to gnu/linux during the next big refactor
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10169 soname_spec='${libname}${release}${shared_ext}$major'
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=no
10172 hardcode_into_libs=yes
10176 version_type=linux # correct to gnu/linux during the next big refactor
10179 dynamic_linker="$host_os runtime_loader"
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10184 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10185 hardcode_into_libs=yes
10188 hpux9* | hpux10* | hpux11*)
10189 # Give a soname corresponding to the major version so that dld.sl refuses to
10190 # link against other versions.
10197 hardcode_into_libs=yes
10198 dynamic_linker="$host_os dld.so"
10199 shlibpath_var=LD_LIBRARY_PATH
10200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 if test "X$HPUX_IA64_MODE" = X32; then
10204 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10212 hardcode_into_libs=yes
10213 dynamic_linker="$host_os dld.sl"
10214 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10215 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10223 dynamic_linker="$host_os dld.sl"
10224 shlibpath_var=SHLIB_PATH
10225 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10227 soname_spec='${libname}${release}${shared_ext}$major'
10230 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10231 postinstall_cmds='chmod 555 $lib'
10232 # or fails outright, so override atomically:
10233 install_override_mode=555
10237 version_type=linux # correct to gnu/linux during the next big refactor
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=no
10245 hardcode_into_libs=yes
10248 irix5* | irix6* | nonstopux*)
10250 nonstopux*) version_type=nonstopux ;;
10252 if test "$lt_cv_prog_gnu_ld" = yes; then
10253 version_type=linux # correct to gnu/linux during the next big refactor
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263 irix5* | nonstopux*)
10264 libsuff= shlibsuff=
10267 case $LD in # libtool.m4 will add one of these switches to LD
10268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10269 libsuff= shlibsuff= libmagic=32-bit;;
10270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10271 libsuff=32 shlibsuff=N32 libmagic=N32;;
10272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10273 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10274 *) libsuff= shlibsuff= libmagic=never-match;;
10278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10279 shlibpath_overrides_runpath=no
10280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10282 hardcode_into_libs=yes
10285 # No shared lib support for Linux oldld, aout, or coff.
10286 linux*oldld* | linux*aout* | linux*coff*)
10290 # This must be glibc/ELF.
10291 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10292 version_type=linux # correct to gnu/linux during the next big refactor
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=no
10301 # Some binutils ld are patched to set DT_RUNPATH
10302 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10303 $as_echo_n "(cached) " >&6
10305 lt_cv_shlibpath_overrides_runpath=no
10306 save_LDFLAGS=$LDFLAGS
10307 save_libdir=$libdir
10308 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10309 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10323 lt_cv_shlibpath_overrides_runpath=yes
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LDFLAGS=$save_LDFLAGS
10329 libdir=$save_libdir
10333 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10335 # This implies no fast_install, which is unacceptable.
10336 # Some rework will be needed to allow for fast_install
10337 # before this can be enabled.
10338 hardcode_into_libs=yes
10340 # Add ABI-specific directories to the system library path.
10341 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10343 # Append ld.so.conf contents to the search path
10344 if test -f /etc/ld.so.conf; then
10345 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' ' '`
10346 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10350 # We used to test for /lib/ld.so.1 and disable shared libraries on
10351 # powerpc, because MkLinux only supported shared libraries with the
10352 # GNU dynamic linker. Since this was broken with cross compilers,
10353 # most powerpc-linux boxes support dynamic linking these days and
10354 # people can always --disable-shared, the test was removed, and we
10355 # assume the GNU/Linux dynamic linker is in use.
10356 dynamic_linker='GNU/Linux ld.so'
10363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10366 dynamic_linker='NetBSD (a.out) ld.so'
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 dynamic_linker='NetBSD ld.elf_so'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=yes
10374 hardcode_into_libs=yes
10378 version_type=linux # correct to gnu/linux during the next big refactor
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 shlibpath_overrides_runpath=no
10392 hardcode_into_libs=yes
10393 dynamic_linker='ldqnx.so'
10398 sys_lib_dlsearch_path_spec="/usr/lib"
10400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10403 *) need_version=no ;;
10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10410 openbsd2.[89] | openbsd2.[89].*)
10411 shlibpath_overrides_runpath=no
10414 shlibpath_overrides_runpath=yes
10418 shlibpath_overrides_runpath=yes
10423 libname_spec='$name'
10426 library_names_spec='$libname${shared_ext} $libname.a'
10427 dynamic_linker='OS/2 ld.exe'
10428 shlibpath_var=LIBPATH
10431 osf3* | osf4* | osf5*)
10435 soname_spec='${libname}${release}${shared_ext}$major'
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10447 version_type=linux # correct to gnu/linux during the next big refactor
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 shlibpath_var=LD_LIBRARY_PATH
10453 shlibpath_overrides_runpath=yes
10454 hardcode_into_libs=yes
10455 # ldd complains unless libraries are executable
10456 postinstall_cmds='chmod +x $lib'
10461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10463 shlibpath_var=LD_LIBRARY_PATH
10464 shlibpath_overrides_runpath=yes
10465 if test "$with_gnu_ld" = yes; then
10472 version_type=linux # correct to gnu/linux during the next big refactor
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474 soname_spec='${libname}${release}${shared_ext}$major'
10475 shlibpath_var=LD_LIBRARY_PATH
10476 case $host_vendor in
10478 shlibpath_overrides_runpath=no
10480 runpath_var=LD_RUN_PATH
10488 shlibpath_overrides_runpath=no
10489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10495 if test -d /usr/nec ;then
10496 version_type=linux # correct to gnu/linux during the next big refactor
10497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10498 soname_spec='$libname${shared_ext}.$major'
10499 shlibpath_var=LD_LIBRARY_PATH
10503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10504 version_type=freebsd-elf
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10512 if test "$with_gnu_ld" = yes; then
10513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10522 sys_lib_dlsearch_path_spec='/usr/lib'
10526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10527 version_type=linux # correct to gnu/linux during the next big refactor
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 shlibpath_var=LD_LIBRARY_PATH
10532 shlibpath_overrides_runpath=no
10533 hardcode_into_libs=yes
10537 version_type=linux # correct to gnu/linux during the next big refactor
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539 soname_spec='${libname}${release}${shared_ext}$major'
10540 shlibpath_var=LD_LIBRARY_PATH
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10548 $as_echo "$dynamic_linker" >&6; }
10549 test "$dynamic_linker" = no && can_build_shared=no
10551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10552 if test "$GCC" = yes; then
10553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10556 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10557 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10560 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10655 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10657 if test -n "$hardcode_libdir_flag_spec" ||
10658 test -n "$runpath_var" ||
10659 test "X$hardcode_automatic" = "Xyes" ; then
10661 # We can hardcode non-existent directories.
10662 if test "$hardcode_direct" != no &&
10663 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10664 # have to relink, otherwise we might link with an installed library
10665 # when we should be linking with a yet-to-be-installed one
10666 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10667 test "$hardcode_minus_L" != no; then
10668 # Linking always hardcodes the temporary library directory.
10669 hardcode_action=relink
10671 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10672 hardcode_action=immediate
10675 # We cannot hardcode anything, or else we can only hardcode existing
10677 hardcode_action=unsupported
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10680 $as_echo "$hardcode_action" >&6; }
10682 if test "$hardcode_action" = relink ||
10683 test "$inherit_rpath" = yes; then
10684 # Fast installation is not supported
10685 enable_fast_install=no
10686 elif test "$shlibpath_overrides_runpath" = yes ||
10687 test "$enable_shared" = no; then
10688 # Fast installation is not necessary
10689 enable_fast_install=needless
10697 if test "x$enable_dlopen" != xyes; then
10698 enable_dlopen=unknown
10699 enable_dlopen_self=unknown
10700 enable_dlopen_self_static=unknown
10707 lt_cv_dlopen="load_add_on"
10709 lt_cv_dlopen_self=yes
10712 mingw* | pw32* | cegcc*)
10713 lt_cv_dlopen="LoadLibrary"
10718 lt_cv_dlopen="dlopen"
10723 # if libdl is installed we need to link against it
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10725 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10726 if ${ac_cv_lib_dl_dlopen+:} false; then :
10727 $as_echo_n "(cached) " >&6
10729 ac_check_lib_save_LIBS=$LIBS
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 ac_cv_lib_dl_dlopen=yes
10752 ac_cv_lib_dl_dlopen=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10759 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10760 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10764 lt_cv_dlopen="dyld"
10766 lt_cv_dlopen_self=yes
10773 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10774 if test "x$ac_cv_func_shl_load" = xyes; then :
10775 lt_cv_dlopen="shl_load"
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10778 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10779 if ${ac_cv_lib_dld_shl_load+:} false; then :
10780 $as_echo_n "(cached) " >&6
10782 ac_check_lib_save_LIBS=$LIBS
10784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10785 /* end confdefs.h. */
10787 /* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
10797 return shl_load ();
10802 if ac_fn_c_try_link "$LINENO"; then :
10803 ac_cv_lib_dld_shl_load=yes
10805 ac_cv_lib_dld_shl_load=no
10807 rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 LIBS=$ac_check_lib_save_LIBS
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10812 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10813 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10814 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10816 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10817 if test "x$ac_cv_func_dlopen" = xyes; then :
10818 lt_cv_dlopen="dlopen"
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10822 if ${ac_cv_lib_dl_dlopen+:} false; then :
10823 $as_echo_n "(cached) " >&6
10825 ac_check_lib_save_LIBS=$LIBS
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10830 /* Override any GCC internal prototype to avoid an error.
10831 Use char because int might match the return type of a GCC
10832 builtin and then its argument prototype would still apply. */
10845 if ac_fn_c_try_link "$LINENO"; then :
10846 ac_cv_lib_dl_dlopen=yes
10848 ac_cv_lib_dl_dlopen=no
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10856 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10857 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10860 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10861 if ${ac_cv_lib_svld_dlopen+:} false; then :
10862 $as_echo_n "(cached) " >&6
10864 ac_check_lib_save_LIBS=$LIBS
10865 LIBS="-lsvld $LIBS"
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10884 if ac_fn_c_try_link "$LINENO"; then :
10885 ac_cv_lib_svld_dlopen=yes
10887 ac_cv_lib_svld_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10894 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10895 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10899 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10900 if ${ac_cv_lib_dld_dld_link+:} false; then :
10901 $as_echo_n "(cached) " >&6
10903 ac_check_lib_save_LIBS=$LIBS
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 /* Override any GCC internal prototype to avoid an error.
10909 Use char because int might match the return type of a GCC
10910 builtin and then its argument prototype would still apply. */
10918 return dld_link ();
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 ac_cv_lib_dld_dld_link=yes
10926 ac_cv_lib_dld_dld_link=no
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10933 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10934 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10935 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10956 if test "x$lt_cv_dlopen" != xno; then
10962 case $lt_cv_dlopen in
10964 save_CPPFLAGS="$CPPFLAGS"
10965 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10967 save_LDFLAGS="$LDFLAGS"
10968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10971 LIBS="$lt_cv_dlopen_libs $LIBS"
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10974 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10975 if ${lt_cv_dlopen_self+:} false; then :
10976 $as_echo_n "(cached) " >&6
10978 if test "$cross_compiling" = yes; then :
10979 lt_cv_dlopen_self=cross
10981 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10982 lt_status=$lt_dlunknown
10983 cat > conftest.$ac_ext <<_LT_EOF
10984 #line $LINENO "configure"
10985 #include "confdefs.h"
10994 # define LT_DLGLOBAL RTLD_GLOBAL
10997 # define LT_DLGLOBAL DL_GLOBAL
10999 # define LT_DLGLOBAL 0
11003 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11004 find out it does not work in some platform. */
11005 #ifndef LT_DLLAZY_OR_NOW
11007 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11010 # define LT_DLLAZY_OR_NOW DL_LAZY
11013 # define LT_DLLAZY_OR_NOW RTLD_NOW
11016 # define LT_DLLAZY_OR_NOW DL_NOW
11018 # define LT_DLLAZY_OR_NOW 0
11025 /* When -fvisbility=hidden is used, assume the code has been annotated
11026 correspondingly for the symbols needed. */
11027 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11028 int fnord () __attribute__((visibility("default")));
11031 int fnord () { return 42; }
11034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11035 int status = $lt_dlunknown;
11039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11042 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11043 else puts (dlerror ());
11045 /* dlclose (self); */
11053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11054 (eval $ac_link) 2>&5
11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11057 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11058 (./conftest; exit; ) >&5 2>/dev/null
11060 case x$lt_status in
11061 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11062 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11063 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11066 # compilation failed
11067 lt_cv_dlopen_self=no
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11075 $as_echo "$lt_cv_dlopen_self" >&6; }
11077 if test "x$lt_cv_dlopen_self" = xyes; then
11078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11080 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11081 if ${lt_cv_dlopen_self_static+:} false; then :
11082 $as_echo_n "(cached) " >&6
11084 if test "$cross_compiling" = yes; then :
11085 lt_cv_dlopen_self_static=cross
11087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11088 lt_status=$lt_dlunknown
11089 cat > conftest.$ac_ext <<_LT_EOF
11090 #line $LINENO "configure"
11091 #include "confdefs.h"
11100 # define LT_DLGLOBAL RTLD_GLOBAL
11103 # define LT_DLGLOBAL DL_GLOBAL
11105 # define LT_DLGLOBAL 0
11109 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11110 find out it does not work in some platform. */
11111 #ifndef LT_DLLAZY_OR_NOW
11113 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11116 # define LT_DLLAZY_OR_NOW DL_LAZY
11119 # define LT_DLLAZY_OR_NOW RTLD_NOW
11122 # define LT_DLLAZY_OR_NOW DL_NOW
11124 # define LT_DLLAZY_OR_NOW 0
11131 /* When -fvisbility=hidden is used, assume the code has been annotated
11132 correspondingly for the symbols needed. */
11133 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11134 int fnord () __attribute__((visibility("default")));
11137 int fnord () { return 42; }
11140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11141 int status = $lt_dlunknown;
11145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11149 else puts (dlerror ());
11151 /* dlclose (self); */
11159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11160 (eval $ac_link) 2>&5
11162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11164 (./conftest; exit; ) >&5 2>/dev/null
11166 case x$lt_status in
11167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11172 # compilation failed
11173 lt_cv_dlopen_self_static=no
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11181 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11184 CPPFLAGS="$save_CPPFLAGS"
11185 LDFLAGS="$save_LDFLAGS"
11190 case $lt_cv_dlopen_self in
11191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11192 *) enable_dlopen_self=unknown ;;
11195 case $lt_cv_dlopen_self_static in
11196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11197 *) enable_dlopen_self_static=unknown ;;
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11220 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11221 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11222 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11223 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225 $as_echo "yes" >&6; }
11227 # FIXME - insert some real tests, host_os isn't really good enough
11230 if test -n "$STRIP" ; then
11231 striplib="$STRIP -x"
11232 old_striplib="$STRIP -S"
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11234 $as_echo "yes" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237 $as_echo "no" >&6; }
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11242 $as_echo "no" >&6; }
11258 # Report which library types will actually be built
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11260 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11262 $as_echo "$can_build_shared" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11265 $as_echo_n "checking whether to build shared libraries... " >&6; }
11266 test "$can_build_shared" = "no" && enable_shared=no
11268 # On AIX, shared libraries and static libraries use the same namespace, and
11269 # are all built from PIC.
11272 test "$enable_shared" = yes && enable_static=no
11273 if test -n "$RANLIB"; then
11274 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11275 postinstall_cmds='$RANLIB $lib'
11280 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11281 test "$enable_shared" = yes && enable_static=no
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11286 $as_echo "$enable_shared" >&6; }
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11289 $as_echo_n "checking whether to build static libraries... " >&6; }
11290 # Make sure either enable_shared or enable_static is yes.
11291 test "$enable_shared" = yes || enable_static=yes
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11293 $as_echo "$enable_static" >&6; }
11300 ac_cpp='$CPP $CPPFLAGS'
11301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11321 ac_config_commands="$ac_config_commands libtool"
11326 # Only expand once:
11332 # Checks for programs.
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338 if test -n "$ac_tool_prefix"; then
11339 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 $as_echo_n "checking for $ac_word... " >&6; }
11343 if ${ac_cv_prog_CC+:} false; then :
11344 $as_echo_n "(cached) " >&6
11346 if test -n "$CC"; then
11347 ac_cv_prog_CC="$CC" # Let the user override the test.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11356 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 if test -n "$CC"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11369 $as_echo "$CC" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11377 if test -z "$ac_cv_prog_CC"; then
11379 # Extract the first word of "gcc", so it can be a program name with args.
11380 set dummy gcc; ac_word=$2
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 $as_echo_n "checking for $ac_word... " >&6; }
11383 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11384 $as_echo_n "(cached) " >&6
11386 if test -n "$ac_ct_CC"; then
11387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11390 for as_dir in $PATH
11393 test -z "$as_dir" && as_dir=.
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11396 ac_cv_prog_ac_ct_CC="gcc"
11397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11407 if test -n "$ac_ct_CC"; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11409 $as_echo "$ac_ct_CC" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11412 $as_echo "no" >&6; }
11415 if test "x$ac_ct_CC" = x; then
11418 case $cross_compiling:$ac_tool_warned in
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11422 ac_tool_warned=yes ;;
11427 CC="$ac_cv_prog_CC"
11430 if test -z "$CC"; then
11431 if test -n "$ac_tool_prefix"; then
11432 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11433 set dummy ${ac_tool_prefix}cc; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 $as_echo_n "checking for $ac_word... " >&6; }
11436 if ${ac_cv_prog_CC+:} false; then :
11437 $as_echo_n "(cached) " >&6
11439 if test -n "$CC"; then
11440 ac_cv_prog_CC="$CC" # Let the user override the test.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11449 ac_cv_prog_CC="${ac_tool_prefix}cc"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11460 if test -n "$CC"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11462 $as_echo "$CC" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11465 $as_echo "no" >&6; }
11471 if test -z "$CC"; then
11472 # Extract the first word of "cc", so it can be a program name with args.
11473 set dummy cc; ac_word=$2
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475 $as_echo_n "checking for $ac_word... " >&6; }
11476 if ${ac_cv_prog_CC+:} false; then :
11477 $as_echo_n "(cached) " >&6
11479 if test -n "$CC"; then
11480 ac_cv_prog_CC="$CC" # Let the user override the test.
11482 ac_prog_rejected=no
11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484 for as_dir in $PATH
11487 test -z "$as_dir" && as_dir=.
11488 for ac_exec_ext in '' $ac_executable_extensions; do
11489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11491 ac_prog_rejected=yes
11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502 if test $ac_prog_rejected = yes; then
11503 # We found a bogon in the path, so make sure we never use it.
11504 set dummy $ac_cv_prog_CC
11506 if test $# != 0; then
11507 # We chose a different compiler from the bogus one.
11508 # However, it has the same basename, so the bogon will be chosen
11509 # first if we set CC to just the basename; use the full file name.
11511 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11517 if test -n "$CC"; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11519 $as_echo "$CC" >&6; }
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11527 if test -z "$CC"; then
11528 if test -n "$ac_tool_prefix"; then
11529 for ac_prog in cl.exe
11531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534 $as_echo_n "checking for $ac_word... " >&6; }
11535 if ${ac_cv_prog_CC+:} false; then :
11536 $as_echo_n "(cached) " >&6
11538 if test -n "$CC"; then
11539 ac_cv_prog_CC="$CC" # Let the user override the test.
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11548 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 if test -n "$CC"; then
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11561 $as_echo "$CC" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11568 test -n "$CC" && break
11571 if test -z "$CC"; then
11573 for ac_prog in cl.exe
11575 # Extract the first word of "$ac_prog", so it can be a program name with args.
11576 set dummy $ac_prog; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 if test -n "$ac_ct_CC"; then
11583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11592 ac_cv_prog_ac_ct_CC="$ac_prog"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11603 if test -n "$ac_ct_CC"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11605 $as_echo "$ac_ct_CC" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11612 test -n "$ac_ct_CC" && break
11615 if test "x$ac_ct_CC" = x; then
11618 case $cross_compiling:$ac_tool_warned in
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11622 ac_tool_warned=yes ;;
11631 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11633 as_fn_error $? "no acceptable C compiler found in \$PATH
11634 See \`config.log' for more details" "$LINENO" 5; }
11636 # Provide some information about the compiler.
11637 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11640 for ac_option in --version -v -V -qversion; do
11641 { { ac_try="$ac_compiler $ac_option >&5"
11642 case "(($ac_try" in
11643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11644 *) ac_try_echo=$ac_try;;
11646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11647 $as_echo "$ac_try_echo"; } >&5
11648 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11650 if test -s conftest.err; then
11652 ... rest of stderr output deleted ...
11653 10q' conftest.err >conftest.er1
11654 cat conftest.er1 >&5
11656 rm -f conftest.er1 conftest.err
11657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658 test $ac_status = 0; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11662 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11663 if ${ac_cv_c_compiler_gnu+:} false; then :
11664 $as_echo_n "(cached) " >&6
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11680 if ac_fn_c_try_compile "$LINENO"; then :
11681 ac_compiler_gnu=yes
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11690 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11691 if test $ac_compiler_gnu = yes; then
11696 ac_test_CFLAGS=${CFLAGS+set}
11697 ac_save_CFLAGS=$CFLAGS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11699 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11700 if ${ac_cv_prog_cc_g+:} false; then :
11701 $as_echo_n "(cached) " >&6
11703 ac_save_c_werror_flag=$ac_c_werror_flag
11704 ac_c_werror_flag=yes
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11718 if ac_fn_c_try_compile "$LINENO"; then :
11719 ac_cv_prog_cc_g=yes
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11733 if ac_fn_c_try_compile "$LINENO"; then :
11736 ac_c_werror_flag=$ac_save_c_werror_flag
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11749 if ac_fn_c_try_compile "$LINENO"; then :
11750 ac_cv_prog_cc_g=yes
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 ac_c_werror_flag=$ac_save_c_werror_flag
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11760 $as_echo "$ac_cv_prog_cc_g" >&6; }
11761 if test "$ac_test_CFLAGS" = set; then
11762 CFLAGS=$ac_save_CFLAGS
11763 elif test $ac_cv_prog_cc_g = yes; then
11764 if test "$GCC" = yes; then
11770 if test "$GCC" = yes; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11777 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11778 if ${ac_cv_prog_cc_c89+:} false; then :
11779 $as_echo_n "(cached) " >&6
11781 ac_cv_prog_cc_c89=no
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <stdarg.h>
11787 #include <sys/types.h>
11788 #include <sys/stat.h>
11789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11790 struct buf { int x; };
11791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11792 static char *e (p, i)
11798 static char *f (char * (*g) (char **, int), char **p, ...)
11803 s = g (p, va_arg (v,int));
11808 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11809 function prototypes and stuff, but not '\xHH' hex character constants.
11810 These don't provoke an error unfortunately, instead are silently treated
11811 as 'x'. The following induces an error, until -std is added to get
11812 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11813 array size at least. It's necessary to write '\x00'==0 to get something
11814 that's true only with -std. */
11815 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11817 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11818 inside strings and character constants. */
11820 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11822 int test (int i, double x);
11823 struct s1 {int (*f) (int a);};
11824 struct s2 {int (*f) (double a);};
11825 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11831 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11837 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11839 CC="$ac_save_CC $ac_arg"
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841 ac_cv_prog_cc_c89=$ac_arg
11843 rm -f core conftest.err conftest.$ac_objext
11844 test "x$ac_cv_prog_cc_c89" != "xno" && break
11846 rm -f conftest.$ac_ext
11851 case "x$ac_cv_prog_cc_c89" in
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11854 $as_echo "none needed" >&6; } ;;
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11857 $as_echo "unsupported" >&6; } ;;
11859 CC="$CC $ac_cv_prog_cc_c89"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11861 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11863 if test "x$ac_cv_prog_cc_c89" != xno; then :
11868 ac_cpp='$CPP $CPPFLAGS'
11869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11873 depcc="$CC" am_compiler_list=
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11876 $as_echo_n "checking dependency style of $depcc... " >&6; }
11877 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11878 $as_echo_n "(cached) " >&6
11880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11881 # We make a subdir and do the tests there. Otherwise we can end up
11882 # making bogus files that we don't know about and never remove. For
11883 # instance it was reported that on HP-UX the gcc test will end up
11884 # making a dummy file named `D' -- because `-MD' means `put the output
11886 rm -rf conftest.dir
11888 # Copy depcomp to subdir because otherwise we won't find it if we're
11889 # using a relative directory.
11890 cp "$am_depcomp" conftest.dir
11892 # We will build objects and dependencies in a subdirectory because
11893 # it helps to detect inapplicable dependency modes. For instance
11894 # both Tru64's cc and ICC support -MD to output dependencies as a
11895 # side effect of compilation, but ICC will put the dependencies in
11896 # the current directory while Tru64 will put them in the object
11900 am_cv_CC_dependencies_compiler_type=none
11901 if test "$am_compiler_list" = ""; then
11902 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11904 am__universal=false
11905 case " $depcc " in #(
11906 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11909 for depmode in $am_compiler_list; do
11910 # Setup a source with many dependencies, because some compilers
11911 # like to wrap large dependency lists on column 80 (with \), and
11912 # we should not choose a depcomp mode which is confused by this.
11914 # We need to recreate these files for each test, as the compiler may
11915 # overwrite some of them when testing with obscure command lines.
11916 # This happens at least with the AIX C compiler.
11918 for i in 1 2 3 4 5 6; do
11919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11920 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11921 # Solaris 8's {/usr,}/bin/sh.
11922 touch sub/conftst$i.h
11924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11926 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11927 # mode. It turns out that the SunPro C++ compiler does not properly
11928 # handle `-M -o', and we need to detect this. Also, some Intel
11929 # versions had trouble with output in subdirs
11930 am__obj=sub/conftest.${OBJEXT-o}
11931 am__minus_obj="-o $am__obj"
11934 # This depmode causes a compiler race in universal mode.
11935 test "$am__universal" = false || continue
11938 # after this tag, mechanisms are not by side-effect, so they'll
11939 # only be used when explicitly requested
11940 if test "x$enable_dependency_tracking" = xyes; then
11946 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11947 # This compiler won't grok `-c -o', but also, the minuso test has
11948 # not run yet. These depmodes are late enough in the game, and
11949 # so weak that their functioning should not be impacted.
11950 am__obj=conftest.${OBJEXT-o}
11955 if depmode=$depmode \
11956 source=sub/conftest.c object=$am__obj \
11957 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11958 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11959 >/dev/null 2>conftest.err &&
11960 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11961 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11962 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11963 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11964 # icc doesn't choke on unknown options, it will just issue warnings
11965 # or remarks (even with -Werror). So we grep stderr for any message
11966 # that says an option was ignored or not supported.
11967 # When given -MP, icc 7.0 and 7.1 complain thusly:
11968 # icc: Command line warning: ignoring option '-M'; no argument required
11969 # The diagnosis changed in icc 8.0:
11970 # icc: Command line remark: option '-MP' not supported
11971 if (grep 'ignoring option' conftest.err ||
11972 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11973 am_cv_CC_dependencies_compiler_type=$depmode
11980 rm -rf conftest.dir
11982 am_cv_CC_dependencies_compiler_type=none
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11987 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11988 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11991 test "x$enable_dependency_tracking" != xno \
11992 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11993 am__fastdepCC_TRUE=
11994 am__fastdepCC_FALSE='#'
11996 am__fastdepCC_TRUE='#'
11997 am__fastdepCC_FALSE=
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12003 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12005 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12006 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12007 $as_echo_n "(cached) " >&6
12009 cat >conftest.make <<\_ACEOF
12012 @echo '@@@%%%=$(MAKE)=@@@%%%'
12014 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12016 *@@@%%%=?*=@@@%%%*)
12017 eval ac_cv_prog_make_${ac_make}_set=yes;;
12019 eval ac_cv_prog_make_${ac_make}_set=no;;
12021 rm -f conftest.make
12023 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12025 $as_echo "yes" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 SET_MAKE="MAKE=${MAKE-make}"
12039 # Check whether --enable-openssl was given.
12040 if test "${enable_openssl+set}" = set; then :
12041 enableval=$enable_openssl; openssl=yes
12046 if test "x$openssl" = "xyes" ; then
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
12048 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
12049 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
12050 $as_echo_n "(cached) " >&6
12052 ac_check_lib_save_LIBS=$LIBS
12054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055 /* end confdefs.h. */
12057 /* Override any GCC internal prototype to avoid an error.
12058 Use char because int might match the return type of a GCC
12059 builtin and then its argument prototype would still apply. */
12063 char SSL_library_init ();
12067 return SSL_library_init ();
12072 if ac_fn_c_try_link "$LINENO"; then :
12073 ac_cv_lib_ssl_SSL_library_init=yes
12075 ac_cv_lib_ssl_SSL_library_init=no
12077 rm -f core conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
12079 LIBS=$ac_check_lib_save_LIBS
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12082 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12083 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12084 cat >>confdefs.h <<_ACEOF
12085 #define HAVE_LIBSSL 1
12092 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12098 # Check whether --enable-nofork was given.
12099 if test "${enable_nofork+set}" = set; then :
12100 enableval=$enable_nofork; nofork=yes
12105 if test "x$nofork" = "xyes" ; then
12106 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12108 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12109 if test "x$ac_cv_type_pid_t" = xyes; then :
12113 cat >>confdefs.h <<_ACEOF
12119 for ac_header in vfork.h
12121 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12122 if test "x$ac_cv_header_vfork_h" = xyes; then :
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_VFORK_H 1
12131 for ac_func in fork vfork
12133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12136 cat >>confdefs.h <<_ACEOF
12137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12143 if test "x$ac_cv_func_fork" = xyes; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12145 $as_echo_n "checking for working fork... " >&6; }
12146 if ${ac_cv_func_fork_works+:} false; then :
12147 $as_echo_n "(cached) " >&6
12149 if test "$cross_compiling" = yes; then :
12150 ac_cv_func_fork_works=cross
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12154 $ac_includes_default
12159 /* By Ruediger Kuhlmann. */
12160 return fork () < 0;
12166 if ac_fn_c_try_run "$LINENO"; then :
12167 ac_cv_func_fork_works=yes
12169 ac_cv_func_fork_works=no
12171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12172 conftest.$ac_objext conftest.beam conftest.$ac_ext
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12177 $as_echo "$ac_cv_func_fork_works" >&6; }
12180 ac_cv_func_fork_works=$ac_cv_func_fork
12182 if test "x$ac_cv_func_fork_works" = xcross; then
12184 *-*-amigaos* | *-*-msdosdjgpp*)
12185 # Override, as these systems have only a dummy fork() stub
12186 ac_cv_func_fork_works=no
12189 ac_cv_func_fork_works=yes
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12193 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12195 ac_cv_func_vfork_works=$ac_cv_func_vfork
12196 if test "x$ac_cv_func_vfork" = xyes; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12198 $as_echo_n "checking for working vfork... " >&6; }
12199 if ${ac_cv_func_vfork_works+:} false; then :
12200 $as_echo_n "(cached) " >&6
12202 if test "$cross_compiling" = yes; then :
12203 ac_cv_func_vfork_works=cross
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 /* Thanks to Paul Eggert for this test. */
12208 $ac_includes_default
12209 #include <sys/wait.h>
12210 #ifdef HAVE_VFORK_H
12211 # include <vfork.h>
12213 /* On some sparc systems, changes by the child to local and incoming
12214 argument registers are propagated back to the parent. The compiler
12215 is told about this with #include <vfork.h>, but some compilers
12216 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12217 static variable whose address is put into a register that is
12218 clobbered by the vfork. */
12221 sparc_address_test (int arg)
12223 sparc_address_test (arg) int arg;
12226 static pid_t child;
12244 pid_t parent = getpid ();
12247 sparc_address_test (0);
12252 /* Here is another test for sparc vfork register problems. This
12253 test uses lots of local variables, at least as many local
12254 variables as main has allocated so far including compiler
12255 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12256 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12257 reuse the register of parent for one of the local variables,
12258 since it will think that parent can't possibly be used any more
12259 in this routine. Assigning to the local variable will thus
12260 munge parent in the parent process. */
12262 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12263 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12264 /* Convince the compiler that p..p7 are live; otherwise, it might
12265 use the same hardware register for all 8 local variables. */
12266 if (p != p1 || p != p2 || p != p3 || p != p4
12267 || p != p5 || p != p6 || p != p7)
12270 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12271 from child file descriptors. If the child closes a descriptor
12272 before it execs or exits, this munges the parent's descriptor
12273 as well. Test for this by closing stdout in the child. */
12274 _exit(close(fileno(stdout)) != 0);
12279 while (wait(&status) != child)
12282 /* Was there some problem with vforking? */
12285 /* Did the child fail? (This shouldn't happen.) */
12288 /* Did the vfork/compiler bug occur? */
12289 || parent != getpid()
12291 /* Did the file descriptor bug occur? */
12292 || fstat(fileno(stdout), &st) != 0
12297 if ac_fn_c_try_run "$LINENO"; then :
12298 ac_cv_func_vfork_works=yes
12300 ac_cv_func_vfork_works=no
12302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12303 conftest.$ac_objext conftest.beam conftest.$ac_ext
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12308 $as_echo "$ac_cv_func_vfork_works" >&6; }
12311 if test "x$ac_cv_func_fork_works" = xcross; then
12312 ac_cv_func_vfork_works=$ac_cv_func_vfork
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12314 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12317 if test "x$ac_cv_func_vfork_works" = xyes; then
12319 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12323 $as_echo "#define vfork fork" >>confdefs.h
12326 if test "x$ac_cv_func_fork_works" = xyes; then
12328 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12337 # Check whether --enable-libcrypto was given.
12338 if test "${enable_libcrypto+set}" = set; then :
12339 enableval=$enable_libcrypto; libcrypto=yes
12344 if test "x$libcrypto" = "xyes" ; then
12345 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12346 LDFLAGS="$LDFLAGS -lcrypto"
12348 if test x$libcrypto = xyes; then
12350 LIBCRYPTO_FALSE='#'
12361 # Check whether --enable-x-google-mux was given.
12362 if test "${enable_x_google_mux+set}" = set; then :
12363 enableval=$enable_x_google_mux; x_google_mux=yes
12367 if test "x$x_google_mux" = "xyes" ; then
12368 CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
12370 if test x$x_google_mux = xyes; then
12371 EXT_GOOGLE_MUX_TRUE=
12372 EXT_GOOGLE_MUX_FALSE='#'
12374 EXT_GOOGLE_MUX_TRUE='#'
12375 EXT_GOOGLE_MUX_FALSE=
12382 # Check whether --enable-mingw was given.
12383 if test "${enable_mingw+set}" = set; then :
12384 enableval=$enable_mingw; mingw=yes
12390 if test "x$mingw" = "xyes" ; then
12391 CFLAGS="$CFLAGS -DLWS_MINGW_SUPPORT"
12393 if test x$mingw = xyes; then
12406 # Check whether --with-client-cert-dir was given.
12407 if test "${with_client_cert_dir+set}" = set; then :
12408 withval=$with_client_cert_dir; clientcertdir=$withval
12410 clientcertdir=/etc/pki/tls/certs/
12422 # Check whether --enable-noping was given.
12423 if test "${enable_noping+set}" = set; then :
12424 enableval=$enable_noping; noping=yes
12429 if test x$noping = xyes; then
12440 # Checks for header files.
12441 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12444 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12445 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12446 cat >>confdefs.h <<_ACEOF
12447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 # Checks for typedefs, structures, and compiler characteristics.
12456 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12457 if test "x$ac_cv_type_size_t" = xyes; then :
12461 cat >>confdefs.h <<_ACEOF
12462 #define size_t unsigned int
12468 # Checks for library functions.
12470 for ac_header in stdlib.h
12472 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12473 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12474 cat >>confdefs.h <<_ACEOF
12475 #define HAVE_STDLIB_H 1
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12483 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12484 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12485 $as_echo_n "(cached) " >&6
12487 if test "$cross_compiling" = yes; then :
12488 ac_cv_func_malloc_0_nonnull=no
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12492 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12493 # include <stdlib.h>
12501 return ! malloc (0);
12506 if ac_fn_c_try_run "$LINENO"; then :
12507 ac_cv_func_malloc_0_nonnull=yes
12509 ac_cv_func_malloc_0_nonnull=no
12511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12512 conftest.$ac_objext conftest.beam conftest.$ac_ext
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12517 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12518 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12520 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12523 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12525 case " $LIBOBJS " in
12526 *" malloc.$ac_objext "* ) ;;
12527 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12532 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12537 for ac_header in stdlib.h
12539 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12540 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12541 cat >>confdefs.h <<_ACEOF
12542 #define HAVE_STDLIB_H 1
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12550 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12551 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 if test "$cross_compiling" = yes; then :
12555 ac_cv_func_realloc_0_nonnull=no
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12560 # include <stdlib.h>
12568 return ! realloc (0, 0);
12573 if ac_fn_c_try_run "$LINENO"; then :
12574 ac_cv_func_realloc_0_nonnull=yes
12576 ac_cv_func_realloc_0_nonnull=no
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12579 conftest.$ac_objext conftest.beam conftest.$ac_ext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12584 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12585 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12587 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12590 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12592 case " $LIBOBJS " in
12593 *" realloc.$ac_objext "* ) ;;
12594 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12599 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12604 for ac_func in bzero memset socket strerror
12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12608 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12609 cat >>confdefs.h <<_ACEOF
12610 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12617 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12620 cat >confcache <<\_ACEOF
12621 # This file is a shell script that caches the results of configure
12622 # tests run on this system so they can be shared between configure
12623 # scripts and configure runs, see configure's option --config-cache.
12624 # It is not useful on other systems. If it contains results you don't
12625 # want to keep, you may remove or edit it.
12627 # config.status only pays attention to the cache file if you give it
12628 # the --recheck option to rerun configure.
12630 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12631 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12632 # following values.
12636 # The following way of writing the cache mishandles newlines in values,
12637 # but we know of no workaround that is simple, portable, and efficient.
12638 # So, we kill variables containing newlines.
12639 # Ultrix sh set writes to stderr and can't be redirected directly,
12640 # and sets the high bit in the cache file unless we assign to the vars.
12642 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12643 eval ac_val=\$$ac_var
12647 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12648 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12651 _ | IFS | as_nl) ;; #(
12652 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12653 *) { eval $ac_var=; unset $ac_var;} ;;
12659 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12660 *${as_nl}ac_space=\ *)
12661 # `set' does not quote correctly, so add quotes: double-quote
12662 # substitution turns \\\\ into \\, and sed turns \\ into \.
12665 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12668 # `set' quotes correctly as required by POSIX, so do not add quotes.
12669 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12678 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12680 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12682 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12683 if test -w "$cache_file"; then
12684 if test "x$cache_file" != "x/dev/null"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12686 $as_echo "$as_me: updating cache $cache_file" >&6;}
12687 if test ! -f "$cache_file" || test -h "$cache_file"; then
12688 cat confcache >"$cache_file"
12690 case $cache_file in #(
12692 mv -f confcache "$cache_file"$$ &&
12693 mv -f "$cache_file"$$ "$cache_file" ;; #(
12695 mv -f confcache "$cache_file" ;;
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12701 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12707 # Let make expand exec_prefix.
12708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12710 DEFS=-DHAVE_CONFIG_H
12715 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12716 # 1. Remove the extension, and $U if already installed.
12717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12720 # will be set to the directory where LIBOBJS objects are built.
12721 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12722 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12724 LIBOBJS=$ac_libobjs
12726 LTLIBOBJS=$ac_ltlibobjs
12729 if test -n "$EXEEXT"; then
12731 am__EXEEXT_FALSE='#'
12733 am__EXEEXT_TRUE='#'
12737 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12738 as_fn_error $? "conditional \"AMDEP\" was never defined.
12739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12741 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12742 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12745 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12746 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12749 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12750 as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12753 if test -z "${EXT_GOOGLE_MUX_TRUE}" && test -z "${EXT_GOOGLE_MUX_FALSE}"; then
12754 as_fn_error $? "conditional \"EXT_GOOGLE_MUX\" was never defined.
12755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12757 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
12758 as_fn_error $? "conditional \"MINGW\" was never defined.
12759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12761 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12762 as_fn_error $? "conditional \"NOPING\" was never defined.
12763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12766 : "${CONFIG_STATUS=./config.status}"
12768 ac_clean_files_save=$ac_clean_files
12769 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12771 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12773 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12775 # Generated by $as_me.
12776 # Run this file to recreate the current configuration.
12777 # Compiler output produced by configure, useful for debugging
12778 # configure, is in config.log if it exists.
12781 ac_cs_recheck=false
12784 SHELL=\${CONFIG_SHELL-$SHELL}
12787 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12788 ## -------------------- ##
12789 ## M4sh Initialization. ##
12790 ## -------------------- ##
12792 # Be more Bourne compatible
12793 DUALCASE=1; export DUALCASE # for MKS sh
12794 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12797 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12798 # is contrary to our usage. Disable this feature.
12799 alias -g '${1+"$@"}'='"$@"'
12800 setopt NO_GLOB_SUBST
12802 case `(set -o) 2>/dev/null` in #(
12814 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12815 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12818 # Prefer a ksh shell builtin over an external printf program on Solaris,
12819 # but without wasting forks for bash or zsh.
12820 if test -z "$BASH_VERSION$ZSH_VERSION" \
12821 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12822 as_echo='print -r --'
12823 as_echo_n='print -rn --'
12824 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12825 as_echo='printf %s\n'
12826 as_echo_n='printf %s'
12828 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12829 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12830 as_echo_n='/usr/ucb/echo -n'
12832 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12833 as_echo_n_body='eval
12837 expr "X$arg" : "X\\(.*\\)$as_nl";
12838 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12840 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12842 export as_echo_n_body
12843 as_echo_n='sh -c $as_echo_n_body as_echo'
12845 export as_echo_body
12846 as_echo='sh -c $as_echo_body as_echo'
12849 # The user is always right.
12850 if test "${PATH_SEPARATOR+set}" != set; then
12852 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12853 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12860 # We need space, tab and new line, in precisely that order. Quoting is
12861 # there to prevent editors from complaining about space-tab.
12862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12863 # splitting by setting IFS to empty value.)
12866 # Find who we are. Look in the path if we contain no directory separator.
12869 *[\\/]* ) as_myself=$0 ;;
12870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871 for as_dir in $PATH
12874 test -z "$as_dir" && as_dir=.
12875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12881 # We did not find ourselves, most probably we were run as `sh COMMAND'
12882 # in which case we are not to be found in the path.
12883 if test "x$as_myself" = x; then
12886 if test ! -f "$as_myself"; then
12887 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12891 # Unset variables that we do not need and which cause bugs (e.g. in
12892 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12893 # suppresses any "Segmentation fault" message there. '((' could
12894 # trigger a bug in pdksh 5.2.14.
12895 for as_var in BASH_ENV ENV MAIL MAILPATH
12896 do eval test x\${$as_var+set} = xset \
12897 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12910 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12913 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12914 # ----------------------------------------
12915 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12916 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12917 # script with STATUS, using 1 if that was 0.
12920 as_status=$1; test $as_status -eq 0 && as_status=1
12922 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12923 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12925 $as_echo "$as_me: error: $2" >&2
12926 as_fn_exit $as_status
12930 # as_fn_set_status STATUS
12931 # -----------------------
12932 # Set $? to STATUS, without forking.
12933 as_fn_set_status ()
12936 } # as_fn_set_status
12938 # as_fn_exit STATUS
12939 # -----------------
12940 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12944 as_fn_set_status $1
12950 # Portably unset VAR.
12953 { eval $1=; unset $1;}
12955 as_unset=as_fn_unset
12956 # as_fn_append VAR VALUE
12957 # ----------------------
12958 # Append the text in VALUE to the end of the definition contained in VAR. Take
12959 # advantage of any shell optimizations that allow amortized linear growth over
12960 # repeated appends, instead of the typical quadratic growth present in naive
12962 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12963 eval 'as_fn_append ()
12974 # as_fn_arith ARG...
12975 # ------------------
12976 # Perform arithmetic evaluation on the ARGs, and store the result in the
12977 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12978 # must be portable across $(()) and expr.
12979 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12980 eval 'as_fn_arith ()
12987 as_val=`expr "$@" || test $? -eq 1`
12992 if expr a : '\(a\)' >/dev/null 2>&1 &&
12993 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12999 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13000 as_basename=basename
13005 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13011 as_me=`$as_basename -- "$0" ||
13012 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13013 X"$0" : 'X\(//\)$' \| \
13014 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13016 sed '/^.*\/\([^/][^/]*\)\/*$/{
13030 # Avoid depending upon Character Ranges.
13031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13034 as_cr_digits='0123456789'
13035 as_cr_alnum=$as_cr_Letters$as_cr_digits
13037 ECHO_C= ECHO_N= ECHO_T=
13038 case `echo -n x` in #(((((
13040 case `echo 'xy\c'` in
13041 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13043 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13050 rm -f conf$$ conf$$.exe conf$$.file
13051 if test -d conf$$.dir; then
13052 rm -f conf$$.dir/conf$$.file
13055 mkdir conf$$.dir 2>/dev/null
13057 if (echo >conf$$.file) 2>/dev/null; then
13058 if ln -s conf$$.file conf$$ 2>/dev/null; then
13060 # ... but there are two gotchas:
13061 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13062 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13063 # In both cases, we have to default to `cp -p'.
13064 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13066 elif ln conf$$.file conf$$ 2>/dev/null; then
13074 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13075 rmdir conf$$.dir 2>/dev/null
13080 # Create "$as_dir" as a directory, including parents if necessary.
13085 -*) as_dir=./$as_dir;;
13087 test -d "$as_dir" || eval $as_mkdir_p || {
13091 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13092 *) as_qdir=$as_dir;;
13094 as_dirs="'$as_qdir' $as_dirs"
13095 as_dir=`$as_dirname -- "$as_dir" ||
13096 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13097 X"$as_dir" : 'X\(//\)[^/]' \| \
13098 X"$as_dir" : 'X\(//\)$' \| \
13099 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13100 $as_echo X"$as_dir" |
13101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13105 /^X\(\/\/\)[^/].*/{
13118 test -d "$as_dir" && break
13120 test -z "$as_dirs" || eval "mkdir $as_dirs"
13121 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13125 if mkdir -p . 2>/dev/null; then
13126 as_mkdir_p='mkdir -p "$as_dir"'
13128 test -d ./-p && rmdir ./-p
13132 if test -x / >/dev/null 2>&1; then
13133 as_test_x='test -x'
13135 if ls -dL / >/dev/null 2>&1; then
13142 if test -d "$1"; then
13148 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13149 ???[sx]*):;;*)false;;esac;fi
13153 as_executable_p=$as_test_x
13155 # Sed expression to map a string onto a valid CPP name.
13156 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13158 # Sed expression to map a string onto a valid variable name.
13159 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13163 ## ----------------------------------- ##
13164 ## Main body of $CONFIG_STATUS script. ##
13165 ## ----------------------------------- ##
13167 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170 # Save the log message, to keep $0 and so on meaningful, and to
13171 # report actual input values of CONFIG_FILES etc. instead of their
13172 # values after options handling.
13174 This file was extended by libwebsockets $as_me 0.3, which was
13175 generated by GNU Autoconf 2.68. Invocation command line was
13177 CONFIG_FILES = $CONFIG_FILES
13178 CONFIG_HEADERS = $CONFIG_HEADERS
13179 CONFIG_LINKS = $CONFIG_LINKS
13180 CONFIG_COMMANDS = $CONFIG_COMMANDS
13183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13188 case $ac_config_files in *"
13189 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13192 case $ac_config_headers in *"
13193 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13198 # Files that config.status was made for.
13199 config_files="$ac_config_files"
13200 config_headers="$ac_config_headers"
13201 config_commands="$ac_config_commands"
13205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13207 \`$as_me' instantiates files and other configuration actions
13208 from templates according to the current configuration. Unless the files
13209 and actions are specified as TAGs, all are instantiated by default.
13211 Usage: $0 [OPTION]... [TAG]...
13213 -h, --help print this help, then exit
13214 -V, --version print version number and configuration settings, then exit
13215 --config print configuration, then exit
13216 -q, --quiet, --silent
13217 do not print progress messages
13218 -d, --debug don't remove temporary files
13219 --recheck update $as_me by reconfiguring in the same conditions
13220 --file=FILE[:TEMPLATE]
13221 instantiate the configuration file FILE
13222 --header=FILE[:TEMPLATE]
13223 instantiate the configuration header FILE
13225 Configuration files:
13228 Configuration headers:
13231 Configuration commands:
13234 Report bugs to <andy@warmcat.com>."
13237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13240 libwebsockets config.status 0.3
13241 configured by $0, generated by GNU Autoconf 2.68,
13242 with options \\"\$ac_cs_config\\"
13244 Copyright (C) 2010 Free Software Foundation, Inc.
13245 This config.status script is free software; the Free Software Foundation
13246 gives unlimited permission to copy, distribute and modify it."
13253 test -n "\$AWK" || AWK=awk
13256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13257 # The default lists apply if the user does not specify any file.
13263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13264 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13268 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13280 # Handling of the options.
13281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13283 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13284 $as_echo "$ac_cs_version"; exit ;;
13285 --config | --confi | --conf | --con | --co | --c )
13286 $as_echo "$ac_cs_config"; exit ;;
13287 --debug | --debu | --deb | --de | --d | -d )
13289 --file | --fil | --fi | --f )
13292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13293 '') as_fn_error $? "missing file argument" ;;
13295 as_fn_append CONFIG_FILES " '$ac_optarg'"
13296 ac_need_defaults=false;;
13297 --header | --heade | --head | --hea )
13300 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13302 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13303 ac_need_defaults=false;;
13305 # Conflict between --help and --header
13306 as_fn_error $? "ambiguous option: \`$1'
13307 Try \`$0 --help' for more information.";;
13308 --help | --hel | -h )
13309 $as_echo "$ac_cs_usage"; exit ;;
13310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13311 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13314 # This is an error.
13315 -*) as_fn_error $? "unrecognized option: \`$1'
13316 Try \`$0 --help' for more information." ;;
13318 *) as_fn_append ac_config_targets " $1"
13319 ac_need_defaults=false ;;
13325 ac_configure_extra_args=
13327 if $ac_cs_silent; then
13329 ac_configure_extra_args="$ac_configure_extra_args --silent"
13333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13334 if \$ac_cs_recheck; then
13335 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13337 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13338 CONFIG_SHELL='$SHELL'
13339 export CONFIG_SHELL
13344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13349 ## Running $as_me. ##
13355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13362 # The HP-UX ksh and POSIX shell print the target directory to stdout
13363 # if CDPATH is set.
13364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13366 sed_quote_subst='$sed_quote_subst'
13367 double_quote_subst='$double_quote_subst'
13368 delay_variable_subst='$delay_variable_subst'
13369 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13370 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13371 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13372 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13373 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13374 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13375 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13376 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13377 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13378 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13379 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13380 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13381 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13382 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13383 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13384 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13385 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13386 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13387 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13388 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13389 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13390 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13391 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13392 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13393 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13394 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13395 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13396 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13397 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13398 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13399 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13405 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13406 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13407 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13408 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13409 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13410 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13411 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13412 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13413 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13414 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13415 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13416 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13417 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13418 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13419 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13420 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13421 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13422 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13423 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13424 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13425 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"`'
13426 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13427 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13428 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13429 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13430 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13431 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13432 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13433 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13434 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13435 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13436 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13437 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13438 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13439 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13440 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13441 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13442 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13443 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13444 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13445 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13446 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13447 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13448 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13449 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13450 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13451 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13452 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13453 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13454 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13455 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13456 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13457 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13458 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13459 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13460 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13461 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13462 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13463 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13464 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13465 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13466 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13467 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13468 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13469 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13470 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13471 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13472 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13473 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13474 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13475 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13476 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13477 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13478 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13479 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13480 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13481 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13482 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13483 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13484 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13485 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13486 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13487 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13488 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13489 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13490 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13491 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13492 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13493 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13494 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13495 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13496 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13497 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13498 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13501 LTCFLAGS='$LTCFLAGS'
13502 compiler='$compiler_DEFAULT'
13504 # A function that is used when there is no print builtin or printf.
13505 func_fallback_echo ()
13507 eval 'cat <<_LTECHO_EOF
13512 # Quote evaled strings.
13527 deplibs_check_method \
13532 sharedlib_from_linklib_cmd \
13535 archiver_list_spec \
13541 lt_cv_sys_global_symbol_pipe \
13542 lt_cv_sys_global_symbol_to_cdecl \
13543 lt_cv_sys_global_symbol_to_c_name_address \
13544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13545 nm_file_list_spec \
13546 lt_prog_compiler_no_builtin_flag \
13547 lt_prog_compiler_pic \
13548 lt_prog_compiler_wl \
13549 lt_prog_compiler_static \
13550 lt_cv_prog_compiler_c_o \
13559 export_dynamic_flag_spec \
13560 whole_archive_flag_spec \
13561 compiler_needs_object \
13563 allow_undefined_flag \
13564 no_undefined_flag \
13565 hardcode_libdir_flag_spec \
13566 hardcode_libdir_separator \
13570 variables_saved_for_relink \
13572 library_names_spec \
13574 install_override_mode \
13578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13579 *[\\\\\\\`\\"\\\$]*)
13580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13588 # Double-quote double-evaled strings.
13589 for var in reload_cmds \
13590 old_postinstall_cmds \
13591 old_postuninstall_cmds \
13593 extract_expsyms_cmds \
13594 old_archive_from_new_cmds \
13595 old_archive_from_expsyms_cmds \
13597 archive_expsym_cmds \
13599 module_expsym_cmds \
13600 export_symbols_cmds \
13604 postuninstall_cmds \
13606 sys_lib_search_path_spec \
13607 sys_lib_dlsearch_path_spec; do
13608 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13609 *[\\\\\\\`\\"\\\$]*)
13610 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13613 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13618 ac_aux_dir='$ac_aux_dir'
13619 xsi_shell='$xsi_shell'
13620 lt_shell_append='$lt_shell_append'
13622 # See if we are running on zsh, and set the options which allow our
13623 # commands through without removal of \ escapes INIT.
13624 if test -n "\${ZSH_VERSION+set}" ; then
13625 setopt NO_GLOB_SUBST
13631 TIMESTAMP='$TIMESTAMP'
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13642 # Handling of arguments.
13643 for ac_config_target in $ac_config_targets
13645 case $ac_config_target in
13646 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13650 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13651 "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13653 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13658 # If the user did not use the arguments to specify the items to instantiate,
13659 # then the envvar interface is used. Set only those that are not.
13660 # We use the long form for the default assignment because of an extremely
13661 # bizarre bug on SunOS 4.1.3.
13662 if $ac_need_defaults; then
13663 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13664 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13665 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13668 # Have a temporary directory for convenience. Make it in the build tree
13669 # simply because there is no reason against having it here, and in addition,
13670 # creating and moving files from /tmp can sometimes cause problems.
13671 # Hook for its removal unless debugging.
13672 # Note that there is a small window in which the directory will not be cleaned:
13673 # after its creation but before its name has been assigned to `$tmp'.
13677 trap 'exit_status=$?
13678 : "${ac_tmp:=$tmp}"
13679 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13681 trap 'as_fn_exit 1' 1 2 13 15
13683 # Create a (secure) tmp directory for tmp files.
13686 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13690 tmp=./conf$$-$RANDOM
13691 (umask 077 && mkdir "$tmp")
13692 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13695 # Set up the scripts for CONFIG_FILES section.
13696 # No need to generate them if there are no CONFIG_FILES.
13697 # This happens for instance with `./config.status config.h'.
13698 if test -n "$CONFIG_FILES"; then
13701 ac_cr=`echo X | tr X '\015'`
13702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13703 # But we know of no other shell where ac_cr would be empty at this
13704 # point, so we can use a bashism as a fallback.
13705 if test "x$ac_cr" = x; then
13706 eval ac_cr=\$\'\\r\'
13708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13712 ac_cs_awk_cr=$ac_cr
13715 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13720 echo "cat >conf$$subs.awk <<_ACEOF" &&
13721 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13723 } >conf$$subs.sh ||
13724 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13727 for ac_last_try in false false false false false :; do
13728 . ./conf$$subs.sh ||
13729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13731 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13732 if test $ac_delim_n = $ac_delim_num; then
13734 elif $ac_last_try; then
13735 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13740 rm -f conf$$subs.sh
13742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13747 s/^/S["/; s/!.*/"]=/
13757 s/\(.\{148\}\)..*/\1/
13759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13771 s/\(.\{148\}\)..*/\1/
13773 s/["\\]/\\&/g; s/^/"/; s/$/"/
13777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13782 ' <conf$$subs.awk | sed '
13787 ' >>$CONFIG_STATUS || ac_write_fail=1
13788 rm -f conf$$subs.awk
13789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13791 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13792 for (key in S) S_is_set[key] = 1
13798 nfields = split(line, field, "@")
13800 len = length(field[1])
13801 for (i = 2; i < nfields; i++) {
13803 keylen = length(key)
13804 if (S_is_set[key]) {
13806 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13807 len += length(value) + length(field[++i])
13818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13820 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13823 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13824 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13827 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13828 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13829 # trailing colons and then remove the whole line if VPATH becomes empty
13830 # (actually we leave an empty line to preserve line numbers).
13831 if test "x$srcdir" = x.; then
13832 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13851 fi # test -n "$CONFIG_FILES"
13853 # Set up the scripts for CONFIG_HEADERS section.
13854 # No need to generate them if there are no CONFIG_HEADERS.
13855 # This happens for instance with `./config.status Makefile'.
13856 if test -n "$CONFIG_HEADERS"; then
13857 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13861 # Transform confdefs.h into an awk script `defines.awk', embedded as
13862 # here-document in config.status, that substitutes the proper values into
13863 # config.h.in to produce config.h.
13865 # Create a delimiter string that does not exist in confdefs.h, to ease
13866 # handling of long lines.
13868 for ac_last_try in false false :; do
13869 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13870 if test -z "$ac_tt"; then
13872 elif $ac_last_try; then
13873 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13879 # For the awk script, D is an array of macro values keyed by name,
13880 # likewise P contains macro parameters if any. Preserve backslash
13881 # newline sequences.
13883 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13885 s/.\{148\}/&'"$ac_delim"'/g
13888 s/^[ ]*#[ ]*define[ ][ ]*/ /
13895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13901 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13902 D["\1"]=" \3\\\\\\n"\\/p
13904 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13909 s/.\{148\}/&'"$ac_delim"'/g
13914 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13917 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13919 ' <confdefs.h | sed '
13920 s/'"$ac_delim"'/"\\\
13921 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13924 for (key in D) D_is_set[key] = 1
13927 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13929 split(line, arg, " ")
13930 if (arg[1] == "#") {
13934 defundef = substr(arg[1], 2)
13937 split(mac1, mac2, "(") #)
13939 prefix = substr(line, 1, index(line, defundef) - 1)
13940 if (D_is_set[macro]) {
13941 # Preserve the white space surrounding the "#".
13942 print prefix "define", macro P[macro] D[macro]
13945 # Replace #undef with comments. This is necessary, for example,
13946 # in the case of _POSIX_SOURCE, which is predefined and required
13947 # on some systems where configure will not decide to define it.
13948 if (defundef == "undef") {
13949 print "/*", prefix defundef, macro, "*/"
13957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13959 fi # test -n "$CONFIG_HEADERS"
13962 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13967 :[FHLC]) ac_mode=$ac_tag; continue;;
13969 case $ac_mode$ac_tag in
13971 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13972 :[FH]-) ac_tag=-:-;;
13973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13990 -) ac_f="$ac_tmp/stdin";;
13991 *) # Look for the file first in the build tree, then in the source tree
13992 # (if the path is not absolute). The absolute path cannot be DOS-style,
13993 # because $ac_f cannot contain `:'.
13997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13999 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14001 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14002 as_fn_append ac_file_inputs " '$ac_f'"
14005 # Let's still pretend it is `configure' which instantiates (i.e., don't
14006 # use $as_me), people would be surprised to read:
14007 # /* config.h. Generated by config.status. */
14008 configure_input='Generated from '`
14009 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14011 if test x"$ac_file" != x-; then
14012 configure_input="$ac_file. $configure_input"
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14014 $as_echo "$as_me: creating $ac_file" >&6;}
14016 # Neutralize special characters interpreted by sed in replacement strings.
14017 case $configure_input in #(
14018 *\&* | *\|* | *\\* )
14019 ac_sed_conf_input=`$as_echo "$configure_input" |
14020 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14021 *) ac_sed_conf_input=$configure_input;;
14025 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14031 ac_dir=`$as_dirname -- "$ac_file" ||
14032 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$ac_file" : 'X\(//\)[^/]' \| \
14034 X"$ac_file" : 'X\(//\)$' \| \
14035 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14036 $as_echo X"$ac_file" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14041 /^X\(\/\/\)[^/].*/{
14054 as_dir="$ac_dir"; as_fn_mkdir_p
14058 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14060 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14061 # A ".." for each directory in $ac_dir_suffix.
14062 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14063 case $ac_top_builddir_sub in
14064 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14065 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14068 ac_abs_top_builddir=$ac_pwd
14069 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14070 # for backward compatibility:
14071 ac_top_builddir=$ac_top_build_prefix
14074 .) # We are building in place.
14076 ac_top_srcdir=$ac_top_builddir_sub
14077 ac_abs_top_srcdir=$ac_pwd ;;
14078 [\\/]* | ?:[\\/]* ) # Absolute name.
14079 ac_srcdir=$srcdir$ac_dir_suffix;
14080 ac_top_srcdir=$srcdir
14081 ac_abs_top_srcdir=$srcdir ;;
14082 *) # Relative name.
14083 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14084 ac_top_srcdir=$ac_top_build_prefix$srcdir
14085 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14087 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14097 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14098 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14100 ac_MKDIR_P=$MKDIR_P
14102 [\\/$]* | ?:[\\/]* ) ;;
14103 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14108 # If the template does not know about datarootdir, expand it.
14109 # FIXME: This hack should be removed a few years after 2.60.
14110 ac_datarootdir_hack=; ac_datarootdir_seen=
14121 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14122 *datarootdir*) ac_datarootdir_seen=yes;;
14123 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14125 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128 ac_datarootdir_hack='
14129 s&@datadir@&$datadir&g
14130 s&@docdir@&$docdir&g
14131 s&@infodir@&$infodir&g
14132 s&@localedir@&$localedir&g
14133 s&@mandir@&$mandir&g
14134 s&\\\${datarootdir}&$datarootdir&g' ;;
14138 # Neutralize VPATH when `$srcdir' = `.'.
14139 # Shell code in configure.ac might set extrasub.
14140 # FIXME: do we really want to maintain this feature?
14141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14142 ac_sed_extra="$ac_vpsub
14145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14148 s|@configure_input@|$ac_sed_conf_input|;t t
14149 s&@top_builddir@&$ac_top_builddir_sub&;t t
14150 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14151 s&@srcdir@&$ac_srcdir&;t t
14152 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14153 s&@top_srcdir@&$ac_top_srcdir&;t t
14154 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14155 s&@builddir@&$ac_builddir&;t t
14156 s&@abs_builddir@&$ac_abs_builddir&;t t
14157 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14158 s&@INSTALL@&$ac_INSTALL&;t t
14159 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14160 $ac_datarootdir_hack
14162 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14163 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14165 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14166 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14167 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14168 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14170 which seems to be undefined. Please make sure it is defined" >&5
14171 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14172 which seems to be undefined. Please make sure it is defined" >&2;}
14174 rm -f "$ac_tmp/stdin"
14176 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14177 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14185 if test x"$ac_file" != x-; then
14187 $as_echo "/* $configure_input */" \
14188 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14189 } >"$ac_tmp/config.h" \
14190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14191 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14193 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14196 mv "$ac_tmp/config.h" "$ac_file" \
14197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14200 $as_echo "/* $configure_input */" \
14201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14202 || as_fn_error $? "could not create -" "$LINENO" 5
14204 # Compute "$ac_file"'s index in $config_headers.
14207 for _am_header in $config_headers :; do
14208 case $_am_header in
14209 $_am_arg | $_am_arg:* )
14212 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14215 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14216 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14217 X"$_am_arg" : 'X\(//\)[^/]' \| \
14218 X"$_am_arg" : 'X\(//\)$' \| \
14219 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14220 $as_echo X"$_am_arg" |
14221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14225 /^X\(\/\/\)[^/].*/{
14237 s/.*/./; q'`/stamp-h$_am_stamp_count
14240 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14241 $as_echo "$as_me: executing $ac_file commands" >&6;}
14246 case $ac_file$ac_mode in
14247 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14248 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14249 # are listed without --file. Let's play safe and only enable the eval
14250 # if we detect the quoting.
14251 case $CONFIG_FILES in
14252 *\'*) eval set x "$CONFIG_FILES" ;;
14253 *) set x $CONFIG_FILES ;;
14258 # Strip MF so we end up with the name of the file.
14259 mf=`echo "$mf" | sed -e 's/:.*$//'`
14260 # Check whether this is an Automake generated Makefile or not.
14261 # We used to match only the files named `Makefile.in', but
14262 # some people rename them; so instead we look at the file content.
14263 # Grep'ing the first line is not enough: some people post-process
14264 # each Makefile.in and add a new line on top of each file to say so.
14265 # Grep'ing the whole file is not good either: AIX grep has a line
14266 # limit of 2048, but all sed's we know have understand at least 4000.
14267 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14268 dirpart=`$as_dirname -- "$mf" ||
14269 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14270 X"$mf" : 'X\(//\)[^/]' \| \
14271 X"$mf" : 'X\(//\)$' \| \
14272 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14278 /^X\(\/\/\)[^/].*/{
14294 # Extract the definition of DEPDIR, am__include, and am__quote
14295 # from the Makefile without running `make'.
14296 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14297 test -z "$DEPDIR" && continue
14298 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14299 test -z "am__include" && continue
14300 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14301 # When using ansi2knr, U may be empty or an underscore; expand it
14302 U=`sed -n 's/^U = //p' < "$mf"`
14303 # Find all dependency output files, they are included files with
14304 # $(DEPDIR) in their names. We invoke sed twice because it is the
14305 # simplest approach to changing $(DEPDIR) to its actual value in the
14307 for file in `sed -n "
14308 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14309 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14310 # Make sure the directory exists.
14311 test -f "$dirpart/$file" && continue
14312 fdir=`$as_dirname -- "$file" ||
14313 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14314 X"$file" : 'X\(//\)[^/]' \| \
14315 X"$file" : 'X\(//\)$' \| \
14316 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14317 $as_echo X"$file" |
14318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14322 /^X\(\/\/\)[^/].*/{
14335 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14336 # echo "creating $dirpart/$file"
14337 echo '# dummy' > "$dirpart/$file"
14344 # See if we are running on zsh, and set the options which allow our
14345 # commands through without removal of \ escapes.
14346 if test -n "${ZSH_VERSION+set}" ; then
14347 setopt NO_GLOB_SUBST
14350 cfgfile="${ofile}T"
14351 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14354 cat <<_LT_EOF >> "$cfgfile"
14357 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14358 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14359 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14360 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14362 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14363 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14365 # Written by Gordon Matzigkeit, 1996
14367 # This file is part of GNU Libtool.
14369 # GNU Libtool is free software; you can redistribute it and/or
14370 # modify it under the terms of the GNU General Public License as
14371 # published by the Free Software Foundation; either version 2 of
14372 # the License, or (at your option) any later version.
14374 # As a special exception to the GNU General Public License,
14375 # if you distribute this file as part of a program or library that
14376 # is built using GNU Libtool, you may include this file under the
14377 # same distribution terms that you use for the rest of that program.
14379 # GNU Libtool is distributed in the hope that it will be useful,
14380 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14381 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14382 # GNU General Public License for more details.
14384 # You should have received a copy of the GNU General Public License
14385 # along with GNU Libtool; see the file COPYING. If not, a copy
14386 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14387 # obtained by writing to the Free Software Foundation, Inc.,
14388 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14391 # The names of the tagged configurations supported by this script.
14394 # ### BEGIN LIBTOOL CONFIG
14396 # Which release of libtool.m4 was used?
14397 macro_version=$macro_version
14398 macro_revision=$macro_revision
14400 # Whether or not to build shared libraries.
14401 build_libtool_libs=$enable_shared
14403 # Whether or not to build static libraries.
14404 build_old_libs=$enable_static
14406 # What type of objects to build.
14409 # Whether or not to optimize for fast installation.
14410 fast_install=$enable_fast_install
14412 # Shell to use when invoking shell scripts.
14415 # An echo program that protects backslashes.
14418 # The PATH separator for the build system.
14419 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14422 host_alias=$host_alias
14426 # The build system.
14427 build_alias=$build_alias
14431 # A sed program that does not truncate output.
14434 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14435 Xsed="\$SED -e 1s/^X//"
14437 # A grep program that handles long lines.
14443 # A literal string matcher.
14446 # A BSD- or MS-compatible name lister.
14449 # Whether we need soft or hard links.
14452 # What is the maximum length of a command?
14453 max_cmd_len=$max_cmd_len
14455 # Object file suffix (normally "o").
14458 # Executable file suffix (normally "").
14461 # whether the shell understands "unset".
14464 # turn spaces into newlines.
14467 # turn newlines into spaces.
14470 # convert \$build file names to \$host format.
14471 to_host_file_cmd=$lt_cv_to_host_file_cmd
14473 # convert \$build files to toolchain format.
14474 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14476 # An object symbol dumper.
14477 OBJDUMP=$lt_OBJDUMP
14479 # Method to check whether dependent libraries are shared objects.
14480 deplibs_check_method=$lt_deplibs_check_method
14482 # Command to use when deplibs_check_method = "file_magic".
14483 file_magic_cmd=$lt_file_magic_cmd
14485 # How to find potential files when deplibs_check_method = "file_magic".
14486 file_magic_glob=$lt_file_magic_glob
14488 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14489 want_nocaseglob=$lt_want_nocaseglob
14491 # DLL creation program.
14492 DLLTOOL=$lt_DLLTOOL
14494 # Command to associate shared and link libraries.
14495 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14500 # Flags to create an archive.
14501 AR_FLAGS=$lt_AR_FLAGS
14503 # How to feed a file listing to the archiver.
14504 archiver_list_spec=$lt_archiver_list_spec
14506 # A symbol stripping program.
14509 # Commands used to install an old-style archive.
14511 old_postinstall_cmds=$lt_old_postinstall_cmds
14512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14514 # Whether to use a lock for old archive extraction.
14515 lock_old_archive_extraction=$lock_old_archive_extraction
14520 # LTCC compiler flags.
14521 LTCFLAGS=$lt_CFLAGS
14523 # Take the output of nm and produce a listing of raw symbols and C names.
14524 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14526 # Transform the output of nm in a proper C declaration.
14527 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14529 # Transform the output of nm in a C name address pair.
14530 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14532 # Transform the output of nm in a C name address pair when lib prefix is needed.
14533 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14535 # Specify filename containing input files for \$NM.
14536 nm_file_list_spec=$lt_nm_file_list_spec
14538 # The root where to search for dependent libraries,and in which our libraries should be installed.
14539 lt_sysroot=$lt_sysroot
14541 # The name of the directory that contains temporary libtool files.
14544 # Used to examine libraries when file_magic_cmd begins with "file".
14545 MAGIC_CMD=$MAGIC_CMD
14547 # Must we lock files when doing compilation?
14548 need_locks=$lt_need_locks
14551 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14553 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14554 DSYMUTIL=$lt_DSYMUTIL
14556 # Tool to change global to local symbols on Mac OS X.
14559 # Tool to manipulate fat objects and archives on Mac OS X.
14562 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14565 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14566 OTOOL64=$lt_OTOOL64
14568 # Old archive suffix (normally "a").
14571 # Shared library suffix (normally ".so").
14572 shrext_cmds=$lt_shrext_cmds
14574 # The commands to extract the exported symbol list from a shared archive.
14575 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14577 # Variables whose values should be saved in libtool wrapper scripts and
14578 # restored at link time.
14579 variables_saved_for_relink=$lt_variables_saved_for_relink
14581 # Do we need the "lib" prefix for modules?
14582 need_lib_prefix=$need_lib_prefix
14584 # Do we need a version for libraries?
14585 need_version=$need_version
14587 # Library versioning type.
14588 version_type=$version_type
14590 # Shared library runtime path variable.
14591 runpath_var=$runpath_var
14593 # Shared library path variable.
14594 shlibpath_var=$shlibpath_var
14596 # Is shlibpath searched before the hard-coded library search path?
14597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14599 # Format of library name prefix.
14600 libname_spec=$lt_libname_spec
14602 # List of archive names. First name is the real one, the rest are links.
14603 # The last name is the one that the linker finds with -lNAME
14604 library_names_spec=$lt_library_names_spec
14606 # The coded name of the library, if different from the real name.
14607 soname_spec=$lt_soname_spec
14609 # Permission mode override for installation of shared libraries.
14610 install_override_mode=$lt_install_override_mode
14612 # Command to use after installation of a shared archive.
14613 postinstall_cmds=$lt_postinstall_cmds
14615 # Command to use after uninstallation of a shared archive.
14616 postuninstall_cmds=$lt_postuninstall_cmds
14618 # Commands used to finish a libtool library installation in a directory.
14619 finish_cmds=$lt_finish_cmds
14621 # As "finish_cmds", except a single script fragment to be evaled but
14623 finish_eval=$lt_finish_eval
14625 # Whether we should hardcode library paths into libraries.
14626 hardcode_into_libs=$hardcode_into_libs
14628 # Compile-time system search path for libraries.
14629 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14631 # Run-time system search path for libraries.
14632 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14634 # Whether dlopen is supported.
14635 dlopen_support=$enable_dlopen
14637 # Whether dlopen of programs is supported.
14638 dlopen_self=$enable_dlopen_self
14640 # Whether dlopen of statically linked programs is supported.
14641 dlopen_self_static=$enable_dlopen_self_static
14643 # Commands to strip libraries.
14644 old_striplib=$lt_old_striplib
14645 striplib=$lt_striplib
14648 # The linker used to build libraries.
14651 # How to create reloadable object files.
14652 reload_flag=$lt_reload_flag
14653 reload_cmds=$lt_reload_cmds
14655 # Commands used to build an old-style archive.
14656 old_archive_cmds=$lt_old_archive_cmds
14658 # A language specific compiler.
14661 # Is the compiler the GNU compiler?
14664 # Compiler flag to turn off builtin functions.
14665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14667 # Additional compiler flags for building library objects.
14668 pic_flag=$lt_lt_prog_compiler_pic
14670 # How to pass a linker flag through the compiler.
14671 wl=$lt_lt_prog_compiler_wl
14673 # Compiler flag to prevent dynamic linking.
14674 link_static_flag=$lt_lt_prog_compiler_static
14676 # Does compiler simultaneously support -c and -o options?
14677 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14679 # Whether or not to add -lc for building shared libraries.
14680 build_libtool_need_lc=$archive_cmds_need_lc
14682 # Whether or not to disallow shared libs when runtime libs are static.
14683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14685 # Compiler flag to allow reflexive dlopens.
14686 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14688 # Compiler flag to generate shared objects directly from archives.
14689 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14691 # Whether the compiler copes with passing no objects directly.
14692 compiler_needs_object=$lt_compiler_needs_object
14694 # Create an old-style archive from a shared archive.
14695 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14697 # Create a temporary old-style archive to link instead of a shared archive.
14698 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14700 # Commands used to build a shared archive.
14701 archive_cmds=$lt_archive_cmds
14702 archive_expsym_cmds=$lt_archive_expsym_cmds
14704 # Commands used to build a loadable module if different from building
14705 # a shared archive.
14706 module_cmds=$lt_module_cmds
14707 module_expsym_cmds=$lt_module_expsym_cmds
14709 # Whether we are building with GNU ld or not.
14710 with_gnu_ld=$lt_with_gnu_ld
14712 # Flag that allows shared libraries with undefined symbols to be built.
14713 allow_undefined_flag=$lt_allow_undefined_flag
14715 # Flag that enforces no undefined symbols.
14716 no_undefined_flag=$lt_no_undefined_flag
14718 # Flag to hardcode \$libdir into a binary during linking.
14719 # This must work even if \$libdir does not exist
14720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14722 # Whether we need a single "-rpath" flag with a separated argument.
14723 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14725 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14726 # DIR into the resulting binary.
14727 hardcode_direct=$hardcode_direct
14729 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14730 # DIR into the resulting binary and the resulting library dependency is
14731 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14732 # library is relocated.
14733 hardcode_direct_absolute=$hardcode_direct_absolute
14735 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14736 # into the resulting binary.
14737 hardcode_minus_L=$hardcode_minus_L
14739 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14740 # into the resulting binary.
14741 hardcode_shlibpath_var=$hardcode_shlibpath_var
14743 # Set to "yes" if building a shared library automatically hardcodes DIR
14744 # into the library and all subsequent libraries and executables linked
14746 hardcode_automatic=$hardcode_automatic
14748 # Set to yes if linker adds runtime paths of dependent libraries
14749 # to runtime path list.
14750 inherit_rpath=$inherit_rpath
14752 # Whether libtool must link a program against all its dependency libraries.
14753 link_all_deplibs=$link_all_deplibs
14755 # Set to "yes" if exported symbols are required.
14756 always_export_symbols=$always_export_symbols
14758 # The commands to list exported symbols.
14759 export_symbols_cmds=$lt_export_symbols_cmds
14761 # Symbols that should not be listed in the preloaded symbols.
14762 exclude_expsyms=$lt_exclude_expsyms
14764 # Symbols that must always be exported.
14765 include_expsyms=$lt_include_expsyms
14767 # Commands necessary for linking programs (against libraries) with templates.
14768 prelink_cmds=$lt_prelink_cmds
14770 # Commands necessary for finishing linking programs.
14771 postlink_cmds=$lt_postlink_cmds
14773 # Specify filename containing input files.
14774 file_list_spec=$lt_file_list_spec
14776 # How to hardcode a shared library path into an executable.
14777 hardcode_action=$hardcode_action
14779 # ### END LIBTOOL CONFIG
14785 cat <<\_LT_EOF >> "$cfgfile"
14786 # AIX sometimes has problems with the GCC collect2 program. For some
14787 # reason, if we set the COLLECT_NAMES environment variable, the problems
14788 # vanish in a puff of smoke.
14789 if test "X${COLLECT_NAMES+set}" != Xset; then
14791 export COLLECT_NAMES
14798 ltmain="$ac_aux_dir/ltmain.sh"
14801 # We use sed instead of cat because bash on DJGPP gets confused if
14802 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14803 # text mode, it properly converts lines to CR/LF. This bash problem
14804 # is reportedly fixed, but why not run on old versions too?
14805 sed '$q' "$ltmain" >> "$cfgfile" \
14806 || (rm -f "$cfgfile"; exit 1)
14808 if test x"$xsi_shell" = xyes; then
14809 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14813 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14814 \ * ) func_dirname_result="${3}" ;;\
14816 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14817 && mv -f "$cfgfile.tmp" "$cfgfile" \
14818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14819 test 0 -eq $? || _lt_function_replace_fail=:
14822 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14825 \ func_basename_result="${1##*/}"\
14826 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14827 && mv -f "$cfgfile.tmp" "$cfgfile" \
14828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14829 test 0 -eq $? || _lt_function_replace_fail=:
14832 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14833 func_dirname_and_basename ()\
14836 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14837 \ * ) func_dirname_result="${3}" ;;\
14839 \ func_basename_result="${1##*/}"\
14840 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14841 && mv -f "$cfgfile.tmp" "$cfgfile" \
14842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14846 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14849 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14850 \ # positional parameters, so assign one to ordinary parameter first.\
14851 \ func_stripname_result=${3}\
14852 \ func_stripname_result=${func_stripname_result#"${1}"}\
14853 \ func_stripname_result=${func_stripname_result%"${2}"}\
14854 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14855 && mv -f "$cfgfile.tmp" "$cfgfile" \
14856 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14857 test 0 -eq $? || _lt_function_replace_fail=:
14860 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14861 func_split_long_opt ()\
14863 \ func_split_long_opt_name=${1%%=*}\
14864 \ func_split_long_opt_arg=${1#*=}\
14865 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14866 && mv -f "$cfgfile.tmp" "$cfgfile" \
14867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14868 test 0 -eq $? || _lt_function_replace_fail=:
14871 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14872 func_split_short_opt ()\
14874 \ func_split_short_opt_arg=${1#??}\
14875 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14876 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14877 && mv -f "$cfgfile.tmp" "$cfgfile" \
14878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14879 test 0 -eq $? || _lt_function_replace_fail=:
14882 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14886 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14887 \ *) func_lo2o_result=${1} ;;\
14889 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14890 && mv -f "$cfgfile.tmp" "$cfgfile" \
14891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14895 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14898 func_xform_result=${1%.*}.lo\
14899 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14900 && mv -f "$cfgfile.tmp" "$cfgfile" \
14901 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902 test 0 -eq $? || _lt_function_replace_fail=:
14905 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14908 func_arith_result=$(( $* ))\
14909 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14910 && mv -f "$cfgfile.tmp" "$cfgfile" \
14911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14912 test 0 -eq $? || _lt_function_replace_fail=:
14915 sed -e '/^func_len ()$/,/^} # func_len /c\
14918 func_len_result=${#1}\
14919 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14920 && mv -f "$cfgfile.tmp" "$cfgfile" \
14921 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14922 test 0 -eq $? || _lt_function_replace_fail=:
14926 if test x"$lt_shell_append" = xyes; then
14927 sed -e '/^func_append ()$/,/^} # func_append /c\
14930 eval "${1}+=\\${2}"\
14931 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14932 && mv -f "$cfgfile.tmp" "$cfgfile" \
14933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14934 test 0 -eq $? || _lt_function_replace_fail=:
14937 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14938 func_append_quoted ()\
14940 \ func_quote_for_eval "${2}"\
14941 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14942 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14943 && mv -f "$cfgfile.tmp" "$cfgfile" \
14944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14945 test 0 -eq $? || _lt_function_replace_fail=:
14948 # Save a `func_append' function call where possible by direct use of '+='
14949 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14950 && mv -f "$cfgfile.tmp" "$cfgfile" \
14951 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14952 test 0 -eq $? || _lt_function_replace_fail=:
14954 # Save a `func_append' function call even when '+=' is not available
14955 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14956 && mv -f "$cfgfile.tmp" "$cfgfile" \
14957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14958 test 0 -eq $? || _lt_function_replace_fail=:
14961 if test x"$_lt_function_replace_fail" = x":"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14963 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14967 mv -f "$cfgfile" "$ofile" ||
14968 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14979 ac_clean_files=$ac_clean_files_save
14981 test $ac_write_fail = 0 ||
14982 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14985 # configure is writing to config.log, and then calls config.status.
14986 # config.status does its own redirection, appending to config.log.
14987 # Unfortunately, on DOS this fails, as config.log is still kept open
14988 # by configure, so config.status won't be able to write to it; its
14989 # output is simply discarded. So we exec the FD to /dev/null,
14990 # effectively closing config.log, so it can be properly (re)opened and
14991 # appended to by config.status. When coming back to configure, we
14992 # need to make the FD available again.
14993 if test "$no_create" != yes; then
14995 ac_config_status_args=
14996 test "$silent" = yes &&
14997 ac_config_status_args="$ac_config_status_args --quiet"
14999 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15001 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15002 # would make configure fail if this is the last instruction.
15003 $ac_cs_success || as_fn_exit 1
15005 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15007 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}