2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libevent 2.1.5-beta.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
568 PACKAGE_NAME='libevent'
569 PACKAGE_TARNAME='libevent'
570 PACKAGE_VERSION='2.1.5-beta'
571 PACKAGE_STRING='libevent 2.1.5-beta'
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
633 DEVPOLL_BACKEND_FALSE
641 BUILD_WITH_NO_UNDEFINED_FALSE
642 BUILD_WITH_NO_UNDEFINED_TRUE
719 INSTALL_STRIP_PROGRAM
761 program_transform_name
774 enable_option_checking
776 enable_dependency_tracking
779 enable_thread_support
780 enable_malloc_replacement
783 enable_libevent_install
784 enable_libevent_regress
786 enable_function_sections
797 ac_precious_vars='build_alias
808 # Initialize some variables set by options.
810 ac_init_version=false
811 ac_unrecognized_opts=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
822 program_transform_name=s,x,x,
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
951 eval enable_$ac_useropt=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
966 -help | --help | --hel | --he | -h)
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 sbindir=$ac_optarg ;;
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 sharedstatedir=$ac_optarg ;;
1113 -site | --site | --sit)
1115 -site=* | --site=* | --sit=*)
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1155 eval with_$ac_useropt=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1171 eval with_$ac_useropt=no ;;
1174 # Obsolete; use --with-x.
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1242 # Be sure to have absolute directory names.
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1255 target=$target_alias
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1262 If a cross compiler is detected then cross compile mode will be used" >&2
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271 test "$silent" = yes && exec 6>/dev/null
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of libevent 2.1.5-beta:";;
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: `make V=1')
1427 --disable-silent-rules verbose build output (undo: `make V=0')
1428 --disable-dependency-tracking speeds up one-time build
1429 --enable-dependency-tracking do not reject slow dependency extractors
1430 --disable-gcc-warnings disable verbose warnings with GCC
1431 --enable-gcc-hardening enable compiler security checks
1432 --disable-thread-support
1433 disable support for threading
1434 --disable-malloc-replacement
1435 disable support for replacing the memory mgt
1437 --disable-openssl disable support for openssl encryption
1438 --disable-debug-mode disable support for running in debug mode
1439 --disable-libevent-install, disable installation of libevent
1441 --disable-libevent-regress, skip regress in make check
1443 --disable-samples, skip building of sample programs
1445 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1447 --enable-verbose-debug, verbose debug logging
1449 --enable-shared[=PKGS] build shared libraries [default=yes]
1450 --enable-static[=PKGS] build static libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --disable-largefile omit support for large files
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-pic try to use only PIC/non-PIC objects [default=use
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot=DIR Search for dependent libraries within DIR
1463 (or the compiler's sysroot if not specified).
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to the package provider.
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 libevent configure 2.1.5-beta
1542 generated by GNU Autoconf 2.68
1544 Copyright (C) 2010 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1591 } # ac_fn_c_try_compile
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1635 ac_fn_c_check_header_mongrel ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if eval \${$3+:} false; then :
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1648 # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 ac_header_compiler=yes
1659 ac_header_compiler=no
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673 ac_header_preproc=yes
1675 ac_header_preproc=no
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1681 # So? What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 eval "$3=\$ac_header_compiler"
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 } # ac_fn_c_check_header_mongrel
1717 # ac_fn_c_try_run LINENO
1718 # ----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720 # that executables *can* be run.
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { { ac_try="$ac_link"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>&5
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735 { { case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_try") 2>&5
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; }; }; then :
1747 $as_echo "$as_me: program exited with status $ac_status" >&5
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=$ac_status
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1759 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760 # -------------------------------------------------------
1761 # Tests whether HEADER exists and can be compiled using the include files in
1762 # INCLUDES, setting the cache variable VAR accordingly.
1763 ac_fn_c_check_header_compile ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1776 if ac_fn_c_try_compile "$LINENO"; then :
1781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 } # ac_fn_c_check_header_compile
1790 # ac_fn_c_try_link LINENO
1791 # -----------------------
1792 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest$ac_exeext
1797 if { { ac_try="$ac_link"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_link") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest$ac_exeext && {
1816 test "$cross_compiling" = yes ||
1817 $as_test_x conftest$ac_exeext
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_link
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1859 # include <limits.h>
1861 # include <assert.h>
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1888 if ac_fn_c_try_link "$LINENO"; then :
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_func
1903 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1904 # ---------------------------------------------
1905 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1907 ac_fn_c_check_decl ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 as_decl_name=`echo $2|sed 's/ *(.*//'`
1911 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1913 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1914 if eval \${$3+:} false; then :
1915 $as_echo_n "(cached) " >&6
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1923 #ifndef $as_decl_name
1925 (void) $as_decl_use;
1927 (void) $as_decl_name;
1935 if ac_fn_c_try_compile "$LINENO"; then :
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_decl
1949 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1950 # -------------------------------------------
1951 # Tests whether TYPE exists after having included INCLUDES, setting cache
1952 # variable VAR accordingly.
1953 ac_fn_c_check_type ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_type
2003 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2004 # --------------------------------------------
2005 # Tries to find the compile-time value of EXPR in a program that includes
2006 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2008 ac_fn_c_compute_int ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if test "$cross_compiling" = yes; then
2012 # Depending upon the size, compute the lo and hi bounds.
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2019 static int test_array [1 - 2 * !(($2) >= 0)];
2026 if ac_fn_c_try_compile "$LINENO"; then :
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=$ac_mid; break
2045 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2046 if test $ac_lo -le $ac_mid; then
2050 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h. */
2061 static int test_array [1 - 2 * !(($2) < 0)];
2068 if ac_fn_c_try_compile "$LINENO"; then :
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_lo=$ac_mid; break
2087 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2088 if test $ac_mid -le $ac_hi; then
2092 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 # Binary search between lo and hi bounds.
2103 while test "x$ac_lo" != "x$ac_hi"; do
2104 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2133 static long int longval () { return $2; }
2134 static unsigned long int ulongval () { return $2; }
2141 FILE *f = fopen ("conftest.val", "w");
2146 long int i = longval ();
2149 fprintf (f, "%ld", i);
2153 unsigned long int i = ulongval ();
2156 fprintf (f, "%lu", i);
2158 /* Do not output a trailing newline, as this causes \r\n confusion
2159 on some platforms. */
2160 return ferror (f) || fclose (f) != 0;
2166 if ac_fn_c_try_run "$LINENO"; then :
2167 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2172 conftest.$ac_objext conftest.beam conftest.$ac_ext
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2179 } # ac_fn_c_compute_int
2181 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2182 # ----------------------------------------------------
2183 # Tries to find if the field MEMBER exists in type AGGR, after including
2184 # INCLUDES, setting cache variable VAR accordingly.
2185 ac_fn_c_check_member ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2189 $as_echo_n "checking for $2.$3... " >&6; }
2190 if eval \${$4+:} false; then :
2191 $as_echo_n "(cached) " >&6
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2206 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2216 if (sizeof ac_aggr.$3)
2222 if ac_fn_c_try_compile "$LINENO"; then :
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2236 } # ac_fn_c_check_member
2237 cat >config.log <<_ACEOF
2238 This file contains any messages produced by compilers while
2239 running configure, to aid debugging if configure makes a mistake.
2241 It was created by libevent $as_me 2.1.5-beta, which was
2242 generated by GNU Autoconf 2.68. Invocation command line was
2254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2266 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 $as_echo "PATH: $as_dir"
2294 # Keep a trace of the command line.
2295 # Strip out --no-create and --no-recursion so they do not pile up.
2296 # Strip out --silent because we don't want to record it for future runs.
2297 # Also quote any args containing shell meta-characters.
2298 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_must_keep_next=false
2308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2310 | -silent | --silent | --silen | --sile | --sil)
2313 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2318 as_fn_append ac_configure_args1 " '$ac_arg'"
2319 if test $ac_must_keep_next = true; then
2320 ac_must_keep_next=false # Got value, back to normal.
2323 *=* | --config-cache | -C | -disable-* | --disable-* \
2324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2326 | -with-* | --with-* | -without-* | --without-* | --x)
2327 case "$ac_configure_args0 " in
2328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 -* ) ac_must_keep_next=true ;;
2334 as_fn_append ac_configure_args " '$ac_arg'"
2339 { ac_configure_args0=; unset ac_configure_args0;}
2340 { ac_configure_args1=; unset ac_configure_args1;}
2342 # When interrupted or exit'd, cleanup temporary files, and complete
2343 # config.log. We remove comments because anyway the quotes in there
2344 # would cause problems or look ugly.
2345 # WARNING: Use '\'' to represent an apostrophe within the trap.
2346 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2347 trap 'exit_status=$?
2348 # Save into config.log some information that might help in debugging.
2352 $as_echo "## ---------------- ##
2353 ## Cache variables. ##
2354 ## ---------------- ##"
2356 # The following way of writing the cache mishandles newlines in values,
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2388 $as_echo "## ----------------- ##
2389 ## Output variables. ##
2390 ## ----------------- ##"
2392 for ac_var in $ac_subst_vars
2394 eval ac_val=\$$ac_var
2396 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2398 $as_echo "$ac_var='\''$ac_val'\''"
2402 if test -n "$ac_subst_files"; then
2403 $as_echo "## ------------------- ##
2404 ## File substitutions. ##
2405 ## ------------------- ##"
2407 for ac_var in $ac_subst_files
2409 eval ac_val=\$$ac_var
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 $as_echo "$ac_var='\''$ac_val'\''"
2418 if test -s confdefs.h; then
2419 $as_echo "## ----------- ##
2426 test "$ac_signal" != 0 &&
2427 $as_echo "$as_me: caught signal $ac_signal"
2428 $as_echo "$as_me: exit $exit_status"
2430 rm -f core *.core core.conftest.* &&
2431 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 for ac_signal in 1 2 13 15; do
2435 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2440 rm -f -r conftest* confdefs.h
2442 $as_echo "/* confdefs.h */" > confdefs.h
2444 # Predefined preprocessor variables.
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_URL "$PACKAGE_URL"
2471 # Let the site file select an alternate cache file if it wants to.
2472 # Prefer an explicitly selected file to automatically selected ones.
2475 if test -n "$CONFIG_SITE"; then
2476 # We do not want a PATH search for config.site.
2477 case $CONFIG_SITE in #((
2478 -*) ac_site_file1=./$CONFIG_SITE;;
2479 */*) ac_site_file1=$CONFIG_SITE;;
2480 *) ac_site_file1=./$CONFIG_SITE;;
2482 elif test "x$prefix" != xNONE; then
2483 ac_site_file1=$prefix/share/config.site
2484 ac_site_file2=$prefix/etc/config.site
2486 ac_site_file1=$ac_default_prefix/share/config.site
2487 ac_site_file2=$ac_default_prefix/etc/config.site
2489 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2491 test "x$ac_site_file" = xNONE && continue
2492 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2494 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2495 sed 's/^/| /' "$ac_site_file" >&5
2497 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 as_fn_error $? "failed to load site script $ac_site_file
2500 See \`config.log' for more details" "$LINENO" 5; }
2504 if test -r "$cache_file"; then
2505 # Some versions of bash will fail to source /dev/null (special files
2506 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2507 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2509 $as_echo "$as_me: loading cache $cache_file" >&6;}
2511 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2512 *) . "./$cache_file";;
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2517 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521 # Check that the precious variables saved in the cache have kept the same
2523 ac_cache_corrupted=false
2524 for ac_var in $ac_precious_vars; do
2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2532 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2533 ac_cache_corrupted=: ;;
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2536 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2540 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2546 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2547 ac_cache_corrupted=:
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2550 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2551 eval $ac_var=\$ac_old_val
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2554 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2556 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2559 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then
2562 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;;
2565 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571 if $ac_cache_corrupted; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2576 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578 ## -------------------- ##
2579 ## Main body of script. ##
2580 ## -------------------- ##
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 for ac_dir in build-aux "$srcdir"/build-aux; do
2595 if test -f "$ac_dir/install-sh"; then
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2599 elif test -f "$ac_dir/install.sh"; then
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2603 elif test -f "$ac_dir/shtool"; then
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 am__api_version='1.11'
2624 # Find a good install program. We prefer a C program (faster),
2625 # so one script is as good as another. But avoid the broken or
2626 # incompatible versions:
2627 # SysV /etc/install, /usr/sbin/install
2628 # SunOS /usr/etc/install
2629 # IRIX /sbin/install
2631 # AmigaOS /C/install, which installs bootblocks on floppy discs
2632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2635 # OS/2's system install, which has a completely different semantic
2636 # ./install, which can be erroneously created by make from ./install.sh.
2637 # Reject install programs that cannot install multiple files.
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2639 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2640 if test -z "$INSTALL"; then
2641 if ${ac_cv_path_install+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 # Account for people who put trailing slashes in PATH elements.
2650 case $as_dir/ in #((
2651 ./ | .// | /[cC]/* | \
2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2659 for ac_prog in ginstall scoinst install; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2662 if test $ac_prog = install &&
2663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # AIX install. It has an incompatible calling convention.
2666 elif test $ac_prog = install &&
2667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # program-specific install script used by HP pwplus--don't use.
2671 rm -rf conftest.one conftest.two conftest.dir
2672 echo one > conftest.one
2673 echo two > conftest.two
2675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2676 test -s conftest.one && test -s conftest.two &&
2677 test -s conftest.dir/conftest.one &&
2678 test -s conftest.dir/conftest.two
2680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2693 rm -rf conftest.one conftest.two conftest.dir
2696 if test "${ac_cv_path_install+set}" = set; then
2697 INSTALL=$ac_cv_path_install
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for INSTALL within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 INSTALL=$ac_install_sh
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2707 $as_echo "$INSTALL" >&6; }
2709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2710 # It thinks the first close brace ends the variable substitution.
2711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2718 $as_echo_n "checking whether build environment is sane... " >&6; }
2721 echo timestamp > conftest.file
2722 # Reject unsafe characters in $srcdir or the absolute working directory
2723 # name. Accept space and tab only in the latter.
2727 *[\\\"\#\$\&\'\`$am_lf]*)
2728 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2731 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2732 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2735 # Do `set' in a subshell so we don't clobber the current shell's
2736 # arguments. Must try -L first in case configure is actually a
2737 # symlink; some systems play weird games with the mod time of symlinks
2738 # (eg FreeBSD returns the mod time of the symlink's containing
2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2744 set X `ls -t "$srcdir/configure" conftest.file`
2747 if test "$*" != "X $srcdir/configure conftest.file" \
2748 && test "$*" != "X conftest.file $srcdir/configure"; then
2750 # If neither matched, then we have a broken ls. This can happen
2751 # if, for instance, CONFIG_SHELL is bash and it inherits a
2752 # broken ls alias from the environment. This has actually
2753 # happened. Such a system could not be considered "sane".
2754 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2755 alias in your environment" "$LINENO" 5
2758 test "$2" = conftest.file
2764 as_fn_error $? "newly created file is older than distributed files!
2765 Check your system clock" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 test "$program_prefix" != NONE &&
2770 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2771 # Use a double $ so make ignores it.
2772 test "$program_suffix" != NONE &&
2773 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2774 # Double any \ or $.
2775 # By default was `s,x,x', remove it if useless.
2776 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2777 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2779 # expand $ac_aux_dir to an absolute path
2780 am_aux_dir=`cd $ac_aux_dir && pwd`
2782 if test x"${MISSING+set}" != xset; then
2785 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2787 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2790 # Use eval to expand $SHELL
2791 if eval "$MISSING --run true"; then
2792 am_missing_run="$MISSING --run "
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2796 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799 if test x"${install_sh}" != xset; then
2802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2804 install_sh="\${SHELL} $am_aux_dir/install-sh"
2808 # Installed binaries are usually stripped using `strip' when the user
2809 # run `make install-strip'. However `strip' might not be the right
2810 # tool to use in cross-compilation environments, therefore Automake
2811 # will honor the `STRIP' environment variable to overrule this program.
2812 if test "$cross_compiling" != no; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_STRIP+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$STRIP"; then
2822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 STRIP=$ac_cv_prog_STRIP
2842 if test -n "$STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2844 $as_echo "$STRIP" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$ac_cv_prog_STRIP"; then
2854 # Extract the first word of "strip", so it can be a program name with args.
2855 set dummy strip; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$ac_ct_STRIP"; then
2862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_prog_ac_ct_STRIP="strip"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2882 if test -n "$ac_ct_STRIP"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2884 $as_echo "$ac_ct_STRIP" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2890 if test "x$ac_ct_STRIP" = x; then
2893 case $cross_compiling:$ac_tool_warned in
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2902 STRIP="$ac_cv_prog_STRIP"
2906 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2909 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2910 if test -z "$MKDIR_P"; then
2911 if ${ac_cv_path_mkdir+:} false; then :
2912 $as_echo_n "(cached) " >&6
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2918 test -z "$as_dir" && as_dir=.
2919 for ac_prog in mkdir gmkdir; do
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2923 'mkdir (GNU coreutils) '* | \
2924 'mkdir (coreutils) '* | \
2925 'mkdir (fileutils) '4.1*)
2926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2936 test -d ./--version && rmdir ./--version
2937 if test "${ac_cv_path_mkdir+set}" = set; then
2938 MKDIR_P="$ac_cv_path_mkdir -p"
2940 # As a last resort, use the slow shell script. Don't cache a
2941 # value for MKDIR_P within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the value is a relative name.
2944 MKDIR_P="$ac_install_sh -d"
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2948 $as_echo "$MKDIR_P" >&6; }
2952 [\\/$]* | ?:[\\/]*) ;;
2953 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2956 for ac_prog in gawk mawk nawk awk
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_AWK+:} false; then :
2963 $as_echo_n "(cached) " >&6
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_AWK="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 if test -n "$AWK"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2988 $as_echo "$AWK" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$AWK" && break
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2999 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3001 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3002 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3003 $as_echo_n "(cached) " >&6
3005 cat >conftest.make <<\_ACEOF
3008 @echo '@@@%%%=$(MAKE)=@@@%%%'
3010 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3013 eval ac_cv_prog_make_${ac_make}_set=yes;;
3015 eval ac_cv_prog_make_${ac_make}_set=no;;
3019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3021 $as_echo "yes" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 SET_MAKE="MAKE=${MAKE-make}"
3029 rm -rf .tst 2>/dev/null
3030 mkdir .tst 2>/dev/null
3031 if test -d .tst; then
3036 rmdir .tst 2>/dev/null
3038 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3040 # is not polluted with repeated "-I."
3041 am__isrc=' -I$(srcdir)'
3042 # test to see if srcdir already configured
3043 if test -f $srcdir/config.status; then
3044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3048 # test whether we have cygpath
3049 if test -z "$CYGPATH_W"; then
3050 if (cygpath --version) >/dev/null 2>/dev/null; then
3051 CYGPATH_W='cygpath -w'
3058 # Define the identity of the package.
3060 VERSION='2.1.5-beta'
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE "$PACKAGE"
3068 cat >>confdefs.h <<_ACEOF
3069 #define VERSION "$VERSION"
3072 # Some tools Automake needs.
3074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088 # We need awk for the "check" target. The system "awk" is bad on
3090 # Always define AMTAR for backward compatibility.
3092 AMTAR=${AMTAR-"${am_missing_run}tar"}
3094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3100 # Check whether --enable-silent-rules was given.
3101 if test "${enable_silent_rules+set}" = set; then :
3102 enableval=$enable_silent_rules;
3105 case $enable_silent_rules in
3106 yes) AM_DEFAULT_VERBOSITY=0;;
3107 no) AM_DEFAULT_VERBOSITY=1;;
3108 *) AM_DEFAULT_VERBOSITY=0;;
3112 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3115 $as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h
3118 if test "$prefix" = "NONE"; then
3123 # Make sure we can run config.sub.
3124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3128 $as_echo_n "checking build system type... " >&6; }
3129 if ${ac_cv_build+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 ac_build_alias=$build_alias
3133 test "x$ac_build_alias" = x &&
3134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3135 test "x$ac_build_alias" = x &&
3136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3142 $as_echo "$ac_cv_build" >&6; }
3143 case $ac_cv_build in
3145 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3148 ac_save_IFS=$IFS; IFS='-'
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3162 $as_echo_n "checking host system type... " >&6; }
3163 if ${ac_cv_host+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test "x$host_alias" = x; then
3167 ac_cv_host=$ac_cv_build
3169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3175 $as_echo "$ac_cv_host" >&6; }
3178 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3181 ac_save_IFS=$IFS; IFS='-'
3187 # Remember, the first character of IFS is used to create $*,
3188 # except with old shells:
3191 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3194 DEPDIR="${am__leading_dot}deps"
3196 ac_config_commands="$ac_config_commands depfiles"
3199 am_make=${MAKE-make}
3200 cat > confinc << 'END'
3202 @echo this is the am__doit target
3205 # If we don't find an include directive, just comment out the code.
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3207 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3211 # First try GNU make style include.
3212 echo "include confinc" > confmf
3213 # Ignore all kinds of additional output from `make'.
3214 case `$am_make -s -f confmf 2> /dev/null` in #(
3215 *the\ am__doit\ target*)
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 case `$am_make -s -f confmf 2> /dev/null` in #(
3225 *the\ am__doit\ target*)
3226 am__include=.include
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3235 $as_echo "$_am_result" >&6; }
3236 rm -f confinc confmf
3238 # Check whether --enable-dependency-tracking was given.
3239 if test "${enable_dependency_tracking+set}" = set; then :
3240 enableval=$enable_dependency_tracking;
3243 if test "x$enable_dependency_tracking" != xno; then
3244 am_depcomp="$ac_aux_dir/depcomp"
3247 if test "x$enable_dependency_tracking" != xno; then
3257 ac_cpp='$CPP $CPPFLAGS'
3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3300 if test -z "$ac_cv_prog_CC"; then
3302 # Extract the first word of "gcc", so it can be a program name with args.
3303 set dummy gcc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$ac_ct_CC"; then
3310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_ac_ct_CC="gcc"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3330 if test -n "$ac_ct_CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3332 $as_echo "$ac_ct_CC" >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3338 if test "x$ac_ct_CC" = x; then
3341 case $cross_compiling:$ac_tool_warned in
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345 ac_tool_warned=yes ;;
3353 if test -z "$CC"; then
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}cc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_CC="${ac_tool_prefix}cc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3394 if test -z "$CC"; then
3395 # Extract the first word of "cc", so it can be a program name with args.
3396 set dummy cc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3414 ac_prog_rejected=yes
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 if test $ac_prog_rejected = yes; then
3426 # We found a bogon in the path, so make sure we never use it.
3427 set dummy $ac_cv_prog_CC
3429 if test $# != 0; then
3430 # We chose a different compiler from the bogus one.
3431 # However, it has the same basename, so the bogon will be chosen
3432 # first if we set CC to just the basename; use the full file name.
3434 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3440 if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3450 if test -z "$CC"; then
3451 if test -n "$ac_tool_prefix"; then
3452 for ac_prog in cl.exe
3454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_prog_CC+:} false; then :
3459 $as_echo_n "(cached) " >&6
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3491 test -n "$CC" && break
3494 if test -z "$CC"; then
3496 for ac_prog in cl.exe
3498 # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$ac_ct_CC"; then
3506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515 ac_cv_prog_ac_ct_CC="$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3526 if test -n "$ac_ct_CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3528 $as_echo "$ac_ct_CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$ac_ct_CC" && break
3538 if test "x$ac_ct_CC" = x; then
3541 case $cross_compiling:$ac_tool_warned in
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3545 ac_tool_warned=yes ;;
3554 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "no acceptable C compiler found in \$PATH
3557 See \`config.log' for more details" "$LINENO" 5; }
3559 # Provide some information about the compiler.
3560 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3563 for ac_option in --version -v -V -qversion; do
3564 { { ac_try="$ac_compiler $ac_option >&5"
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570 $as_echo "$ac_try_echo"; } >&5
3571 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3573 if test -s conftest.err; then
3575 ... rest of stderr output deleted ...
3576 10q' conftest.err >conftest.er1
3577 cat conftest.er1 >&5
3579 rm -f conftest.er1 conftest.err
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3595 ac_clean_files_save=$ac_clean_files
3596 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3597 # Try to create an executable without -o first, disregard a.out.
3598 # It will help us diagnose broken compilers, and finding out an intuition
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3601 $as_echo_n "checking whether the C compiler works... " >&6; }
3602 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3604 # The possible output files:
3605 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3608 for ac_file in $ac_files
3611 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3612 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3617 if { { ac_try="$ac_link_default"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_link_default") 2>&5
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }; then :
3628 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3629 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3630 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3631 # so that the user can short-circuit this test for compilers unknown to
3633 for ac_file in $ac_files ''
3635 test -f "$ac_file" || continue
3637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3640 # We found the default executable, but exeext='' is most
3644 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3646 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3648 # We set ac_cv_exeext here because the later test for it is not
3649 # safe: cross compilers may not add the suffix if given an `-o'
3650 # argument, so we may need to know it at that point already.
3651 # Even if this section looks crufty: it has the advantage of
3658 test "$ac_cv_exeext" = no && ac_cv_exeext=
3663 if test -z "$ac_file"; then :
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error 77 "C compiler cannot create executables
3672 See \`config.log' for more details" "$LINENO" 5; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3675 $as_echo "yes" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3678 $as_echo_n "checking for C compiler default output file name... " >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3680 $as_echo "$ac_file" >&6; }
3681 ac_exeext=$ac_cv_exeext
3683 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3684 ac_clean_files=$ac_clean_files_save
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3702 for ac_file in conftest.exe conftest conftest.*; do
3703 test -f "$ac_file" || continue
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details" "$LINENO" 5; }
3717 rm -f conftest conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3730 FILE *f = fopen ("conftest.out", "w");
3731 return ferror (f) || fclose (f) != 0;
3737 ac_clean_files="$ac_clean_files conftest.out"
3738 # Check that the compiler produces executables we can run. If not, either
3739 # the compiler is broken, or we cross compile.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3741 $as_echo_n "checking whether we are cross compiling... " >&6; }
3742 if test "$cross_compiling" != yes; then
3743 { { ac_try="$ac_link"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }
3754 if { ac_try='./conftest$ac_cv_exeext'
3755 { { case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_try") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; }; then
3767 if test "$cross_compiling" = maybe; then
3770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot run C compiled programs.
3773 If you meant to cross compile, use \`--host'.
3774 See \`config.log' for more details" "$LINENO" 5; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3779 $as_echo "$cross_compiling" >&6; }
3781 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3782 ac_clean_files=$ac_clean_files_save
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3784 $as_echo_n "checking for suffix of object files... " >&6; }
3785 if ${ac_cv_objext+:} false; then :
3786 $as_echo_n "(cached) " >&6
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 rm -f conftest.o conftest.obj
3800 if { { ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_compile") 2>&5
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details" "$LINENO" 5; }
3828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3831 $as_echo "$ac_cv_objext" >&6; }
3832 OBJEXT=$ac_cv_objext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3836 if ${ac_cv_c_compiler_gnu+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3853 if ac_fn_c_try_compile "$LINENO"; then :
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3859 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3863 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3864 if test $ac_compiler_gnu = yes; then
3869 ac_test_CFLAGS=${CFLAGS+set}
3870 ac_save_CFLAGS=$CFLAGS
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3872 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3873 if ${ac_cv_prog_cc_g+:} false; then :
3874 $as_echo_n "(cached) " >&6
3876 ac_save_c_werror_flag=$ac_c_werror_flag
3877 ac_c_werror_flag=yes
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_c_try_compile "$LINENO"; then :
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3906 if ac_fn_c_try_compile "$LINENO"; then :
3909 ac_c_werror_flag=$ac_save_c_werror_flag
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3922 if ac_fn_c_try_compile "$LINENO"; then :
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 ac_c_werror_flag=$ac_save_c_werror_flag
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3933 $as_echo "$ac_cv_prog_cc_g" >&6; }
3934 if test "$ac_test_CFLAGS" = set; then
3935 CFLAGS=$ac_save_CFLAGS
3936 elif test $ac_cv_prog_cc_g = yes; then
3937 if test "$GCC" = yes; then
3943 if test "$GCC" = yes; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3950 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3951 if ${ac_cv_prog_cc_c89+:} false; then :
3952 $as_echo_n "(cached) " >&6
3954 ac_cv_prog_cc_c89=no
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3960 #include <sys/types.h>
3961 #include <sys/stat.h>
3962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3963 struct buf { int x; };
3964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3965 static char *e (p, i)
3971 static char *f (char * (*g) (char **, int), char **p, ...)
3976 s = g (p, va_arg (v,int));
3981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3982 function prototypes and stuff, but not '\xHH' hex character constants.
3983 These don't provoke an error unfortunately, instead are silently treated
3984 as 'x'. The following induces an error, until -std is added to get
3985 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3986 array size at least. It's necessary to write '\x00'==0 to get something
3987 that's true only with -std. */
3988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3991 inside strings and character constants. */
3993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3995 int test (int i, double x);
3996 struct s1 {int (*f) (int a);};
3997 struct s2 {int (*f) (double a);};
3998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4004 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4010 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4012 CC="$ac_save_CC $ac_arg"
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_c89=$ac_arg
4016 rm -f core conftest.err conftest.$ac_objext
4017 test "x$ac_cv_prog_cc_c89" != "xno" && break
4019 rm -f conftest.$ac_ext
4024 case "x$ac_cv_prog_cc_c89" in
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 $as_echo "none needed" >&6; } ;;
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4030 $as_echo "unsupported" >&6; } ;;
4032 CC="$CC $ac_cv_prog_cc_c89"
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4034 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4036 if test "x$ac_cv_prog_cc_c89" != xno; then :
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4046 depcc="$CC" am_compiler_list=
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4049 $as_echo_n "checking dependency style of $depcc... " >&6; }
4050 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4054 # We make a subdir and do the tests there. Otherwise we can end up
4055 # making bogus files that we don't know about and never remove. For
4056 # instance it was reported that on HP-UX the gcc test will end up
4057 # making a dummy file named `D' -- because `-MD' means `put the output
4060 # Copy depcomp to subdir because otherwise we won't find it if we're
4061 # using a relative directory.
4062 cp "$am_depcomp" conftest.dir
4064 # We will build objects and dependencies in a subdirectory because
4065 # it helps to detect inapplicable dependency modes. For instance
4066 # both Tru64's cc and ICC support -MD to output dependencies as a
4067 # side effect of compilation, but ICC will put the dependencies in
4068 # the current directory while Tru64 will put them in the object
4072 am_cv_CC_dependencies_compiler_type=none
4073 if test "$am_compiler_list" = ""; then
4074 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077 case " $depcc " in #(
4078 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4081 for depmode in $am_compiler_list; do
4082 # Setup a source with many dependencies, because some compilers
4083 # like to wrap large dependency lists on column 80 (with \), and
4084 # we should not choose a depcomp mode which is confused by this.
4086 # We need to recreate these files for each test, as the compiler may
4087 # overwrite some of them when testing with obscure command lines.
4088 # This happens at least with the AIX C compiler.
4090 for i in 1 2 3 4 5 6; do
4091 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4092 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4093 # Solaris 8's {/usr,}/bin/sh.
4094 touch sub/conftst$i.h
4096 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4098 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4099 # mode. It turns out that the SunPro C++ compiler does not properly
4100 # handle `-M -o', and we need to detect this. Also, some Intel
4101 # versions had trouble with output in subdirs
4102 am__obj=sub/conftest.${OBJEXT-o}
4103 am__minus_obj="-o $am__obj"
4106 # This depmode causes a compiler race in universal mode.
4107 test "$am__universal" = false || continue
4110 # after this tag, mechanisms are not by side-effect, so they'll
4111 # only be used when explicitly requested
4112 if test "x$enable_dependency_tracking" = xyes; then
4118 msvisualcpp | msvcmsys)
4119 # This compiler won't grok `-c -o', but also, the minuso test has
4120 # not run yet. These depmodes are late enough in the game, and
4121 # so weak that their functioning should not be impacted.
4122 am__obj=conftest.${OBJEXT-o}
4127 if depmode=$depmode \
4128 source=sub/conftest.c object=$am__obj \
4129 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4130 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4131 >/dev/null 2>conftest.err &&
4132 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4136 # icc doesn't choke on unknown options, it will just issue warnings
4137 # or remarks (even with -Werror). So we grep stderr for any message
4138 # that says an option was ignored or not supported.
4139 # When given -MP, icc 7.0 and 7.1 complain thusly:
4140 # icc: Command line warning: ignoring option '-M'; no argument required
4141 # The diagnosis changed in icc 8.0:
4142 # icc: Command line remark: option '-MP' not supported
4143 if (grep 'ignoring option' conftest.err ||
4144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4145 am_cv_CC_dependencies_compiler_type=$depmode
4154 am_cv_CC_dependencies_compiler_type=none
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4159 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4160 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4163 test "x$enable_dependency_tracking" != xno \
4164 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4166 am__fastdepCC_FALSE='#'
4168 am__fastdepCC_TRUE='#'
4169 am__fastdepCC_FALSE=
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4180 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4181 # On Suns, sometimes $CPP names a directory.
4182 if test -n "$CPP" && test -d "$CPP"; then
4185 if test -z "$CPP"; then
4186 if ${ac_cv_prog_CPP+:} false; then :
4187 $as_echo_n "(cached) " >&6
4189 # Double quotes because CPP needs to be expanded
4190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4204 # include <limits.h>
4206 # include <assert.h>
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4213 # Broken: fails on valid input.
4216 rm -f conftest.err conftest.i conftest.$ac_ext
4218 # OK, works on sane cases. Now check whether nonexistent headers
4219 # can be detected and how.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <ac_nonexistent.h>
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225 # Broken: success on invalid input.
4228 # Passes both tests.
4232 rm -f conftest.err conftest.i conftest.$ac_ext
4235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4236 rm -f conftest.i conftest.err conftest.$ac_ext
4237 if $ac_preproc_ok; then :
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4250 $as_echo "$CPP" >&6; }
4252 for ac_c_preproc_warn_flag in '' yes
4254 # Use a header file that comes with gcc, so configuring glibc
4255 # with a fresh cross-compiler works.
4256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 # <limits.h> exists even on freestanding compilers.
4258 # On the NeXT, cc -E runs the code through the compiler's parser,
4259 # not just through cpp. "Syntax error" is here to catch this case.
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4263 # include <limits.h>
4265 # include <assert.h>
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4272 # Broken: fails on valid input.
4275 rm -f conftest.err conftest.i conftest.$ac_ext
4277 # OK, works on sane cases. Now check whether nonexistent headers
4278 # can be detected and how.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #include <ac_nonexistent.h>
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4284 # Broken: success on invalid input.
4287 # Passes both tests.
4291 rm -f conftest.err conftest.i conftest.$ac_ext
4294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4295 rm -f conftest.i conftest.err conftest.$ac_ext
4296 if $ac_preproc_ok; then :
4299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4302 See \`config.log' for more details" "$LINENO" 5; }
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314 if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4329 # Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331 case `"$ac_path_GREP" --version 2>&1` in
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4336 $as_echo_n 0123456789 >"conftest.in"
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4357 $ac_path_GREP_found && break 3
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4366 ac_cv_path_GREP=$GREP
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4402 $as_echo_n 0123456789 >"conftest.in"
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423 $ac_path_EGREP_found && break 3
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432 ac_cv_path_EGREP=$EGREP
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438 $as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4443 $as_echo_n "checking for ANSI C header files... " >&6; }
4444 if ${ac_cv_header_stdc+:} false; then :
4445 $as_echo_n "(cached) " >&6
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4462 if ac_fn_c_try_compile "$LINENO"; then :
4463 ac_cv_header_stdc=yes
4465 ac_cv_header_stdc=no
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 if test $ac_cv_header_stdc = yes; then
4470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4477 $EGREP "memchr" >/dev/null 2>&1; then :
4480 ac_cv_header_stdc=no
4486 if test $ac_cv_header_stdc = yes; then
4487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then :
4497 ac_cv_header_stdc=no
4503 if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then :
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 #if ((' ' & 0x0FF) == 0x020)
4513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516 # define ISLOWER(c) \
4517 (('a' <= (c) && (c) <= 'i') \
4518 || ('j' <= (c) && (c) <= 'r') \
4519 || ('s' <= (c) && (c) <= 'z'))
4520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4528 for (i = 0; i < 256; i++)
4529 if (XOR (islower (i), ISLOWER (i))
4530 || toupper (i) != TOUPPER (i))
4535 if ac_fn_c_try_run "$LINENO"; then :
4538 ac_cv_header_stdc=no
4540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4541 conftest.$ac_objext conftest.beam conftest.$ac_ext
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4547 $as_echo "$ac_cv_header_stdc" >&6; }
4548 if test $ac_cv_header_stdc = yes; then
4550 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4556 inttypes.h stdint.h unistd.h
4558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4562 cat >>confdefs.h <<_ACEOF
4563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4575 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4582 if test "$MINIX" = yes; then
4584 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4587 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4590 $as_echo "#define _MINIX 1" >>confdefs.h
4597 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4604 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4605 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4606 $as_echo_n "(cached) " >&6
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4611 # define __EXTENSIONS__ 1
4612 $ac_includes_default
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_safe_to_define___extensions__=yes
4624 ac_cv_safe_to_define___extensions__=no
4626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4629 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4630 test $ac_cv_safe_to_define___extensions__ = yes &&
4631 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4633 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4635 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4637 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4639 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4650 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
4654 if test "x$CC" != xcc; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4656 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4659 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4661 set dummy $CC; ac_cc=`$as_echo "$2" |
4662 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4663 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4664 $as_echo_n "(cached) " >&6
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4677 # Make sure it works both with $CC and with simple cc.
4678 # We do the test twice because some compilers refuse to overwrite an
4679 # existing .o file with -o, though they will create one.
4680 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4682 if { { case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4687 $as_echo "$ac_try_echo"; } >&5
4688 (eval "$ac_try") 2>&5
4690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4691 test $ac_status = 0; } &&
4692 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694 *) ac_try_echo=$ac_try;;
4696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
4698 (eval "$ac_try") 2>&5
4700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4701 test $ac_status = 0; };
4703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4704 if test "x$CC" != xcc; then
4705 # Test first that cc exists at all.
4706 if { ac_try='cc -c conftest.$ac_ext >&5'
4707 { { case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712 $as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_try") 2>&5
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }; }; then
4717 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4719 if { { case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$ac_try") 2>&5
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; } &&
4729 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4734 $as_echo "$ac_try_echo"; } >&5
4735 (eval "$ac_try") 2>&5
4737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4738 test $ac_status = 0; };
4743 # cc exists but doesn't like -o.
4744 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4749 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4751 rm -f core conftest*
4754 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4756 $as_echo "yes" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4761 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4765 # FIXME: we rely on the cache variable name because
4766 # there is no other way.
4768 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4769 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4770 if test "$am_t" != yes; then
4771 # Losing compiler, so override with the script.
4772 # FIXME: It is wrong to rewrite CC.
4773 # But if we don't then we get into trouble of one sort or another.
4774 # A longer-term fix would be to have automake use am__CC in this case,
4775 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4776 CC="$am_aux_dir/compile $CC"
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4782 $as_echo_n "checking whether ln -s works... " >&6; }
4784 if test "$LN_S" = "ln -s"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4786 $as_echo "yes" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4789 $as_echo "no, using $LN_S" >&6; }
4792 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4794 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4797 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4798 if ${ac_cv_path_SED+:} false; then :
4799 $as_echo_n "(cached) " >&6
4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4802 for ac_i in 1 2 3 4 5 6 7; do
4803 ac_script="$ac_script$as_nl$ac_script"
4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4806 { ac_script=; unset ac_script;}
4807 if test -z "$SED"; then
4808 ac_path_SED_found=false
4809 # Loop through the user's path and test for each of PROGNAME-LIST
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir=.
4815 for ac_prog in sed gsed; do
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4818 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4819 # Check for GNU ac_path_SED and select it if it is found.
4820 # Check for GNU $ac_path_SED
4821 case `"$ac_path_SED" --version 2>&1` in
4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4826 $as_echo_n 0123456789 >"conftest.in"
4829 cat "conftest.in" "conftest.in" >"conftest.tmp"
4830 mv "conftest.tmp" "conftest.in"
4831 cp "conftest.in" "conftest.nl"
4832 $as_echo '' >> "conftest.nl"
4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val
4836 if test $ac_count -gt ${ac_path_SED_max-0}; then
4837 # Best one so far, save it but keep looking for a better one
4838 ac_cv_path_SED="$ac_path_SED"
4839 ac_path_SED_max=$ac_count
4841 # 10*(2^10) chars as input seems more than enough
4842 test $ac_count -gt 10 && break
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4847 $ac_path_SED_found && break 3
4852 if test -z "$ac_cv_path_SED"; then
4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861 $as_echo "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4866 if test $ac_cv_c_compiler_gnu = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4868 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4869 if ${ac_cv_prog_gcc_traditional+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 ac_pattern="Autoconf.*'x'"
4873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4874 /* end confdefs.h. */
4878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4879 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4880 ac_cv_prog_gcc_traditional=yes
4882 ac_cv_prog_gcc_traditional=no
4887 if test $ac_cv_prog_gcc_traditional = no; then
4888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4894 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4895 ac_cv_prog_gcc_traditional=yes
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4902 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4903 if test $ac_cv_prog_gcc_traditional = yes; then
4904 CC="$CC -traditional"
4909 # We need to test for at least gcc 2.95 here, because older versions don't
4910 # have -fno-strict-aliasing
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4918 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4925 if ac_fn_c_try_compile "$LINENO"; then :
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4932 if test "$GCC" = "yes" ; then
4933 # Enable many gcc warnings by default...
4934 CFLAGS="$CFLAGS -Wall"
4935 # And disable the strict-aliasing optimization, since it breaks
4936 # our sockaddr-handling code in strange ways.
4937 if test x$have_gcc295 = xyes; then
4938 CFLAGS="$CFLAGS -fno-strict-aliasing"
4942 # OS X Lion started deprecating the system openssl. Let's just disable
4943 # all deprecation warnings on OS X.
4947 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4951 # Check whether --enable-gcc-warnings was given.
4952 if test "${enable_gcc_warnings+set}" = set; then :
4953 enableval=$enable_gcc_warnings;
4957 # Check whether --enable-gcc-hardening was given.
4958 if test "${enable_gcc_hardening+set}" = set; then :
4959 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
4960 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
4961 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
4962 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
4967 # Check whether --enable-thread-support was given.
4968 if test "${enable_thread_support+set}" = set; then :
4969 enableval=$enable_thread_support;
4971 enable_thread_support=yes
4974 # Check whether --enable-malloc-replacement was given.
4975 if test "${enable_malloc_replacement+set}" = set; then :
4976 enableval=$enable_malloc_replacement;
4978 enable_malloc_replacement=yes
4981 # Check whether --enable-openssl was given.
4982 if test "${enable_openssl+set}" = set; then :
4983 enableval=$enable_openssl;
4988 # Check whether --enable-debug-mode was given.
4989 if test "${enable_debug_mode+set}" = set; then :
4990 enableval=$enable_debug_mode;
4992 enable_debug_mode=yes
4995 # Check whether --enable-libevent-install was given.
4996 if test "${enable_libevent_install+set}" = set; then :
4997 enableval=$enable_libevent_install;
4999 enable_libevent_install=yes
5002 # Check whether --enable-libevent-regress was given.
5003 if test "${enable_libevent_regress+set}" = set; then :
5004 enableval=$enable_libevent_regress;
5006 enable_libevent_regress=yes
5009 # Check whether --enable-samples was given.
5010 if test "${enable_samples+set}" = set; then :
5011 enableval=$enable_samples;
5016 # Check whether --enable-function-sections was given.
5017 if test "${enable_function_sections+set}" = set; then :
5018 enableval=$enable_function_sections;
5020 enable_function_sections=no
5023 # Check whether --enable-verbose-debug was given.
5024 if test "${enable_verbose_debug+set}" = set; then :
5025 enableval=$enable_verbose_debug;
5027 enable_verbose_debug=no
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5035 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5041 macro_revision='1.3293'
5055 ltmain="$ac_aux_dir/ltmain.sh"
5057 # Backslashify metacharacters that are still active within
5058 # double-quoted strings.
5059 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5061 # Same as above, but do not quote variable references.
5062 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5064 # Sed substitution to delay expansion of an escaped shell variable in a
5065 # double_quote_subst'ed string.
5066 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5068 # Sed substitution to delay expansion of an escaped single quote.
5069 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5071 # Sed substitution to avoid accidental globbing in evaled expressions
5072 no_glob_subst='s/\*/\\\*/g'
5074 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5079 $as_echo_n "checking how to print strings... " >&6; }
5080 # Test print first, because it will be a builtin if present.
5081 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5082 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5084 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5087 # Use this function as a fallback that always works.
5088 func_fallback_echo ()
5090 eval 'cat <<_LTECHO_EOF
5094 ECHO='func_fallback_echo'
5097 # func_echo_all arg...
5098 # Invoke $ECHO with all args, space-separated.
5105 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5106 $as_echo "printf" >&6; } ;;
5107 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5108 $as_echo "print -r" >&6; } ;;
5109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5110 $as_echo "cat" >&6; } ;;
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5127 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5128 if ${ac_cv_path_SED+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5132 for ac_i in 1 2 3 4 5 6 7; do
5133 ac_script="$ac_script$as_nl$ac_script"
5135 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5136 { ac_script=; unset ac_script;}
5137 if test -z "$SED"; then
5138 ac_path_SED_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in sed gsed; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5148 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5149 # Check for GNU ac_path_SED and select it if it is found.
5150 # Check for GNU $ac_path_SED
5151 case `"$ac_path_SED" --version 2>&1` in
5153 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5156 $as_echo_n 0123456789 >"conftest.in"
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo '' >> "conftest.nl"
5163 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_SED_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_SED="$ac_path_SED"
5169 ac_path_SED_max=$ac_count
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 $ac_path_SED_found && break 3
5182 if test -z "$ac_cv_path_SED"; then
5183 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5191 $as_echo "$ac_cv_path_SED" >&6; }
5192 SED="$ac_cv_path_SED"
5195 test -z "$SED" && SED=sed
5196 Xsed="$SED -e 1s/^X//"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5209 $as_echo_n "checking for fgrep... " >&6; }
5210 if ${ac_cv_path_FGREP+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5214 then ac_cv_path_FGREP="$GREP -F"
5216 if test -z "$FGREP"; then
5217 ac_path_FGREP_found=false
5218 # Loop through the user's path and test for each of PROGNAME-LIST
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5223 test -z "$as_dir" && as_dir=.
5224 for ac_prog in fgrep; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5227 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5228 # Check for GNU ac_path_FGREP and select it if it is found.
5229 # Check for GNU $ac_path_FGREP
5230 case `"$ac_path_FGREP" --version 2>&1` in
5232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5235 $as_echo_n 0123456789 >"conftest.in"
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 $as_echo 'FGREP' >> "conftest.nl"
5242 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 as_fn_arith $ac_count + 1 && ac_count=$as_val
5245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_FGREP="$ac_path_FGREP"
5248 ac_path_FGREP_max=$ac_count
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 $ac_path_FGREP_found && break 3
5261 if test -z "$ac_cv_path_FGREP"; then
5262 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5265 ac_cv_path_FGREP=$FGREP
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5271 $as_echo "$ac_cv_path_FGREP" >&6; }
5272 FGREP="$ac_cv_path_FGREP"
5275 test -z "$GREP" && GREP=grep
5295 # Check whether --with-gnu-ld was given.
5296 if test "${with_gnu_ld+set}" = set; then :
5297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5303 if test "$GCC" = yes; then
5304 # Check if gcc -print-prog-name=ld gives a path.
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5306 $as_echo_n "checking for ld used by $CC... " >&6; }
5309 # gcc leaves a trailing carriage return which upsets mingw
5310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5315 # Accept absolute paths.
5317 re_direlt='/[^/][^/]*/\.\./'
5318 # Canonicalize the pathname of ld
5319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5323 test -z "$LD" && LD="$ac_prog"
5326 # If it fails, then pretend we aren't using GCC.
5330 # If it is relative, then search for the first ld in PATH.
5334 elif test "$with_gnu_ld" = yes; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5336 $as_echo_n "checking for GNU ld... " >&6; }
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5339 $as_echo_n "checking for non-GNU ld... " >&6; }
5341 if ${lt_cv_path_LD+:} false; then :
5342 $as_echo_n "(cached) " >&6
5344 if test -z "$LD"; then
5345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5346 for ac_dir in $PATH; do
5348 test -z "$ac_dir" && ac_dir=.
5349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5350 lt_cv_path_LD="$ac_dir/$ac_prog"
5351 # Check to see if the program is GNU ld. I'd rather use --version,
5352 # but apparently some variants of GNU ld only accept -v.
5353 # Break only if it was the GNU/non-GNU ld that we prefer.
5354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5355 *GNU* | *'with BFD'*)
5356 test "$with_gnu_ld" != no && break
5359 test "$with_gnu_ld" != yes && break
5366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5371 if test -n "$LD"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5373 $as_echo "$LD" >&6; }
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5378 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5380 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5381 if ${lt_cv_prog_gnu_ld+:} false; then :
5382 $as_echo_n "(cached) " >&6
5384 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5385 case `$LD -v 2>&1 </dev/null` in
5386 *GNU* | *'with BFD'*)
5387 lt_cv_prog_gnu_ld=yes
5390 lt_cv_prog_gnu_ld=no
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5395 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5396 with_gnu_ld=$lt_cv_prog_gnu_ld
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5407 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5408 if ${lt_cv_path_NM+:} false; then :
5409 $as_echo_n "(cached) " >&6
5411 if test -n "$NM"; then
5412 # Let the user override the test.
5415 lt_nm_to_check="${ac_tool_prefix}nm"
5416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5417 lt_nm_to_check="$lt_nm_to_check nm"
5419 for lt_tmp_nm in $lt_nm_to_check; do
5420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5423 test -z "$ac_dir" && ac_dir=.
5424 tmp_nm="$ac_dir/$lt_tmp_nm"
5425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5426 # Check to see if the nm accepts a BSD-compat flag.
5427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5428 # nm: unknown option "B" ignored
5429 # Tru64's nm complains that /dev/null is an invalid object file
5430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5431 */dev/null* | *'Invalid file or object type'*)
5432 lt_cv_path_NM="$tmp_nm -B"
5436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5438 lt_cv_path_NM="$tmp_nm -p"
5442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5443 continue # so that we can try to find one that supports BSD flags
5452 : ${lt_cv_path_NM=no}
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5456 $as_echo "$lt_cv_path_NM" >&6; }
5457 if test "$lt_cv_path_NM" != "no"; then
5460 # Didn't find any BSD compatible name lister, look for dumpbin.
5461 if test -n "$DUMPBIN"; then :
5462 # Let the user override the test.
5464 if test -n "$ac_tool_prefix"; then
5465 for ac_prog in dumpbin "link -dump"
5467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_DUMPBIN+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 if test -n "$DUMPBIN"; then
5475 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 DUMPBIN=$ac_cv_prog_DUMPBIN
5495 if test -n "$DUMPBIN"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5497 $as_echo "$DUMPBIN" >&6; }
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5504 test -n "$DUMPBIN" && break
5507 if test -z "$DUMPBIN"; then
5508 ac_ct_DUMPBIN=$DUMPBIN
5509 for ac_prog in dumpbin "link -dump"
5511 # Extract the first word of "$ac_prog", so it can be a program name with args.
5512 set dummy $ac_prog; 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_ac_ct_DUMPBIN+:} false; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_DUMPBIN"; then
5519 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_ac_ct_DUMPBIN="$ac_prog"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5539 if test -n "$ac_ct_DUMPBIN"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5541 $as_echo "$ac_ct_DUMPBIN" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5548 test -n "$ac_ct_DUMPBIN" && break
5551 if test "x$ac_ct_DUMPBIN" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5560 DUMPBIN=$ac_ct_DUMPBIN
5564 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5566 DUMPBIN="$DUMPBIN -symbols"
5574 if test "$DUMPBIN" != ":"; then
5578 test -z "$NM" && NM=nm
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5586 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5587 if ${lt_cv_nm_interface+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 lt_cv_nm_interface="BSD nm"
5591 echo "int some_variable = 0;" > conftest.$ac_ext
5592 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5593 (eval "$ac_compile" 2>conftest.err)
5594 cat conftest.err >&5
5595 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5597 cat conftest.err >&5
5598 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5599 cat conftest.out >&5
5600 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5601 lt_cv_nm_interface="MS dumpbin"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5606 $as_echo "$lt_cv_nm_interface" >&6; }
5608 # find the maximum length of command line arguments
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5611 if ${lt_cv_sys_max_cmd_len+:} false; then :
5612 $as_echo_n "(cached) " >&6
5619 # On DJGPP, this test can blow up pretty badly due to problems in libc
5620 # (any single argument exceeding 2000 bytes causes a buffer overrun
5621 # during glob expansion). Even if it were fixed, the result of this
5622 # check would be larger than it should be.
5623 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5627 # Under GNU Hurd, this test is not required because there is
5628 # no limit to the length of command line arguments.
5629 # Libtool will interpret -1 as no limit whatsoever
5630 lt_cv_sys_max_cmd_len=-1;
5633 cygwin* | mingw* | cegcc*)
5634 # On Win9x/ME, this test blows up -- it succeeds, but takes
5635 # about 5 minutes as the teststring grows exponentially.
5636 # Worse, since 9x/ME are not pre-emptively multitasking,
5637 # you end up with a "frozen" computer, even though with patience
5638 # the test eventually succeeds (with a max line length of 256k).
5639 # Instead, let's just punt: use the minimum linelength reported by
5640 # all of the supported platforms: 8192 (on NT/2K/XP).
5641 lt_cv_sys_max_cmd_len=8192;
5645 # On MiNT this can take a long time and run out of memory.
5646 lt_cv_sys_max_cmd_len=8192;
5650 # On AmigaOS with pdksh, this test takes hours, literally.
5651 # So we just punt and use a minimum line length of 8192.
5652 lt_cv_sys_max_cmd_len=8192;
5655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5656 # This has been around since 386BSD, at least. Likely further.
5657 if test -x /sbin/sysctl; then
5658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5659 elif test -x /usr/sbin/sysctl; then
5660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5662 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5664 # And add a safety zone
5665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5670 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5671 lt_cv_sys_max_cmd_len=196608
5675 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5676 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5677 # nice to cause kernel panics so lets avoid the loop below.
5678 # First set a reasonable default.
5679 lt_cv_sys_max_cmd_len=16384
5681 if test -x /sbin/sysconfig; then
5682 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5683 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5688 lt_cv_sys_max_cmd_len=102400
5690 sysv5* | sco5v6* | sysv4.2uw2*)
5691 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5692 if test -n "$kargmax"; then
5693 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5695 lt_cv_sys_max_cmd_len=32768
5699 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5700 if test -n "$lt_cv_sys_max_cmd_len"; then
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5704 # Make teststring a little bigger before we do anything with it.
5705 # a 1K string should be a reasonable start.
5706 for i in 1 2 3 4 5 6 7 8 ; do
5707 teststring=$teststring$teststring
5709 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5710 # If test is not a shell built-in, we'll probably end up computing a
5711 # maximum length that is only half of the actual maximum length, but
5713 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5714 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5715 test $i != 17 # 1/2 MB should be enough
5718 teststring=$teststring$teststring
5720 # Only check the string length outside the loop.
5721 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5723 # Add a significant safety factor because C++ compilers can tack on
5724 # massive amounts of additional arguments before passing them to the
5725 # linker. It appears as though 1/2 is a usable value.
5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5733 if test -n $lt_cv_sys_max_cmd_len ; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5735 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5738 $as_echo "none" >&6; }
5740 max_cmd_len=$lt_cv_sys_max_cmd_len
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5752 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5753 # Try some XSI features
5756 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5758 && eval 'test $(( 1 + 1 )) -eq 2 \
5759 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5762 $as_echo "$xsi_shell" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5766 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5768 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5770 && lt_shell_append=yes
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5772 $as_echo "$lt_shell_append" >&6; }
5775 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5785 # test EBCDIC or ASCII
5786 case `echo X|tr X '\101'` in
5787 A) # ASCII based system
5788 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5789 lt_SP2NL='tr \040 \012'
5790 lt_NL2SP='tr \015\012 \040\040'
5792 *) # EBCDIC based system
5793 lt_SP2NL='tr \100 \n'
5794 lt_NL2SP='tr \r\n \100\100'
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5807 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5808 if ${lt_cv_to_host_file_cmd+:} false; then :
5809 $as_echo_n "(cached) " >&6
5814 *-*-mingw* ) # actually msys
5815 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5818 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5820 * ) # otherwise, assume *nix
5821 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5827 *-*-mingw* ) # actually msys
5828 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5831 lt_cv_to_host_file_cmd=func_convert_file_noop
5833 * ) # otherwise, assume *nix
5834 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5838 * ) # unhandled hosts (and "normal" native builds)
5839 lt_cv_to_host_file_cmd=func_convert_file_noop
5845 to_host_file_cmd=$lt_cv_to_host_file_cmd
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5847 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5854 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5855 if ${lt_cv_to_tool_file_cmd+:} false; then :
5856 $as_echo_n "(cached) " >&6
5858 #assume ordinary cross tools, or native build.
5859 lt_cv_to_tool_file_cmd=func_convert_file_noop
5863 *-*-mingw* ) # actually msys
5864 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5872 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5874 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5881 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5882 if ${lt_cv_ld_reload_flag+:} false; then :
5883 $as_echo_n "(cached) " >&6
5885 lt_cv_ld_reload_flag='-r'
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5888 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5889 reload_flag=$lt_cv_ld_reload_flag
5890 case $reload_flag in
5892 *) reload_flag=" $reload_flag" ;;
5894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5896 cygwin* | mingw* | pw32* | cegcc*)
5897 if test "$GCC" != yes; then
5902 if test "$GCC" = yes; then
5903 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5905 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5918 if test -n "$ac_tool_prefix"; then
5919 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5920 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5922 $as_echo_n "checking for $ac_word... " >&6; }
5923 if ${ac_cv_prog_OBJDUMP+:} false; then :
5924 $as_echo_n "(cached) " >&6
5926 if test -n "$OBJDUMP"; then
5927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
5935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5936 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 OBJDUMP=$ac_cv_prog_OBJDUMP
5947 if test -n "$OBJDUMP"; then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5949 $as_echo "$OBJDUMP" >&6; }
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5957 if test -z "$ac_cv_prog_OBJDUMP"; then
5958 ac_ct_OBJDUMP=$OBJDUMP
5959 # Extract the first word of "objdump", so it can be a program name with args.
5960 set dummy objdump; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 if test -n "$ac_ct_OBJDUMP"; then
5967 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5987 if test -n "$ac_ct_OBJDUMP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5989 $as_echo "$ac_ct_OBJDUMP" >&6; }
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992 $as_echo "no" >&6; }
5995 if test "x$ac_ct_OBJDUMP" = x; then
5998 case $cross_compiling:$ac_tool_warned in
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6002 ac_tool_warned=yes ;;
6004 OBJDUMP=$ac_ct_OBJDUMP
6007 OBJDUMP="$ac_cv_prog_OBJDUMP"
6010 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6021 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6022 if ${lt_cv_deplibs_check_method+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 lt_cv_file_magic_cmd='$MAGIC_CMD'
6026 lt_cv_file_magic_test_file=
6027 lt_cv_deplibs_check_method='unknown'
6028 # Need to set the preceding variable on all platforms that support
6029 # interlibrary dependencies.
6030 # 'none' -- dependencies not supported.
6031 # `unknown' -- same as none, but documents that we really don't know.
6032 # 'pass_all' -- all dependencies passed with no checks.
6033 # 'test_compile' -- check by making test program.
6034 # 'file_magic [[regex]]' -- check by looking for files in library path
6035 # which responds to the $file_magic_cmd with a given extended regex.
6036 # If you have `file' or equivalent on your system and you're not sure
6037 # whether `pass_all' will *always* work, you probably want this one.
6041 lt_cv_deplibs_check_method=pass_all
6045 lt_cv_deplibs_check_method=pass_all
6049 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6050 lt_cv_file_magic_cmd='/usr/bin/file -L'
6051 lt_cv_file_magic_test_file=/shlib/libc.so
6055 # func_win32_libid is a shell function defined in ltmain.sh
6056 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6057 lt_cv_file_magic_cmd='func_win32_libid'
6061 # Base MSYS/MinGW do not provide the 'file' command needed by
6062 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6063 # unless we find 'file', for example because we are cross-compiling.
6064 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6065 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6067 lt_cv_file_magic_cmd='func_win32_libid'
6069 # Keep this pattern in sync with the one in func_win32_libid.
6070 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6071 lt_cv_file_magic_cmd='$OBJDUMP -f'
6076 # use the weaker test based on 'objdump'. See mingw*.
6077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6078 lt_cv_file_magic_cmd='$OBJDUMP -f'
6081 darwin* | rhapsody*)
6082 lt_cv_deplibs_check_method=pass_all
6085 freebsd* | dragonfly*)
6086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6089 # Not sure whether the presence of OpenBSD here was a mistake.
6090 # Let's accept both of them until this is cleared up.
6091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6092 lt_cv_file_magic_cmd=/usr/bin/file
6093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6097 lt_cv_deplibs_check_method=pass_all
6102 lt_cv_deplibs_check_method=pass_all
6106 lt_cv_deplibs_check_method=pass_all
6109 hpux10.20* | hpux11*)
6110 lt_cv_file_magic_cmd=/usr/bin/file
6113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6117 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]'
6118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6132 irix5* | irix6* | nonstopux*)
6134 *-32|*"-32 ") libmagic=32-bit;;
6135 *-n32|*"-n32 ") libmagic=N32;;
6136 *-64|*"-64 ") libmagic=64-bit;;
6137 *) libmagic=never-match;;
6139 lt_cv_deplibs_check_method=pass_all
6142 # This must be Linux ELF.
6143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6144 lt_cv_deplibs_check_method=pass_all
6148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6157 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6162 lt_cv_deplibs_check_method=pass_all
6166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 osf3* | osf4* | osf5*)
6174 lt_cv_deplibs_check_method=pass_all
6178 lt_cv_deplibs_check_method=pass_all
6182 lt_cv_deplibs_check_method=pass_all
6185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6186 lt_cv_deplibs_check_method=pass_all
6190 case $host_vendor in
6192 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]'
6193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6196 lt_cv_deplibs_check_method=pass_all
6199 lt_cv_file_magic_cmd='/bin/file'
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6203 lt_cv_file_magic_cmd='/bin/file'
6204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6205 lt_cv_file_magic_test_file=/lib/libc.so
6208 lt_cv_deplibs_check_method=pass_all
6211 lt_cv_deplibs_check_method=pass_all
6217 lt_cv_deplibs_check_method=pass_all
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6223 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6227 if test "$build" = "$host"; then
6230 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6233 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6239 file_magic_cmd=$lt_cv_file_magic_cmd
6240 deplibs_check_method=$lt_cv_deplibs_check_method
6241 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_DLLTOOL+:} false; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$DLLTOOL"; then
6273 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 DLLTOOL=$ac_cv_prog_DLLTOOL
6293 if test -n "$DLLTOOL"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6295 $as_echo "$DLLTOOL" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6303 if test -z "$ac_cv_prog_DLLTOOL"; then
6304 ac_ct_DLLTOOL=$DLLTOOL
6305 # Extract the first word of "dlltool", so it can be a program name with args.
6306 set dummy dlltool; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$ac_ct_DLLTOOL"; then
6313 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6333 if test -n "$ac_ct_DLLTOOL"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6335 $as_echo "$ac_ct_DLLTOOL" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6341 if test "x$ac_ct_DLLTOOL" = x; then
6344 case $cross_compiling:$ac_tool_warned in
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6350 DLLTOOL=$ac_ct_DLLTOOL
6353 DLLTOOL="$ac_cv_prog_DLLTOOL"
6356 test -z "$DLLTOOL" && DLLTOOL=dlltool
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6368 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6369 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6370 $as_echo_n "(cached) " >&6
6372 lt_cv_sharedlib_from_linklib_cmd='unknown'
6375 cygwin* | mingw* | pw32* | cegcc*)
6376 # two different shell functions defined in ltmain.sh
6377 # decide which to use based on capabilities of $DLLTOOL
6378 case `$DLLTOOL --help 2>&1` in
6379 *--identify-strict*)
6380 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6383 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6388 # fallback: assume linklib IS sharedlib
6389 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6395 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6396 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6397 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6405 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_AR+:} false; then :
6413 $as_echo_n "(cached) " >&6
6415 if test -n "$AR"; then
6416 ac_cv_prog_AR="$AR" # Let the user override the test.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 if test -n "$AR"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6438 $as_echo "$AR" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6445 test -n "$AR" && break
6448 if test -z "$AR"; then
6452 # Extract the first word of "$ac_prog", so it can be a program name with args.
6453 set dummy $ac_prog; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 if test -n "$ac_ct_AR"; then
6460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_prog_ac_ct_AR="$ac_prog"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6480 if test -n "$ac_ct_AR"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6482 $as_echo "$ac_ct_AR" >&6; }
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6489 test -n "$ac_ct_AR" && break
6492 if test "x$ac_ct_AR" = x; then
6495 case $cross_compiling:$ac_tool_warned in
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499 ac_tool_warned=yes ;;
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6519 $as_echo_n "checking for archiver @FILE support... " >&6; }
6520 if ${lt_cv_ar_at_file+:} false; then :
6521 $as_echo_n "(cached) " >&6
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6535 if ac_fn_c_try_compile "$LINENO"; then :
6536 echo conftest.$ac_objext > conftest.lst
6537 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6539 (eval $lt_ar_try) 2>&5
6541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6542 test $ac_status = 0; }
6543 if test "$ac_status" -eq 0; then
6544 # Ensure the archiver fails upon bogus file names.
6545 rm -f conftest.$ac_objext libconftest.a
6546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6547 (eval $lt_ar_try) 2>&5
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; }
6551 if test "$ac_status" -ne 0; then
6555 rm -f conftest.* libconftest.a
6558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6562 $as_echo "$lt_cv_ar_at_file" >&6; }
6564 if test "x$lt_cv_ar_at_file" = xno; then
6567 archiver_list_spec=$lt_cv_ar_at_file
6576 if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}strip; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_STRIP+:} false; then :
6582 $as_echo_n "(cached) " >&6
6584 if test -n "$STRIP"; then
6585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 STRIP=$ac_cv_prog_STRIP
6605 if test -n "$STRIP"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6607 $as_echo "$STRIP" >&6; }
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6615 if test -z "$ac_cv_prog_STRIP"; then
6617 # Extract the first word of "strip", so it can be a program name with args.
6618 set dummy strip; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6622 $as_echo_n "(cached) " >&6
6624 if test -n "$ac_ct_STRIP"; then
6625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 test -z "$as_dir" && as_dir=.
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634 ac_cv_prog_ac_ct_STRIP="strip"
6635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6645 if test -n "$ac_ct_STRIP"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6647 $as_echo "$ac_ct_STRIP" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6653 if test "x$ac_ct_STRIP" = x; then
6656 case $cross_compiling:$ac_tool_warned in
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6665 STRIP="$ac_cv_prog_STRIP"
6668 test -z "$STRIP" && STRIP=:
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_RANLIB+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$RANLIB"; then
6684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 RANLIB=$ac_cv_prog_RANLIB
6704 if test -n "$RANLIB"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6706 $as_echo "$RANLIB" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_RANLIB"; then
6715 ac_ct_RANLIB=$RANLIB
6716 # Extract the first word of "ranlib", so it can be a program name with args.
6717 set dummy ranlib; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_RANLIB"; then
6724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_ac_ct_RANLIB="ranlib"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6744 if test -n "$ac_ct_RANLIB"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6746 $as_echo "$ac_ct_RANLIB" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_RANLIB" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6761 RANLIB=$ac_ct_RANLIB
6764 RANLIB="$ac_cv_prog_RANLIB"
6767 test -z "$RANLIB" && RANLIB=:
6774 # Determine commands to create old-style static archives.
6775 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6776 old_postinstall_cmds='chmod 644 $oldlib'
6777 old_postuninstall_cmds=
6779 if test -n "$RANLIB"; then
6782 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6788 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6793 lock_old_archive_extraction=yes ;;
6795 lock_old_archive_extraction=no ;;
6836 # If no C compiler was specified, use CC.
6839 # If no C compiler flags were specified, use CFLAGS.
6840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6842 # Allow CC to be a program name with arguments.
6846 # Check for command to grab the raw symbol name followed by C symbol from nm.
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6848 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6849 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6850 $as_echo_n "(cached) " >&6
6853 # These are sane defaults that work on at least a few old systems.
6854 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6856 # Character class describing NM global symbol codes.
6857 symcode='[BCDEGRST]'
6859 # Regexp to match symbols that can be accessed directly from C.
6860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6862 # Define system-specific variables.
6867 cygwin* | mingw* | pw32* | cegcc*)
6868 symcode='[ABCDGISTW]'
6871 if test "$host_cpu" = ia64; then
6872 symcode='[ABCDEGRST]'
6876 symcode='[BCDEGRST]'
6879 symcode='[BCDEGQRST]'
6890 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6898 # If we're using GNU nm, then use its standard symbol codes.
6899 case `$NM -V 2>&1` in
6900 *GNU* | *'with BFD'*)
6901 symcode='[ABCDGIRSTW]' ;;
6904 # Transform an extracted symbol line into a proper C declaration.
6905 # Some systems (esp. on ia64) link data and code symbols differently,
6906 # so use this general approach.
6907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6909 # Transform an extracted symbol line into symbol name and symbol address
6910 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6911 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'"
6913 # Handle CRLF in mingw tool chain
6917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6921 # Try without a prefix underscore, then with it.
6922 for ac_symprfx in "" "_"; do
6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6925 symxfrm="\\1 $ac_symprfx\\2 \\2"
6927 # Write the raw and C identifiers.
6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6929 # Fake it for dumpbin and say T for any non-static function
6930 # and D for any global variable.
6931 # Also find C++ and __fastcall symbols from MSVC++,
6932 # which start with @ or ?.
6933 lt_cv_sys_global_symbol_pipe="$AWK '"\
6934 " {last_section=section; section=\$ 3};"\
6935 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6936 " \$ 0!~/External *\|/{next};"\
6937 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6938 " {if(hide[section]) next};"\
6939 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6940 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6941 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6942 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6943 " ' prfx=^$ac_symprfx"
6945 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6947 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6949 # Check to see that the pipe works correctly.
6953 cat > conftest.$ac_ext <<_LT_EOF
6958 void nm_test_func(void);
6959 void nm_test_func(void){}
6963 int main(){nm_test_var='a';nm_test_func();return(0);}
6966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6967 (eval $ac_compile) 2>&5
6969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6970 test $ac_status = 0; }; then
6971 # Now try to grab the symbols.
6973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6974 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; } && test -s "$nlist"; then
6978 # Try sorting and uniquifying the output.
6979 if sort "$nlist" | uniq > "$nlist"T; then
6980 mv -f "$nlist"T "$nlist"
6985 # Make sure that we snagged all the symbols we need.
6986 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6987 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6988 cat <<_LT_EOF > conftest.$ac_ext
6989 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6990 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6991 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6992 relocations are performed -- see ld's documentation on pseudo-relocs. */
6993 # define LT_DLSYM_CONST
6994 #elif defined(__osf__)
6995 /* This system does not cope well with relocations in const data. */
6996 # define LT_DLSYM_CONST
6998 # define LT_DLSYM_CONST const
7006 # Now generate the symbol file.
7007 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7009 cat <<_LT_EOF >> conftest.$ac_ext
7011 /* The mapping between symbol names and symbols. */
7012 LT_DLSYM_CONST struct {
7016 lt__PROGRAM__LTX_preloaded_symbols[] =
7018 { "@PROGRAM@", (void *) 0 },
7020 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7021 cat <<\_LT_EOF >> conftest.$ac_ext
7025 /* This works around a problem in FreeBSD linker */
7026 #ifdef FREEBSD_WORKAROUND
7027 static const void *lt_preloaded_setup() {
7028 return lt__PROGRAM__LTX_preloaded_symbols;
7036 # Now try linking the two files.
7037 mv conftest.$ac_objext conftstm.$ac_objext
7038 lt_globsym_save_LIBS=$LIBS
7039 lt_globsym_save_CFLAGS=$CFLAGS
7040 LIBS="conftstm.$ac_objext"
7041 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7043 (eval $ac_link) 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7049 LIBS=$lt_globsym_save_LIBS
7050 CFLAGS=$lt_globsym_save_CFLAGS
7052 echo "cannot find nm_test_func in $nlist" >&5
7055 echo "cannot find nm_test_var in $nlist" >&5
7058 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7061 echo "$progname: failed program was:" >&5
7062 cat conftest.$ac_ext >&5
7064 rm -rf conftest* conftst*
7066 # Do not use the global_symbol_pipe unless it works.
7067 if test "$pipe_works" = yes; then
7070 lt_cv_sys_global_symbol_pipe=
7076 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7077 lt_cv_sys_global_symbol_to_cdecl=
7079 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7081 $as_echo "failed" >&6; }
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7084 $as_echo "ok" >&6; }
7087 # Response file support.
7088 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7089 nm_file_list_spec='@'
7090 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7091 nm_file_list_spec='@'
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7121 $as_echo_n "checking for sysroot... " >&6; }
7123 # Check whether --with-sysroot was given.
7124 if test "${with_sysroot+set}" = set; then :
7125 withval=$with_sysroot;
7132 case ${with_sysroot} in #(
7134 if test "$GCC" = yes; then
7135 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7139 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7145 $as_echo "${with_sysroot}" >&6; }
7146 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7151 $as_echo "${lt_sysroot:-no}" >&6; }
7157 # Check whether --enable-libtool-lock was given.
7158 if test "${enable_libtool_lock+set}" = set; then :
7159 enableval=$enable_libtool_lock;
7162 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7164 # Some flags need to be propagated to the compiler or linker for good
7168 # Find out which ABI we are using.
7169 echo 'int i;' > conftest.$ac_ext
7170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7171 (eval $ac_compile) 2>&5
7173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7174 test $ac_status = 0; }; then
7175 case `/usr/bin/file conftest.$ac_objext` in
7187 # Find out which ABI we are using.
7188 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7190 (eval $ac_compile) 2>&5
7192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7193 test $ac_status = 0; }; then
7194 if test "$lt_cv_prog_gnu_ld" = yes; then
7195 case `/usr/bin/file conftest.$ac_objext` in
7197 LD="${LD-ld} -melf32bsmip"
7200 LD="${LD-ld} -melf32bmipn32"
7203 LD="${LD-ld} -melf64bmip"
7207 case `/usr/bin/file conftest.$ac_objext` in
7223 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7224 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7225 # Find out which ABI we are using.
7226 echo 'int i;' > conftest.$ac_ext
7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228 (eval $ac_compile) 2>&5
7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231 test $ac_status = 0; }; then
7232 case `/usr/bin/file conftest.o` in
7235 x86_64-*kfreebsd*-gnu)
7236 LD="${LD-ld} -m elf_i386_fbsd"
7239 LD="${LD-ld} -m elf_i386"
7241 ppc64-*linux*|powerpc64-*linux*)
7242 LD="${LD-ld} -m elf32ppclinux"
7245 LD="${LD-ld} -m elf_s390"
7248 LD="${LD-ld} -m elf32_sparc"
7254 x86_64-*kfreebsd*-gnu)
7255 LD="${LD-ld} -m elf_x86_64_fbsd"
7258 LD="${LD-ld} -m elf_x86_64"
7260 ppc*-*linux*|powerpc*-*linux*)
7261 LD="${LD-ld} -m elf64ppc"
7263 s390*-*linux*|s390*-*tpf*)
7264 LD="${LD-ld} -m elf64_s390"
7267 LD="${LD-ld} -m elf64_sparc"
7277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7278 SAVE_CFLAGS="$CFLAGS"
7279 CFLAGS="$CFLAGS -belf"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7281 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7282 if ${lt_cv_cc_needs_belf+:} false; then :
7283 $as_echo_n "(cached) " >&6
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7302 if ac_fn_c_try_link "$LINENO"; then :
7303 lt_cv_cc_needs_belf=yes
7305 lt_cv_cc_needs_belf=no
7307 rm -f core conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7310 ac_cpp='$CPP $CPPFLAGS'
7311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7317 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7320 CFLAGS="$SAVE_CFLAGS"
7324 # Find out which ABI we are using.
7325 echo 'int i;' > conftest.$ac_ext
7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327 (eval $ac_compile) 2>&5
7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330 test $ac_status = 0; }; then
7331 case `/usr/bin/file conftest.o` in
7333 case $lt_cv_prog_gnu_ld in
7334 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7336 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7348 need_locks="$enable_libtool_lock"
7350 if test -n "$ac_tool_prefix"; then
7351 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}mt; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$MANIFEST_TOOL"; then
7359 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7379 if test -n "$MANIFEST_TOOL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7381 $as_echo "$MANIFEST_TOOL" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7389 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7390 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7391 # Extract the first word of "mt", so it can be a program name with args.
7392 set dummy mt; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7396 $as_echo_n "(cached) " >&6
7398 if test -n "$ac_ct_MANIFEST_TOOL"; then
7399 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7419 if test -n "$ac_ct_MANIFEST_TOOL"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7421 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7427 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7430 case $cross_compiling:$ac_tool_warned in
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7436 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7439 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7442 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7444 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7445 if ${lt_cv_path_mainfest_tool+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 lt_cv_path_mainfest_tool=no
7449 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7450 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7451 cat conftest.err >&5
7452 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7453 lt_cv_path_mainfest_tool=yes
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7458 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7459 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7469 rhapsody* | darwin*)
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 if test -n "$DSYMUTIL"; then
7479 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7488 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7499 if test -n "$DSYMUTIL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7501 $as_echo "$DSYMUTIL" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7509 if test -z "$ac_cv_prog_DSYMUTIL"; then
7510 ac_ct_DSYMUTIL=$DSYMUTIL
7511 # Extract the first word of "dsymutil", so it can be a program name with args.
7512 set dummy dsymutil; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$ac_ct_DSYMUTIL"; then
7519 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7539 if test -n "$ac_ct_DSYMUTIL"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7541 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7547 if test "x$ac_ct_DSYMUTIL" = x; then
7550 case $cross_compiling:$ac_tool_warned in
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7556 DSYMUTIL=$ac_ct_DSYMUTIL
7559 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_NMEDIT+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$NMEDIT"; then
7571 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 NMEDIT=$ac_cv_prog_NMEDIT
7591 if test -n "$NMEDIT"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7593 $as_echo "$NMEDIT" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7601 if test -z "$ac_cv_prog_NMEDIT"; then
7602 ac_ct_NMEDIT=$NMEDIT
7603 # Extract the first word of "nmedit", so it can be a program name with args.
7604 set dummy nmedit; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$ac_ct_NMEDIT"; then
7611 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7631 if test -n "$ac_ct_NMEDIT"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7633 $as_echo "$ac_ct_NMEDIT" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7639 if test "x$ac_ct_NMEDIT" = x; then
7642 case $cross_compiling:$ac_tool_warned in
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7648 NMEDIT=$ac_ct_NMEDIT
7651 NMEDIT="$ac_cv_prog_NMEDIT"
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_LIPO+:} false; then :
7660 $as_echo_n "(cached) " >&6
7662 if test -n "$LIPO"; then
7663 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7672 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 LIPO=$ac_cv_prog_LIPO
7683 if test -n "$LIPO"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7685 $as_echo "$LIPO" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 if test -z "$ac_cv_prog_LIPO"; then
7695 # Extract the first word of "lipo", so it can be a program name with args.
7696 set dummy lipo; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$ac_ct_LIPO"; then
7703 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_ac_ct_LIPO="lipo"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7723 if test -n "$ac_ct_LIPO"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7725 $as_echo "$ac_ct_LIPO" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7731 if test "x$ac_ct_LIPO" = x; then
7734 case $cross_compiling:$ac_tool_warned in
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7743 LIPO="$ac_cv_prog_LIPO"
7746 if test -n "$ac_tool_prefix"; then
7747 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7748 set dummy ${ac_tool_prefix}otool; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if ${ac_cv_prog_OTOOL+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 if test -n "$OTOOL"; then
7755 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 OTOOL=$ac_cv_prog_OTOOL
7775 if test -n "$OTOOL"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7777 $as_echo "$OTOOL" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7785 if test -z "$ac_cv_prog_OTOOL"; then
7787 # Extract the first word of "otool", so it can be a program name with args.
7788 set dummy otool; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 if test -n "$ac_ct_OTOOL"; then
7795 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_ac_ct_OTOOL="otool"
7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7815 if test -n "$ac_ct_OTOOL"; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7817 $as_echo "$ac_ct_OTOOL" >&6; }
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820 $as_echo "no" >&6; }
7823 if test "x$ac_ct_OTOOL" = x; then
7826 case $cross_compiling:$ac_tool_warned in
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7830 ac_tool_warned=yes ;;
7835 OTOOL="$ac_cv_prog_OTOOL"
7838 if test -n "$ac_tool_prefix"; then
7839 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7840 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_prog_OTOOL64+:} false; then :
7844 $as_echo_n "(cached) " >&6
7846 if test -n "$OTOOL64"; then
7847 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 OTOOL64=$ac_cv_prog_OTOOL64
7867 if test -n "$OTOOL64"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7869 $as_echo "$OTOOL64" >&6; }
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7877 if test -z "$ac_cv_prog_OTOOL64"; then
7878 ac_ct_OTOOL64=$OTOOL64
7879 # Extract the first word of "otool64", so it can be a program name with args.
7880 set dummy otool64; ac_word=$2
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882 $as_echo_n "checking for $ac_word... " >&6; }
7883 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7884 $as_echo_n "(cached) " >&6
7886 if test -n "$ac_ct_OTOOL64"; then
7887 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 test -z "$as_dir" && as_dir=.
7894 for ac_exec_ext in '' $ac_executable_extensions; do
7895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7896 ac_cv_prog_ac_ct_OTOOL64="otool64"
7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7907 if test -n "$ac_ct_OTOOL64"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7909 $as_echo "$ac_ct_OTOOL64" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7915 if test "x$ac_ct_OTOOL64" = x; then
7918 case $cross_compiling:$ac_tool_warned in
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7922 ac_tool_warned=yes ;;
7924 OTOOL64=$ac_ct_OTOOL64
7927 OTOOL64="$ac_cv_prog_OTOOL64"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7957 $as_echo_n "checking for -single_module linker flag... " >&6; }
7958 if ${lt_cv_apple_cc_single_mod+:} false; then :
7959 $as_echo_n "(cached) " >&6
7961 lt_cv_apple_cc_single_mod=no
7962 if test -z "${LT_MULTI_MODULE}"; then
7963 # By default we will add the -single_module flag. You can override
7964 # by either setting the environment variable LT_MULTI_MODULE
7965 # non-empty at configure time, or by adding -multi_module to the
7967 rm -rf libconftest.dylib*
7968 echo "int foo(void){return 1;}" > conftest.c
7969 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7970 -dynamiclib -Wl,-single_module conftest.c" >&5
7971 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7972 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7974 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7975 lt_cv_apple_cc_single_mod=yes
7977 cat conftest.err >&5
7979 rm -rf libconftest.dylib*
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7984 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7986 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7987 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 lt_cv_ld_exported_symbols_list=no
7991 save_LDFLAGS=$LDFLAGS
7992 echo "_main" > conftest.sym
7993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
8005 if ac_fn_c_try_link "$LINENO"; then :
8006 lt_cv_ld_exported_symbols_list=yes
8008 lt_cv_ld_exported_symbols_list=no
8010 rm -f core conftest.err conftest.$ac_objext \
8011 conftest$ac_exeext conftest.$ac_ext
8012 LDFLAGS="$save_LDFLAGS"
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8016 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8018 $as_echo_n "checking for -force_load linker flag... " >&6; }
8019 if ${lt_cv_ld_force_load+:} false; then :
8020 $as_echo_n "(cached) " >&6
8022 lt_cv_ld_force_load=no
8023 cat > conftest.c << _LT_EOF
8024 int forced_loaded() { return 2;}
8026 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8027 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8028 echo "$AR cru libconftest.a conftest.o" >&5
8029 $AR cru libconftest.a conftest.o 2>&5
8030 echo "$RANLIB libconftest.a" >&5
8031 $RANLIB libconftest.a 2>&5
8032 cat > conftest.c << _LT_EOF
8033 int main() { return 0;}
8035 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8036 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8038 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8039 lt_cv_ld_force_load=yes
8041 cat conftest.err >&5
8043 rm -f conftest.err libconftest.a conftest conftest.c
8044 rm -rf conftest.dSYM
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8048 $as_echo "$lt_cv_ld_force_load" >&6; }
8050 rhapsody* | darwin1.[012])
8051 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8054 darwin*) # darwin 5.x on
8055 # if running on 10.5 or later, the deployment target defaults
8056 # to the OS version, if on x86, and 10.4, the deployment
8057 # target defaults to 10.4. Don't you love it?
8058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8064 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8068 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8069 _lt_dar_single_mod='$single_module'
8071 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8072 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8076 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8077 _lt_dsymutil='~$DSYMUTIL $lib || :'
8084 for ac_header in dlfcn.h
8086 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8088 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8089 cat >>confdefs.h <<_ACEOF
8090 #define HAVE_DLFCN_H 1
8111 # Check whether --enable-shared was given.
8112 if test "${enable_shared+set}" = set; then :
8113 enableval=$enable_shared; p=${PACKAGE-default}
8115 yes) enable_shared=yes ;;
8116 no) enable_shared=no ;;
8119 # Look at the argument we got. We use all the common list separators.
8120 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8121 for pkg in $enableval; do
8123 if test "X$pkg" = "X$p"; then
8142 # Check whether --enable-static was given.
8143 if test "${enable_static+set}" = set; then :
8144 enableval=$enable_static; p=${PACKAGE-default}
8146 yes) enable_static=yes ;;
8147 no) enable_static=no ;;
8150 # Look at the argument we got. We use all the common list separators.
8151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152 for pkg in $enableval; do
8154 if test "X$pkg" = "X$p"; then
8174 # Check whether --with-pic was given.
8175 if test "${with_pic+set}" = set; then :
8176 withval=$with_pic; pic_mode="$withval"
8182 test -z "$pic_mode" && pic_mode=default
8190 # Check whether --enable-fast-install was given.
8191 if test "${enable_fast_install+set}" = set; then :
8192 enableval=$enable_fast_install; p=${PACKAGE-default}
8194 yes) enable_fast_install=yes ;;
8195 no) enable_fast_install=no ;;
8197 enable_fast_install=no
8198 # Look at the argument we got. We use all the common list separators.
8199 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8200 for pkg in $enableval; do
8202 if test "X$pkg" = "X$p"; then
8203 enable_fast_install=yes
8210 enable_fast_install=yes
8223 # This can be used to rebuild libtool when needed
8224 LIBTOOL_DEPS="$ltmain"
8226 # Always use our own libtool.
8227 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8254 test -z "$LN_S" && LN_S="ln -s"
8269 if test -n "${ZSH_VERSION+set}" ; then
8270 setopt NO_GLOB_SUBST
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8274 $as_echo_n "checking for objdir... " >&6; }
8275 if ${lt_cv_objdir+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 rm -f .libs 2>/dev/null
8279 mkdir .libs 2>/dev/null
8280 if test -d .libs; then
8283 # MS-DOS does not allow filenames that begin with a dot.
8286 rmdir .libs 2>/dev/null
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8289 $as_echo "$lt_cv_objdir" >&6; }
8290 objdir=$lt_cv_objdir
8296 cat >>confdefs.h <<_ACEOF
8297 #define LT_OBJDIR "$lt_cv_objdir/"
8305 # AIX sometimes has problems with the GCC collect2 program. For some
8306 # reason, if we set the COLLECT_NAMES environment variable, the problems
8307 # vanish in a puff of smoke.
8308 if test "X${COLLECT_NAMES+set}" != Xset; then
8310 export COLLECT_NAMES
8317 can_build_shared=yes
8319 # All known linkers require a `.a' archive for static linking (except MSVC,
8320 # which needs '.lib').
8323 with_gnu_ld="$lt_cv_prog_gnu_ld"
8326 old_CFLAGS="$CFLAGS"
8328 # Set sane defaults for various variables
8329 test -z "$CC" && CC=cc
8330 test -z "$LTCC" && LTCC=$CC
8331 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8332 test -z "$LD" && LD=ld
8333 test -z "$ac_objext" && ac_objext=o
8335 for cc_temp in $compiler""; do
8337 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8338 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8343 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8346 # Only perform the check for file, if the check method requires it
8347 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8348 case $deplibs_check_method in
8350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8352 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8353 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8354 $as_echo_n "(cached) " >&6
8358 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8361 lt_save_MAGIC_CMD="$MAGIC_CMD"
8362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8363 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8364 for ac_dir in $ac_dummy; do
8366 test -z "$ac_dir" && ac_dir=.
8367 if test -f $ac_dir/${ac_tool_prefix}file; then
8368 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8369 if test -n "$file_magic_test_file"; then
8370 case $deplibs_check_method in
8372 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8375 $EGREP "$file_magic_regex" > /dev/null; then
8380 *** Warning: the command libtool uses to detect shared libraries,
8381 *** $file_magic_cmd, produces output that libtool cannot recognize.
8382 *** The result is that libtool may fail to recognize shared libraries
8383 *** as such. This will affect the creation of libtool libraries that
8384 *** depend on shared libraries, but programs linked with such libtool
8385 *** libraries will work regardless of this problem. Nevertheless, you
8386 *** may want to report the problem to your system manager and/or to
8387 *** bug-libtool@gnu.org
8397 MAGIC_CMD="$lt_save_MAGIC_CMD"
8402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8403 if test -n "$MAGIC_CMD"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8405 $as_echo "$MAGIC_CMD" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo "no" >&6; }
8415 if test -z "$lt_cv_path_MAGIC_CMD"; then
8416 if test -n "$ac_tool_prefix"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8418 $as_echo_n "checking for file... " >&6; }
8419 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8420 $as_echo_n "(cached) " >&6
8424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8427 lt_save_MAGIC_CMD="$MAGIC_CMD"
8428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8430 for ac_dir in $ac_dummy; do
8432 test -z "$ac_dir" && ac_dir=.
8433 if test -f $ac_dir/file; then
8434 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8435 if test -n "$file_magic_test_file"; then
8436 case $deplibs_check_method in
8438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8441 $EGREP "$file_magic_regex" > /dev/null; then
8446 *** Warning: the command libtool uses to detect shared libraries,
8447 *** $file_magic_cmd, produces output that libtool cannot recognize.
8448 *** The result is that libtool may fail to recognize shared libraries
8449 *** as such. This will affect the creation of libtool libraries that
8450 *** depend on shared libraries, but programs linked with such libtool
8451 *** libraries will work regardless of this problem. Nevertheless, you
8452 *** may want to report the problem to your system manager and/or to
8453 *** bug-libtool@gnu.org
8463 MAGIC_CMD="$lt_save_MAGIC_CMD"
8468 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8469 if test -n "$MAGIC_CMD"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8471 $as_echo "$MAGIC_CMD" >&6; }
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8487 # Use C for the default configuration in the libtool script
8491 ac_cpp='$CPP $CPPFLAGS'
8492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8497 # Source file extension for C test sources.
8500 # Object file extension for compiled C test sources.
8504 # Code to be used in simple compile tests
8505 lt_simple_compile_test_code="int some_variable = 0;"
8507 # Code to be used in simple link tests
8508 lt_simple_link_test_code='int main(){return(0);}'
8516 # If no C compiler was specified, use CC.
8519 # If no C compiler flags were specified, use CFLAGS.
8520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8522 # Allow CC to be a program name with arguments.
8525 # Save the default compiler, since it gets overwritten when the other
8526 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8527 compiler_DEFAULT=$CC
8529 # save warnings/boilerplate of simple test code
8530 ac_outfile=conftest.$ac_objext
8531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8533 _lt_compiler_boilerplate=`cat conftest.err`
8536 ac_outfile=conftest.$ac_objext
8537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8539 _lt_linker_boilerplate=`cat conftest.err`
8544 ## There is no encapsulation within the following macros, do not change
8545 ## the running order or otherwise move them around unless you know exactly
8546 ## what you are doing...
8547 if test -n "$compiler"; then
8549 lt_prog_compiler_no_builtin_flag=
8551 if test "$GCC" = yes; then
8552 case $cc_basename in
8554 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8556 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8560 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8561 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8562 $as_echo_n "(cached) " >&6
8564 lt_cv_prog_compiler_rtti_exceptions=no
8565 ac_outfile=conftest.$ac_objext
8566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567 lt_compiler_flag="-fno-rtti -fno-exceptions"
8568 # Insert the option either (1) after the last *FLAGS variable, or
8569 # (2) before a word containing "conftest.", or (3) at the end.
8570 # Note that $ac_compile itself does not contain backslashes and begins
8571 # with a dollar sign (not a hyphen), so the echo should work correctly.
8572 # The option is referenced via a variable to avoid confusing sed.
8573 lt_compile=`echo "$ac_compile" | $SED \
8574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8576 -e 's:$: $lt_compiler_flag:'`
8577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8578 (eval "$lt_compile" 2>conftest.err)
8580 cat conftest.err >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 if (exit $ac_status) && test -s "$ac_outfile"; then
8583 # The compiler can only warn and ignore the option if not recognized
8584 # So say no if there are warnings other than the usual output.
8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8588 lt_cv_prog_compiler_rtti_exceptions=yes
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8595 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8597 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8598 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8610 lt_prog_compiler_wl=
8611 lt_prog_compiler_pic=
8612 lt_prog_compiler_static=
8615 if test "$GCC" = yes; then
8616 lt_prog_compiler_wl='-Wl,'
8617 lt_prog_compiler_static='-static'
8621 # All AIX code is PIC.
8622 if test "$host_cpu" = ia64; then
8623 # AIX 5 now supports IA64 processor
8624 lt_prog_compiler_static='-Bstatic'
8631 # see comment about AmigaOS4 .so support
8632 lt_prog_compiler_pic='-fPIC'
8635 # FIXME: we need at least 68020 code to build shared libraries, but
8636 # adding the `-m68020' flag to GCC prevents building anything better,
8638 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8644 # PIC is the default for these OSes.
8647 mingw* | cygwin* | pw32* | os2* | cegcc*)
8648 # This hack is so that the source file can tell whether it is being
8649 # built for inclusion in a dll (and should export symbols for example).
8650 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8651 # (--disable-auto-import) libraries
8652 lt_prog_compiler_pic='-DDLL_EXPORT'
8655 darwin* | rhapsody*)
8656 # PIC is the default on this platform
8657 # Common symbols not allowed in MH_DYLIB files
8658 lt_prog_compiler_pic='-fno-common'
8662 # PIC is the default for Haiku.
8663 # The "-static" flag exists, but is broken.
8664 lt_prog_compiler_static=
8668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8670 # sets the default TLS model and affects inlining.
8676 lt_prog_compiler_pic='-fPIC'
8682 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8683 # Instead, we relocate shared libraries at runtime.
8687 # Just because we use GCC doesn't mean we suddenly get shared libraries
8688 # on systems that don't support them.
8689 lt_prog_compiler_can_build_shared=no
8694 # QNX uses GNU C++, but need to define -shared option too, otherwise
8696 lt_prog_compiler_pic='-fPIC -shared'
8700 if test -d /usr/nec; then
8701 lt_prog_compiler_pic=-Kconform_pic
8706 lt_prog_compiler_pic='-fPIC'
8710 case $cc_basename in
8711 nvcc*) # Cuda Compiler Driver 2.2
8712 lt_prog_compiler_wl='-Xlinker '
8713 lt_prog_compiler_pic='-Xcompiler -fPIC'
8717 # PORTME Check for flag to pass linker flags through the system compiler.
8720 lt_prog_compiler_wl='-Wl,'
8721 if test "$host_cpu" = ia64; then
8722 # AIX 5 now supports IA64 processor
8723 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8729 mingw* | cygwin* | pw32* | os2* | cegcc*)
8730 # This hack is so that the source file can tell whether it is being
8731 # built for inclusion in a dll (and should export symbols for example).
8732 lt_prog_compiler_pic='-DDLL_EXPORT'
8735 hpux9* | hpux10* | hpux11*)
8736 lt_prog_compiler_wl='-Wl,'
8737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8744 lt_prog_compiler_pic='+Z'
8747 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8748 lt_prog_compiler_static='${wl}-a ${wl}archive'
8751 irix5* | irix6* | nonstopux*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # PIC (with -KPIC) is the default.
8754 lt_prog_compiler_static='-non_shared'
8757 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8758 case $cc_basename in
8759 # old Intel for x86_64 which still supported -KPIC.
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-static'
8765 # icc used to be incompatible with GCC.
8766 # ICC 10 doesn't accept -KPIC any more.
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_pic='-fPIC'
8770 lt_prog_compiler_static='-static'
8772 # Lahey Fortran 8.1.
8774 lt_prog_compiler_wl='-Wl,'
8775 lt_prog_compiler_pic='--shared'
8776 lt_prog_compiler_static='--static'
8779 # NAG Fortran compiler
8780 lt_prog_compiler_wl='-Wl,-Wl,,'
8781 lt_prog_compiler_pic='-PIC'
8782 lt_prog_compiler_static='-Bstatic'
8784 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8785 # Portland Group compilers (*not* the Pentium gcc compiler,
8786 # which looks to be a dead project)
8787 lt_prog_compiler_wl='-Wl,'
8788 lt_prog_compiler_pic='-fpic'
8789 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl='-Wl,'
8793 # All Alpha code is PIC.
8794 lt_prog_compiler_static='-non_shared'
8796 xl* | bgxl* | bgf* | mpixl*)
8797 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-qpic'
8800 lt_prog_compiler_static='-qstaticlink'
8803 case `$CC -V 2>&1 | sed 5q` in
8804 *Sun\ F* | *Sun*Fortran*)
8805 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 lt_prog_compiler_wl=''
8812 lt_prog_compiler_pic='-KPIC'
8813 lt_prog_compiler_static='-Bstatic'
8814 lt_prog_compiler_wl='-Wl,'
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8827 # QNX uses GNU C++, but need to define -shared option too, otherwise
8829 lt_prog_compiler_pic='-fPIC -shared'
8832 osf3* | osf4* | osf5*)
8833 lt_prog_compiler_wl='-Wl,'
8834 # All OSF/1 code is PIC.
8835 lt_prog_compiler_static='-non_shared'
8839 lt_prog_compiler_static='-non_shared'
8843 lt_prog_compiler_pic='-KPIC'
8844 lt_prog_compiler_static='-Bstatic'
8845 case $cc_basename in
8846 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8847 lt_prog_compiler_wl='-Qoption ld ';;
8849 lt_prog_compiler_wl='-Wl,';;
8854 lt_prog_compiler_wl='-Qoption ld '
8855 lt_prog_compiler_pic='-PIC'
8856 lt_prog_compiler_static='-Bstatic'
8859 sysv4 | sysv4.2uw2* | sysv4.3*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-Bstatic'
8866 if test -d /usr/nec ;then
8867 lt_prog_compiler_pic='-Kconform_pic'
8868 lt_prog_compiler_static='-Bstatic'
8872 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='-KPIC'
8875 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_can_build_shared=no
8884 lt_prog_compiler_pic='-pic'
8885 lt_prog_compiler_static='-Bstatic'
8889 lt_prog_compiler_can_build_shared=no
8895 # For platforms which do not support PIC, -DPIC is meaningless:
8897 lt_prog_compiler_pic=
8900 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8906 if ${lt_cv_prog_compiler_pic+:} false; then :
8907 $as_echo_n "(cached) " >&6
8909 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8912 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8913 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8916 # Check to make sure the PIC flag actually works.
8918 if test -n "$lt_prog_compiler_pic"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8921 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 lt_cv_prog_compiler_pic_works=no
8925 ac_outfile=conftest.$ac_objext
8926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8928 # Insert the option either (1) after the last *FLAGS variable, or
8929 # (2) before a word containing "conftest.", or (3) at the end.
8930 # Note that $ac_compile itself does not contain backslashes and begins
8931 # with a dollar sign (not a hyphen), so the echo should work correctly.
8932 # The option is referenced via a variable to avoid confusing sed.
8933 lt_compile=`echo "$ac_compile" | $SED \
8934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936 -e 's:$: $lt_compiler_flag:'`
8937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938 (eval "$lt_compile" 2>conftest.err)
8940 cat conftest.err >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 if (exit $ac_status) && test -s "$ac_outfile"; then
8943 # The compiler can only warn and ignore the option if not recognized
8944 # So say no if there are warnings other than the usual output.
8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8948 lt_cv_prog_compiler_pic_works=yes
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8958 case $lt_prog_compiler_pic in
8960 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8963 lt_prog_compiler_pic=
8964 lt_prog_compiler_can_build_shared=no
8980 # Check to make sure the static flag actually works.
8982 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8984 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8985 if ${lt_cv_prog_compiler_static_works+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 lt_cv_prog_compiler_static_works=no
8989 save_LDFLAGS="$LDFLAGS"
8990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8991 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8993 # The linker can only warn and ignore the option if not recognized
8994 # So say no if there are warnings
8995 if test -s conftest.err; then
8996 # Append any errors to the config.log.
8997 cat conftest.err 1>&5
8998 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000 if diff conftest.exp conftest.er2 >/dev/null; then
9001 lt_cv_prog_compiler_static_works=yes
9004 lt_cv_prog_compiler_static_works=yes
9008 LDFLAGS="$save_LDFLAGS"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9012 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9014 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9017 lt_prog_compiler_static=
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9028 if ${lt_cv_prog_compiler_c_o+:} false; then :
9029 $as_echo_n "(cached) " >&6
9031 lt_cv_prog_compiler_c_o=no
9032 $RM -r conftest 2>/dev/null
9036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038 lt_compiler_flag="-o out/conftest2.$ac_objext"
9039 # Insert the option either (1) after the last *FLAGS variable, or
9040 # (2) before a word containing "conftest.", or (3) at the end.
9041 # Note that $ac_compile itself does not contain backslashes and begins
9042 # with a dollar sign (not a hyphen), so the echo should work correctly.
9043 lt_compile=`echo "$ac_compile" | $SED \
9044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046 -e 's:$: $lt_compiler_flag:'`
9047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9048 (eval "$lt_compile" 2>out/conftest.err)
9050 cat out/conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9054 # The compiler can only warn and ignore the option if not recognized
9055 # So say no if there are warnings
9056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_c_o=yes
9064 # SGI C++ compiler will create directory out/ii_files/ for
9065 # template instantiation
9066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9067 $RM out/* && rmdir out
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9083 if ${lt_cv_prog_compiler_c_o+:} false; then :
9084 $as_echo_n "(cached) " >&6
9086 lt_cv_prog_compiler_c_o=no
9087 $RM -r conftest 2>/dev/null
9091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093 lt_compiler_flag="-o out/conftest2.$ac_objext"
9094 # Insert the option either (1) after the last *FLAGS variable, or
9095 # (2) before a word containing "conftest.", or (3) at the end.
9096 # Note that $ac_compile itself does not contain backslashes and begins
9097 # with a dollar sign (not a hyphen), so the echo should work correctly.
9098 lt_compile=`echo "$ac_compile" | $SED \
9099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101 -e 's:$: $lt_compiler_flag:'`
9102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103 (eval "$lt_compile" 2>out/conftest.err)
9105 cat out/conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9109 # The compiler can only warn and ignore the option if not recognized
9110 # So say no if there are warnings
9111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114 lt_cv_prog_compiler_c_o=yes
9119 # SGI C++ compiler will create directory out/ii_files/ for
9120 # template instantiation
9121 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122 $RM out/* && rmdir out
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134 hard_links="nottested"
9135 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9136 # do not overwrite the value of need_locks provided by the user
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9138 $as_echo_n "checking if we can lock with hard links... " >&6; }
9141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9143 ln conftest.a conftest.b 2>&5 || hard_links=no
9144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9146 $as_echo "$hard_links" >&6; }
9147 if test "$hard_links" = no; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9149 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9165 allow_undefined_flag=
9166 always_export_symbols=no
9168 archive_expsym_cmds=
9169 compiler_needs_object=no
9170 enable_shared_with_static_runtimes=no
9171 export_dynamic_flag_spec=
9172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9173 hardcode_automatic=no
9175 hardcode_direct_absolute=no
9176 hardcode_libdir_flag_spec=
9177 hardcode_libdir_flag_spec_ld=
9178 hardcode_libdir_separator=
9180 hardcode_shlibpath_var=unsupported
9182 link_all_deplibs=unknown
9185 old_archive_from_new_cmds=
9186 old_archive_from_expsyms_cmds=
9187 thread_safe_flag_spec=
9188 whole_archive_flag_spec=
9189 # include_expsyms should be a list of space-separated symbols to be *always*
9190 # included in the symbol list
9192 # exclude_expsyms can be an extended regexp of symbols to exclude
9193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9195 # as well as any symbol that contains `d'.
9196 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9198 # platforms (ab)use it in PIC code, but their linkers get confused if
9199 # the symbol is explicitly referenced. Since portable code cannot
9200 # rely on this symbol name, it's probably fine to never include it in
9201 # preloaded symbol tables.
9202 # Exclude shared library initialization/finalization symbols.
9203 extract_expsyms_cmds=
9206 cygwin* | mingw* | pw32* | cegcc*)
9207 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9208 # When not using gcc, we currently assume that we are using
9209 # Microsoft Visual C++.
9210 if test "$GCC" != yes; then
9215 # we just hope/assume this is gcc and not c89 (= MSVC++)
9225 # On some targets, GNU ld is compatible enough with the native linker
9226 # that we're better off using the native interface for both.
9227 lt_use_gnu_ld_interface=no
9228 if test "$with_gnu_ld" = yes; then
9231 # The AIX port of GNU ld has always aspired to compatibility
9232 # with the native linker. However, as the warning in the GNU ld
9233 # block says, versions before 2.19.5* couldn't really create working
9234 # shared libraries, regardless of the interface used.
9235 case `$LD -v 2>&1` in
9236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9238 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9240 lt_use_gnu_ld_interface=yes
9245 lt_use_gnu_ld_interface=yes
9250 if test "$lt_use_gnu_ld_interface" = yes; then
9251 # If archive_cmds runs LD, not CC, wlarc should be empty
9254 # Set some defaults for GNU ld with shared library support. These
9255 # are reset later if shared libraries are not supported. Putting them
9256 # here allows them to be overridden if necessary.
9257 runpath_var=LD_RUN_PATH
9258 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259 export_dynamic_flag_spec='${wl}--export-dynamic'
9260 # ancient GNU ld didn't support --whole-archive et. al.
9261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9262 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9264 whole_archive_flag_spec=
9266 supports_anon_versioning=no
9267 case `$LD -v 2>&1` in
9268 *GNU\ gold*) supports_anon_versioning=yes ;;
9269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9272 *\ 2.11.*) ;; # other 2.11 versions
9273 *) supports_anon_versioning=yes ;;
9276 # See if GNU ld supports shared libraries.
9279 # On AIX/PPC, the GNU linker is very broken
9280 if test "$host_cpu" != ia64; then
9284 *** Warning: the GNU linker, at least up to release 2.19, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support. If you
9287 *** really care for shared libraries, you may want to install binutils
9288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9289 *** You will then need to restart the configuration process.
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds=''
9303 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)'
9304 hardcode_libdir_flag_spec='-L$libdir'
9305 hardcode_minus_L=yes
9311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312 allow_undefined_flag=unsupported
9313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9314 # support --undefined. This deserves some investigation. FIXME
9315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9321 cygwin* | mingw* | pw32* | cegcc*)
9322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9323 # as there is no search path for DLLs.
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 export_dynamic_flag_spec='${wl}--export-all-symbols'
9326 allow_undefined_flag=unsupported
9327 always_export_symbols=no
9328 enable_shared_with_static_runtimes=yes
9329 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'
9330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9334 # If the export-symbols file already is a .def file (1st line
9335 # is EXPORTS), use it as is; otherwise, prepend...
9336 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9337 cp $export_symbols $output_objdir/$soname.def;
9339 echo EXPORTS > $output_objdir/$soname.def;
9340 cat $export_symbols >> $output_objdir/$soname.def;
9342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 link_all_deplibs=yes
9355 hardcode_shlibpath_var=no
9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357 export_dynamic_flag_spec='${wl}-E'
9358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9359 # Instead, shared libraries are loaded at an image base (0x10000000 by
9360 # default) and relocated if they conflict, which is a slow very memory
9361 # consuming and fragmenting process. To avoid this, we pick a random,
9362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9363 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9365 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'
9368 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9370 if test "$host_os" = linux-dietlibc; then
9371 case $cc_basename in
9372 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9375 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9376 && test "$tmp_diet" = no
9378 tmp_addflag=' $pic_flag'
9379 tmp_sharedflag='-shared'
9380 case $cc_basename,$host_cpu in
9381 pgcc*) # Portland Group C compiler
9382 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'
9383 tmp_addflag=' $pic_flag'
9385 pgf77* | pgf90* | pgf95* | pgfortran*)
9386 # Portland Group f77 and f90 compilers
9387 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'
9388 tmp_addflag=' $pic_flag -Mnomain' ;;
9389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9390 tmp_addflag=' -i_dynamic' ;;
9391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9392 tmp_addflag=' -i_dynamic -nofor_main' ;;
9393 ifc* | ifort*) # Intel Fortran compiler
9394 tmp_addflag=' -nofor_main' ;;
9395 lf95*) # Lahey Fortran 8.1
9396 whole_archive_flag_spec=
9397 tmp_sharedflag='--shared' ;;
9398 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9399 tmp_sharedflag='-qmkshrobj'
9401 nvcc*) # Cuda Compiler Driver 2.2
9402 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'
9403 compiler_needs_object=yes
9406 case `$CC -V 2>&1 | sed 5q` in
9407 *Sun\ C*) # Sun C 5.9
9408 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'
9409 compiler_needs_object=yes
9410 tmp_sharedflag='-G' ;;
9411 *Sun\ F*) # Sun Fortran 8.3
9412 tmp_sharedflag='-G' ;;
9414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 if test "x$supports_anon_versioning" = xyes; then
9417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419 echo "local: *; };" >> $output_objdir/$libname.ver~
9420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9423 case $cc_basename in
9424 xlf* | bgf* | bgxlf* | mpixlf*)
9425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9427 hardcode_libdir_flag_spec=
9428 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9429 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9430 if test "x$supports_anon_versioning" = xyes; then
9431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9433 echo "local: *; };" >> $output_objdir/$libname.ver~
9434 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9459 *** create shared libraries on Solaris systems. Therefore, libtool
9460 *** is disabling shared libraries support. We urge you to upgrade GNU
9461 *** binutils to release 2.9.1 or newer. Another option is to modify
9462 *** your PATH or compiler configuration so that the native linker is
9463 *** used, and then restart.
9466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9475 case `$LD -v 2>&1` in
9476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9481 *** reliably create shared libraries on SCO systems. Therefore, libtool
9482 *** is disabling shared libraries support. We urge you to upgrade GNU
9483 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9490 # For security reasons, it is highly recommended that you always
9491 # use absolute paths for naming shared libraries, and exclude the
9492 # DT_RUNPATH tag from executables and libraries. But doing so
9493 # requires that you compile everything twice, which is a pain.
9494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9509 hardcode_shlibpath_var=no
9513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9514 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9522 if test "$ld_shlibs" = no; then
9524 hardcode_libdir_flag_spec=
9525 export_dynamic_flag_spec=
9526 whole_archive_flag_spec=
9529 # PORTME fill in a description of your system's linker (not GNU ld)
9532 allow_undefined_flag=unsupported
9533 always_export_symbols=yes
9534 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'
9535 # Note: this linker hardcodes the directories in LIBPATH if there
9536 # are no directories specified by -L.
9537 hardcode_minus_L=yes
9538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9539 # Neither direct hardcoding nor static linking is supported with a
9541 hardcode_direct=unsupported
9546 if test "$host_cpu" = ia64; then
9547 # On IA64, the linker does run time linking by default, so we don't
9548 # have to do anything special.
9549 aix_use_runtimelinking=no
9550 exp_sym_flag='-Bexport'
9553 # If we're using GNU nm, then we don't want the "-C" option.
9554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9555 # Also, AIX nm treats weak defined symbols like other global
9556 # defined symbols, whereas GNU nm marks them as "W".
9557 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9558 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'
9560 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'
9562 aix_use_runtimelinking=no
9564 # Test if we are trying to use run time linking or normal
9565 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9566 # need to do runtime linking.
9567 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9568 for ld_flag in $LDFLAGS; do
9569 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9570 aix_use_runtimelinking=yes
9577 exp_sym_flag='-bexport'
9578 no_entry_flag='-bnoentry'
9581 # When large executables or shared objects are built, AIX ld can
9582 # have problems creating the table of contents. If linking a library
9583 # or program results in "error TOC overflow" add -mminimal-toc to
9584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9589 hardcode_direct_absolute=yes
9590 hardcode_libdir_separator=':'
9591 link_all_deplibs=yes
9592 file_list_spec='${wl}-f,'
9594 if test "$GCC" = yes; then
9595 case $host_os in aix4.[012]|aix4.[012].*)
9596 # We only want to do this on AIX 4.2 and lower, the check
9597 # below for broken collect2 doesn't work under 4.3+
9598 collect2name=`${CC} -print-prog-name=collect2`
9599 if test -f "$collect2name" &&
9600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9602 # We have reworked collect2
9605 # We have old collect2
9606 hardcode_direct=unsupported
9607 # It fails to find uninstalled libraries when the uninstalled
9608 # path is not listed in the libpath. Setting hardcode_minus_L
9609 # to unsupported forces relinking
9610 hardcode_minus_L=yes
9611 hardcode_libdir_flag_spec='-L$libdir'
9612 hardcode_libdir_separator=
9616 shared_flag='-shared'
9617 if test "$aix_use_runtimelinking" = yes; then
9618 shared_flag="$shared_flag "'${wl}-G'
9622 if test "$host_cpu" = ia64; then
9623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9624 # chokes on -Wl,-G. The following line is correct:
9627 if test "$aix_use_runtimelinking" = yes; then
9628 shared_flag='${wl}-G'
9630 shared_flag='${wl}-bM:SRE'
9635 export_dynamic_flag_spec='${wl}-bexpall'
9636 # It seems that -bexpall does not export symbols beginning with
9637 # underscore (_), so it is better to generate a list of symbols to export.
9638 always_export_symbols=yes
9639 if test "$aix_use_runtimelinking" = yes; then
9640 # Warning - without using the other runtime loading flags (-brtl),
9641 # -berok will link without error, but may produce a broken library.
9642 allow_undefined_flag='-berok'
9643 # Determine the default libpath from the value encoded in an
9645 if test "${lt_cv_aix_libpath+set}" = set; then
9646 aix_libpath=$lt_cv_aix_libpath
9648 if ${lt_cv_aix_libpath_+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9662 if ac_fn_c_try_link "$LINENO"; then :
9664 lt_aix_libpath_sed='
9665 /Import File Strings/,/^$/ {
9667 s/^0 *\([^ ]*\) *$/\1/
9671 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672 # Check for a 64-bit object if we didn't find anything.
9673 if test -z "$lt_cv_aix_libpath_"; then
9674 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 if test -z "$lt_cv_aix_libpath_"; then
9680 lt_cv_aix_libpath_="/usr/lib:/lib"
9685 aix_libpath=$lt_cv_aix_libpath_
9688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689 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"
9691 if test "$host_cpu" = ia64; then
9692 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9693 allow_undefined_flag="-z nodefs"
9694 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"
9696 # Determine the default libpath from the value encoded in an
9698 if test "${lt_cv_aix_libpath+set}" = set; then
9699 aix_libpath=$lt_cv_aix_libpath
9701 if ${lt_cv_aix_libpath_+:} false; then :
9702 $as_echo_n "(cached) " >&6
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9715 if ac_fn_c_try_link "$LINENO"; then :
9717 lt_aix_libpath_sed='
9718 /Import File Strings/,/^$/ {
9720 s/^0 *\([^ ]*\) *$/\1/
9724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725 # Check for a 64-bit object if we didn't find anything.
9726 if test -z "$lt_cv_aix_libpath_"; then
9727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730 rm -f core conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 if test -z "$lt_cv_aix_libpath_"; then
9733 lt_cv_aix_libpath_="/usr/lib:/lib"
9738 aix_libpath=$lt_cv_aix_libpath_
9741 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9742 # Warning - without using the other run time loading flags,
9743 # -berok will link without error, but may produce a broken library.
9744 no_undefined_flag=' ${wl}-bernotok'
9745 allow_undefined_flag=' ${wl}-berok'
9746 if test "$with_gnu_ld" = yes; then
9747 # We only use this code for GNU lds that support --whole-archive.
9748 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9750 # Exported symbols can be pulled into shared objects from archives
9751 whole_archive_flag_spec='$convenience'
9753 archive_cmds_need_lc=yes
9754 # This is similar to how AIX traditionally builds its shared libraries.
9755 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'
9763 # see comment about AmigaOS4 .so support
9764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765 archive_expsym_cmds=''
9768 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)'
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9776 export_dynamic_flag_spec=-rdynamic
9779 cygwin* | mingw* | pw32* | cegcc*)
9780 # When not using gcc, we currently assume that we are using
9781 # Microsoft Visual C++.
9782 # hardcode_libdir_flag_spec is actually meaningless, as there is
9783 # no search path for DLLs.
9784 case $cc_basename in
9787 hardcode_libdir_flag_spec=' '
9788 allow_undefined_flag=unsupported
9789 always_export_symbols=yes
9791 # Tell ltmain to make .lib files, not .a files.
9793 # Tell ltmain to make .dll files, not .so files.
9795 # FIXME: Setting linknames here is a bad hack.
9796 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9797 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9798 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9800 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9802 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9804 # The linker will not automatically build a static lib if we build a DLL.
9805 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9806 enable_shared_with_static_runtimes=yes
9807 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9809 old_postinstall_cmds='chmod 644 $oldlib'
9810 postlink_cmds='lt_outputfile="@OUTPUT@"~
9811 lt_tool_outputfile="@TOOL_OUTPUT@"~
9812 case $lt_outputfile in
9815 lt_outputfile="$lt_outputfile.exe"
9816 lt_tool_outputfile="$lt_tool_outputfile.exe"
9819 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9820 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9821 $RM "$lt_outputfile.manifest";
9825 # Assume MSVC wrapper
9826 hardcode_libdir_flag_spec=' '
9827 allow_undefined_flag=unsupported
9828 # Tell ltmain to make .lib files, not .a files.
9830 # Tell ltmain to make .dll files, not .so files.
9832 # FIXME: Setting linknames here is a bad hack.
9833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9834 # The linker will automatically build a .lib file if we build a DLL.
9835 old_archive_from_new_cmds='true'
9836 # FIXME: Should let the user specify the lib program.
9837 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9838 enable_shared_with_static_runtimes=yes
9843 darwin* | rhapsody*)
9846 archive_cmds_need_lc=no
9848 hardcode_automatic=yes
9849 hardcode_shlibpath_var=unsupported
9850 if test "$lt_cv_ld_force_load" = "yes"; then
9851 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\"`'
9853 whole_archive_flag_spec=''
9855 link_all_deplibs=yes
9856 allow_undefined_flag="$_lt_dar_allow_undefined"
9857 case $cc_basename in
9858 ifort*) _lt_dar_can_shared=yes ;;
9859 *) _lt_dar_can_shared=$GCC ;;
9861 if test "$_lt_dar_can_shared" = "yes"; then
9862 output_verbose_link_cmd=func_echo_all
9863 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9864 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9865 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}"
9866 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}"
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_libdir_flag_spec='-L$libdir'
9877 hardcode_shlibpath_var=no
9884 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9885 # support. Future versions do this automatically, but an explicit c++rt0.o
9886 # does not break anything, and helps significantly (at the cost of a little
9889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9890 hardcode_libdir_flag_spec='-R$libdir'
9892 hardcode_shlibpath_var=no
9895 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9899 hardcode_minus_L=yes
9900 hardcode_shlibpath_var=no
9903 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9904 freebsd* | dragonfly*)
9905 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906 hardcode_libdir_flag_spec='-R$libdir'
9908 hardcode_shlibpath_var=no
9912 if test "$GCC" = yes; then
9913 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'
9915 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'
9917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9918 hardcode_libdir_separator=:
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9924 export_dynamic_flag_spec='${wl}-E'
9928 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9929 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9931 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9933 if test "$with_gnu_ld" = no; then
9934 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935 hardcode_libdir_flag_spec_ld='+b $libdir'
9936 hardcode_libdir_separator=:
9938 hardcode_direct_absolute=yes
9939 export_dynamic_flag_spec='${wl}-E'
9940 # hardcode_minus_L: Not really in the search PATH,
9941 # but as the default location of the library.
9942 hardcode_minus_L=yes
9947 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9950 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9956 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9965 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9969 # Older versions of the 11.00 compiler do not understand -b yet
9970 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9972 $as_echo_n "checking if $CC understands -b... " >&6; }
9973 if ${lt_cv_prog_compiler__b+:} false; then :
9974 $as_echo_n "(cached) " >&6
9976 lt_cv_prog_compiler__b=no
9977 save_LDFLAGS="$LDFLAGS"
9978 LDFLAGS="$LDFLAGS -b"
9979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9981 # The linker can only warn and ignore the option if not recognized
9982 # So say no if there are warnings
9983 if test -s conftest.err; then
9984 # Append any errors to the config.log.
9985 cat conftest.err 1>&5
9986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9988 if diff conftest.exp conftest.er2 >/dev/null; then
9989 lt_cv_prog_compiler__b=yes
9992 lt_cv_prog_compiler__b=yes
9996 LDFLAGS="$save_LDFLAGS"
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10000 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10002 if test x"$lt_cv_prog_compiler__b" = xyes; then
10003 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10011 if test "$with_gnu_ld" = no; then
10012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_separator=:
10018 hardcode_shlibpath_var=no
10021 hardcode_direct=yes
10022 hardcode_direct_absolute=yes
10023 export_dynamic_flag_spec='${wl}-E'
10025 # hardcode_minus_L: Not really in the search PATH,
10026 # but as the default location of the library.
10027 hardcode_minus_L=yes
10033 irix5* | irix6* | nonstopux*)
10034 if test "$GCC" = yes; then
10035 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'
10036 # Try to use the -exported_symbol ld option, if it does not
10037 # work, assume that -exports_file does not work either and
10038 # implicitly export all symbols.
10039 # This should be the same for all languages, so no per-tag cache variable.
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10041 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10042 if ${lt_cv_irix_exported_symbol+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 save_LDFLAGS="$LDFLAGS"
10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 int foo (void) { return 0; }
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 lt_cv_irix_exported_symbol=yes
10054 lt_cv_irix_exported_symbol=no
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LDFLAGS="$save_LDFLAGS"
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10061 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10062 if test "$lt_cv_irix_exported_symbol" = yes; then
10063 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'
10066 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'
10067 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'
10069 archive_cmds_need_lc='no'
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator=:
10073 link_all_deplibs=yes
10077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10078 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10080 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10082 hardcode_libdir_flag_spec='-R$libdir'
10083 hardcode_direct=yes
10084 hardcode_shlibpath_var=no
10088 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_direct=yes
10090 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10091 hardcode_libdir_separator=:
10092 hardcode_shlibpath_var=no
10099 if test -f /usr/libexec/ld.so; then
10100 hardcode_direct=yes
10101 hardcode_shlibpath_var=no
10102 hardcode_direct_absolute=yes
10103 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10106 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10107 export_dynamic_flag_spec='${wl}-E'
10110 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_libdir_flag_spec='-R$libdir'
10115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10116 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_minus_L=yes
10128 allow_undefined_flag=unsupported
10129 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'
10130 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10134 if test "$GCC" = yes; then
10135 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10136 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'
10138 allow_undefined_flag=' -expect_unresolved \*'
10139 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'
10141 archive_cmds_need_lc='no'
10142 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143 hardcode_libdir_separator=:
10146 osf4* | osf5*) # as osf3* with the addition of -msym flag
10147 if test "$GCC" = yes; then
10148 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10149 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'
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10152 allow_undefined_flag=' -expect_unresolved \*'
10153 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'
10154 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~
10155 $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'
10157 # Both c and cxx compiler support -rpath directly
10158 hardcode_libdir_flag_spec='-rpath $libdir'
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_separator=:
10165 no_undefined_flag=' -z defs'
10166 if test "$GCC" = yes; then
10168 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10170 $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'
10172 case `$CC -V 2>&1` in
10175 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10181 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10183 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10187 hardcode_libdir_flag_spec='-R$libdir'
10188 hardcode_shlibpath_var=no
10190 solaris2.[0-5] | solaris2.[0-5].*) ;;
10192 # The compiler driver will combine and reorder linker options,
10193 # but understands `-z linker_flag'. GCC discards it without `$wl',
10194 # but is careful enough not to reorder.
10195 # Supported since Solaris 2.6 (maybe 2.5.1?)
10196 if test "$GCC" = yes; then
10197 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10199 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10203 link_all_deplibs=yes
10207 if test "x$host_vendor" = xsequent; then
10208 # Use $CC to link under sequent, because it throws in some extra .o
10209 # files that make .init and .fini sections work.
10210 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_libdir_flag_spec='-L$libdir'
10215 hardcode_direct=yes
10216 hardcode_minus_L=yes
10217 hardcode_shlibpath_var=no
10221 case $host_vendor in
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=yes # is this really true???
10227 ## LD is ld it makes a PLAMLIB
10228 ## CC just makes a GrossModule.
10229 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10230 reload_cmds='$CC -r -o $output$reload_objs'
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10238 runpath_var='LD_RUN_PATH'
10239 hardcode_shlibpath_var=no
10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244 hardcode_shlibpath_var=no
10245 export_dynamic_flag_spec='-Bexport'
10249 if test -d /usr/nec; then
10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10251 hardcode_shlibpath_var=no
10252 runpath_var=LD_RUN_PATH
10253 hardcode_runpath_var=yes
10258 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10259 no_undefined_flag='${wl}-z,text'
10260 archive_cmds_need_lc=no
10261 hardcode_shlibpath_var=no
10262 runpath_var='LD_RUN_PATH'
10264 if test "$GCC" = yes; then
10265 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 sysv5* | sco3.2v5* | sco5v6*)
10274 # Note: We can NOT use -z defs as we might desire, because we do not
10275 # link with -lc, and that would cause any symbols used from libc to
10276 # always be unresolved, which means just about no library would
10277 # ever link correctly. If we're not using GNU ld we use -z text
10278 # though, which does catch some bad symbols but isn't as heavy-handed
10280 no_undefined_flag='${wl}-z,text'
10281 allow_undefined_flag='${wl}-z,nodefs'
10282 archive_cmds_need_lc=no
10283 hardcode_shlibpath_var=no
10284 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10285 hardcode_libdir_separator=':'
10286 link_all_deplibs=yes
10287 export_dynamic_flag_spec='${wl}-Bexport'
10288 runpath_var='LD_RUN_PATH'
10290 if test "$GCC" = yes; then
10291 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_libdir_flag_spec='-L$libdir'
10302 hardcode_shlibpath_var=no
10310 if test x$host_vendor = xsni; then
10312 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10313 export_dynamic_flag_spec='${wl}-Blargedynsym'
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10320 $as_echo "$ld_shlibs" >&6; }
10321 test "$ld_shlibs" = no && can_build_shared=no
10323 with_gnu_ld=$with_gnu_ld
10340 # Do we need to explicitly link libc?
10342 case "x$archive_cmds_need_lc" in
10344 # Assume -lc should be added
10345 archive_cmds_need_lc=yes
10347 if test "$enable_shared" = yes && test "$GCC" = yes; then
10348 case $archive_cmds in
10350 # FIXME: we may have to deal with multi-command sequences.
10353 # Test whether the compiler implicitly links with -lc since on some
10354 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10355 # to ld, don't add -lc before -lgcc.
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10357 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10358 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10359 $as_echo_n "(cached) " >&6
10362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10365 (eval $ac_compile) 2>&5
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; } 2>conftest.err; then
10371 libobjs=conftest.$ac_objext
10373 wl=$lt_prog_compiler_wl
10374 pic_flag=$lt_prog_compiler_pic
10380 lt_save_allow_undefined_flag=$allow_undefined_flag
10381 allow_undefined_flag=
10382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10383 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10386 test $ac_status = 0; }
10388 lt_cv_archive_cmds_need_lc=no
10390 lt_cv_archive_cmds_need_lc=yes
10392 allow_undefined_flag=$lt_save_allow_undefined_flag
10394 cat conftest.err 1>&5
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10400 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10401 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10567 if test "$GCC" = yes; then
10569 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10570 *) lt_awk_arg="/^libraries:/" ;;
10573 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10574 *) lt_sed_strip_eq="s,=/,/,g" ;;
10576 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10577 case $lt_search_path_spec in
10579 # if the path contains ";" then we assume it to be the separator
10580 # otherwise default to the standard path separator (i.e. ":") - it is
10581 # assumed that no part of a normal pathname contains ";" but that should
10582 # okay in the real world where ";" in dirpaths is itself problematic.
10583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10589 # Ok, now we have the path, separated by spaces, we can step through it
10590 # and add multilib dir if necessary.
10591 lt_tmp_lt_search_path_spec=
10592 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10593 for lt_sys_path in $lt_search_path_spec; do
10594 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10597 test -d "$lt_sys_path" && \
10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10602 BEGIN {RS=" "; FS="/|\n";} {
10605 for (lt_i = NF; lt_i > 0; lt_i--) {
10606 if ($lt_i != "" && $lt_i != ".") {
10607 if ($lt_i == "..") {
10610 if (lt_count == 0) {
10611 lt_foo="/" $lt_i lt_foo;
10618 if (lt_foo != "") { lt_freq[lt_foo]++; }
10619 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10621 # AWK program above erroneously prepends '/' to C:/dos/paths
10624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10625 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10631 library_names_spec=
10632 libname_spec='lib$name'
10636 postuninstall_cmds=
10640 shlibpath_overrides_runpath=unknown
10642 dynamic_linker="$host_os ld.so"
10643 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10644 need_lib_prefix=unknown
10645 hardcode_into_libs=no
10647 # when you set need_version to no, make sure it does not cause -set_version
10648 # flags to be left without arguments
10649 need_version=unknown
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10655 shlibpath_var=LIBPATH
10657 # AIX 3 has no versioning support, so we append a major version to the name.
10658 soname_spec='${libname}${release}${shared_ext}$major'
10665 hardcode_into_libs=yes
10666 if test "$host_cpu" = ia64; then
10667 # AIX 5 supports IA64
10668 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10669 shlibpath_var=LD_LIBRARY_PATH
10671 # With GCC up to 2.95.x, collect2 would create an import file
10672 # for dependence libraries. The import file would start with
10673 # the line `#! .'. This would cause the generated library to
10674 # depend on `.', always an invalid library. This was fixed in
10675 # development snapshots of GCC prior to 3.0.
10677 aix4 | aix4.[01] | aix4.[01].*)
10678 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10680 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10683 can_build_shared=no
10687 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10688 # soname into executable. Probably we can add versioning support to
10689 # collect2, so additional links can be useful in future.
10690 if test "$aix_use_runtimelinking" = yes; then
10691 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10692 # instead of lib<name>.a to let people know that these are not
10693 # typical AIX shared libraries.
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 # We preserve .a as extension for shared libraries through AIX4.2
10697 # and later when we are not doing run time linking.
10698 library_names_spec='${libname}${release}.a $libname.a'
10699 soname_spec='${libname}${release}${shared_ext}$major'
10701 shlibpath_var=LIBPATH
10708 # Since July 2007 AmigaOS4 officially supports .so libraries.
10709 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713 library_names_spec='$libname.ixlibrary $libname.a'
10714 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10715 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'
10721 library_names_spec='${libname}${shared_ext}'
10722 dynamic_linker="$host_os ld.so"
10723 shlibpath_var=LIBRARY_PATH
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10732 shlibpath_var=LD_LIBRARY_PATH
10733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10735 # the default ld.so.conf also contains /usr/contrib/lib and
10736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10737 # libtool to hard-code these into programs
10740 cygwin* | mingw* | pw32* | cegcc*)
10741 version_type=windows
10746 case $GCC,$cc_basename in
10749 library_names_spec='$libname.dll.a'
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751 postinstall_cmds='base_file=`basename \${file}`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname~
10756 chmod a+x \$dldir/$dlname~
10757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10761 dlpath=$dir/\$dldll~
10763 shlibpath_overrides_runpath=yes
10767 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10768 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10773 # MinGW DLLs use traditional 'lib' prefix
10774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10777 # pw32 DLLs use 'pw' prefix rather than 'lib'
10778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10781 dynamic_linker='Win32 ld.exe'
10786 libname_spec='$name'
10787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10788 library_names_spec='${libname}.dll.lib'
10792 sys_lib_search_path_spec=
10795 for lt_path in $LIB
10798 # Let DOS variable expansion print the short 8.3 style file name.
10799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10803 # Convert to MSYS style.
10804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10807 # Convert to unix form, then to dos form, then back to unix form
10808 # but this time dos style (no spaces!) so that the unix form looks
10809 # like /cygdrive/c/PROGRA~1:/cygdr...
10810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10815 sys_lib_search_path_spec="$LIB"
10816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10817 # It is most probably a Windows format PATH.
10818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10822 # FIXME: find the short name or the path components, as spaces are
10823 # common. (e.g. "Program Files" -> "PROGRA~1")
10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10828 postinstall_cmds='base_file=`basename \${file}`~
10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10830 dldir=$destdir/`dirname \$dlpath`~
10831 test -d \$dldir || mkdir -p \$dldir~
10832 $install_prog $dir/$dlname \$dldir/$dlname'
10833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10834 dlpath=$dir/\$dldll~
10836 shlibpath_overrides_runpath=yes
10837 dynamic_linker='Win32 link.exe'
10841 # Assume MSVC wrapper
10842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10843 dynamic_linker='Win32 ld.exe'
10846 # FIXME: first we should search . and the directory the executable is in
10850 darwin* | rhapsody*)
10851 dynamic_linker="$host_os dyld"
10852 version_type=darwin
10855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10856 soname_spec='${libname}${release}${major}$shared_ext'
10857 shlibpath_overrides_runpath=yes
10858 shlibpath_var=DYLD_LIBRARY_PATH
10859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10870 soname_spec='${libname}${release}${shared_ext}$major'
10871 shlibpath_var=LD_LIBRARY_PATH
10878 freebsd* | dragonfly*)
10879 # DragonFly does not have aout. When/if they implement a new
10880 # versioning mechanism, adjust this.
10881 if test -x /usr/bin/objformat; then
10882 objformat=`/usr/bin/objformat`
10885 freebsd[123]*) objformat=aout ;;
10886 *) objformat=elf ;;
10889 version_type=freebsd-$objformat
10890 case $version_type in
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10901 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes
10906 freebsd3.[01]* | freebsdelf3.[01]*)
10907 shlibpath_overrides_runpath=yes
10908 hardcode_into_libs=yes
10910 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10911 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10912 shlibpath_overrides_runpath=no
10913 hardcode_into_libs=yes
10915 *) # from 4.6 on, and DragonFly
10916 shlibpath_overrides_runpath=yes
10917 hardcode_into_libs=yes
10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 hardcode_into_libs=yes
10936 dynamic_linker="$host_os runtime_loader"
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 shlibpath_var=LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes
10941 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10942 hardcode_into_libs=yes
10945 hpux9* | hpux10* | hpux11*)
10946 # Give a soname corresponding to the major version so that dld.sl refuses to
10947 # link against other versions.
10954 hardcode_into_libs=yes
10955 dynamic_linker="$host_os dld.so"
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 if test "X$HPUX_IA64_MODE" = X32; then
10961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 hardcode_into_libs=yes
10970 dynamic_linker="$host_os dld.sl"
10971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980 dynamic_linker="$host_os dld.sl"
10981 shlibpath_var=SHLIB_PATH
10982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10987 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10988 postinstall_cmds='chmod 555 $lib'
10989 # or fails outright, so override atomically:
10990 install_override_mode=555
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 shlibpath_overrides_runpath=no
11002 hardcode_into_libs=yes
11005 irix5* | irix6* | nonstopux*)
11007 nonstopux*) version_type=nonstopux ;;
11009 if test "$lt_cv_prog_gnu_ld" = yes; then
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 irix5* | nonstopux*)
11021 libsuff= shlibsuff=
11024 case $LD in # libtool.m4 will add one of these switches to LD
11025 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11026 libsuff= shlibsuff= libmagic=32-bit;;
11027 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11028 libsuff=32 shlibsuff=N32 libmagic=N32;;
11029 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11030 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11031 *) libsuff= shlibsuff= libmagic=never-match;;
11035 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11036 shlibpath_overrides_runpath=no
11037 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11038 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11039 hardcode_into_libs=yes
11042 # No shared lib support for Linux oldld, aout, or coff.
11043 linux*oldld* | linux*aout* | linux*coff*)
11047 # This must be Linux ELF.
11048 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11058 # Some binutils ld are patched to set DT_RUNPATH
11059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11060 $as_echo_n "(cached) " >&6
11062 lt_cv_shlibpath_overrides_runpath=no
11063 save_LDFLAGS=$LDFLAGS
11064 save_libdir=$libdir
11065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11080 lt_cv_shlibpath_overrides_runpath=yes
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LDFLAGS=$save_LDFLAGS
11086 libdir=$save_libdir
11090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11092 # This implies no fast_install, which is unacceptable.
11093 # Some rework will be needed to allow for fast_install
11094 # before this can be enabled.
11095 hardcode_into_libs=yes
11097 # Append ld.so.conf contents to the search path
11098 if test -f /etc/ld.so.conf; then
11099 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' ' '`
11100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11103 # We used to test for /lib/ld.so.1 and disable shared libraries on
11104 # powerpc, because MkLinux only supported shared libraries with the
11105 # GNU dynamic linker. Since this was broken with cross compilers,
11106 # most powerpc-linux boxes support dynamic linking these days and
11107 # people can always --disable-shared, the test was removed, and we
11108 # assume the GNU/Linux dynamic linker is in use.
11109 dynamic_linker='GNU/Linux ld.so'
11116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11119 dynamic_linker='NetBSD (a.out) ld.so'
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 dynamic_linker='NetBSD ld.elf_so'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 hardcode_into_libs=yes
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 hardcode_into_libs=yes
11146 dynamic_linker='ldqnx.so'
11151 sys_lib_dlsearch_path_spec="/usr/lib"
11153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11156 *) need_version=no ;;
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11163 openbsd2.[89] | openbsd2.[89].*)
11164 shlibpath_overrides_runpath=no
11167 shlibpath_overrides_runpath=yes
11171 shlibpath_overrides_runpath=yes
11176 libname_spec='$name'
11179 library_names_spec='$libname${shared_ext} $libname.a'
11180 dynamic_linker='OS/2 ld.exe'
11181 shlibpath_var=LIBPATH
11184 osf3* | osf4* | osf5*)
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=yes
11207 hardcode_into_libs=yes
11208 # ldd complains unless libraries are executable
11209 postinstall_cmds='chmod +x $lib'
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=yes
11218 if test "$with_gnu_ld" = yes; then
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 case $host_vendor in
11231 shlibpath_overrides_runpath=no
11233 runpath_var=LD_RUN_PATH
11241 shlibpath_overrides_runpath=no
11242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11248 if test -d /usr/nec ;then
11250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11251 soname_spec='$libname${shared_ext}.$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11257 version_type=freebsd-elf
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11261 soname_spec='${libname}${release}${shared_ext}$major'
11262 shlibpath_var=LD_LIBRARY_PATH
11263 shlibpath_overrides_runpath=yes
11264 hardcode_into_libs=yes
11265 if test "$with_gnu_ld" = yes; then
11266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11275 sys_lib_dlsearch_path_spec='/usr/lib'
11279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=no
11286 hardcode_into_libs=yes
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11292 soname_spec='${libname}${release}${shared_ext}$major'
11293 shlibpath_var=LD_LIBRARY_PATH
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11301 $as_echo "$dynamic_linker" >&6; }
11302 test "$dynamic_linker" = no && can_build_shared=no
11304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11305 if test "$GCC" = yes; then
11306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11309 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11310 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11312 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11408 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11410 if test -n "$hardcode_libdir_flag_spec" ||
11411 test -n "$runpath_var" ||
11412 test "X$hardcode_automatic" = "Xyes" ; then
11414 # We can hardcode non-existent directories.
11415 if test "$hardcode_direct" != no &&
11416 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11417 # have to relink, otherwise we might link with an installed library
11418 # when we should be linking with a yet-to-be-installed one
11419 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11420 test "$hardcode_minus_L" != no; then
11421 # Linking always hardcodes the temporary library directory.
11422 hardcode_action=relink
11424 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11425 hardcode_action=immediate
11428 # We cannot hardcode anything, or else we can only hardcode existing
11430 hardcode_action=unsupported
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11433 $as_echo "$hardcode_action" >&6; }
11435 if test "$hardcode_action" = relink ||
11436 test "$inherit_rpath" = yes; then
11437 # Fast installation is not supported
11438 enable_fast_install=no
11439 elif test "$shlibpath_overrides_runpath" = yes ||
11440 test "$enable_shared" = no; then
11441 # Fast installation is not necessary
11442 enable_fast_install=needless
11450 if test "x$enable_dlopen" != xyes; then
11451 enable_dlopen=unknown
11452 enable_dlopen_self=unknown
11453 enable_dlopen_self_static=unknown
11460 lt_cv_dlopen="load_add_on"
11462 lt_cv_dlopen_self=yes
11465 mingw* | pw32* | cegcc*)
11466 lt_cv_dlopen="LoadLibrary"
11471 lt_cv_dlopen="dlopen"
11476 # if libdl is installed we need to link against it
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11479 if ${ac_cv_lib_dl_dlopen+:} false; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_check_lib_save_LIBS=$LIBS
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_dl_dlopen=yes
11505 ac_cv_lib_dl_dlopen=no
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11512 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11513 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11517 lt_cv_dlopen="dyld"
11519 lt_cv_dlopen_self=yes
11526 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11527 if test "x$ac_cv_func_shl_load" = xyes; then :
11528 lt_cv_dlopen="shl_load"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11531 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11532 if ${ac_cv_lib_dld_shl_load+:} false; then :
11533 $as_echo_n "(cached) " >&6
11535 ac_check_lib_save_LIBS=$LIBS
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11550 return shl_load ();
11555 if ac_fn_c_try_link "$LINENO"; then :
11556 ac_cv_lib_dld_shl_load=yes
11558 ac_cv_lib_dld_shl_load=no
11560 rm -f core conftest.err conftest.$ac_objext \
11561 conftest$ac_exeext conftest.$ac_ext
11562 LIBS=$ac_check_lib_save_LIBS
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11565 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11566 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11569 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11570 if test "x$ac_cv_func_dlopen" = xyes; then :
11571 lt_cv_dlopen="dlopen"
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11575 if ${ac_cv_lib_dl_dlopen+:} false; then :
11576 $as_echo_n "(cached) " >&6
11578 ac_check_lib_save_LIBS=$LIBS
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11583 /* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11598 if ac_fn_c_try_link "$LINENO"; then :
11599 ac_cv_lib_dl_dlopen=yes
11601 ac_cv_lib_dl_dlopen=no
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11605 LIBS=$ac_check_lib_save_LIBS
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11609 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11613 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11614 if ${ac_cv_lib_svld_dlopen+:} false; then :
11615 $as_echo_n "(cached) " >&6
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lsvld $LIBS"
11619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h. */
11622 /* Override any GCC internal prototype to avoid an error.
11623 Use char because int might match the return type of a GCC
11624 builtin and then its argument prototype would still apply. */
11637 if ac_fn_c_try_link "$LINENO"; then :
11638 ac_cv_lib_svld_dlopen=yes
11640 ac_cv_lib_svld_dlopen=no
11642 rm -f core conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
11644 LIBS=$ac_check_lib_save_LIBS
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11647 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11648 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11652 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11653 if ${ac_cv_lib_dld_dld_link+:} false; then :
11654 $as_echo_n "(cached) " >&6
11656 ac_check_lib_save_LIBS=$LIBS
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11661 /* Override any GCC internal prototype to avoid an error.
11662 Use char because int might match the return type of a GCC
11663 builtin and then its argument prototype would still apply. */
11671 return dld_link ();
11676 if ac_fn_c_try_link "$LINENO"; then :
11677 ac_cv_lib_dld_dld_link=yes
11679 ac_cv_lib_dld_dld_link=no
11681 rm -f core conftest.err conftest.$ac_objext \
11682 conftest$ac_exeext conftest.$ac_ext
11683 LIBS=$ac_check_lib_save_LIBS
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11686 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11687 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11688 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11709 if test "x$lt_cv_dlopen" != xno; then
11715 case $lt_cv_dlopen in
11717 save_CPPFLAGS="$CPPFLAGS"
11718 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11720 save_LDFLAGS="$LDFLAGS"
11721 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11724 LIBS="$lt_cv_dlopen_libs $LIBS"
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11727 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11728 if ${lt_cv_dlopen_self+:} false; then :
11729 $as_echo_n "(cached) " >&6
11731 if test "$cross_compiling" = yes; then :
11732 lt_cv_dlopen_self=cross
11734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11735 lt_status=$lt_dlunknown
11736 cat > conftest.$ac_ext <<_LT_EOF
11737 #line $LINENO "configure"
11738 #include "confdefs.h"
11747 # define LT_DLGLOBAL RTLD_GLOBAL
11750 # define LT_DLGLOBAL DL_GLOBAL
11752 # define LT_DLGLOBAL 0
11756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11757 find out it does not work in some platform. */
11758 #ifndef LT_DLLAZY_OR_NOW
11760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11763 # define LT_DLLAZY_OR_NOW DL_LAZY
11766 # define LT_DLLAZY_OR_NOW RTLD_NOW
11769 # define LT_DLLAZY_OR_NOW DL_NOW
11771 # define LT_DLLAZY_OR_NOW 0
11778 /* When -fvisbility=hidden is used, assume the code has been annotated
11779 correspondingly for the symbols needed. */
11780 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11781 int fnord () __attribute__((visibility("default")));
11784 int fnord () { return 42; }
11787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11788 int status = $lt_dlunknown;
11792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11796 else puts (dlerror ());
11798 /* dlclose (self); */
11806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11807 (eval $ac_link) 2>&5
11809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11811 (./conftest; exit; ) >&5 2>/dev/null
11813 case x$lt_status in
11814 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11815 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11816 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11819 # compilation failed
11820 lt_cv_dlopen_self=no
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11828 $as_echo "$lt_cv_dlopen_self" >&6; }
11830 if test "x$lt_cv_dlopen_self" = xyes; then
11831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11833 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11834 if ${lt_cv_dlopen_self_static+:} false; then :
11835 $as_echo_n "(cached) " >&6
11837 if test "$cross_compiling" = yes; then :
11838 lt_cv_dlopen_self_static=cross
11840 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11841 lt_status=$lt_dlunknown
11842 cat > conftest.$ac_ext <<_LT_EOF
11843 #line $LINENO "configure"
11844 #include "confdefs.h"
11853 # define LT_DLGLOBAL RTLD_GLOBAL
11856 # define LT_DLGLOBAL DL_GLOBAL
11858 # define LT_DLGLOBAL 0
11862 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11863 find out it does not work in some platform. */
11864 #ifndef LT_DLLAZY_OR_NOW
11866 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11869 # define LT_DLLAZY_OR_NOW DL_LAZY
11872 # define LT_DLLAZY_OR_NOW RTLD_NOW
11875 # define LT_DLLAZY_OR_NOW DL_NOW
11877 # define LT_DLLAZY_OR_NOW 0
11884 /* When -fvisbility=hidden is used, assume the code has been annotated
11885 correspondingly for the symbols needed. */
11886 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11887 int fnord () __attribute__((visibility("default")));
11890 int fnord () { return 42; }
11893 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11894 int status = $lt_dlunknown;
11898 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11901 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11902 else puts (dlerror ());
11904 /* dlclose (self); */
11912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11913 (eval $ac_link) 2>&5
11915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11917 (./conftest; exit; ) >&5 2>/dev/null
11919 case x$lt_status in
11920 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11921 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11922 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11925 # compilation failed
11926 lt_cv_dlopen_self_static=no
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11934 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11937 CPPFLAGS="$save_CPPFLAGS"
11938 LDFLAGS="$save_LDFLAGS"
11943 case $lt_cv_dlopen_self in
11944 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11945 *) enable_dlopen_self=unknown ;;
11948 case $lt_cv_dlopen_self_static in
11949 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11950 *) enable_dlopen_self_static=unknown ;;
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11973 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11974 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11975 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11976 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11980 # FIXME - insert some real tests, host_os isn't really good enough
11983 if test -n "$STRIP" ; then
11984 striplib="$STRIP -x"
11985 old_striplib="$STRIP -S"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987 $as_echo "yes" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
12011 # Report which library types will actually be built
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12013 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12015 $as_echo "$can_build_shared" >&6; }
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12018 $as_echo_n "checking whether to build shared libraries... " >&6; }
12019 test "$can_build_shared" = "no" && enable_shared=no
12021 # On AIX, shared libraries and static libraries use the same namespace, and
12022 # are all built from PIC.
12025 test "$enable_shared" = yes && enable_static=no
12026 if test -n "$RANLIB"; then
12027 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12028 postinstall_cmds='$RANLIB $lib'
12033 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12034 test "$enable_shared" = yes && enable_static=no
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12039 $as_echo "$enable_shared" >&6; }
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12042 $as_echo_n "checking whether to build static libraries... " >&6; }
12043 # Make sure either enable_shared or enable_static is yes.
12044 test "$enable_shared" = yes || enable_static=yes
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12046 $as_echo "$enable_static" >&6; }
12053 ac_cpp='$CPP $CPPFLAGS'
12054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12072 ac_config_commands="$ac_config_commands libtool"
12077 # Only expand once:
12083 if test "$enable_samples" = "yes"; then
12084 BUILD_SAMPLES_TRUE=
12085 BUILD_SAMPLES_FALSE='#'
12087 BUILD_SAMPLES_TRUE='#'
12088 BUILD_SAMPLES_FALSE=
12091 if test "$enable_libevent_regress" = "yes"; then
12092 BUILD_REGRESS_TRUE=
12093 BUILD_REGRESS_FALSE='#'
12095 BUILD_REGRESS_TRUE='#'
12096 BUILD_REGRESS_FALSE=
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12101 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12102 if ${ac_cv_search_inet_ntoa+:} false; then :
12103 $as_echo_n "(cached) " >&6
12105 ac_func_search_save_LIBS=$LIBS
12106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12119 return inet_ntoa ();
12124 for ac_lib in '' nsl; do
12125 if test -z "$ac_lib"; then
12126 ac_res="none required"
12129 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12131 if ac_fn_c_try_link "$LINENO"; then :
12132 ac_cv_search_inet_ntoa=$ac_res
12134 rm -f core conftest.err conftest.$ac_objext \
12136 if ${ac_cv_search_inet_ntoa+:} false; then :
12140 if ${ac_cv_search_inet_ntoa+:} false; then :
12143 ac_cv_search_inet_ntoa=no
12145 rm conftest.$ac_ext
12146 LIBS=$ac_func_search_save_LIBS
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12149 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12150 ac_res=$ac_cv_search_inet_ntoa
12151 if test "$ac_res" != no; then :
12152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12157 $as_echo_n "checking for library containing socket... " >&6; }
12158 if ${ac_cv_search_socket+:} false; then :
12159 $as_echo_n "(cached) " >&6
12161 ac_func_search_save_LIBS=$LIBS
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12180 for ac_lib in '' socket; do
12181 if test -z "$ac_lib"; then
12182 ac_res="none required"
12185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12187 if ac_fn_c_try_link "$LINENO"; then :
12188 ac_cv_search_socket=$ac_res
12190 rm -f core conftest.err conftest.$ac_objext \
12192 if ${ac_cv_search_socket+:} false; then :
12196 if ${ac_cv_search_socket+:} false; then :
12199 ac_cv_search_socket=no
12201 rm conftest.$ac_ext
12202 LIBS=$ac_func_search_save_LIBS
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12205 $as_echo "$ac_cv_search_socket" >&6; }
12206 ac_res=$ac_cv_search_socket
12207 if test "$ac_res" != no; then :
12208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12213 $as_echo_n "checking for library containing inet_aton... " >&6; }
12214 if ${ac_cv_search_inet_aton+:} false; then :
12215 $as_echo_n "(cached) " >&6
12217 ac_func_search_save_LIBS=$LIBS
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12231 return inet_aton ();
12236 for ac_lib in '' resolv; do
12237 if test -z "$ac_lib"; then
12238 ac_res="none required"
12241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_search_inet_aton=$ac_res
12246 rm -f core conftest.err conftest.$ac_objext \
12248 if ${ac_cv_search_inet_aton+:} false; then :
12252 if ${ac_cv_search_inet_aton+:} false; then :
12255 ac_cv_search_inet_aton=no
12257 rm conftest.$ac_ext
12258 LIBS=$ac_func_search_save_LIBS
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12261 $as_echo "$ac_cv_search_inet_aton" >&6; }
12262 ac_res=$ac_cv_search_inet_aton
12263 if test "$ac_res" != no; then :
12264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12269 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12270 if ${ac_cv_search_clock_gettime+:} false; then :
12271 $as_echo_n "(cached) " >&6
12273 ac_func_search_save_LIBS=$LIBS
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12283 char clock_gettime ();
12287 return clock_gettime ();
12292 for ac_lib in '' rt; do
12293 if test -z "$ac_lib"; then
12294 ac_res="none required"
12297 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12299 if ac_fn_c_try_link "$LINENO"; then :
12300 ac_cv_search_clock_gettime=$ac_res
12302 rm -f core conftest.err conftest.$ac_objext \
12304 if ${ac_cv_search_clock_gettime+:} false; then :
12308 if ${ac_cv_search_clock_gettime+:} false; then :
12311 ac_cv_search_clock_gettime=no
12313 rm conftest.$ac_ext
12314 LIBS=$ac_func_search_save_LIBS
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12317 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12318 ac_res=$ac_cv_search_clock_gettime
12319 if test "$ac_res" != no; then :
12320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12325 $as_echo_n "checking for library containing sendfile... " >&6; }
12326 if ${ac_cv_search_sendfile+:} false; then :
12327 $as_echo_n "(cached) " >&6
12329 ac_func_search_save_LIBS=$LIBS
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12333 /* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
12343 return sendfile ();
12348 for ac_lib in '' sendfile; do
12349 if test -z "$ac_lib"; then
12350 ac_res="none required"
12353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12355 if ac_fn_c_try_link "$LINENO"; then :
12356 ac_cv_search_sendfile=$ac_res
12358 rm -f core conftest.err conftest.$ac_objext \
12360 if ${ac_cv_search_sendfile+:} false; then :
12364 if ${ac_cv_search_sendfile+:} false; then :
12367 ac_cv_search_sendfile=no
12369 rm conftest.$ac_ext
12370 LIBS=$ac_func_search_save_LIBS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12373 $as_echo "$ac_cv_search_sendfile" >&6; }
12374 ac_res=$ac_cv_search_sendfile
12375 if test "$ac_res" != no; then :
12376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12382 $as_echo_n "checking for WIN32... " >&6; }
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12402 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12408 $as_echo_n "checking for CYGWIN... " >&6; }
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12426 $as_echo "yes" >&6; }
12428 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429 $as_echo "no" >&6; }
12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433 for ac_header in zlib.h
12435 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12436 if test "x$ac_cv_header_zlib_h" = xyes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_ZLIB_H 1
12446 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12452 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12453 if ${ac_cv_search_inflateEnd+:} false; then :
12454 $as_echo_n "(cached) " >&6
12456 ac_func_search_save_LIBS=$LIBS
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12466 char inflateEnd ();
12470 return inflateEnd ();
12475 for ac_lib in '' z; do
12476 if test -z "$ac_lib"; then
12477 ac_res="none required"
12480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12482 if ac_fn_c_try_link "$LINENO"; then :
12483 ac_cv_search_inflateEnd=$ac_res
12485 rm -f core conftest.err conftest.$ac_objext \
12487 if ${ac_cv_search_inflateEnd+:} false; then :
12491 if ${ac_cv_search_inflateEnd+:} false; then :
12494 ac_cv_search_inflateEnd=no
12496 rm conftest.$ac_ext
12497 LIBS=$ac_func_search_save_LIBS
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12500 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12501 ac_res=$ac_cv_search_inflateEnd
12502 if test "$ac_res" != no; then :
12503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12507 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12514 if test "$have_zlib" = "yes"; then
12516 ZLIB_REGRESS_FALSE='#'
12518 ZLIB_REGRESS_TRUE='#'
12519 ZLIB_REGRESS_FALSE=
12523 if test "$bwin32" = true; then
12524 EV_LIB_WS32=-lws2_32
12534 # Check whether --enable-largefile was given.
12535 if test "${enable_largefile+set}" = set; then :
12536 enableval=$enable_largefile;
12539 if test "$enable_largefile" != no; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12542 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12543 if ${ac_cv_sys_largefile_CC+:} false; then :
12544 $as_echo_n "(cached) " >&6
12546 ac_cv_sys_largefile_CC=no
12547 if test "$GCC" != yes; then
12550 # IRIX 6.2 and later do not support large files by default,
12551 # so use the C compiler's -n32 option if that helps.
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 #include <sys/types.h>
12555 /* Check that off_t can represent 2**63 - 1 correctly.
12556 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12557 since some C++ compilers masquerading as C compilers
12558 incorrectly reject 9223372036854775807. */
12559 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12560 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12561 && LARGE_OFF_T % 2147483647 == 1)
12571 if ac_fn_c_try_compile "$LINENO"; then :
12574 rm -f core conftest.err conftest.$ac_objext
12576 if ac_fn_c_try_compile "$LINENO"; then :
12577 ac_cv_sys_largefile_CC=' -n32'; break
12579 rm -f core conftest.err conftest.$ac_objext
12583 rm -f conftest.$ac_ext
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12587 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12588 if test "$ac_cv_sys_largefile_CC" != no; then
12589 CC=$CC$ac_cv_sys_largefile_CC
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12593 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12594 if ${ac_cv_sys_file_offset_bits+:} false; then :
12595 $as_echo_n "(cached) " >&6
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600 #include <sys/types.h>
12601 /* Check that off_t can represent 2**63 - 1 correctly.
12602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12603 since some C++ compilers masquerading as C compilers
12604 incorrectly reject 9223372036854775807. */
12605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12607 && LARGE_OFF_T % 2147483647 == 1)
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 ac_cv_sys_file_offset_bits=no; break
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623 #define _FILE_OFFSET_BITS 64
12624 #include <sys/types.h>
12625 /* Check that off_t can represent 2**63 - 1 correctly.
12626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12627 since some C++ compilers masquerading as C compilers
12628 incorrectly reject 9223372036854775807. */
12629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12631 && LARGE_OFF_T % 2147483647 == 1)
12641 if ac_fn_c_try_compile "$LINENO"; then :
12642 ac_cv_sys_file_offset_bits=64; break
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 ac_cv_sys_file_offset_bits=unknown
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12650 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12651 case $ac_cv_sys_file_offset_bits in #(
12654 cat >>confdefs.h <<_ACEOF
12655 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12660 if test $ac_cv_sys_file_offset_bits = unknown; then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12662 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12663 if ${ac_cv_sys_large_files+:} false; then :
12664 $as_echo_n "(cached) " >&6
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #include <sys/types.h>
12670 /* Check that off_t can represent 2**63 - 1 correctly.
12671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12672 since some C++ compilers masquerading as C compilers
12673 incorrectly reject 9223372036854775807. */
12674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12676 && LARGE_OFF_T % 2147483647 == 1)
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 ac_cv_sys_large_files=no; break
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12691 /* end confdefs.h. */
12692 #define _LARGE_FILES 1
12693 #include <sys/types.h>
12694 /* Check that off_t can represent 2**63 - 1 correctly.
12695 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12696 since some C++ compilers masquerading as C compilers
12697 incorrectly reject 9223372036854775807. */
12698 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12699 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12700 && LARGE_OFF_T % 2147483647 == 1)
12710 if ac_fn_c_try_compile "$LINENO"; then :
12711 ac_cv_sys_large_files=1; break
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 ac_cv_sys_large_files=unknown
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12719 $as_echo "$ac_cv_sys_large_files" >&6; }
12720 case $ac_cv_sys_large_files in #(
12723 cat >>confdefs.h <<_ACEOF
12724 #define _LARGE_FILES $ac_cv_sys_large_files
12735 ntp_pkgconfig_min_version='0.15.0'
12736 if test -n "$ac_tool_prefix"; then
12737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12742 $as_echo_n "(cached) " >&6
12744 case $PKG_CONFIG in
12746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12753 test -z "$as_dir" && as_dir=.
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12768 if test -n "$PKG_CONFIG"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12770 $as_echo "$PKG_CONFIG" >&6; }
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12778 if test -z "$ac_cv_path_PKG_CONFIG"; then
12779 ac_pt_PKG_CONFIG=$PKG_CONFIG
12780 # Extract the first word of "pkg-config", so it can be a program name with args.
12781 set dummy pkg-config; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12785 $as_echo_n "(cached) " >&6
12787 case $ac_pt_PKG_CONFIG in
12789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12811 if test -n "$ac_pt_PKG_CONFIG"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12813 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 if test "x$ac_pt_PKG_CONFIG" = x; then
12822 case $cross_compiling:$ac_tool_warned in
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12826 ac_tool_warned=yes ;;
12828 PKG_CONFIG=$ac_pt_PKG_CONFIG
12831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12834 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
12835 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
12837 case "$PKG_CONFIG" in
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
12840 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
12841 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12843 $as_echo "yes" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846 $as_echo "no" >&6; }
12855 case "$enable_openssl" in
12858 case "$PKG_CONFIG" in
12862 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
12863 case "$OPENSSL_LIBS" in
12865 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12869 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
12872 case "$have_openssl" in
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12879 $as_echo_n "checking for library containing SSL_new... " >&6; }
12880 if ${ac_cv_search_SSL_new+:} false; then :
12881 $as_echo_n "(cached) " >&6
12883 ac_func_search_save_LIBS=$LIBS
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12887 /* Override any GCC internal prototype to avoid an error.
12888 Use char because int might match the return type of a GCC
12889 builtin and then its argument prototype would still apply. */
12902 for ac_lib in '' ssl; do
12903 if test -z "$ac_lib"; then
12904 ac_res="none required"
12907 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12909 if ac_fn_c_try_link "$LINENO"; then :
12910 ac_cv_search_SSL_new=$ac_res
12912 rm -f core conftest.err conftest.$ac_objext \
12914 if ${ac_cv_search_SSL_new+:} false; then :
12918 if ${ac_cv_search_SSL_new+:} false; then :
12921 ac_cv_search_SSL_new=no
12923 rm conftest.$ac_ext
12924 LIBS=$ac_func_search_save_LIBS
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12927 $as_echo "$ac_cv_search_SSL_new" >&6; }
12928 ac_res=$ac_cv_search_SSL_new
12929 if test "$ac_res" != no; then :
12930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12942 case "$have_openssl" in
12944 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12950 # check if we have and should use openssl
12951 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12994 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12996 cat >>confdefs.h <<_ACEOF
12997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13005 for ac_header in sys/sysctl.h
13007 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13008 #ifdef HAVE_SYS_PARAM_H
13009 #include <sys/param.h>
13013 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_SYS_SYSCTL_H 1
13022 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13024 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13028 #include <sys/queue.h>
13029 #ifdef TAILQ_FOREACH
13034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13035 $EGREP "yes" >/dev/null 2>&1; then :
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13037 $as_echo "yes" >&6; }
13039 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13050 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13052 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13056 #include <sys/time.h>
13062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13063 $EGREP "yes" >/dev/null 2>&1; then :
13065 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13068 $as_echo "yes" >&6; }
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071 $as_echo "no" >&6; }
13078 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13080 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082 /* end confdefs.h. */
13084 #include <sys/time.h>
13090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13091 $EGREP "yes" >/dev/null 2>&1; then :
13093 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13096 $as_echo "yes" >&6; }
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13106 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13108 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13112 #include <sys/time.h>
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119 $EGREP "yes" >/dev/null 2>&1; then :
13121 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13124 $as_echo "yes" >&6; }
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13134 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13136 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13140 #include <sys/time.h>
13146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13147 $EGREP "yes" >/dev/null 2>&1; then :
13149 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13162 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13163 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13164 #include <sys/sysctl.h>
13167 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_DECL_CTL_KERN $ac_have_decl
13176 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13177 #include <sys/sysctl.h>
13180 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13186 cat >>confdefs.h <<_ACEOF
13187 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13189 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13190 #include <sys/sysctl.h>
13193 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13202 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13203 #include <sys/sysctl.h>
13206 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13212 cat >>confdefs.h <<_ACEOF
13213 #define HAVE_DECL_KERN_ARND $ac_have_decl
13218 if test x$bwin32 = xtrue; then
13220 BUILD_WIN32_FALSE='#'
13222 BUILD_WIN32_TRUE='#'
13226 if test x$cygwin = xtrue; then
13228 BUILD_CYGWIN_FALSE='#'
13230 BUILD_CYGWIN_TRUE='#'
13231 BUILD_CYGWIN_FALSE=
13234 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13235 BUILD_WITH_NO_UNDEFINED_TRUE=
13236 BUILD_WITH_NO_UNDEFINED_FALSE='#'
13238 BUILD_WITH_NO_UNDEFINED_TRUE='#'
13239 BUILD_WITH_NO_UNDEFINED_FALSE=
13243 if test x$bwin32 = xtrue; then
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13245 $as_echo_n "checking for library containing getservbyname... " >&6; }
13246 if ${ac_cv_search_getservbyname+:} false; then :
13247 $as_echo_n "(cached) " >&6
13249 ac_func_search_save_LIBS=$LIBS
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13253 /* Override any GCC internal prototype to avoid an error.
13254 Use char because int might match the return type of a GCC
13255 builtin and then its argument prototype would still apply. */
13259 char getservbyname ();
13263 return getservbyname ();
13268 for ac_lib in '' ws2_32; do
13269 if test -z "$ac_lib"; then
13270 ac_res="none required"
13273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13275 if ac_fn_c_try_link "$LINENO"; then :
13276 ac_cv_search_getservbyname=$ac_res
13278 rm -f core conftest.err conftest.$ac_objext \
13280 if ${ac_cv_search_getservbyname+:} false; then :
13284 if ${ac_cv_search_getservbyname+:} false; then :
13287 ac_cv_search_getservbyname=no
13289 rm conftest.$ac_ext
13290 LIBS=$ac_func_search_save_LIBS
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13293 $as_echo "$ac_cv_search_getservbyname" >&6; }
13294 ac_res=$ac_cv_search_getservbyname
13295 if test "$ac_res" != no; then :
13296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13303 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13304 if ${ac_cv_c_const+:} false; then :
13305 $as_echo_n "(cached) " >&6
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13313 /* FIXME: Include the comments suggested by Paul. */
13314 #ifndef __cplusplus
13315 /* Ultrix mips cc rejects this. */
13316 typedef int charset[2];
13318 /* SunOS 4.1.1 cc rejects this. */
13319 char const *const *pcpcc;
13321 /* NEC SVR4.0.2 mips cc rejects this. */
13322 struct point {int x, y;};
13323 static struct point const zero = {0,0};
13324 /* AIX XL C 1.02.0.0 rejects this.
13325 It does not let you subtract one const X* pointer from another in
13326 an arm of an if-expression whose if-part is not a constant
13328 const char *g = "string";
13329 pcpcc = &g + (g ? g-g : 0);
13330 /* HPUX 7.0 cc rejects these. */
13332 ppc = (char**) pcpcc;
13333 pcpcc = (char const *const *) ppc;
13334 { /* SCO 3.2v4 cc rejects this. */
13336 char const *s = 0 ? (char *) 0 : (char const *) 0;
13341 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13342 int x[] = {25, 17};
13343 const int *foo = &x[0];
13346 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13347 typedef const int *iptr;
13351 { /* AIX XL C 1.02.0.0 rejects this saying
13352 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13353 struct s { int j; const int *ap[3]; };
13354 struct s *b; b->j = 5;
13356 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13357 const int foo = 10;
13358 if (!foo) return 0;
13360 return !cs[0] && !zero.x;
13367 if ac_fn_c_try_compile "$LINENO"; then :
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13375 $as_echo "$ac_cv_c_const" >&6; }
13376 if test $ac_cv_c_const = no; then
13378 $as_echo "#define const /**/" >>confdefs.h
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13383 $as_echo_n "checking for inline... " >&6; }
13384 if ${ac_cv_c_inline+:} false; then :
13385 $as_echo_n "(cached) " >&6
13388 for ac_kw in inline __inline__ __inline; do
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 #ifndef __cplusplus
13393 static $ac_kw foo_t static_foo () {return 0; }
13394 $ac_kw foo_t foo () {return 0; }
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 ac_cv_c_inline=$ac_kw
13401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13402 test "$ac_cv_c_inline" != no && break
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13407 $as_echo "$ac_cv_c_inline" >&6; }
13409 case $ac_cv_c_inline in
13412 case $ac_cv_c_inline in
13414 *) ac_val=$ac_cv_c_inline;;
13416 cat >>confdefs.h <<_ACEOF
13417 #ifndef __cplusplus
13418 #define inline $ac_val
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13425 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13426 if ${ac_cv_header_time+:} false; then :
13427 $as_echo_n "(cached) " >&6
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 #include <sys/types.h>
13432 #include <sys/time.h>
13438 if ((struct tm *) 0)
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 ac_cv_header_time=yes
13447 ac_cv_header_time=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13452 $as_echo "$ac_cv_header_time" >&6; }
13453 if test $ac_cv_header_time = yes; then
13455 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13477 mach_absolute_time \
13501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13504 cat >>confdefs.h <<_ACEOF
13505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13511 if test x"$ac_cv_func_strlcpy" = xno; then
13513 STRLCPY_IMPL_FALSE='#'
13515 STRLCPY_IMPL_TRUE='#'
13516 STRLCPY_IMPL_FALSE=
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13521 $as_echo_n "checking for getaddrinfo... " >&6; }
13522 if ${libevent_cv_getaddrinfo+:} false; then :
13523 $as_echo_n "(cached) " >&6
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13528 #ifdef HAVE_NETDB_H
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 libevent_cv_getaddrinfo=yes
13546 libevent_cv_getaddrinfo=no
13549 rm -f core conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13554 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13555 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13557 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13561 for ac_func in getservbyname
13563 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13564 if test "x$ac_cv_func_getservbyname" = xyes; then :
13565 cat >>confdefs.h <<_ACEOF
13566 #define HAVE_GETSERVBYNAME 1
13572 # Check for gethostbyname_r in all its glorious incompatible versions.
13573 # (This is cut-and-pasted from Tor, which based its logic on
13574 # Python's configure.in.)
13577 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13578 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13581 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13583 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585 /* end confdefs.h. */
13594 struct hostent *h1, *h2;
13596 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13602 if ac_fn_c_try_compile "$LINENO"; then :
13604 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13607 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13610 $as_echo "6" >&6; }
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13624 struct hostent *h1;
13626 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13632 if ac_fn_c_try_compile "$LINENO"; then :
13634 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13637 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13640 $as_echo "5" >&6; }
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13654 struct hostent *h1;
13655 struct hostent_data hd;
13656 (void) gethostbyname_r(cp1,h1,&hd);
13662 if ac_fn_c_try_compile "$LINENO"; then :
13664 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13667 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13670 $as_echo "3" >&6; }
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13675 $as_echo "0" >&6; }
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13693 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695 /* end confdefs.h. */
13697 #define _GNU_SOURCE
13704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13705 $EGREP "yes" >/dev/null 2>&1; then :
13707 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713 $as_echo "no" >&6; }
13720 if test x$bwin32 != xtrue; then
13721 for ac_func in select
13723 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13724 if test "x$ac_cv_func_select" = xyes; then :
13725 cat >>confdefs.h <<_ACEOF
13726 #define HAVE_SELECT 1
13732 if test "x$haveselect" = "xyes" ; then
13736 if test "x$haveselect" = "xyes"; then
13737 SELECT_BACKEND_TRUE=
13738 SELECT_BACKEND_FALSE='#'
13740 SELECT_BACKEND_TRUE='#'
13741 SELECT_BACKEND_FALSE=
13746 for ac_func in poll
13748 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13749 if test "x$ac_cv_func_poll" = xyes; then :
13750 cat >>confdefs.h <<_ACEOF
13751 #define HAVE_POLL 1
13757 if test "x$havepoll" = "xyes" ; then
13760 if test "x$havepoll" = "xyes"; then
13762 POLL_BACKEND_FALSE='#'
13764 POLL_BACKEND_TRUE='#'
13765 POLL_BACKEND_FALSE=
13770 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13772 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13775 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13776 DEVPOLL_BACKEND_TRUE=
13777 DEVPOLL_BACKEND_FALSE='#'
13779 DEVPOLL_BACKEND_TRUE='#'
13780 DEVPOLL_BACKEND_FALSE=
13785 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13786 for ac_func in kqueue
13788 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13789 if test "x$ac_cv_func_kqueue" = xyes; then :
13790 cat >>confdefs.h <<_ACEOF
13791 #define HAVE_KQUEUE 1
13797 if test "x$havekqueue" = "xyes" ; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13799 $as_echo_n "checking for working kqueue... " >&6; }
13800 if test "$cross_compiling" = yes; then :
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802 $as_echo "no" >&6; }
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 #include <sys/types.h>
13807 #include <sys/time.h>
13808 #include <sys/event.h>
13810 #include <unistd.h>
13814 main(int argc, char **argv)
13820 struct timespec ts;
13823 if (pipe(fd) == -1)
13825 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13828 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13831 if ((kq = kqueue()) == -1)
13834 memset(&ev, 0, sizeof(ev));
13836 ev.filter = EVFILT_WRITE;
13837 ev.flags = EV_ADD | EV_ENABLE;
13838 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13842 read(fd[0], buf, sizeof(buf));
13846 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13847 if (n == -1 || n == 0)
13853 if ac_fn_c_try_run "$LINENO"; then :
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 $as_echo "yes" >&6; }
13857 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863 $as_echo "no" >&6; }
13865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13866 conftest.$ac_objext conftest.beam conftest.$ac_ext
13871 if test "x$havekqueue" = "xyes"; then
13872 KQUEUE_BACKEND_TRUE=
13873 KQUEUE_BACKEND_FALSE='#'
13875 KQUEUE_BACKEND_TRUE='#'
13876 KQUEUE_BACKEND_FALSE=
13880 haveepollsyscall=no
13882 for ac_func in epoll_ctl
13884 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13885 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13886 cat >>confdefs.h <<_ACEOF
13887 #define HAVE_EPOLL_CTL 1
13893 if test "x$haveepoll" = "xyes" ; then
13895 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13899 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13900 if test "x$haveepoll" = "xno" ; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13902 $as_echo_n "checking for epoll system call... " >&6; }
13903 if test "$cross_compiling" = yes; then :
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905 $as_echo "no" >&6; }
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #include <stdint.h>
13910 #include <sys/param.h>
13911 #include <sys/types.h>
13912 #include <sys/syscall.h>
13913 #include <sys/epoll.h>
13914 #include <unistd.h>
13917 epoll_create(int size)
13919 return (syscall(__NR_epoll_create, size));
13923 main(int argc, char **argv)
13927 epfd = epoll_create(256);
13928 exit (epfd == -1 ? 1 : 0);
13931 if ac_fn_c_try_run "$LINENO"; then :
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13933 $as_echo "yes" >&6; }
13935 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13939 case " $LIBOBJS " in
13940 *" epoll_sub.$ac_objext "* ) ;;
13941 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13948 $as_echo "no" >&6; }
13950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13951 conftest.$ac_objext conftest.beam conftest.$ac_ext
13956 if test "x$haveepoll" = "xyes"; then
13957 EPOLL_BACKEND_TRUE=
13958 EPOLL_BACKEND_FALSE='#'
13960 EPOLL_BACKEND_TRUE='#'
13961 EPOLL_BACKEND_FALSE=
13966 for ac_func in port_create
13968 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13969 if test "x$ac_cv_func_port_create" = xyes; then :
13970 cat >>confdefs.h <<_ACEOF
13971 #define HAVE_PORT_CREATE 1
13977 if test "x$haveeventports" = "xyes" ; then
13979 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13983 if test "x$haveeventports" = "xyes"; then
13984 EVPORT_BACKEND_TRUE=
13985 EVPORT_BACKEND_FALSE='#'
13987 EVPORT_BACKEND_TRUE='#'
13988 EVPORT_BACKEND_FALSE=
13992 if test "x$bwin32" = "xtrue"; then
13996 if test "x$needsignal" = "xyes"; then
13997 SIGNAL_SUPPORT_TRUE=
13998 SIGNAL_SUPPORT_FALSE='#'
14000 SIGNAL_SUPPORT_TRUE='#'
14001 SIGNAL_SUPPORT_FALSE=
14005 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14006 if test "x$ac_cv_type_pid_t" = xyes; then :
14010 cat >>confdefs.h <<_ACEOF
14016 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14017 if test "x$ac_cv_type_size_t" = xyes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define size_t unsigned int
14027 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14028 if test "x$ac_cv_type_ssize_t" = xyes; then :
14032 cat >>confdefs.h <<_ACEOF
14033 #define ssize_t int
14039 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14040 #include <stdint.h>
14041 #elif defined(HAVE_INTTYPES_H)
14042 #include <inttypes.h>
14044 #ifdef HAVE_SYS_TYPES_H
14045 #include <sys/types.h>
14048 if test "x$ac_cv_type_uint64_t" = xyes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_UINT64_T 1
14056 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14057 #include <stdint.h>
14058 #elif defined(HAVE_INTTYPES_H)
14059 #include <inttypes.h>
14061 #ifdef HAVE_SYS_TYPES_H
14062 #include <sys/types.h>
14065 if test "x$ac_cv_type_uint32_t" = xyes; then :
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_UINT32_T 1
14073 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14074 #include <stdint.h>
14075 #elif defined(HAVE_INTTYPES_H)
14076 #include <inttypes.h>
14078 #ifdef HAVE_SYS_TYPES_H
14079 #include <sys/types.h>
14082 if test "x$ac_cv_type_uint16_t" = xyes; then :
14084 cat >>confdefs.h <<_ACEOF
14085 #define HAVE_UINT16_T 1
14090 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14091 #include <stdint.h>
14092 #elif defined(HAVE_INTTYPES_H)
14093 #include <inttypes.h>
14095 #ifdef HAVE_SYS_TYPES_H
14096 #include <sys/types.h>
14099 if test "x$ac_cv_type_uint8_t" = xyes; then :
14101 cat >>confdefs.h <<_ACEOF
14102 #define HAVE_UINT8_T 1
14107 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14108 #include <stdint.h>
14109 #elif defined(HAVE_INTTYPES_H)
14110 #include <inttypes.h>
14112 #ifdef HAVE_SYS_TYPES_H
14113 #include <sys/types.h>
14116 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14118 cat >>confdefs.h <<_ACEOF
14119 #define HAVE_UINTPTR_T 1
14126 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14127 #include <sys/types.h>
14129 #ifdef HAVE_SYS_SELECT_H
14130 #include <sys/select.h>
14133 if test "x$ac_cv_type_fd_mask" = xyes; then :
14135 cat >>confdefs.h <<_ACEOF
14136 #define HAVE_FD_MASK 1
14143 # The cast to long int works around a bug in the HP C Compiler
14144 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14145 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14146 # This bug is HP SR number 8606223364.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14148 $as_echo_n "checking size of long long... " >&6; }
14149 if ${ac_cv_sizeof_long_long+:} false; then :
14150 $as_echo_n "(cached) " >&6
14152 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14155 if test "$ac_cv_type_long_long" = yes; then
14156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14158 as_fn_error 77 "cannot compute sizeof (long long)
14159 See \`config.log' for more details" "$LINENO" 5; }
14161 ac_cv_sizeof_long_long=0
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14167 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14171 cat >>confdefs.h <<_ACEOF
14172 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14176 # The cast to long int works around a bug in the HP C Compiler
14177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14179 # This bug is HP SR number 8606223364.
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14181 $as_echo_n "checking size of long... " >&6; }
14182 if ${ac_cv_sizeof_long+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14188 if test "$ac_cv_type_long" = yes; then
14189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14191 as_fn_error 77 "cannot compute sizeof (long)
14192 See \`config.log' for more details" "$LINENO" 5; }
14194 ac_cv_sizeof_long=0
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14200 $as_echo "$ac_cv_sizeof_long" >&6; }
14204 cat >>confdefs.h <<_ACEOF
14205 #define SIZEOF_LONG $ac_cv_sizeof_long
14209 # The cast to long int works around a bug in the HP C Compiler
14210 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14211 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14212 # This bug is HP SR number 8606223364.
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14214 $as_echo_n "checking size of int... " >&6; }
14215 if ${ac_cv_sizeof_int+:} false; then :
14216 $as_echo_n "(cached) " >&6
14218 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14221 if test "$ac_cv_type_int" = yes; then
14222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14224 as_fn_error 77 "cannot compute sizeof (int)
14225 See \`config.log' for more details" "$LINENO" 5; }
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14233 $as_echo "$ac_cv_sizeof_int" >&6; }
14237 cat >>confdefs.h <<_ACEOF
14238 #define SIZEOF_INT $ac_cv_sizeof_int
14242 # The cast to long int works around a bug in the HP C Compiler
14243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14245 # This bug is HP SR number 8606223364.
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14247 $as_echo_n "checking size of short... " >&6; }
14248 if ${ac_cv_sizeof_short+:} false; then :
14249 $as_echo_n "(cached) " >&6
14251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14254 if test "$ac_cv_type_short" = yes; then
14255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14257 as_fn_error 77 "cannot compute sizeof (short)
14258 See \`config.log' for more details" "$LINENO" 5; }
14260 ac_cv_sizeof_short=0
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14266 $as_echo "$ac_cv_sizeof_short" >&6; }
14270 cat >>confdefs.h <<_ACEOF
14271 #define SIZEOF_SHORT $ac_cv_sizeof_short
14275 # The cast to long int works around a bug in the HP C Compiler
14276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14278 # This bug is HP SR number 8606223364.
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14280 $as_echo_n "checking size of size_t... " >&6; }
14281 if ${ac_cv_sizeof_size_t+:} false; then :
14282 $as_echo_n "(cached) " >&6
14284 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14287 if test "$ac_cv_type_size_t" = yes; then
14288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14290 as_fn_error 77 "cannot compute sizeof (size_t)
14291 See \`config.log' for more details" "$LINENO" 5; }
14293 ac_cv_sizeof_size_t=0
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14299 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14303 cat >>confdefs.h <<_ACEOF
14304 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14308 # The cast to long int works around a bug in the HP C Compiler
14309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14311 # This bug is HP SR number 8606223364.
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14313 $as_echo_n "checking size of void *... " >&6; }
14314 if ${ac_cv_sizeof_void_p+:} false; then :
14315 $as_echo_n "(cached) " >&6
14317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14320 if test "$ac_cv_type_void_p" = yes; then
14321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14323 as_fn_error 77 "cannot compute sizeof (void *)
14324 See \`config.log' for more details" "$LINENO" 5; }
14326 ac_cv_sizeof_void_p=0
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14332 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14336 cat >>confdefs.h <<_ACEOF
14337 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14341 # The cast to long int works around a bug in the HP C Compiler
14342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14344 # This bug is HP SR number 8606223364.
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14346 $as_echo_n "checking size of off_t... " >&6; }
14347 if ${ac_cv_sizeof_off_t+:} false; then :
14348 $as_echo_n "(cached) " >&6
14350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14353 if test "$ac_cv_type_off_t" = yes; then
14354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14356 as_fn_error 77 "cannot compute sizeof (off_t)
14357 See \`config.log' for more details" "$LINENO" 5; }
14359 ac_cv_sizeof_off_t=0
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14365 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14369 cat >>confdefs.h <<_ACEOF
14370 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14375 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14376 #include <sys/types.h>
14377 #ifdef HAVE_NETINET_IN_H
14378 #include <netinet/in.h>
14380 #ifdef HAVE_NETINET_IN6_H
14381 #include <netinet/in6.h>
14383 #ifdef HAVE_SYS_SOCKET_H
14384 #include <sys/socket.h>
14386 #ifdef HAVE_NETDB_H
14390 #define WIN32_WINNT 0x400
14391 #define _WIN32_WINNT 0x400
14392 #define WIN32_LEAN_AND_MEAN
14393 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14394 #include <winsock.h>
14396 #include <winsock2.h>
14397 #include <ws2tcpip.h>
14402 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_STRUCT_IN6_ADDR 1
14410 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14411 #include <sys/types.h>
14412 #ifdef HAVE_NETINET_IN_H
14413 #include <netinet/in.h>
14415 #ifdef HAVE_NETINET_IN6_H
14416 #include <netinet/in6.h>
14418 #ifdef HAVE_SYS_SOCKET_H
14419 #include <sys/socket.h>
14421 #ifdef HAVE_NETDB_H
14425 #define WIN32_WINNT 0x400
14426 #define _WIN32_WINNT 0x400
14427 #define WIN32_LEAN_AND_MEAN
14428 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14429 #include <winsock.h>
14431 #include <winsock2.h>
14432 #include <ws2tcpip.h>
14437 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_STRUCT_SOCKADDR_IN6 1
14445 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14446 #include <sys/types.h>
14447 #ifdef HAVE_NETINET_IN_H
14448 #include <netinet/in.h>
14450 #ifdef HAVE_NETINET_IN6_H
14451 #include <netinet/in6.h>
14453 #ifdef HAVE_SYS_SOCKET_H
14454 #include <sys/socket.h>
14456 #ifdef HAVE_NETDB_H
14460 #define WIN32_WINNT 0x400
14461 #define _WIN32_WINNT 0x400
14462 #define WIN32_LEAN_AND_MEAN
14463 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14464 #include <winsock.h>
14466 #include <winsock2.h>
14467 #include <ws2tcpip.h>
14472 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14474 cat >>confdefs.h <<_ACEOF
14475 #define HAVE_SA_FAMILY_T 1
14480 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14481 #include <sys/types.h>
14482 #ifdef HAVE_NETINET_IN_H
14483 #include <netinet/in.h>
14485 #ifdef HAVE_NETINET_IN6_H
14486 #include <netinet/in6.h>
14488 #ifdef HAVE_SYS_SOCKET_H
14489 #include <sys/socket.h>
14491 #ifdef HAVE_NETDB_H
14495 #define WIN32_WINNT 0x400
14496 #define _WIN32_WINNT 0x400
14497 #define WIN32_LEAN_AND_MEAN
14498 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14499 #include <winsock.h>
14501 #include <winsock2.h>
14502 #include <ws2tcpip.h>
14507 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14509 cat >>confdefs.h <<_ACEOF
14510 #define HAVE_STRUCT_ADDRINFO 1
14515 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14516 #include <sys/types.h>
14517 #ifdef HAVE_NETINET_IN_H
14518 #include <netinet/in.h>
14520 #ifdef HAVE_NETINET_IN6_H
14521 #include <netinet/in6.h>
14523 #ifdef HAVE_SYS_SOCKET_H
14524 #include <sys/socket.h>
14526 #ifdef HAVE_NETDB_H
14530 #define WIN32_WINNT 0x400
14531 #define _WIN32_WINNT 0x400
14532 #define WIN32_LEAN_AND_MEAN
14533 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14534 #include <winsock.h>
14536 #include <winsock2.h>
14537 #include <ws2tcpip.h>
14542 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14544 cat >>confdefs.h <<_ACEOF
14545 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14551 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14552 #ifdef HAVE_NETINET_IN_H
14553 #include <netinet/in.h>
14555 #ifdef HAVE_NETINET_IN6_H
14556 #include <netinet/in6.h>
14558 #ifdef HAVE_SYS_SOCKET_H
14559 #include <sys/socket.h>
14562 #define WIN32_WINNT 0x400
14563 #define _WIN32_WINNT 0x400
14564 #define WIN32_LEAN_AND_MEAN
14565 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14566 #include <winsock.h>
14568 #include <winsock2.h>
14569 #include <ws2tcpip.h>
14574 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14582 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14583 #ifdef HAVE_NETINET_IN_H
14584 #include <netinet/in.h>
14586 #ifdef HAVE_NETINET_IN6_H
14587 #include <netinet/in6.h>
14589 #ifdef HAVE_SYS_SOCKET_H
14590 #include <sys/socket.h>
14593 #define WIN32_WINNT 0x400
14594 #define _WIN32_WINNT 0x400
14595 #define WIN32_LEAN_AND_MEAN
14596 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14597 #include <winsock.h>
14599 #include <winsock2.h>
14600 #include <ws2tcpip.h>
14605 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14607 cat >>confdefs.h <<_ACEOF
14608 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14613 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14614 #ifdef HAVE_NETINET_IN_H
14615 #include <netinet/in.h>
14617 #ifdef HAVE_NETINET_IN6_H
14618 #include <netinet/in6.h>
14620 #ifdef HAVE_SYS_SOCKET_H
14621 #include <sys/socket.h>
14624 #define WIN32_WINNT 0x400
14625 #define _WIN32_WINNT 0x400
14626 #define WIN32_LEAN_AND_MEAN
14627 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14628 #include <winsock.h>
14630 #include <winsock2.h>
14631 #include <ws2tcpip.h>
14636 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14644 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14645 #ifdef HAVE_NETINET_IN_H
14646 #include <netinet/in.h>
14648 #ifdef HAVE_NETINET_IN6_H
14649 #include <netinet/in6.h>
14651 #ifdef HAVE_SYS_SOCKET_H
14652 #include <sys/socket.h>
14655 #define WIN32_WINNT 0x400
14656 #define _WIN32_WINNT 0x400
14657 #define WIN32_LEAN_AND_MEAN
14658 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14659 #include <winsock.h>
14661 #include <winsock2.h>
14662 #include <ws2tcpip.h>
14667 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14675 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14676 #ifdef HAVE_NETINET_IN_H
14677 #include <netinet/in.h>
14679 #ifdef HAVE_NETINET_IN6_H
14680 #include <netinet/in6.h>
14682 #ifdef HAVE_SYS_SOCKET_H
14683 #include <sys/socket.h>
14686 #define WIN32_WINNT 0x400
14687 #define _WIN32_WINNT 0x400
14688 #define WIN32_LEAN_AND_MEAN
14689 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14690 #include <winsock.h>
14692 #include <winsock2.h>
14693 #include <ws2tcpip.h>
14698 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14706 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14707 #ifdef HAVE_NETINET_IN_H
14708 #include <netinet/in.h>
14710 #ifdef HAVE_NETINET_IN6_H
14711 #include <netinet/in6.h>
14713 #ifdef HAVE_SYS_SOCKET_H
14714 #include <sys/socket.h>
14717 #define WIN32_WINNT 0x400
14718 #define _WIN32_WINNT 0x400
14719 #define WIN32_LEAN_AND_MEAN
14720 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14721 #include <winsock.h>
14723 #include <winsock2.h>
14724 #include <ws2tcpip.h>
14729 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14731 cat >>confdefs.h <<_ACEOF
14732 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14739 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
14740 #ifdef HAVE_SYS_SOCKET_H
14741 #include <sys/socket.h>
14745 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
14747 cat >>confdefs.h <<_ACEOF
14748 #define HAVE_STRUCT_SO_LINGER 1
14751 #define HAVE_SO_LINGER
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14756 $as_echo_n "checking for socklen_t... " >&6; }
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14760 #include <sys/types.h>
14761 #include <sys/socket.h>
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14772 $as_echo "yes" >&6; }
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14775 $as_echo "no" >&6; }
14777 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14784 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14791 const char *cp = __func__;
14796 if ac_fn_c_try_compile "$LINENO"; then :
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14798 $as_echo "yes" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801 $as_echo "no" >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14803 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14805 /* end confdefs.h. */
14810 const char *cp = __FUNCTION__;
14815 if ac_fn_c_try_compile "$LINENO"; then :
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14817 $as_echo "yes" >&6; }
14819 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14823 $as_echo "no" >&6; }
14825 $as_echo "#define __func__ __FILE__" >>confdefs.h
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14833 # check if we can compile with pthreads
14835 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14840 ac_cpp='$CPP $CPPFLAGS'
14841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847 # We used to check for pthread.h first, but this fails if pthread.h
14848 # requires special compiler flags (e.g. on True64 or Sequent).
14849 # It gets checked for in the link test anyway.
14851 # First of all, check if the user has set any of the PTHREAD_LIBS,
14852 # etcetera environment variables, and if threads linking works using
14854 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14855 save_CFLAGS="$CFLAGS"
14856 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14858 LIBS="$PTHREAD_LIBS $LIBS"
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14860 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14870 char pthread_join ();
14874 return pthread_join ();
14879 if ac_fn_c_try_link "$LINENO"; then :
14882 rm -f core conftest.err conftest.$ac_objext \
14883 conftest$ac_exeext conftest.$ac_ext
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14885 $as_echo "$acx_pthread_ok" >&6; }
14886 if test x"$acx_pthread_ok" = xno; then
14891 CFLAGS="$save_CFLAGS"
14894 # We must check for the threads library under a number of different
14895 # names; the ordering is very important because some systems
14896 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14897 # libraries is broken (non-POSIX).
14899 # Create a list of thread flags to try. Items starting with a "-" are
14900 # C compiler flags, and other items are library names, except for "none"
14901 # which indicates that we try without any flags at all, and "pthread-config"
14902 # which is a program returning the flags for the Pth emulation library.
14904 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14906 # The ordering *is* (sometimes) important. Some notes on the
14907 # individual items follow:
14909 # pthreads: AIX (must check this before -lpthread)
14910 # none: in case threads are in libc; should be tried before -Kthread and
14911 # other compiler flags to prevent continual compiler warnings
14912 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14913 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14914 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14915 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14916 # -pthreads: Solaris/gcc
14917 # -mthreads: Mingw32/gcc, Lynx/gcc
14918 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14919 # doesn't hurt to check since this sometimes defines pthreads too;
14920 # also defines -D_REENTRANT)
14921 # ... -mt is also the pthreads flag for HP/aCC
14922 # pthread: Linux, etcetera
14923 # --thread-safe: KAI C++
14924 # pthread-config: use pthread-config program (for GNU Pth library)
14926 case "${host_cpu}-${host_os}" in
14929 # On Solaris (at least, for some versions), libc contains stubbed
14930 # (non-functional) versions of the pthreads routines, so link-based
14931 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14932 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14933 # a function called by this macro, so we could check for that, but
14934 # who knows whether they'll stub that too in a future libc.) So,
14935 # we'll just look for -pthreads and -lpthread first:
14937 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14941 if test x"$acx_pthread_ok" = xno; then
14942 for flag in $acx_pthread_flags; do
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14947 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14952 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14953 PTHREAD_CFLAGS="$flag"
14957 # Extract the first word of "pthread-config", so it can be a program name with args.
14958 set dummy pthread-config; ac_word=$2
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960 $as_echo_n "checking for $ac_word... " >&6; }
14961 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14962 $as_echo_n "(cached) " >&6
14964 if test -n "$acx_pthread_config"; then
14965 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968 for as_dir in $PATH
14971 test -z "$as_dir" && as_dir=.
14972 for ac_exec_ext in '' $ac_executable_extensions; do
14973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14974 ac_cv_prog_acx_pthread_config="yes"
14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14985 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14986 if test -n "$acx_pthread_config"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14988 $as_echo "$acx_pthread_config" >&6; }
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14995 if test x"$acx_pthread_config" = xno; then continue; fi
14996 PTHREAD_CFLAGS="`pthread-config --cflags`"
14997 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15002 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15003 PTHREAD_LIBS="-l$flag"
15008 save_CFLAGS="$CFLAGS"
15009 LIBS="$PTHREAD_LIBS $LIBS"
15010 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15012 # Check for various functions. We must include pthread.h,
15013 # since some functions may be macros. (On the Sequent, we
15014 # need a special flag -Kthread to make this header compile.)
15015 # We check for pthread_join because it is in -lpthread on IRIX
15016 # while pthread_create is in libc. We check for pthread_attr_init
15017 # due to DEC craziness with -lpthreads. We check for
15018 # pthread_cleanup_push because it is one of the few pthread
15019 # functions on Solaris that doesn't have a non-functional libc stub.
15020 # We try pthread_create on general principles.
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <pthread.h>
15027 pthread_t th; pthread_join(th, 0);
15028 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15029 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15034 if ac_fn_c_try_link "$LINENO"; then :
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15041 CFLAGS="$save_CFLAGS"
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15044 $as_echo "$acx_pthread_ok" >&6; }
15045 if test "x$acx_pthread_ok" = xyes; then
15054 # Various other checks:
15055 if test "x$acx_pthread_ok" = xyes; then
15057 LIBS="$PTHREAD_LIBS $LIBS"
15058 save_CFLAGS="$CFLAGS"
15059 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15061 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15063 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15065 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 #include <pthread.h>
15072 int attr=$attr; return attr;
15077 if ac_fn_c_try_link "$LINENO"; then :
15078 attr_name=$attr; break
15080 rm -f core conftest.err conftest.$ac_objext \
15081 conftest$ac_exeext conftest.$ac_ext
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15084 $as_echo "$attr_name" >&6; }
15085 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15087 cat >>confdefs.h <<_ACEOF
15088 #define PTHREAD_CREATE_JOINABLE $attr_name
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15094 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15096 case "${host_cpu}-${host_os}" in
15097 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15098 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15101 $as_echo "${flag}" >&6; }
15102 if test "x$flag" != xno; then
15103 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15107 CFLAGS="$save_CFLAGS"
15109 # More AIX lossage: must compile with xlc_r or cc_r
15110 if test x"$GCC" != xyes; then
15111 for ac_prog in xlc_r cc_r
15113 # Extract the first word of "$ac_prog", so it can be a program name with args.
15114 set dummy $ac_prog; ac_word=$2
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15116 $as_echo_n "checking for $ac_word... " >&6; }
15117 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15118 $as_echo_n "(cached) " >&6
15120 if test -n "$PTHREAD_CC"; then
15121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124 for as_dir in $PATH
15127 test -z "$as_dir" && as_dir=.
15128 for ac_exec_ext in '' $ac_executable_extensions; do
15129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15130 ac_cv_prog_PTHREAD_CC="$ac_prog"
15131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15140 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15141 if test -n "$PTHREAD_CC"; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15143 $as_echo "$PTHREAD_CC" >&6; }
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15146 $as_echo "no" >&6; }
15150 test -n "$PTHREAD_CC" && break
15152 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15165 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15166 if test x"$acx_pthread_ok" = xyes; then
15169 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
15178 ac_cpp='$CPP $CPPFLAGS'
15179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15184 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15185 # The cast to long int works around a bug in the HP C Compiler
15186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15188 # This bug is HP SR number 8606223364.
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15190 $as_echo_n "checking size of pthread_t... " >&6; }
15191 if ${ac_cv_sizeof_pthread_t+:} false; then :
15192 $as_echo_n "(cached) " >&6
15194 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
15195 #include <pthread.h>
15200 if test "$ac_cv_type_pthread_t" = yes; then
15201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15203 as_fn_error 77 "cannot compute sizeof (pthread_t)
15204 See \`config.log' for more details" "$LINENO" 5; }
15206 ac_cv_sizeof_pthread_t=0
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15212 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15216 cat >>confdefs.h <<_ACEOF
15217 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15222 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
15231 # check if we should compile locking into the library
15232 if test x$enable_thread_support = xno; then
15234 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
15238 # check if we should hard-code the mm functions.
15239 if test x$enable_malloc_replacement = xno; then
15241 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
15245 # check if we should hard-code debugging out
15246 if test x$enable_debug_mode = xno; then
15248 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
15252 # check if we should enable verbose debugging
15253 if test x$enable_verbose_debug = xyes; then
15254 CFLAGS="$CFLAGS -DUSE_DEBUG"
15257 # check if we have and should use openssl
15258 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15267 # Add some more warnings which we use in development but not in the
15268 # released versions. (Some relevant gcc versions can't handle these.)
15269 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
15271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15272 /* end confdefs.h. */
15278 #if !defined(__GNUC__) || (__GNUC__ < 4)
15285 if ac_fn_c_try_compile "$LINENO"; then :
15290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293 /* end confdefs.h. */
15299 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15306 if ac_fn_c_try_compile "$LINENO"; then :
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15320 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15327 if ac_fn_c_try_compile "$LINENO"; then :
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15335 /* end confdefs.h. */
15341 #if !defined(__clang__)
15348 if ac_fn_c_try_compile "$LINENO"; then :
15353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15355 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum"
15356 if test x$enable_gcc_warnings = xyes; then
15357 CFLAGS="$CFLAGS -Werror"
15360 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15362 if test x$have_gcc4 = xyes ; then
15363 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15364 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15365 #CFLAGS="$CFLAGS -Wold-style-definition"
15368 if test x$have_gcc42 = xyes ; then
15369 # These warnings break gcc 4.0.2 and work on gcc 4.2
15370 CFLAGS="$CFLAGS -Waddress"
15373 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15374 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15375 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15378 if test x$have_gcc45 = xyes ; then
15379 # These warnings work on gcc 4.5
15380 CFLAGS="$CFLAGS -Wlogical-op"
15383 if test x$have_clang = xyes; then
15384 # Disable the unused-function warnings, because these trigger
15385 # for minheap-internal.h related code.
15386 CFLAGS="$CFLAGS -Wno-unused-function"
15388 # clang on macosx emits warnigns for each directory specified which
15389 # isn't "used" generating a lot of build noise (typically 3 warnings
15393 CFLAGS="$CFLAGS -Qunused-arguments"
15398 ##This will break the world on some 64-bit architectures
15399 # CFLAGS="$CFLAGS -Winline"
15403 LIBEVENT_GC_SECTIONS=
15404 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15406 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15407 if ${libevent_cv_gc_sections_runs+:} false; then :
15408 $as_echo_n "(cached) " >&6
15411 origCFLAGS="$CFLAGS"
15412 CFLAGS="$CFLAGS -Wl,--gc-sections"
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15416 #include <stdlib.h>
15426 int read_success_once;
15428 fpC = fopen("conftest.c", "r");
15432 cch = fread(buf, sizeof(buf), 1, fpC);
15433 read_success_once |= (0 != cch);
15434 } while (0 != cch);
15435 if (!read_success_once)
15439 if (0 != fclose(fpC))
15442 exit(EXIT_SUCCESS);
15449 if ac_fn_c_try_link "$LINENO"; then :
15451 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15452 libevent_cv_gc_sections_runs=no
15454 libevent_cv_gc_sections_runs=no
15455 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15459 libevent_cv_gc_sections_runs=no
15462 rm -f core conftest.err conftest.$ac_objext \
15463 conftest$ac_exeext conftest.$ac_ext
15464 CFLAGS="$origCFLAGS"
15465 { origCFLAGS=; unset origCFLAGS;}
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15470 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15471 case "$libevent_cv_gc_sections_runs" in
15473 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15474 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15480 if test "$enable_libevent_install" = "yes"; then
15481 INSTALL_LIBEVENT_TRUE=
15482 INSTALL_LIBEVENT_FALSE='#'
15484 INSTALL_LIBEVENT_TRUE='#'
15485 INSTALL_LIBEVENT_FALSE=
15489 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15491 ac_config_files="$ac_config_files Makefile"
15493 cat >confcache <<\_ACEOF
15494 # This file is a shell script that caches the results of configure
15495 # tests run on this system so they can be shared between configure
15496 # scripts and configure runs, see configure's option --config-cache.
15497 # It is not useful on other systems. If it contains results you don't
15498 # want to keep, you may remove or edit it.
15500 # config.status only pays attention to the cache file if you give it
15501 # the --recheck option to rerun configure.
15503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15505 # following values.
15509 # The following way of writing the cache mishandles newlines in values,
15510 # but we know of no workaround that is simple, portable, and efficient.
15511 # So, we kill variables containing newlines.
15512 # Ultrix sh set writes to stderr and can't be redirected directly,
15513 # and sets the high bit in the cache file unless we assign to the vars.
15515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15516 eval ac_val=\$$ac_var
15520 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15521 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15524 _ | IFS | as_nl) ;; #(
15525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15526 *) { eval $ac_var=; unset $ac_var;} ;;
15532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15533 *${as_nl}ac_space=\ *)
15534 # `set' does not quote correctly, so add quotes: double-quote
15535 # substitution turns \\\\ into \\, and sed turns \\ into \.
15538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15541 # `set' quotes correctly as required by POSIX, so do not add quotes.
15542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15556 if test -w "$cache_file"; then
15557 if test "x$cache_file" != "x/dev/null"; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15559 $as_echo "$as_me: updating cache $cache_file" >&6;}
15560 if test ! -f "$cache_file" || test -h "$cache_file"; then
15561 cat confcache >"$cache_file"
15563 case $cache_file in #(
15565 mv -f confcache "$cache_file"$$ &&
15566 mv -f "$cache_file"$$ "$cache_file" ;; #(
15568 mv -f confcache "$cache_file" ;;
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15574 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15580 # Let make expand exec_prefix.
15581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15583 DEFS=-DHAVE_CONFIG_H
15588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15589 # 1. Remove the extension, and $U if already installed.
15590 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15591 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15592 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15593 # will be set to the directory where LIBOBJS objects are built.
15594 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15595 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15597 LIBOBJS=$ac_libobjs
15599 LTLIBOBJS=$ac_ltlibobjs
15602 if test -n "$EXEEXT"; then
15604 am__EXEEXT_FALSE='#'
15606 am__EXEEXT_TRUE='#'
15610 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15611 as_fn_error $? "conditional \"AMDEP\" was never defined.
15612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15615 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
15619 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
15620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15623 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15627 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15630 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15631 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15634 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15635 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15639 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15642 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15643 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15646 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
15647 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
15648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15651 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15654 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15655 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15658 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15659 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15662 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15663 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15666 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15667 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15670 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15671 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15675 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15678 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15679 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15682 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15683 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15686 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15687 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 : "${CONFIG_STATUS=./config.status}"
15693 ac_clean_files_save=$ac_clean_files
15694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15700 # Generated by $as_me.
15701 # Run this file to recreate the current configuration.
15702 # Compiler output produced by configure, useful for debugging
15703 # configure, is in config.log if it exists.
15706 ac_cs_recheck=false
15709 SHELL=\${CONFIG_SHELL-$SHELL}
15712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15713 ## -------------------- ##
15714 ## M4sh Initialization. ##
15715 ## -------------------- ##
15717 # Be more Bourne compatible
15718 DUALCASE=1; export DUALCASE # for MKS sh
15719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15723 # is contrary to our usage. Disable this feature.
15724 alias -g '${1+"$@"}'='"$@"'
15725 setopt NO_GLOB_SUBST
15727 case `(set -o) 2>/dev/null` in #(
15739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15743 # Prefer a ksh shell builtin over an external printf program on Solaris,
15744 # but without wasting forks for bash or zsh.
15745 if test -z "$BASH_VERSION$ZSH_VERSION" \
15746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15747 as_echo='print -r --'
15748 as_echo_n='print -rn --'
15749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15750 as_echo='printf %s\n'
15751 as_echo_n='printf %s'
15753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15755 as_echo_n='/usr/ucb/echo -n'
15757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15758 as_echo_n_body='eval
15762 expr "X$arg" : "X\\(.*\\)$as_nl";
15763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15767 export as_echo_n_body
15768 as_echo_n='sh -c $as_echo_n_body as_echo'
15770 export as_echo_body
15771 as_echo='sh -c $as_echo_body as_echo'
15774 # The user is always right.
15775 if test "${PATH_SEPARATOR+set}" != set; then
15777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15785 # We need space, tab and new line, in precisely that order. Quoting is
15786 # there to prevent editors from complaining about space-tab.
15787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15788 # splitting by setting IFS to empty value.)
15791 # Find who we are. Look in the path if we contain no directory separator.
15794 *[\\/]* ) as_myself=$0 ;;
15795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15796 for as_dir in $PATH
15799 test -z "$as_dir" && as_dir=.
15800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15806 # We did not find ourselves, most probably we were run as `sh COMMAND'
15807 # in which case we are not to be found in the path.
15808 if test "x$as_myself" = x; then
15811 if test ! -f "$as_myself"; then
15812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15816 # Unset variables that we do not need and which cause bugs (e.g. in
15817 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15818 # suppresses any "Segmentation fault" message there. '((' could
15819 # trigger a bug in pdksh 5.2.14.
15820 for as_var in BASH_ENV ENV MAIL MAILPATH
15821 do eval test x\${$as_var+set} = xset \
15822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15839 # ----------------------------------------
15840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15842 # script with STATUS, using 1 if that was 0.
15845 as_status=$1; test $as_status -eq 0 && as_status=1
15847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15850 $as_echo "$as_me: error: $2" >&2
15851 as_fn_exit $as_status
15855 # as_fn_set_status STATUS
15856 # -----------------------
15857 # Set $? to STATUS, without forking.
15858 as_fn_set_status ()
15861 } # as_fn_set_status
15863 # as_fn_exit STATUS
15864 # -----------------
15865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15869 as_fn_set_status $1
15875 # Portably unset VAR.
15878 { eval $1=; unset $1;}
15880 as_unset=as_fn_unset
15881 # as_fn_append VAR VALUE
15882 # ----------------------
15883 # Append the text in VALUE to the end of the definition contained in VAR. Take
15884 # advantage of any shell optimizations that allow amortized linear growth over
15885 # repeated appends, instead of the typical quadratic growth present in naive
15887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15888 eval 'as_fn_append ()
15899 # as_fn_arith ARG...
15900 # ------------------
15901 # Perform arithmetic evaluation on the ARGs, and store the result in the
15902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15903 # must be portable across $(()) and expr.
15904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15905 eval 'as_fn_arith ()
15912 as_val=`expr "$@" || test $? -eq 1`
15917 if expr a : '\(a\)' >/dev/null 2>&1 &&
15918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15925 as_basename=basename
15930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15936 as_me=`$as_basename -- "$0" ||
15937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15938 X"$0" : 'X\(//\)$' \| \
15939 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15941 sed '/^.*\/\([^/][^/]*\)\/*$/{
15955 # Avoid depending upon Character Ranges.
15956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15959 as_cr_digits='0123456789'
15960 as_cr_alnum=$as_cr_Letters$as_cr_digits
15962 ECHO_C= ECHO_N= ECHO_T=
15963 case `echo -n x` in #(((((
15965 case `echo 'xy\c'` in
15966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15975 rm -f conf$$ conf$$.exe conf$$.file
15976 if test -d conf$$.dir; then
15977 rm -f conf$$.dir/conf$$.file
15980 mkdir conf$$.dir 2>/dev/null
15982 if (echo >conf$$.file) 2>/dev/null; then
15983 if ln -s conf$$.file conf$$ 2>/dev/null; then
15985 # ... but there are two gotchas:
15986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15988 # In both cases, we have to default to `cp -p'.
15989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15991 elif ln conf$$.file conf$$ 2>/dev/null; then
15999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16000 rmdir conf$$.dir 2>/dev/null
16005 # Create "$as_dir" as a directory, including parents if necessary.
16010 -*) as_dir=./$as_dir;;
16012 test -d "$as_dir" || eval $as_mkdir_p || {
16016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16017 *) as_qdir=$as_dir;;
16019 as_dirs="'$as_qdir' $as_dirs"
16020 as_dir=`$as_dirname -- "$as_dir" ||
16021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16022 X"$as_dir" : 'X\(//\)[^/]' \| \
16023 X"$as_dir" : 'X\(//\)$' \| \
16024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16025 $as_echo X"$as_dir" |
16026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16030 /^X\(\/\/\)[^/].*/{
16043 test -d "$as_dir" && break
16045 test -z "$as_dirs" || eval "mkdir $as_dirs"
16046 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16050 if mkdir -p . 2>/dev/null; then
16051 as_mkdir_p='mkdir -p "$as_dir"'
16053 test -d ./-p && rmdir ./-p
16057 if test -x / >/dev/null 2>&1; then
16058 as_test_x='test -x'
16060 if ls -dL / >/dev/null 2>&1; then
16067 if test -d "$1"; then
16073 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16074 ???[sx]*):;;*)false;;esac;fi
16078 as_executable_p=$as_test_x
16080 # Sed expression to map a string onto a valid CPP name.
16081 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16083 # Sed expression to map a string onto a valid variable name.
16084 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16088 ## ----------------------------------- ##
16089 ## Main body of $CONFIG_STATUS script. ##
16090 ## ----------------------------------- ##
16092 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16095 # Save the log message, to keep $0 and so on meaningful, and to
16096 # report actual input values of CONFIG_FILES etc. instead of their
16097 # values after options handling.
16099 This file was extended by libevent $as_me 2.1.5-beta, which was
16100 generated by GNU Autoconf 2.68. Invocation command line was
16102 CONFIG_FILES = $CONFIG_FILES
16103 CONFIG_HEADERS = $CONFIG_HEADERS
16104 CONFIG_LINKS = $CONFIG_LINKS
16105 CONFIG_COMMANDS = $CONFIG_COMMANDS
16108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16113 case $ac_config_files in *"
16114 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16117 case $ac_config_headers in *"
16118 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 # Files that config.status was made for.
16124 config_files="$ac_config_files"
16125 config_headers="$ac_config_headers"
16126 config_commands="$ac_config_commands"
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 \`$as_me' instantiates files and other configuration actions
16133 from templates according to the current configuration. Unless the files
16134 and actions are specified as TAGs, all are instantiated by default.
16136 Usage: $0 [OPTION]... [TAG]...
16138 -h, --help print this help, then exit
16139 -V, --version print version number and configuration settings, then exit
16140 --config print configuration, then exit
16141 -q, --quiet, --silent
16142 do not print progress messages
16143 -d, --debug don't remove temporary files
16144 --recheck update $as_me by reconfiguring in the same conditions
16145 --file=FILE[:TEMPLATE]
16146 instantiate the configuration file FILE
16147 --header=FILE[:TEMPLATE]
16148 instantiate the configuration header FILE
16150 Configuration files:
16153 Configuration headers:
16156 Configuration commands:
16159 Report bugs to the package provider."
16162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16165 libevent config.status 2.1.5-beta
16166 configured by $0, generated by GNU Autoconf 2.68,
16167 with options \\"\$ac_cs_config\\"
16169 Copyright (C) 2010 Free Software Foundation, Inc.
16170 This config.status script is free software; the Free Software Foundation
16171 gives unlimited permission to copy, distribute and modify it."
16178 test -n "\$AWK" || AWK=awk
16181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182 # The default lists apply if the user does not specify any file.
16188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16189 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16205 # Handling of the options.
16206 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16208 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16209 $as_echo "$ac_cs_version"; exit ;;
16210 --config | --confi | --conf | --con | --co | --c )
16211 $as_echo "$ac_cs_config"; exit ;;
16212 --debug | --debu | --deb | --de | --d | -d )
16214 --file | --fil | --fi | --f )
16217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16218 '') as_fn_error $? "missing file argument" ;;
16220 as_fn_append CONFIG_FILES " '$ac_optarg'"
16221 ac_need_defaults=false;;
16222 --header | --heade | --head | --hea )
16225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16227 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16228 ac_need_defaults=false;;
16230 # Conflict between --help and --header
16231 as_fn_error $? "ambiguous option: \`$1'
16232 Try \`$0 --help' for more information.";;
16233 --help | --hel | -h )
16234 $as_echo "$ac_cs_usage"; exit ;;
16235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16236 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16239 # This is an error.
16240 -*) as_fn_error $? "unrecognized option: \`$1'
16241 Try \`$0 --help' for more information." ;;
16243 *) as_fn_append ac_config_targets " $1"
16244 ac_need_defaults=false ;;
16250 ac_configure_extra_args=
16252 if $ac_cs_silent; then
16254 ac_configure_extra_args="$ac_configure_extra_args --silent"
16258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16259 if \$ac_cs_recheck; then
16260 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16262 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16263 CONFIG_SHELL='$SHELL'
16264 export CONFIG_SHELL
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16274 ## Running $as_me. ##
16280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16284 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16287 # The HP-UX ksh and POSIX shell print the target directory to stdout
16288 # if CDPATH is set.
16289 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16291 sed_quote_subst='$sed_quote_subst'
16292 double_quote_subst='$double_quote_subst'
16293 delay_variable_subst='$delay_variable_subst'
16294 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16295 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16296 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16297 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16298 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16299 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16300 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16301 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16302 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16303 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16304 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16305 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16306 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16307 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16308 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16309 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16310 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16311 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16312 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16313 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16314 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16315 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16316 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16317 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16318 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16319 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16320 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16321 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16322 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16323 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16324 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16325 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16326 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16327 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16328 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16329 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16330 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16331 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16332 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16333 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16334 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16335 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16336 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16337 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16338 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16339 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16340 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16341 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16342 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16343 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16344 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16345 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16346 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16347 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16348 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16349 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"`'
16350 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16351 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16352 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16353 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16354 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16355 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16356 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16357 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16358 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16359 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16360 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16361 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16362 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16363 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16364 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16365 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16366 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16367 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16368 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16369 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16370 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16371 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16372 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16373 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16374 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16375 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16376 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16377 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16378 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16379 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16380 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16381 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16382 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16383 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16384 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16385 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16386 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16387 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16388 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16389 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16390 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16391 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16392 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16393 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16394 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16395 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16396 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16397 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16398 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16399 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16400 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16401 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16402 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16403 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16404 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16405 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16406 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16407 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16408 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16409 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16410 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16411 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16412 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16413 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16414 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16415 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16416 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16417 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16418 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16419 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16420 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16421 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16422 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16423 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16426 LTCFLAGS='$LTCFLAGS'
16427 compiler='$compiler_DEFAULT'
16429 # A function that is used when there is no print builtin or printf.
16430 func_fallback_echo ()
16432 eval 'cat <<_LTECHO_EOF
16437 # Quote evaled strings.
16451 deplibs_check_method \
16456 sharedlib_from_linklib_cmd \
16459 archiver_list_spec \
16465 lt_cv_sys_global_symbol_pipe \
16466 lt_cv_sys_global_symbol_to_cdecl \
16467 lt_cv_sys_global_symbol_to_c_name_address \
16468 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16469 nm_file_list_spec \
16470 lt_prog_compiler_no_builtin_flag \
16471 lt_prog_compiler_pic \
16472 lt_prog_compiler_wl \
16473 lt_prog_compiler_static \
16474 lt_cv_prog_compiler_c_o \
16483 export_dynamic_flag_spec \
16484 whole_archive_flag_spec \
16485 compiler_needs_object \
16487 allow_undefined_flag \
16488 no_undefined_flag \
16489 hardcode_libdir_flag_spec \
16490 hardcode_libdir_flag_spec_ld \
16491 hardcode_libdir_separator \
16495 variables_saved_for_relink \
16497 library_names_spec \
16499 install_override_mode \
16503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16504 *[\\\\\\\`\\"\\\$]*)
16505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16513 # Double-quote double-evaled strings.
16514 for var in reload_cmds \
16515 old_postinstall_cmds \
16516 old_postuninstall_cmds \
16518 extract_expsyms_cmds \
16519 old_archive_from_new_cmds \
16520 old_archive_from_expsyms_cmds \
16522 archive_expsym_cmds \
16524 module_expsym_cmds \
16525 export_symbols_cmds \
16529 postuninstall_cmds \
16531 sys_lib_search_path_spec \
16532 sys_lib_dlsearch_path_spec; do
16533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16534 *[\\\\\\\`\\"\\\$]*)
16535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16543 ac_aux_dir='$ac_aux_dir'
16544 xsi_shell='$xsi_shell'
16545 lt_shell_append='$lt_shell_append'
16547 # See if we are running on zsh, and set the options which allow our
16548 # commands through without removal of \ escapes INIT.
16549 if test -n "\${ZSH_VERSION+set}" ; then
16550 setopt NO_GLOB_SUBST
16556 TIMESTAMP='$TIMESTAMP'
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567 # Handling of arguments.
16568 for ac_config_target in $ac_config_targets
16570 case $ac_config_target in
16571 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16572 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
16573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16575 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16576 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16577 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16578 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16585 # If the user did not use the arguments to specify the items to instantiate,
16586 # then the envvar interface is used. Set only those that are not.
16587 # We use the long form for the default assignment because of an extremely
16588 # bizarre bug on SunOS 4.1.3.
16589 if $ac_need_defaults; then
16590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16595 # Have a temporary directory for convenience. Make it in the build tree
16596 # simply because there is no reason against having it here, and in addition,
16597 # creating and moving files from /tmp can sometimes cause problems.
16598 # Hook for its removal unless debugging.
16599 # Note that there is a small window in which the directory will not be cleaned:
16600 # after its creation but before its name has been assigned to `$tmp'.
16604 trap 'exit_status=$?
16605 : "${ac_tmp:=$tmp}"
16606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16608 trap 'as_fn_exit 1' 1 2 13 15
16610 # Create a (secure) tmp directory for tmp files.
16613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16617 tmp=./conf$$-$RANDOM
16618 (umask 077 && mkdir "$tmp")
16619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16622 # Set up the scripts for CONFIG_FILES section.
16623 # No need to generate them if there are no CONFIG_FILES.
16624 # This happens for instance with `./config.status config.h'.
16625 if test -n "$CONFIG_FILES"; then
16628 ac_cr=`echo X | tr X '\015'`
16629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16630 # But we know of no other shell where ac_cr would be empty at this
16631 # point, so we can use a bashism as a fallback.
16632 if test "x$ac_cr" = x; then
16633 eval ac_cr=\$\'\\r\'
16635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16639 ac_cs_awk_cr=$ac_cr
16642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16647 echo "cat >conf$$subs.awk <<_ACEOF" &&
16648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16650 } >conf$$subs.sh ||
16651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16654 for ac_last_try in false false false false false :; do
16655 . ./conf$$subs.sh ||
16656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16659 if test $ac_delim_n = $ac_delim_num; then
16661 elif $ac_last_try; then
16662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16667 rm -f conf$$subs.sh
16669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16674 s/^/S["/; s/!.*/"]=/
16684 s/\(.\{148\}\)..*/\1/
16686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16698 s/\(.\{148\}\)..*/\1/
16700 s/["\\]/\\&/g; s/^/"/; s/$/"/
16704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16709 ' <conf$$subs.awk | sed '
16714 ' >>$CONFIG_STATUS || ac_write_fail=1
16715 rm -f conf$$subs.awk
16716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16719 for (key in S) S_is_set[key] = 1
16725 nfields = split(line, field, "@")
16727 len = length(field[1])
16728 for (i = 2; i < nfields; i++) {
16730 keylen = length(key)
16731 if (S_is_set[key]) {
16733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16734 len += length(value) + length(field[++i])
16745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16756 # trailing colons and then remove the whole line if VPATH becomes empty
16757 # (actually we leave an empty line to preserve line numbers).
16758 if test "x$srcdir" = x.; then
16759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16778 fi # test -n "$CONFIG_FILES"
16780 # Set up the scripts for CONFIG_HEADERS section.
16781 # No need to generate them if there are no CONFIG_HEADERS.
16782 # This happens for instance with `./config.status Makefile'.
16783 if test -n "$CONFIG_HEADERS"; then
16784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16788 # Transform confdefs.h into an awk script `defines.awk', embedded as
16789 # here-document in config.status, that substitutes the proper values into
16790 # config.h.in to produce config.h.
16792 # Create a delimiter string that does not exist in confdefs.h, to ease
16793 # handling of long lines.
16795 for ac_last_try in false false :; do
16796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16797 if test -z "$ac_tt"; then
16799 elif $ac_last_try; then
16800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16806 # For the awk script, D is an array of macro values keyed by name,
16807 # likewise P contains macro parameters if any. Preserve backslash
16808 # newline sequences.
16810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16812 s/.\{148\}/&'"$ac_delim"'/g
16815 s/^[ ]*#[ ]*define[ ][ ]*/ /
16822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16829 D["\1"]=" \3\\\\\\n"\\/p
16831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16836 s/.\{148\}/&'"$ac_delim"'/g
16841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16846 ' <confdefs.h | sed '
16847 s/'"$ac_delim"'/"\\\
16848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16851 for (key in D) D_is_set[key] = 1
16854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16856 split(line, arg, " ")
16857 if (arg[1] == "#") {
16861 defundef = substr(arg[1], 2)
16864 split(mac1, mac2, "(") #)
16866 prefix = substr(line, 1, index(line, defundef) - 1)
16867 if (D_is_set[macro]) {
16868 # Preserve the white space surrounding the "#".
16869 print prefix "define", macro P[macro] D[macro]
16872 # Replace #undef with comments. This is necessary, for example,
16873 # in the case of _POSIX_SOURCE, which is predefined and required
16874 # on some systems where configure will not decide to define it.
16875 if (defundef == "undef") {
16876 print "/*", prefix defundef, macro, "*/"
16884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16886 fi # test -n "$CONFIG_HEADERS"
16889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16894 :[FHLC]) ac_mode=$ac_tag; continue;;
16896 case $ac_mode$ac_tag in
16898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16899 :[FH]-) ac_tag=-:-;;
16900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16917 -) ac_f="$ac_tmp/stdin";;
16918 *) # Look for the file first in the build tree, then in the source tree
16919 # (if the path is not absolute). The absolute path cannot be DOS-style,
16920 # because $ac_f cannot contain `:'.
16924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16929 as_fn_append ac_file_inputs " '$ac_f'"
16932 # Let's still pretend it is `configure' which instantiates (i.e., don't
16933 # use $as_me), people would be surprised to read:
16934 # /* config.h. Generated by config.status. */
16935 configure_input='Generated from '`
16936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16938 if test x"$ac_file" != x-; then
16939 configure_input="$ac_file. $configure_input"
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16941 $as_echo "$as_me: creating $ac_file" >&6;}
16943 # Neutralize special characters interpreted by sed in replacement strings.
16944 case $configure_input in #(
16945 *\&* | *\|* | *\\* )
16946 ac_sed_conf_input=`$as_echo "$configure_input" |
16947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16948 *) ac_sed_conf_input=$configure_input;;
16952 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16958 ac_dir=`$as_dirname -- "$ac_file" ||
16959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$ac_file" : 'X\(//\)[^/]' \| \
16961 X"$ac_file" : 'X\(//\)$' \| \
16962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X"$ac_file" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16968 /^X\(\/\/\)[^/].*/{
16981 as_dir="$ac_dir"; as_fn_mkdir_p
16985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16988 # A ".." for each directory in $ac_dir_suffix.
16989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16990 case $ac_top_builddir_sub in
16991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16995 ac_abs_top_builddir=$ac_pwd
16996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16997 # for backward compatibility:
16998 ac_top_builddir=$ac_top_build_prefix
17001 .) # We are building in place.
17003 ac_top_srcdir=$ac_top_builddir_sub
17004 ac_abs_top_srcdir=$ac_pwd ;;
17005 [\\/]* | ?:[\\/]* ) # Absolute name.
17006 ac_srcdir=$srcdir$ac_dir_suffix;
17007 ac_top_srcdir=$srcdir
17008 ac_abs_top_srcdir=$srcdir ;;
17009 *) # Relative name.
17010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17011 ac_top_srcdir=$ac_top_build_prefix$srcdir
17012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17027 ac_MKDIR_P=$MKDIR_P
17029 [\\/$]* | ?:[\\/]* ) ;;
17030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 # If the template does not know about datarootdir, expand it.
17036 # FIXME: This hack should be removed a few years after 2.60.
17037 ac_datarootdir_hack=; ac_datarootdir_seen=
17048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17049 *datarootdir*) ac_datarootdir_seen=yes;;
17050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17055 ac_datarootdir_hack='
17056 s&@datadir@&$datadir&g
17057 s&@docdir@&$docdir&g
17058 s&@infodir@&$infodir&g
17059 s&@localedir@&$localedir&g
17060 s&@mandir@&$mandir&g
17061 s&\\\${datarootdir}&$datarootdir&g' ;;
17065 # Neutralize VPATH when `$srcdir' = `.'.
17066 # Shell code in configure.ac might set extrasub.
17067 # FIXME: do we really want to maintain this feature?
17068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17069 ac_sed_extra="$ac_vpsub
17072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17075 s|@configure_input@|$ac_sed_conf_input|;t t
17076 s&@top_builddir@&$ac_top_builddir_sub&;t t
17077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17078 s&@srcdir@&$ac_srcdir&;t t
17079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17080 s&@top_srcdir@&$ac_top_srcdir&;t t
17081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17082 s&@builddir@&$ac_builddir&;t t
17083 s&@abs_builddir@&$ac_abs_builddir&;t t
17084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17085 s&@INSTALL@&$ac_INSTALL&;t t
17086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17087 $ac_datarootdir_hack
17089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17097 which seems to be undefined. Please make sure it is defined" >&5
17098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17099 which seems to be undefined. Please make sure it is defined" >&2;}
17101 rm -f "$ac_tmp/stdin"
17103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17112 if test x"$ac_file" != x-; then
17114 $as_echo "/* $configure_input */" \
17115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17116 } >"$ac_tmp/config.h" \
17117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17123 mv "$ac_tmp/config.h" "$ac_file" \
17124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17127 $as_echo "/* $configure_input */" \
17128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17129 || as_fn_error $? "could not create -" "$LINENO" 5
17131 # Compute "$ac_file"'s index in $config_headers.
17134 for _am_header in $config_headers :; do
17135 case $_am_header in
17136 $_am_arg | $_am_arg:* )
17139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17144 X"$_am_arg" : 'X\(//\)[^/]' \| \
17145 X"$_am_arg" : 'X\(//\)$' \| \
17146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17147 $as_echo X"$_am_arg" |
17148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17152 /^X\(\/\/\)[^/].*/{
17164 s/.*/./; q'`/stamp-h$_am_stamp_count
17167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17168 $as_echo "$as_me: executing $ac_file commands" >&6;}
17173 case $ac_file$ac_mode in
17174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17175 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17176 # are listed without --file. Let's play safe and only enable the eval
17177 # if we detect the quoting.
17178 case $CONFIG_FILES in
17179 *\'*) eval set x "$CONFIG_FILES" ;;
17180 *) set x $CONFIG_FILES ;;
17185 # Strip MF so we end up with the name of the file.
17186 mf=`echo "$mf" | sed -e 's/:.*$//'`
17187 # Check whether this is an Automake generated Makefile or not.
17188 # We used to match only the files named `Makefile.in', but
17189 # some people rename them; so instead we look at the file content.
17190 # Grep'ing the first line is not enough: some people post-process
17191 # each Makefile.in and add a new line on top of each file to say so.
17192 # Grep'ing the whole file is not good either: AIX grep has a line
17193 # limit of 2048, but all sed's we know have understand at least 4000.
17194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17195 dirpart=`$as_dirname -- "$mf" ||
17196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17197 X"$mf" : 'X\(//\)[^/]' \| \
17198 X"$mf" : 'X\(//\)$' \| \
17199 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17205 /^X\(\/\/\)[^/].*/{
17221 # Extract the definition of DEPDIR, am__include, and am__quote
17222 # from the Makefile without running `make'.
17223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17224 test -z "$DEPDIR" && continue
17225 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17226 test -z "am__include" && continue
17227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17228 # When using ansi2knr, U may be empty or an underscore; expand it
17229 U=`sed -n 's/^U = //p' < "$mf"`
17230 # Find all dependency output files, they are included files with
17231 # $(DEPDIR) in their names. We invoke sed twice because it is the
17232 # simplest approach to changing $(DEPDIR) to its actual value in the
17234 for file in `sed -n "
17235 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17236 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17237 # Make sure the directory exists.
17238 test -f "$dirpart/$file" && continue
17239 fdir=`$as_dirname -- "$file" ||
17240 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17241 X"$file" : 'X\(//\)[^/]' \| \
17242 X"$file" : 'X\(//\)$' \| \
17243 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17244 $as_echo X"$file" |
17245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17249 /^X\(\/\/\)[^/].*/{
17262 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17263 # echo "creating $dirpart/$file"
17264 echo '# dummy' > "$dirpart/$file"
17271 # See if we are running on zsh, and set the options which allow our
17272 # commands through without removal of \ escapes.
17273 if test -n "${ZSH_VERSION+set}" ; then
17274 setopt NO_GLOB_SUBST
17277 cfgfile="${ofile}T"
17278 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17281 cat <<_LT_EOF >> "$cfgfile"
17284 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17285 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17290 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17292 # Written by Gordon Matzigkeit, 1996
17294 # This file is part of GNU Libtool.
17296 # GNU Libtool is free software; you can redistribute it and/or
17297 # modify it under the terms of the GNU General Public License as
17298 # published by the Free Software Foundation; either version 2 of
17299 # the License, or (at your option) any later version.
17301 # As a special exception to the GNU General Public License,
17302 # if you distribute this file as part of a program or library that
17303 # is built using GNU Libtool, you may include this file under the
17304 # same distribution terms that you use for the rest of that program.
17306 # GNU Libtool is distributed in the hope that it will be useful,
17307 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17309 # GNU General Public License for more details.
17311 # You should have received a copy of the GNU General Public License
17312 # along with GNU Libtool; see the file COPYING. If not, a copy
17313 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17314 # obtained by writing to the Free Software Foundation, Inc.,
17315 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17318 # The names of the tagged configurations supported by this script.
17321 # ### BEGIN LIBTOOL CONFIG
17323 # Which release of libtool.m4 was used?
17324 macro_version=$macro_version
17325 macro_revision=$macro_revision
17327 # Whether or not to build shared libraries.
17328 build_libtool_libs=$enable_shared
17330 # Whether or not to build static libraries.
17331 build_old_libs=$enable_static
17333 # What type of objects to build.
17336 # Whether or not to optimize for fast installation.
17337 fast_install=$enable_fast_install
17339 # Shell to use when invoking shell scripts.
17342 # An echo program that protects backslashes.
17346 host_alias=$host_alias
17350 # The build system.
17351 build_alias=$build_alias
17355 # A sed program that does not truncate output.
17358 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17359 Xsed="\$SED -e 1s/^X//"
17361 # A grep program that handles long lines.
17367 # A literal string matcher.
17370 # A BSD- or MS-compatible name lister.
17373 # Whether we need soft or hard links.
17376 # What is the maximum length of a command?
17377 max_cmd_len=$max_cmd_len
17379 # Object file suffix (normally "o").
17382 # Executable file suffix (normally "").
17385 # whether the shell understands "unset".
17388 # turn spaces into newlines.
17391 # turn newlines into spaces.
17394 # convert \$build file names to \$host format.
17395 to_host_file_cmd=$lt_cv_to_host_file_cmd
17397 # convert \$build files to toolchain format.
17398 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17400 # An object symbol dumper.
17401 OBJDUMP=$lt_OBJDUMP
17403 # Method to check whether dependent libraries are shared objects.
17404 deplibs_check_method=$lt_deplibs_check_method
17406 # Command to use when deplibs_check_method = "file_magic".
17407 file_magic_cmd=$lt_file_magic_cmd
17409 # How to find potential files when deplibs_check_method = "file_magic".
17410 file_magic_glob=$lt_file_magic_glob
17412 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17413 want_nocaseglob=$lt_want_nocaseglob
17415 # DLL creation program.
17416 DLLTOOL=$lt_DLLTOOL
17418 # Command to associate shared and link libraries.
17419 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17424 # Flags to create an archive.
17425 AR_FLAGS=$lt_AR_FLAGS
17427 # How to feed a file listing to the archiver.
17428 archiver_list_spec=$lt_archiver_list_spec
17430 # A symbol stripping program.
17433 # Commands used to install an old-style archive.
17435 old_postinstall_cmds=$lt_old_postinstall_cmds
17436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17438 # Whether to use a lock for old archive extraction.
17439 lock_old_archive_extraction=$lock_old_archive_extraction
17444 # LTCC compiler flags.
17445 LTCFLAGS=$lt_CFLAGS
17447 # Take the output of nm and produce a listing of raw symbols and C names.
17448 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17450 # Transform the output of nm in a proper C declaration.
17451 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17453 # Transform the output of nm in a C name address pair.
17454 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17456 # Transform the output of nm in a C name address pair when lib prefix is needed.
17457 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17459 # Specify filename containing input files for \$NM.
17460 nm_file_list_spec=$lt_nm_file_list_spec
17462 # The root where to search for dependent libraries,and in which our libraries should be installed.
17463 lt_sysroot=$lt_sysroot
17465 # The name of the directory that contains temporary libtool files.
17468 # Used to examine libraries when file_magic_cmd begins with "file".
17469 MAGIC_CMD=$MAGIC_CMD
17471 # Must we lock files when doing compilation?
17472 need_locks=$lt_need_locks
17475 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17477 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17478 DSYMUTIL=$lt_DSYMUTIL
17480 # Tool to change global to local symbols on Mac OS X.
17483 # Tool to manipulate fat objects and archives on Mac OS X.
17486 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17489 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17490 OTOOL64=$lt_OTOOL64
17492 # Old archive suffix (normally "a").
17495 # Shared library suffix (normally ".so").
17496 shrext_cmds=$lt_shrext_cmds
17498 # The commands to extract the exported symbol list from a shared archive.
17499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17501 # Variables whose values should be saved in libtool wrapper scripts and
17502 # restored at link time.
17503 variables_saved_for_relink=$lt_variables_saved_for_relink
17505 # Do we need the "lib" prefix for modules?
17506 need_lib_prefix=$need_lib_prefix
17508 # Do we need a version for libraries?
17509 need_version=$need_version
17511 # Library versioning type.
17512 version_type=$version_type
17514 # Shared library runtime path variable.
17515 runpath_var=$runpath_var
17517 # Shared library path variable.
17518 shlibpath_var=$shlibpath_var
17520 # Is shlibpath searched before the hard-coded library search path?
17521 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17523 # Format of library name prefix.
17524 libname_spec=$lt_libname_spec
17526 # List of archive names. First name is the real one, the rest are links.
17527 # The last name is the one that the linker finds with -lNAME
17528 library_names_spec=$lt_library_names_spec
17530 # The coded name of the library, if different from the real name.
17531 soname_spec=$lt_soname_spec
17533 # Permission mode override for installation of shared libraries.
17534 install_override_mode=$lt_install_override_mode
17536 # Command to use after installation of a shared archive.
17537 postinstall_cmds=$lt_postinstall_cmds
17539 # Command to use after uninstallation of a shared archive.
17540 postuninstall_cmds=$lt_postuninstall_cmds
17542 # Commands used to finish a libtool library installation in a directory.
17543 finish_cmds=$lt_finish_cmds
17545 # As "finish_cmds", except a single script fragment to be evaled but
17547 finish_eval=$lt_finish_eval
17549 # Whether we should hardcode library paths into libraries.
17550 hardcode_into_libs=$hardcode_into_libs
17552 # Compile-time system search path for libraries.
17553 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17555 # Run-time system search path for libraries.
17556 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17558 # Whether dlopen is supported.
17559 dlopen_support=$enable_dlopen
17561 # Whether dlopen of programs is supported.
17562 dlopen_self=$enable_dlopen_self
17564 # Whether dlopen of statically linked programs is supported.
17565 dlopen_self_static=$enable_dlopen_self_static
17567 # Commands to strip libraries.
17568 old_striplib=$lt_old_striplib
17569 striplib=$lt_striplib
17572 # The linker used to build libraries.
17575 # How to create reloadable object files.
17576 reload_flag=$lt_reload_flag
17577 reload_cmds=$lt_reload_cmds
17579 # Commands used to build an old-style archive.
17580 old_archive_cmds=$lt_old_archive_cmds
17582 # A language specific compiler.
17585 # Is the compiler the GNU compiler?
17588 # Compiler flag to turn off builtin functions.
17589 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17591 # Additional compiler flags for building library objects.
17592 pic_flag=$lt_lt_prog_compiler_pic
17594 # How to pass a linker flag through the compiler.
17595 wl=$lt_lt_prog_compiler_wl
17597 # Compiler flag to prevent dynamic linking.
17598 link_static_flag=$lt_lt_prog_compiler_static
17600 # Does compiler simultaneously support -c and -o options?
17601 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17603 # Whether or not to add -lc for building shared libraries.
17604 build_libtool_need_lc=$archive_cmds_need_lc
17606 # Whether or not to disallow shared libs when runtime libs are static.
17607 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17609 # Compiler flag to allow reflexive dlopens.
17610 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17612 # Compiler flag to generate shared objects directly from archives.
17613 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17615 # Whether the compiler copes with passing no objects directly.
17616 compiler_needs_object=$lt_compiler_needs_object
17618 # Create an old-style archive from a shared archive.
17619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17621 # Create a temporary old-style archive to link instead of a shared archive.
17622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17624 # Commands used to build a shared archive.
17625 archive_cmds=$lt_archive_cmds
17626 archive_expsym_cmds=$lt_archive_expsym_cmds
17628 # Commands used to build a loadable module if different from building
17629 # a shared archive.
17630 module_cmds=$lt_module_cmds
17631 module_expsym_cmds=$lt_module_expsym_cmds
17633 # Whether we are building with GNU ld or not.
17634 with_gnu_ld=$lt_with_gnu_ld
17636 # Flag that allows shared libraries with undefined symbols to be built.
17637 allow_undefined_flag=$lt_allow_undefined_flag
17639 # Flag that enforces no undefined symbols.
17640 no_undefined_flag=$lt_no_undefined_flag
17642 # Flag to hardcode \$libdir into a binary during linking.
17643 # This must work even if \$libdir does not exist
17644 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17646 # If ld is used when linking, flag to hardcode \$libdir into a binary
17647 # during linking. This must work even if \$libdir does not exist.
17648 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17650 # Whether we need a single "-rpath" flag with a separated argument.
17651 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17653 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17654 # DIR into the resulting binary.
17655 hardcode_direct=$hardcode_direct
17657 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17658 # DIR into the resulting binary and the resulting library dependency is
17659 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17660 # library is relocated.
17661 hardcode_direct_absolute=$hardcode_direct_absolute
17663 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17664 # into the resulting binary.
17665 hardcode_minus_L=$hardcode_minus_L
17667 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17668 # into the resulting binary.
17669 hardcode_shlibpath_var=$hardcode_shlibpath_var
17671 # Set to "yes" if building a shared library automatically hardcodes DIR
17672 # into the library and all subsequent libraries and executables linked
17674 hardcode_automatic=$hardcode_automatic
17676 # Set to yes if linker adds runtime paths of dependent libraries
17677 # to runtime path list.
17678 inherit_rpath=$inherit_rpath
17680 # Whether libtool must link a program against all its dependency libraries.
17681 link_all_deplibs=$link_all_deplibs
17683 # Set to "yes" if exported symbols are required.
17684 always_export_symbols=$always_export_symbols
17686 # The commands to list exported symbols.
17687 export_symbols_cmds=$lt_export_symbols_cmds
17689 # Symbols that should not be listed in the preloaded symbols.
17690 exclude_expsyms=$lt_exclude_expsyms
17692 # Symbols that must always be exported.
17693 include_expsyms=$lt_include_expsyms
17695 # Commands necessary for linking programs (against libraries) with templates.
17696 prelink_cmds=$lt_prelink_cmds
17698 # Commands necessary for finishing linking programs.
17699 postlink_cmds=$lt_postlink_cmds
17701 # Specify filename containing input files.
17702 file_list_spec=$lt_file_list_spec
17704 # How to hardcode a shared library path into an executable.
17705 hardcode_action=$hardcode_action
17707 # ### END LIBTOOL CONFIG
17713 cat <<\_LT_EOF >> "$cfgfile"
17714 # AIX sometimes has problems with the GCC collect2 program. For some
17715 # reason, if we set the COLLECT_NAMES environment variable, the problems
17716 # vanish in a puff of smoke.
17717 if test "X${COLLECT_NAMES+set}" != Xset; then
17719 export COLLECT_NAMES
17726 ltmain="$ac_aux_dir/ltmain.sh"
17729 # We use sed instead of cat because bash on DJGPP gets confused if
17730 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17731 # text mode, it properly converts lines to CR/LF. This bash problem
17732 # is reportedly fixed, but why not run on old versions too?
17733 sed '$q' "$ltmain" >> "$cfgfile" \
17734 || (rm -f "$cfgfile"; exit 1)
17736 if test x"$xsi_shell" = xyes; then
17737 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17741 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17742 \ * ) func_dirname_result="${3}" ;;\
17744 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17745 && mv -f "$cfgfile.tmp" "$cfgfile" \
17746 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17747 test 0 -eq $? || _lt_function_replace_fail=:
17750 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17753 \ func_basename_result="${1##*/}"\
17754 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17755 && mv -f "$cfgfile.tmp" "$cfgfile" \
17756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17757 test 0 -eq $? || _lt_function_replace_fail=:
17760 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17761 func_dirname_and_basename ()\
17764 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17765 \ * ) func_dirname_result="${3}" ;;\
17767 \ func_basename_result="${1##*/}"\
17768 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17769 && mv -f "$cfgfile.tmp" "$cfgfile" \
17770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17771 test 0 -eq $? || _lt_function_replace_fail=:
17774 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17777 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17778 \ # positional parameters, so assign one to ordinary parameter first.\
17779 \ func_stripname_result=${3}\
17780 \ func_stripname_result=${func_stripname_result#"${1}"}\
17781 \ func_stripname_result=${func_stripname_result%"${2}"}\
17782 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17783 && mv -f "$cfgfile.tmp" "$cfgfile" \
17784 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17785 test 0 -eq $? || _lt_function_replace_fail=:
17788 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17789 func_split_long_opt ()\
17791 \ func_split_long_opt_name=${1%%=*}\
17792 \ func_split_long_opt_arg=${1#*=}\
17793 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17794 && mv -f "$cfgfile.tmp" "$cfgfile" \
17795 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17796 test 0 -eq $? || _lt_function_replace_fail=:
17799 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17800 func_split_short_opt ()\
17802 \ func_split_short_opt_arg=${1#??}\
17803 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17804 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17805 && mv -f "$cfgfile.tmp" "$cfgfile" \
17806 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17807 test 0 -eq $? || _lt_function_replace_fail=:
17810 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17814 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17815 \ *) func_lo2o_result=${1} ;;\
17817 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17818 && mv -f "$cfgfile.tmp" "$cfgfile" \
17819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17820 test 0 -eq $? || _lt_function_replace_fail=:
17823 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17826 func_xform_result=${1%.*}.lo\
17827 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17828 && mv -f "$cfgfile.tmp" "$cfgfile" \
17829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17830 test 0 -eq $? || _lt_function_replace_fail=:
17833 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17836 func_arith_result=$(( $* ))\
17837 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17838 && mv -f "$cfgfile.tmp" "$cfgfile" \
17839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17840 test 0 -eq $? || _lt_function_replace_fail=:
17843 sed -e '/^func_len ()$/,/^} # func_len /c\
17846 func_len_result=${#1}\
17847 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17848 && mv -f "$cfgfile.tmp" "$cfgfile" \
17849 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17850 test 0 -eq $? || _lt_function_replace_fail=:
17854 if test x"$lt_shell_append" = xyes; then
17855 sed -e '/^func_append ()$/,/^} # func_append /c\
17858 eval "${1}+=\\${2}"\
17859 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17860 && mv -f "$cfgfile.tmp" "$cfgfile" \
17861 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17862 test 0 -eq $? || _lt_function_replace_fail=:
17865 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17866 func_append_quoted ()\
17868 \ func_quote_for_eval "${2}"\
17869 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17870 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17871 && mv -f "$cfgfile.tmp" "$cfgfile" \
17872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17873 test 0 -eq $? || _lt_function_replace_fail=:
17876 # Save a `func_append' function call where possible by direct use of '+='
17877 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17878 && mv -f "$cfgfile.tmp" "$cfgfile" \
17879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17880 test 0 -eq $? || _lt_function_replace_fail=:
17882 # Save a `func_append' function call even when '+=' is not available
17883 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17884 && mv -f "$cfgfile.tmp" "$cfgfile" \
17885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17886 test 0 -eq $? || _lt_function_replace_fail=:
17889 if test x"$_lt_function_replace_fail" = x":"; then
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17891 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17895 mv -f "$cfgfile" "$ofile" ||
17896 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17907 ac_clean_files=$ac_clean_files_save
17909 test $ac_write_fail = 0 ||
17910 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17913 # configure is writing to config.log, and then calls config.status.
17914 # config.status does its own redirection, appending to config.log.
17915 # Unfortunately, on DOS this fails, as config.log is still kept open
17916 # by configure, so config.status won't be able to write to it; its
17917 # output is simply discarded. So we exec the FD to /dev/null,
17918 # effectively closing config.log, so it can be properly (re)opened and
17919 # appended to by config.status. When coming back to configure, we
17920 # need to make the FD available again.
17921 if test "$no_create" != yes; then
17923 ac_config_status_args=
17924 test "$silent" = yes &&
17925 ac_config_status_args="$ac_config_status_args --quiet"
17927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17930 # would make configure fail if this is the last instruction.
17931 $ac_cs_success || as_fn_exit 1
17933 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17935 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}