2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.69 for libevent 2.0.21-stable-dev.
6 @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in @%:@(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in @%:@(
171 set -o posix ;; @%:@(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
223 case $as_dir in @%:@(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 @%:@ Portably unset VAR.
298 { eval $1=; unset $1;}
302 @%:@ as_fn_set_status STATUS
303 @%:@ -----------------------
304 @%:@ Set @S|@? to STATUS, without forking.
308 } @%:@ as_fn_set_status
310 @%:@ as_fn_exit STATUS
311 @%:@ -----------------
312 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 @%:@ as_fn_executable_p FILE
369 @%:@ -----------------------
370 @%:@ Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } @%:@ as_fn_executable_p
375 @%:@ as_fn_append VAR VALUE
376 @%:@ ----------------------
377 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
378 @%:@ advantage of any shell optimizations that allow amortized linear growth over
379 @%:@ repeated appends, instead of the typical quadratic growth present in naive
380 @%:@ implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
393 @%:@ as_fn_arith ARG...
394 @%:@ ------------------
395 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397 @%:@ must be portable across @S|@(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412 @%:@ ----------------------------------------
413 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 @%:@ script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in @%:@(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.0.21-stable-dev'
591 PACKAGE_STRING='libevent 2.0.21-stable-dev'
595 ac_unique_file="evdns.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
635 INSTALL_LIBEVENT_FALSE
636 INSTALL_LIBEVENT_TRUE
655 DEVPOLL_BACKEND_FALSE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
736 INSTALL_STRIP_PROGRAM
778 program_transform_name
791 enable_option_checking
793 enable_dependency_tracking
795 enable_thread_support
796 enable_malloc_replacement
799 enable_libevent_install
800 enable_libevent_regress
801 enable_function_sections
810 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
938 eval enable_$ac_useropt=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
964 eval enable_$ac_useropt=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
979 -help | --help | --hel | --he | -h)
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1128 -site=* | --site=* | --sit=*)
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval with_$ac_useropt=no ;;
1187 # Obsolete; use --with-x.
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1255 # Be sure to have absolute directory names.
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1359 \`configure' configures libevent 2.0.21-stable-dev to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 @<:@@S|@ac_default_prefix@:>@
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libevent@:>@
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libevent 2.0.21-stable-dev:";;
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-gcc-warnings enable verbose warnings with GCC
1444 --disable-thread-support
1445 disable support for threading
1446 --disable-malloc-replacement
1447 disable support for replacing the memory mgt
1449 --disable-openssl disable support for openssl encryption
1450 --disable-debug-mode disable support for running in debug mode
1451 --disable-libevent-install, disable installation of libevent
1453 --enable-libevent-regress, enable regress in make check
1455 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1457 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1458 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1459 --enable-fast-install@<:@=PKGS@:>@
1460 optimize for fast installation @<:@default=yes@:>@
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1468 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1469 --with-sysroot=DIR Search for dependent libraries within DIR
1470 (or the compiler's sysroot if not specified).
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1548 libevent configure 2.0.21-stable-dev
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 @%:@ ac_fn_c_try_compile LINENO
1563 @%:@ --------------------------
1564 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } @%:@ ac_fn_c_try_compile
1600 @%:@ ac_fn_c_try_cpp LINENO
1601 @%:@ ----------------------
1602 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } @%:@ ac_fn_c_try_cpp
1637 @%:@ ac_fn_c_try_link LINENO
1638 @%:@ -----------------------
1639 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } @%:@ ac_fn_c_try_link
1683 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 @%:@ -------------------------------------------------------
1685 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1686 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1700 if ac_fn_c_try_compile "$LINENO"; then :
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } @%:@ ac_fn_c_check_header_compile
1714 @%:@ ac_fn_c_try_run LINENO
1715 @%:@ ----------------------
1716 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1717 @%:@ that executables *can* be run.
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } @%:@ ac_fn_c_try_run
1756 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1757 @%:@ ----------------------------------
1758 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1779 # include <limits.h>
1781 # include <assert.h>
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1808 if ac_fn_c_try_link "$LINENO"; then :
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } @%:@ ac_fn_c_check_func
1823 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 @%:@ -------------------------------------------------------
1825 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 @%:@ the include files in INCLUDES and setting the cache variable VAR
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if eval \${$3+:} false; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1900 eval "$3=\$ac_header_compiler"
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } @%:@ ac_fn_c_check_header_mongrel
1910 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 @%:@ ---------------------------------------------
1912 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1930 @%:@ifndef $as_decl_name
1931 @%:@ifdef __cplusplus
1932 (void) $as_decl_use;
1934 (void) $as_decl_name;
1942 if ac_fn_c_try_compile "$LINENO"; then :
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } @%:@ ac_fn_c_check_decl
1956 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957 @%:@ --------------------------------------------
1958 @%:@ Tries to find the compile-time value of EXPR in a program that includes
1959 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
1961 ac_fn_c_compute_int ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if test "$cross_compiling" = yes; then
1965 # Depending upon the size, compute the lo and hi bounds.
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1972 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
1973 test_array @<:@0@:>@ = 0;
1974 return test_array @<:@0@:>@;
1980 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1989 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
1990 test_array @<:@0@:>@ = 0;
1991 return test_array @<:@0@:>@;
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2016 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2017 test_array @<:@0@:>@ = 0;
2018 return test_array @<:@0@:>@;
2024 if ac_fn_c_try_compile "$LINENO"; then :
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2034 test_array @<:@0@:>@ = 0;
2035 return test_array @<:@0@:>@;
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=$ac_mid; break
2044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045 if test $ac_mid -le $ac_hi; then
2049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2069 test_array @<:@0@:>@ = 0;
2070 return test_array @<:@0@:>@;
2076 if ac_fn_c_try_compile "$LINENO"; then :
2079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 case $ac_lo in @%:@((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 static long int longval () { return $2; }
2092 static unsigned long int ulongval () { return $2; }
2093 @%:@include <stdio.h>
2094 @%:@include <stdlib.h>
2099 FILE *f = fopen ("conftest.val", "w");
2104 long int i = longval ();
2107 fprintf (f, "%ld", i);
2111 unsigned long int i = ulongval ();
2114 fprintf (f, "%lu", i);
2116 /* Do not output a trailing newline, as this causes \r\n confusion
2117 on some platforms. */
2118 return ferror (f) || fclose (f) != 0;
2124 if ac_fn_c_try_run "$LINENO"; then :
2125 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2130 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2137 } @%:@ ac_fn_c_compute_int
2139 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 @%:@ -------------------------------------------
2141 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2142 @%:@ variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2177 if ac_fn_c_try_compile "$LINENO"; then :
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } @%:@ ac_fn_c_check_type
2193 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2194 @%:@ ----------------------------------------------------
2195 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2196 @%:@ INCLUDES, setting cache variable VAR accordingly.
2197 ac_fn_c_check_member ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2201 $as_echo_n "checking for $2.$3... " >&6; }
2202 if eval \${$4+:} false; then :
2203 $as_echo_n "(cached) " >&6
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2218 if ac_fn_c_try_compile "$LINENO"; then :
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2228 if (sizeof ac_aggr.$3)
2234 if ac_fn_c_try_compile "$LINENO"; then :
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } @%:@ ac_fn_c_check_member
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by libevent $as_me 2.0.21-stable-dev, which was
2254 generated by GNU Autoconf 2.69. Invocation command line was
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_must_keep_next=false
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 -* ) ac_must_keep_next=true ;;
2346 as_fn_append ac_configure_args " '$ac_arg'"
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2364 $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2368 # The following way of writing the cache mishandles newlines in values,
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2400 $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2425 $as_echo "$ac_var='\''$ac_val'\''"
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2462 cat >>confdefs.h <<_ACEOF
2463 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 cat >>confdefs.h <<_ACEOF
2467 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 cat >>confdefs.h <<_ACEOF
2471 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2474 cat >>confdefs.h <<_ACEOF
2475 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 cat >>confdefs.h <<_ACEOF
2479 @%:@define PACKAGE_URL "$PACKAGE_URL"
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2487 if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in @%:@((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5; }
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 # Check that the precious variables saved in the cache have kept the same
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 am__api_version='1.13'
2605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606 if test -f "$ac_dir/install-sh"; then
2608 ac_install_sh="$ac_aux_dir/install-sh -c"
2610 elif test -f "$ac_dir/install.sh"; then
2612 ac_install_sh="$ac_aux_dir/install.sh -c"
2614 elif test -f "$ac_dir/shtool"; then
2616 ac_install_sh="$ac_aux_dir/shtool install -c"
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if ${ac_cv_path_install+:} false; then :
2651 $as_echo_n "(cached) " >&6
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 # Account for people who put trailing slashes in PATH elements.
2659 case $as_dir/ in @%:@((
2660 ./ | .// | /[cC]/* | \
2661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2665 # OSF1 and SCO ODT 3.0 have their own names for install.
2666 # Don't use installbsd from OSF since it installs stuff as root
2668 for ac_prog in ginstall scoinst install; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671 if test $ac_prog = install &&
2672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673 # AIX install. It has an incompatible calling convention.
2675 elif test $ac_prog = install &&
2676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677 # program-specific install script used by HP pwplus--don't use.
2680 rm -rf conftest.one conftest.two conftest.dir
2681 echo one > conftest.one
2682 echo two > conftest.two
2684 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685 test -s conftest.one && test -s conftest.two &&
2686 test -s conftest.dir/conftest.one &&
2687 test -s conftest.dir/conftest.two
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2702 rm -rf conftest.one conftest.two conftest.dir
2705 if test "${ac_cv_path_install+set}" = set; then
2706 INSTALL=$ac_cv_path_install
2708 # As a last resort, use the slow shell script. Don't cache a
2709 # value for INSTALL within a source directory, because that will
2710 # break other packages using the cache if that directory is
2711 # removed, or if the value is a relative name.
2712 INSTALL=$ac_install_sh
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716 $as_echo "$INSTALL" >&6; }
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727 $as_echo_n "checking whether build environment is sane... " >&6; }
2728 # Reject unsafe characters in $srcdir or the absolute working directory
2729 # name. Accept space and tab only in the latter.
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2737 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2738 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2741 # Do 'set' in a subshell so we don't clobber the current shell's
2742 # arguments. Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2748 for am_try in 1 2; do
2749 echo "timestamp, slept: $am_has_slept" > conftest.file
2750 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751 if test "$*" = "X"; then
2753 set X `ls -t "$srcdir/configure" conftest.file`
2755 if test "$*" != "X $srcdir/configure conftest.file" \
2756 && test "$*" != "X conftest.file $srcdir/configure"; then
2758 # If neither matched, then we have a broken ls. This can happen
2759 # if, for instance, CONFIG_SHELL is bash and it inherits a
2760 # broken ls alias from the environment. This has actually
2761 # happened. Such a system could not be considered "sane".
2762 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2763 alias in your environment" "$LINENO" 5
2765 if test "$2" = conftest.file || test $am_try -eq 2; then
2772 test "$2" = conftest.file
2778 as_fn_error $? "newly created file is older than distributed files!
2779 Check your system clock" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782 $as_echo "yes" >&6; }
2783 # If we didn't sleep, we still need to ensure time stamps of config.status and
2784 # generated files are strictly newer.
2786 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2793 test "$program_prefix" != NONE &&
2794 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2795 # Use a double $ so make ignores it.
2796 test "$program_suffix" != NONE &&
2797 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2798 # Double any \ or $.
2799 # By default was `s,x,x', remove it if useless.
2800 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2801 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2803 # expand $ac_aux_dir to an absolute path
2804 am_aux_dir=`cd $ac_aux_dir && pwd`
2806 if test x"${MISSING+set}" != xset; then
2809 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2811 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2814 # Use eval to expand $SHELL
2815 if eval "$MISSING --is-lightweight"; then
2816 am_missing_run="$MISSING "
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823 if test x"${install_sh}" != xset; then
2826 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2828 install_sh="\${SHELL} $am_aux_dir/install-sh"
2832 # Installed binaries are usually stripped using 'strip' when the user
2833 # run "make install-strip". However 'strip' might not be the right
2834 # tool to use in cross-compilation environments, therefore Automake
2835 # will honor the 'STRIP' environment variable to overrule this program.
2836 if test "$cross_compiling" != no; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_STRIP+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test -n "$STRIP"; then
2846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 STRIP=$ac_cv_prog_STRIP
2866 if test -n "$STRIP"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868 $as_echo "$STRIP" >&6; }
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_STRIP"; then
2878 # Extract the first word of "strip", so it can be a program name with args.
2879 set dummy strip; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$ac_ct_STRIP"; then
2886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_STRIP="strip"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2906 if test -n "$ac_ct_STRIP"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2908 $as_echo "$ac_ct_STRIP" >&6; }
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_STRIP" = x; then
2917 case $cross_compiling:$ac_tool_warned in
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2926 STRIP="$ac_cv_prog_STRIP"
2930 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2933 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2934 if test -z "$MKDIR_P"; then
2935 if ${ac_cv_path_mkdir+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2942 test -z "$as_dir" && as_dir=.
2943 for ac_prog in mkdir gmkdir; do
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2946 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2947 'mkdir (GNU coreutils) '* | \
2948 'mkdir (coreutils) '* | \
2949 'mkdir (fileutils) '4.1*)
2950 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2960 test -d ./--version && rmdir ./--version
2961 if test "${ac_cv_path_mkdir+set}" = set; then
2962 MKDIR_P="$ac_cv_path_mkdir -p"
2964 # As a last resort, use the slow shell script. Don't cache a
2965 # value for MKDIR_P within a source directory, because that will
2966 # break other packages using the cache if that directory is
2967 # removed, or if the value is a relative name.
2968 MKDIR_P="$ac_install_sh -d"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2972 $as_echo "$MKDIR_P" >&6; }
2974 for ac_prog in gawk mawk nawk awk
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_AWK+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 if test -n "$AWK"; then
2984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_AWK="$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 if test -n "$AWK"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006 $as_echo "$AWK" >&6; }
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$AWK" && break
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 cat >conftest.make <<\_ACEOF
3026 @echo '@@@%%%=$(MAKE)=@@@%%%'
3028 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3031 eval ac_cv_prog_make_${ac_make}_set=yes;;
3033 eval ac_cv_prog_make_${ac_make}_set=no;;
3037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 SET_MAKE="MAKE=${MAKE-make}"
3047 rm -rf .tst 2>/dev/null
3048 mkdir .tst 2>/dev/null
3049 if test -d .tst; then
3054 rmdir .tst 2>/dev/null
3056 @%:@ Check whether --enable-silent-rules was given.
3057 if test "${enable_silent_rules+set}" = set; then :
3058 enableval=$enable_silent_rules;
3061 case $enable_silent_rules in @%:@ (((
3062 yes) AM_DEFAULT_VERBOSITY=0;;
3063 no) AM_DEFAULT_VERBOSITY=1;;
3064 *) AM_DEFAULT_VERBOSITY=1;;
3066 am_make=${MAKE-make}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3068 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3069 if ${am_cv_make_support_nested_variables+:} false; then :
3070 $as_echo_n "(cached) " >&6
3072 if $as_echo 'TRUE=$(BAR$(V))
3078 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3079 am_cv_make_support_nested_variables=yes
3081 am_cv_make_support_nested_variables=no
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3085 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3086 if test $am_cv_make_support_nested_variables = yes; then
3088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3090 AM_V=$AM_DEFAULT_VERBOSITY
3091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097 # is not polluted with repeated "-I."
3098 am__isrc=' -I$(srcdir)'
3099 # test to see if srcdir already configured
3100 if test -f $srcdir/config.status; then
3101 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105 # test whether we have cygpath
3106 if test -z "$CYGPATH_W"; then
3107 if (cygpath --version) >/dev/null 2>/dev/null; then
3108 CYGPATH_W='cygpath -w'
3115 # Define the identity of the package.
3117 VERSION='2.0.21-stable-dev'
3120 cat >>confdefs.h <<_ACEOF
3121 @%:@define PACKAGE "$PACKAGE"
3125 cat >>confdefs.h <<_ACEOF
3126 @%:@define VERSION "$VERSION"
3129 # Some tools Automake needs.
3131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3145 # For better backward compatibility. To be removed once Automake 1.9.x
3146 # dies out for good. For more background, see:
3147 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149 mkdir_p='$(MKDIR_P)'
3151 # We need awk for the "check" target. The system "awk" is bad on
3153 # Always define AMTAR for backward compatibility. Yes, it's still used
3154 # in the wild :-( We should find a proper way to deprecate it ...
3158 # We'll loop over all known methods to create a tar archive until one works.
3159 _am_tools='gnutar pax cpio none'
3161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168 ac_config_headers="$ac_config_headers config.h"
3171 $as_echo "@%:@define NUMERIC_VERSION 0x02001501" >>confdefs.h
3174 if test "$prefix" = "NONE"; then
3178 # Make sure we can run config.sub.
3179 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3180 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3183 $as_echo_n "checking build system type... " >&6; }
3184 if ${ac_cv_build+:} false; then :
3185 $as_echo_n "(cached) " >&6
3187 ac_build_alias=$build_alias
3188 test "x$ac_build_alias" = x &&
3189 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3190 test "x$ac_build_alias" = x &&
3191 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3192 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3193 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3197 $as_echo "$ac_cv_build" >&6; }
3198 case $ac_cv_build in
3200 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3203 ac_save_IFS=$IFS; IFS='-'
3209 # Remember, the first character of IFS is used to create $*,
3210 # except with old shells:
3213 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3217 $as_echo_n "checking host system type... " >&6; }
3218 if ${ac_cv_host+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 if test "x$host_alias" = x; then
3222 ac_cv_host=$ac_cv_build
3224 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3225 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3230 $as_echo "$ac_cv_host" >&6; }
3233 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3236 ac_save_IFS=$IFS; IFS='-'
3242 # Remember, the first character of IFS is used to create $*,
3243 # except with old shells:
3246 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3253 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3258 ac_cpp='$CPP $CPPFLAGS'
3259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3301 if test -z "$ac_cv_prog_CC"; then
3303 # Extract the first word of "gcc", so it can be a program name with args.
3304 set dummy gcc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$ac_ct_CC"; then
3311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_ac_ct_CC="gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3331 if test -n "$ac_ct_CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3333 $as_echo "$ac_ct_CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3339 if test "x$ac_ct_CC" = x; then
3342 case $cross_compiling:$ac_tool_warned in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346 ac_tool_warned=yes ;;
3354 if test -z "$CC"; then
3355 if test -n "$ac_tool_prefix"; then
3356 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_CC="${ac_tool_prefix}cc"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 if test -n "$CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 $as_echo "$CC" >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3395 if test -z "$CC"; then
3396 # Extract the first word of "cc", so it can be a program name with args.
3397 set dummy cc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3415 ac_prog_rejected=yes
3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test $ac_prog_rejected = yes; then
3427 # We found a bogon in the path, so make sure we never use it.
3428 set dummy $ac_cv_prog_CC
3430 if test $@%:@ != 0; then
3431 # We chose a different compiler from the bogus one.
3432 # However, it has the same basename, so the bogon will be chosen
3433 # first if we set CC to just the basename; use the full file name.
3435 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3451 if test -z "$CC"; then
3452 if test -n "$ac_tool_prefix"; then
3453 for ac_prog in cl.exe
3455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if ${ac_cv_prog_CC+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3472 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3492 test -n "$CC" && break
3495 if test -z "$CC"; then
3497 for ac_prog in cl.exe
3499 # Extract the first word of "$ac_prog", so it can be a program name with args.
3500 set dummy $ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3504 $as_echo_n "(cached) " >&6
3506 if test -n "$ac_ct_CC"; then
3507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
3515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516 ac_cv_prog_ac_ct_CC="$ac_prog"
3517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3527 if test -n "$ac_ct_CC"; then
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3529 $as_echo "$ac_ct_CC" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3536 test -n "$ac_ct_CC" && break
3539 if test "x$ac_ct_CC" = x; then
3542 case $cross_compiling:$ac_tool_warned in
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3555 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 as_fn_error $? "no acceptable C compiler found in \$PATH
3558 See \`config.log' for more details" "$LINENO" 5; }
3560 # Provide some information about the compiler.
3561 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3564 for ac_option in --version -v -V -qversion; do
3565 { { ac_try="$ac_compiler $ac_option >&5"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3574 if test -s conftest.err; then
3576 ... rest of stderr output deleted ...
3577 10q' conftest.err >conftest.er1
3578 cat conftest.er1 >&5
3580 rm -f conftest.er1 conftest.err
3581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 test $ac_status = 0; }
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 ac_clean_files_save=$ac_clean_files
3597 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3598 # Try to create an executable without -o first, disregard a.out.
3599 # It will help us diagnose broken compilers, and finding out an intuition
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3602 $as_echo_n "checking whether the C compiler works... " >&6; }
3603 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3605 # The possible output files:
3606 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3609 for ac_file in $ac_files
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3618 if { { ac_try="$ac_link_default"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625 (eval "$ac_link_default") 2>&5
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }; then :
3629 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3630 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3631 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3632 # so that the user can short-circuit this test for compilers unknown to
3634 for ac_file in $ac_files ''
3636 test -f "$ac_file" || continue
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3641 # We found the default executable, but exeext='' is most
3645 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3649 # We set ac_cv_exeext here because the later test for it is not
3650 # safe: cross compilers may not add the suffix if given an `-o'
3651 # argument, so we may need to know it at that point already.
3652 # Even if this section looks crufty: it has the advantage of
3659 test "$ac_cv_exeext" = no && ac_cv_exeext=
3664 if test -z "$ac_file"; then :
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 as_fn_error 77 "C compiler cannot create executables
3673 See \`config.log' for more details" "$LINENO" 5; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3676 $as_echo "yes" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3679 $as_echo_n "checking for C compiler default output file name... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3681 $as_echo "$ac_file" >&6; }
3682 ac_exeext=$ac_cv_exeext
3684 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3685 ac_clean_files=$ac_clean_files_save
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3687 $as_echo_n "checking for suffix of executables... " >&6; }
3688 if { { ac_try="$ac_link"
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_link") 2>&5
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3700 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3701 # work properly (i.e., refer to `conftest.exe'), while it won't with
3703 for ac_file in conftest.exe conftest conftest.*; do
3704 test -f "$ac_file" || continue
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 rm -f conftest conftest$ac_cv_exeext
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3720 $as_echo "$ac_cv_exeext" >&6; }
3722 rm -f conftest.$ac_ext
3723 EXEEXT=$ac_cv_exeext
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 @%:@include <stdio.h>
3731 FILE *f = fopen ("conftest.out", "w");
3732 return ferror (f) || fclose (f) != 0;
3738 ac_clean_files="$ac_clean_files conftest.out"
3739 # Check that the compiler produces executables we can run. If not, either
3740 # the compiler is broken, or we cross compile.
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3742 $as_echo_n "checking whether we are cross compiling... " >&6; }
3743 if test "$cross_compiling" != yes; then
3744 { { ac_try="$ac_link"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_link") 2>&5
3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754 test $ac_status = 0; }
3755 if { ac_try='./conftest$ac_cv_exeext'
3756 { { case "(($ac_try" in
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_try") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }; }; then
3768 if test "$cross_compiling" = maybe; then
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot run C compiled programs.
3774 If you meant to cross compile, use \`--host'.
3775 See \`config.log' for more details" "$LINENO" 5; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3780 $as_echo "$cross_compiling" >&6; }
3782 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3783 ac_clean_files=$ac_clean_files_save
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3785 $as_echo_n "checking for suffix of object files... " >&6; }
3786 if ${ac_cv_objext+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3800 rm -f conftest.o conftest.obj
3801 if { { ac_try="$ac_compile"
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_compile") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; then :
3812 for ac_file in conftest.o conftest.obj conftest.*; do
3813 test -f "$ac_file" || continue;
3815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error $? "cannot compute suffix of object files: cannot compile
3827 See \`config.log' for more details" "$LINENO" 5; }
3829 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3832 $as_echo "$ac_cv_objext" >&6; }
3833 OBJEXT=$ac_cv_objext
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3836 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3837 if ${ac_cv_c_compiler_gnu+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3854 if ac_fn_c_try_compile "$LINENO"; then :
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3864 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3865 if test $ac_compiler_gnu = yes; then
3870 ac_test_CFLAGS=${CFLAGS+set}
3871 ac_save_CFLAGS=$CFLAGS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3873 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3874 if ${ac_cv_prog_cc_g+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 ac_save_c_werror_flag=$ac_c_werror_flag
3878 ac_c_werror_flag=yes
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_c_werror_flag=$ac_save_c_werror_flag
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3923 if ac_fn_c_try_compile "$LINENO"; then :
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3934 $as_echo "$ac_cv_prog_cc_g" >&6; }
3935 if test "$ac_test_CFLAGS" = set; then
3936 CFLAGS=$ac_save_CFLAGS
3937 elif test $ac_cv_prog_cc_g = yes; then
3938 if test "$GCC" = yes; then
3944 if test "$GCC" = yes; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3951 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3952 if ${ac_cv_prog_cc_c89+:} false; then :
3953 $as_echo_n "(cached) " >&6
3955 ac_cv_prog_cc_c89=no
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.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
4045 DEPDIR="${am__leading_dot}deps"
4047 ac_config_commands="$ac_config_commands depfiles"
4050 am_make=${MAKE-make}
4051 cat > confinc << 'END'
4053 @echo this is the am__doit target
4056 # If we don't find an include directive, just comment out the code.
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4058 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4062 # First try GNU make style include.
4063 echo "include confinc" > confmf
4064 # Ignore all kinds of additional output from 'make'.
4065 case `$am_make -s -f confmf 2> /dev/null` in #(
4066 *the\ am__doit\ target*)
4072 # Now try BSD make style include.
4073 if test "$am__include" = "#"; then
4074 echo '.include "confinc"' > confmf
4075 case `$am_make -s -f confmf 2> /dev/null` in #(
4076 *the\ am__doit\ target*)
4077 am__include=.include
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4086 $as_echo "$_am_result" >&6; }
4087 rm -f confinc confmf
4089 @%:@ Check whether --enable-dependency-tracking was given.
4090 if test "${enable_dependency_tracking+set}" = set; then :
4091 enableval=$enable_dependency_tracking;
4094 if test "x$enable_dependency_tracking" != xno; then
4095 am_depcomp="$ac_aux_dir/depcomp"
4099 if test "x$enable_dependency_tracking" != xno; then
4109 depcc="$CC" am_compiler_list=
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4112 $as_echo_n "checking dependency style of $depcc... " >&6; }
4113 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4114 $as_echo_n "(cached) " >&6
4116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4117 # We make a subdir and do the tests there. Otherwise we can end up
4118 # making bogus files that we don't know about and never remove. For
4119 # instance it was reported that on HP-UX the gcc test will end up
4120 # making a dummy file named 'D' -- because '-MD' means "put the output
4124 # Copy depcomp to subdir because otherwise we won't find it if we're
4125 # using a relative directory.
4126 cp "$am_depcomp" conftest.dir
4128 # We will build objects and dependencies in a subdirectory because
4129 # it helps to detect inapplicable dependency modes. For instance
4130 # both Tru64's cc and ICC support -MD to output dependencies as a
4131 # side effect of compilation, but ICC will put the dependencies in
4132 # the current directory while Tru64 will put them in the object
4136 am_cv_CC_dependencies_compiler_type=none
4137 if test "$am_compiler_list" = ""; then
4138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4141 case " $depcc " in #(
4142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4145 for depmode in $am_compiler_list; do
4146 # Setup a source with many dependencies, because some compilers
4147 # like to wrap large dependency lists on column 80 (with \), and
4148 # we should not choose a depcomp mode which is confused by this.
4150 # We need to recreate these files for each test, as the compiler may
4151 # overwrite some of them when testing with obscure command lines.
4152 # This happens at least with the AIX C compiler.
4154 for i in 1 2 3 4 5 6; do
4155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4157 # Solaris 10 /bin/sh.
4158 echo '/* dummy */' > sub/conftst$i.h
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4163 # mode. It turns out that the SunPro C++ compiler does not properly
4164 # handle '-M -o', and we need to detect this. Also, some Intel
4165 # versions had trouble with output in subdirs.
4166 am__obj=sub/conftest.${OBJEXT-o}
4167 am__minus_obj="-o $am__obj"
4170 # This depmode causes a compiler race in universal mode.
4171 test "$am__universal" = false || continue
4174 # After this tag, mechanisms are not by side-effect, so they'll
4175 # only be used when explicitly requested.
4176 if test "x$enable_dependency_tracking" = xyes; then
4182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4183 # This compiler won't grok '-c -o', but also, the minuso test has
4184 # not run yet. These depmodes are late enough in the game, and
4185 # so weak that their functioning should not be impacted.
4186 am__obj=conftest.${OBJEXT-o}
4191 if depmode=$depmode \
4192 source=sub/conftest.c object=$am__obj \
4193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4195 >/dev/null 2>conftest.err &&
4196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4200 # icc doesn't choke on unknown options, it will just issue warnings
4201 # or remarks (even with -Werror). So we grep stderr for any message
4202 # that says an option was ignored or not supported.
4203 # When given -MP, icc 7.0 and 7.1 complain thusly:
4204 # icc: Command line warning: ignoring option '-M'; no argument required
4205 # The diagnosis changed in icc 8.0:
4206 # icc: Command line remark: option '-MP' not supported
4207 if (grep 'ignoring option' conftest.err ||
4208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4209 am_cv_CC_dependencies_compiler_type=$depmode
4218 am_cv_CC_dependencies_compiler_type=none
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4223 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4227 test "x$enable_dependency_tracking" != xno \
4228 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4230 am__fastdepCC_FALSE='#'
4232 am__fastdepCC_TRUE='#'
4233 am__fastdepCC_FALSE=
4237 if test "x$CC" != xcc; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4239 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4242 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4244 set dummy $CC; ac_cc=`$as_echo "$2" |
4245 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4246 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4247 $as_echo_n "(cached) " >&6
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4260 # Make sure it works both with $CC and with simple cc.
4261 # We do the test twice because some compilers refuse to overwrite an
4262 # existing .o file with -o, though they will create one.
4263 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4265 if { { case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_try") 2>&5
4273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4274 test $ac_status = 0; } &&
4275 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280 $as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_try") 2>&5
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; };
4286 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4287 if test "x$CC" != xcc; then
4288 # Test first that cc exists at all.
4289 if { ac_try='cc -c conftest.$ac_ext >&5'
4290 { { case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; }; then
4300 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4302 if { { case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_try") 2>&5
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; } &&
4312 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4317 $as_echo "$ac_try_echo"; } >&5
4318 (eval "$ac_try") 2>&5
4320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4321 test $ac_status = 0; };
4326 # cc exists but doesn't like -o.
4327 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4332 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4334 rm -f core conftest*
4337 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4339 $as_echo "yes" >&6; }
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4344 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4348 # FIXME: we rely on the cache variable name because
4349 # there is no other way.
4351 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4352 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4353 if test "$am_t" != yes; then
4354 # Losing compiler, so override with the script.
4355 # FIXME: It is wrong to rewrite CC.
4356 # But if we don't then we get into trouble of one sort or another.
4357 # A longer-term fix would be to have automake use am__CC in this case,
4358 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4359 CC="$am_aux_dir/compile $CC"
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4365 $as_echo_n "checking whether ln -s works... " >&6; }
4367 if test "$LN_S" = "ln -s"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4372 $as_echo "no, using $LN_S" >&6; }
4375 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4377 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4380 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4381 if ${ac_cv_path_SED+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4385 for ac_i in 1 2 3 4 5 6 7; do
4386 ac_script="$ac_script$as_nl$ac_script"
4388 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4389 { ac_script=; unset ac_script;}
4390 if test -z "$SED"; then
4391 ac_path_SED_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in sed gsed; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p "$ac_path_SED" || continue
4402 # Check for GNU ac_path_SED and select it if it is found.
4403 # Check for GNU $ac_path_SED
4404 case `"$ac_path_SED" --version 2>&1` in
4406 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4409 $as_echo_n 0123456789 >"conftest.in"
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo '' >> "conftest.nl"
4416 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_SED_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_SED="$ac_path_SED"
4422 ac_path_SED_max=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 $ac_path_SED_found && break 3
4435 if test -z "$ac_cv_path_SED"; then
4436 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4444 $as_echo "$ac_cv_path_SED" >&6; }
4445 SED="$ac_cv_path_SED"
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4456 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4457 # On Suns, sometimes $CPP names a directory.
4458 if test -n "$CPP" && test -d "$CPP"; then
4461 if test -z "$CPP"; then
4462 if ${ac_cv_prog_CPP+:} false; then :
4463 $as_echo_n "(cached) " >&6
4465 # Double quotes because CPP needs to be expanded
4466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4469 for ac_c_preproc_warn_flag in '' yes
4471 # Use a header file that comes with gcc, so configuring glibc
4472 # with a fresh cross-compiler works.
4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474 # <limits.h> exists even on freestanding compilers.
4475 # On the NeXT, cc -E runs the code through the compiler's parser,
4476 # not just through cpp. "Syntax error" is here to catch this case.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4480 @%:@ include <limits.h>
4482 @%:@ include <assert.h>
4486 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: fails on valid input.
4492 rm -f conftest.err conftest.i conftest.$ac_ext
4494 # OK, works on sane cases. Now check whether nonexistent headers
4495 # can be detected and how.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498 @%:@include <ac_nonexistent.h>
4500 if ac_fn_c_try_cpp "$LINENO"; then :
4501 # Broken: success on invalid input.
4504 # Passes both tests.
4508 rm -f conftest.err conftest.i conftest.$ac_ext
4511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512 rm -f conftest.i conftest.err conftest.$ac_ext
4513 if $ac_preproc_ok; then :
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4526 $as_echo "$CPP" >&6; }
4528 for ac_c_preproc_warn_flag in '' yes
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4539 @%:@ include <limits.h>
4541 @%:@ include <assert.h>
4545 if ac_fn_c_try_cpp "$LINENO"; then :
4548 # Broken: fails on valid input.
4551 rm -f conftest.err conftest.i conftest.$ac_ext
4553 # OK, works on sane cases. Now check whether nonexistent headers
4554 # can be detected and how.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557 @%:@include <ac_nonexistent.h>
4559 if ac_fn_c_try_cpp "$LINENO"; then :
4560 # Broken: success on invalid input.
4563 # Passes both tests.
4567 rm -f conftest.err conftest.i conftest.$ac_ext
4570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4571 rm -f conftest.i conftest.err conftest.$ac_ext
4572 if $ac_preproc_ok; then :
4575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4577 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4578 See \`config.log' for more details" "$LINENO" 5; }
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4589 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4590 if ${ac_cv_path_GREP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4593 if test -z "$GREP"; then
4594 ac_path_GREP_found=false
4595 # Loop through the user's path and test for each of PROGNAME-LIST
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 test -z "$as_dir" && as_dir=.
4601 for ac_prog in grep ggrep; do
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4604 as_fn_executable_p "$ac_path_GREP" || continue
4605 # Check for GNU ac_path_GREP and select it if it is found.
4606 # Check for GNU $ac_path_GREP
4607 case `"$ac_path_GREP" --version 2>&1` in
4609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612 $as_echo_n 0123456789 >"conftest.in"
4615 cat "conftest.in" "conftest.in" >"conftest.tmp"
4616 mv "conftest.tmp" "conftest.in"
4617 cp "conftest.in" "conftest.nl"
4618 $as_echo 'GREP' >> "conftest.nl"
4619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4621 as_fn_arith $ac_count + 1 && ac_count=$as_val
4622 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4623 # Best one so far, save it but keep looking for a better one
4624 ac_cv_path_GREP="$ac_path_GREP"
4625 ac_path_GREP_max=$ac_count
4627 # 10*(2^10) chars as input seems more than enough
4628 test $ac_count -gt 10 && break
4630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 $ac_path_GREP_found && break 3
4638 if test -z "$ac_cv_path_GREP"; then
4639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642 ac_cv_path_GREP=$GREP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4647 $as_echo "$ac_cv_path_GREP" >&6; }
4648 GREP="$ac_cv_path_GREP"
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4652 $as_echo_n "checking for egrep... " >&6; }
4653 if ${ac_cv_path_EGREP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4657 then ac_cv_path_EGREP="$GREP -E"
4659 if test -z "$EGREP"; then
4660 ac_path_EGREP_found=false
4661 # Loop through the user's path and test for each of PROGNAME-LIST
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 test -z "$as_dir" && as_dir=.
4667 for ac_prog in egrep; do
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4670 as_fn_executable_p "$ac_path_EGREP" || continue
4671 # Check for GNU ac_path_EGREP and select it if it is found.
4672 # Check for GNU $ac_path_EGREP
4673 case `"$ac_path_EGREP" --version 2>&1` in
4675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678 $as_echo_n 0123456789 >"conftest.in"
4681 cat "conftest.in" "conftest.in" >"conftest.tmp"
4682 mv "conftest.tmp" "conftest.in"
4683 cp "conftest.in" "conftest.nl"
4684 $as_echo 'EGREP' >> "conftest.nl"
4685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687 as_fn_arith $ac_count + 1 && ac_count=$as_val
4688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4689 # Best one so far, save it but keep looking for a better one
4690 ac_cv_path_EGREP="$ac_path_EGREP"
4691 ac_path_EGREP_max=$ac_count
4693 # 10*(2^10) chars as input seems more than enough
4694 test $ac_count -gt 10 && break
4696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 $ac_path_EGREP_found && break 3
4704 if test -z "$ac_cv_path_EGREP"; then
4705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708 ac_cv_path_EGREP=$EGREP
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4714 $as_echo "$ac_cv_path_EGREP" >&6; }
4715 EGREP="$ac_cv_path_EGREP"
4718 if test $ac_cv_c_compiler_gnu = yes; then
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4720 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4721 if ${ac_cv_prog_gcc_traditional+:} false; then :
4722 $as_echo_n "(cached) " >&6
4724 ac_pattern="Autoconf.*'x'"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4731 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4732 ac_cv_prog_gcc_traditional=yes
4734 ac_cv_prog_gcc_traditional=no
4739 if test $ac_cv_prog_gcc_traditional = no; then
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4746 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4747 ac_cv_prog_gcc_traditional=yes
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4754 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4755 if test $ac_cv_prog_gcc_traditional = yes; then
4756 CC="$CC -traditional"
4761 # We need to test for at least gcc 2.95 here, because older versions don't
4762 # have -fno-strict-aliasing
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4770 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4777 if ac_fn_c_try_compile "$LINENO"; then :
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 if test "$GCC" = "yes" ; then
4785 # Enable many gcc warnings by default...
4786 CFLAGS="$CFLAGS -Wall"
4787 # And disable the strict-aliasing optimization, since it breaks
4788 # our sockaddr-handling code in strange ways.
4789 if test x$have_gcc295 = xyes; then
4790 CFLAGS="$CFLAGS -fno-strict-aliasing"
4794 # OS X Lion started deprecating the system openssl. Let's just disable
4795 # all deprecation warnings on OS X.
4799 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4803 @%:@ Check whether --enable-gcc-warnings was given.
4804 if test "${enable_gcc_warnings+set}" = set; then :
4805 enableval=$enable_gcc_warnings;
4808 @%:@ Check whether --enable-thread-support was given.
4809 if test "${enable_thread_support+set}" = set; then :
4810 enableval=$enable_thread_support;
4812 enable_thread_support=yes
4815 @%:@ Check whether --enable-malloc-replacement was given.
4816 if test "${enable_malloc_replacement+set}" = set; then :
4817 enableval=$enable_malloc_replacement;
4819 enable_malloc_replacement=yes
4822 @%:@ Check whether --enable-openssl was given.
4823 if test "${enable_openssl+set}" = set; then :
4824 enableval=$enable_openssl;
4829 @%:@ Check whether --enable-debug-mode was given.
4830 if test "${enable_debug_mode+set}" = set; then :
4831 enableval=$enable_debug_mode;
4833 enable_debug_mode=yes
4836 @%:@ Check whether --enable-libevent-install was given.
4837 if test "${enable_libevent_install+set}" = set; then :
4838 enableval=$enable_libevent_install;
4840 enable_libevent_install=yes
4843 @%:@ Check whether --enable-libevent-regress was given.
4844 if test "${enable_libevent_regress+set}" = set; then :
4845 enableval=$enable_libevent_regress; enable_libevent_regress=yes
4848 @%:@ Check whether --enable-function-sections was given.
4849 if test "${enable_function_sections+set}" = set; then :
4850 enableval=$enable_function_sections;
4852 enable_function_sections=no
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4865 macro_version='2.4.2'
4866 macro_revision='1.3337'
4880 ltmain="$ac_aux_dir/ltmain.sh"
4882 # Backslashify metacharacters that are still active within
4883 # double-quoted strings.
4884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4886 # Same as above, but do not quote variable references.
4887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4889 # Sed substitution to delay expansion of an escaped shell variable in a
4890 # double_quote_subst'ed string.
4891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4893 # Sed substitution to delay expansion of an escaped single quote.
4894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4896 # Sed substitution to avoid accidental globbing in evaled expressions
4897 no_glob_subst='s/\*/\\\*/g'
4899 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4904 $as_echo_n "checking how to print strings... " >&6; }
4905 # Test print first, because it will be a builtin if present.
4906 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4907 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4909 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4912 # Use this function as a fallback that always works.
4913 func_fallback_echo ()
4915 eval 'cat <<_LTECHO_EOF
4919 ECHO='func_fallback_echo'
4922 # func_echo_all arg...
4923 # Invoke $ECHO with all args, space-separated.
4930 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4931 $as_echo "printf" >&6; } ;;
4932 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4933 $as_echo "print -r" >&6; } ;;
4934 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4935 $as_echo "cat" >&6; } ;;
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4953 if ${ac_cv_path_SED+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4957 for ac_i in 1 2 3 4 5 6 7; do
4958 ac_script="$ac_script$as_nl$ac_script"
4960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4961 { ac_script=; unset ac_script;}
4962 if test -z "$SED"; then
4963 ac_path_SED_found=false
4964 # Loop through the user's path and test for each of PROGNAME-LIST
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_prog in sed gsed; do
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4973 as_fn_executable_p "$ac_path_SED" || continue
4974 # Check for GNU ac_path_SED and select it if it is found.
4975 # Check for GNU $ac_path_SED
4976 case `"$ac_path_SED" --version 2>&1` in
4978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4981 $as_echo_n 0123456789 >"conftest.in"
4984 cat "conftest.in" "conftest.in" >"conftest.tmp"
4985 mv "conftest.tmp" "conftest.in"
4986 cp "conftest.in" "conftest.nl"
4987 $as_echo '' >> "conftest.nl"
4988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990 as_fn_arith $ac_count + 1 && ac_count=$as_val
4991 if test $ac_count -gt ${ac_path_SED_max-0}; then
4992 # Best one so far, save it but keep looking for a better one
4993 ac_cv_path_SED="$ac_path_SED"
4994 ac_path_SED_max=$ac_count
4996 # 10*(2^10) chars as input seems more than enough
4997 test $ac_count -gt 10 && break
4999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5002 $ac_path_SED_found && break 3
5007 if test -z "$ac_cv_path_SED"; then
5008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5016 $as_echo "$ac_cv_path_SED" >&6; }
5017 SED="$ac_cv_path_SED"
5020 test -z "$SED" && SED=sed
5021 Xsed="$SED -e 1s/^X//"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5034 $as_echo_n "checking for fgrep... " >&6; }
5035 if ${ac_cv_path_FGREP+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5039 then ac_cv_path_FGREP="$GREP -F"
5041 if test -z "$FGREP"; then
5042 ac_path_FGREP_found=false
5043 # Loop through the user's path and test for each of PROGNAME-LIST
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5048 test -z "$as_dir" && as_dir=.
5049 for ac_prog in fgrep; do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5052 as_fn_executable_p "$ac_path_FGREP" || continue
5053 # Check for GNU ac_path_FGREP and select it if it is found.
5054 # Check for GNU $ac_path_FGREP
5055 case `"$ac_path_FGREP" --version 2>&1` in
5057 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5060 $as_echo_n 0123456789 >"conftest.in"
5063 cat "conftest.in" "conftest.in" >"conftest.tmp"
5064 mv "conftest.tmp" "conftest.in"
5065 cp "conftest.in" "conftest.nl"
5066 $as_echo 'FGREP' >> "conftest.nl"
5067 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069 as_fn_arith $ac_count + 1 && ac_count=$as_val
5070 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5071 # Best one so far, save it but keep looking for a better one
5072 ac_cv_path_FGREP="$ac_path_FGREP"
5073 ac_path_FGREP_max=$ac_count
5075 # 10*(2^10) chars as input seems more than enough
5076 test $ac_count -gt 10 && break
5078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081 $ac_path_FGREP_found && break 3
5086 if test -z "$ac_cv_path_FGREP"; then
5087 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5090 ac_cv_path_FGREP=$FGREP
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5096 $as_echo "$ac_cv_path_FGREP" >&6; }
5097 FGREP="$ac_cv_path_FGREP"
5100 test -z "$GREP" && GREP=grep
5120 @%:@ Check whether --with-gnu-ld was given.
5121 if test "${with_gnu_ld+set}" = set; then :
5122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5128 if test "$GCC" = yes; then
5129 # Check if gcc -print-prog-name=ld gives a path.
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5131 $as_echo_n "checking for ld used by $CC... " >&6; }
5134 # gcc leaves a trailing carriage return which upsets mingw
5135 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5137 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5140 # Accept absolute paths.
5142 re_direlt='/[^/][^/]*/\.\./'
5143 # Canonicalize the pathname of ld
5144 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5145 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5146 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5148 test -z "$LD" && LD="$ac_prog"
5151 # If it fails, then pretend we aren't using GCC.
5155 # If it is relative, then search for the first ld in PATH.
5159 elif test "$with_gnu_ld" = yes; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5161 $as_echo_n "checking for GNU ld... " >&6; }
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5164 $as_echo_n "checking for non-GNU ld... " >&6; }
5166 if ${lt_cv_path_LD+:} false; then :
5167 $as_echo_n "(cached) " >&6
5169 if test -z "$LD"; then
5170 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171 for ac_dir in $PATH; do
5173 test -z "$ac_dir" && ac_dir=.
5174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5175 lt_cv_path_LD="$ac_dir/$ac_prog"
5176 # Check to see if the program is GNU ld. I'd rather use --version,
5177 # but apparently some variants of GNU ld only accept -v.
5178 # Break only if it was the GNU/non-GNU ld that we prefer.
5179 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5180 *GNU* | *'with BFD'*)
5181 test "$with_gnu_ld" != no && break
5184 test "$with_gnu_ld" != yes && break
5191 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5196 if test -n "$LD"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5198 $as_echo "$LD" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5203 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5206 if ${lt_cv_prog_gnu_ld+:} false; then :
5207 $as_echo_n "(cached) " >&6
5209 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5210 case `$LD -v 2>&1 </dev/null` in
5211 *GNU* | *'with BFD'*)
5212 lt_cv_prog_gnu_ld=yes
5215 lt_cv_prog_gnu_ld=no
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5220 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5221 with_gnu_ld=$lt_cv_prog_gnu_ld
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5232 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5233 if ${lt_cv_path_NM+:} false; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$NM"; then
5237 # Let the user override the test.
5240 lt_nm_to_check="${ac_tool_prefix}nm"
5241 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5242 lt_nm_to_check="$lt_nm_to_check nm"
5244 for lt_tmp_nm in $lt_nm_to_check; do
5245 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5248 test -z "$ac_dir" && ac_dir=.
5249 tmp_nm="$ac_dir/$lt_tmp_nm"
5250 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5251 # Check to see if the nm accepts a BSD-compat flag.
5252 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5253 # nm: unknown option "B" ignored
5254 # Tru64's nm complains that /dev/null is an invalid object file
5255 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5256 */dev/null* | *'Invalid file or object type'*)
5257 lt_cv_path_NM="$tmp_nm -B"
5261 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5263 lt_cv_path_NM="$tmp_nm -p"
5267 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5268 continue # so that we can try to find one that supports BSD flags
5277 : ${lt_cv_path_NM=no}
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5281 $as_echo "$lt_cv_path_NM" >&6; }
5282 if test "$lt_cv_path_NM" != "no"; then
5285 # Didn't find any BSD compatible name lister, look for dumpbin.
5286 if test -n "$DUMPBIN"; then :
5287 # Let the user override the test.
5289 if test -n "$ac_tool_prefix"; then
5290 for ac_prog in dumpbin "link -dump"
5292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_DUMPBIN+:} false; then :
5297 $as_echo_n "(cached) " >&6
5299 if test -n "$DUMPBIN"; then
5300 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 DUMPBIN=$ac_cv_prog_DUMPBIN
5320 if test -n "$DUMPBIN"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5322 $as_echo "$DUMPBIN" >&6; }
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5329 test -n "$DUMPBIN" && break
5332 if test -z "$DUMPBIN"; then
5333 ac_ct_DUMPBIN=$DUMPBIN
5334 for ac_prog in dumpbin "link -dump"
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5341 $as_echo_n "(cached) " >&6
5343 if test -n "$ac_ct_DUMPBIN"; then
5344 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5364 if test -n "$ac_ct_DUMPBIN"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5366 $as_echo "$ac_ct_DUMPBIN" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5373 test -n "$ac_ct_DUMPBIN" && break
5376 if test "x$ac_ct_DUMPBIN" = x; then
5379 case $cross_compiling:$ac_tool_warned in
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5385 DUMPBIN=$ac_ct_DUMPBIN
5389 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5391 DUMPBIN="$DUMPBIN -symbols"
5399 if test "$DUMPBIN" != ":"; then
5403 test -z "$NM" && NM=nm
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5411 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5412 if ${lt_cv_nm_interface+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 lt_cv_nm_interface="BSD nm"
5416 echo "int some_variable = 0;" > conftest.$ac_ext
5417 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5418 (eval "$ac_compile" 2>conftest.err)
5419 cat conftest.err >&5
5420 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5421 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5422 cat conftest.err >&5
5423 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5424 cat conftest.out >&5
5425 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5426 lt_cv_nm_interface="MS dumpbin"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5431 $as_echo "$lt_cv_nm_interface" >&6; }
5433 # find the maximum length of command line arguments
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5435 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5436 if ${lt_cv_sys_max_cmd_len+:} false; then :
5437 $as_echo_n "(cached) " >&6
5444 # On DJGPP, this test can blow up pretty badly due to problems in libc
5445 # (any single argument exceeding 2000 bytes causes a buffer overrun
5446 # during glob expansion). Even if it were fixed, the result of this
5447 # check would be larger than it should be.
5448 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5452 # Under GNU Hurd, this test is not required because there is
5453 # no limit to the length of command line arguments.
5454 # Libtool will interpret -1 as no limit whatsoever
5455 lt_cv_sys_max_cmd_len=-1;
5458 cygwin* | mingw* | cegcc*)
5459 # On Win9x/ME, this test blows up -- it succeeds, but takes
5460 # about 5 minutes as the teststring grows exponentially.
5461 # Worse, since 9x/ME are not pre-emptively multitasking,
5462 # you end up with a "frozen" computer, even though with patience
5463 # the test eventually succeeds (with a max line length of 256k).
5464 # Instead, let's just punt: use the minimum linelength reported by
5465 # all of the supported platforms: 8192 (on NT/2K/XP).
5466 lt_cv_sys_max_cmd_len=8192;
5470 # On MiNT this can take a long time and run out of memory.
5471 lt_cv_sys_max_cmd_len=8192;
5475 # On AmigaOS with pdksh, this test takes hours, literally.
5476 # So we just punt and use a minimum line length of 8192.
5477 lt_cv_sys_max_cmd_len=8192;
5480 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5481 # This has been around since 386BSD, at least. Likely further.
5482 if test -x /sbin/sysctl; then
5483 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5484 elif test -x /usr/sbin/sysctl; then
5485 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5487 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5489 # And add a safety zone
5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5495 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5496 lt_cv_sys_max_cmd_len=196608
5500 # The test takes a long time on OS/2.
5501 lt_cv_sys_max_cmd_len=8192
5505 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5506 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5507 # nice to cause kernel panics so lets avoid the loop below.
5508 # First set a reasonable default.
5509 lt_cv_sys_max_cmd_len=16384
5511 if test -x /sbin/sysconfig; then
5512 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5513 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5518 lt_cv_sys_max_cmd_len=102400
5520 sysv5* | sco5v6* | sysv4.2uw2*)
5521 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5522 if test -n "$kargmax"; then
5523 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5525 lt_cv_sys_max_cmd_len=32768
5529 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5530 if test -n "$lt_cv_sys_max_cmd_len"; then
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5532 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5534 # Make teststring a little bigger before we do anything with it.
5535 # a 1K string should be a reasonable start.
5536 for i in 1 2 3 4 5 6 7 8 ; do
5537 teststring=$teststring$teststring
5539 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5540 # If test is not a shell built-in, we'll probably end up computing a
5541 # maximum length that is only half of the actual maximum length, but
5543 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5544 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5545 test $i != 17 # 1/2 MB should be enough
5548 teststring=$teststring$teststring
5550 # Only check the string length outside the loop.
5551 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5553 # Add a significant safety factor because C++ compilers can tack on
5554 # massive amounts of additional arguments before passing them to the
5555 # linker. It appears as though 1/2 is a usable value.
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5563 if test -n $lt_cv_sys_max_cmd_len ; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5565 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5568 $as_echo "none" >&6; }
5570 max_cmd_len=$lt_cv_sys_max_cmd_len
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5582 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5583 # Try some XSI features
5586 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5588 && eval 'test $(( 1 + 1 )) -eq 2 \
5589 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5592 $as_echo "$xsi_shell" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5596 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5598 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5600 && lt_shell_append=yes
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5602 $as_echo "$lt_shell_append" >&6; }
5605 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5615 # test EBCDIC or ASCII
5616 case `echo X|tr X '\101'` in
5617 A) # ASCII based system
5618 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5619 lt_SP2NL='tr \040 \012'
5620 lt_NL2SP='tr \015\012 \040\040'
5622 *) # EBCDIC based system
5623 lt_SP2NL='tr \100 \n'
5624 lt_NL2SP='tr \r\n \100\100'
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5637 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5638 if ${lt_cv_to_host_file_cmd+:} false; then :
5639 $as_echo_n "(cached) " >&6
5644 *-*-mingw* ) # actually msys
5645 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5648 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5650 * ) # otherwise, assume *nix
5651 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5657 *-*-mingw* ) # actually msys
5658 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5661 lt_cv_to_host_file_cmd=func_convert_file_noop
5663 * ) # otherwise, assume *nix
5664 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5668 * ) # unhandled hosts (and "normal" native builds)
5669 lt_cv_to_host_file_cmd=func_convert_file_noop
5675 to_host_file_cmd=$lt_cv_to_host_file_cmd
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5677 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5684 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5685 if ${lt_cv_to_tool_file_cmd+:} false; then :
5686 $as_echo_n "(cached) " >&6
5688 #assume ordinary cross tools, or native build.
5689 lt_cv_to_tool_file_cmd=func_convert_file_noop
5693 *-*-mingw* ) # actually msys
5694 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5702 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5704 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5711 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5712 if ${lt_cv_ld_reload_flag+:} false; then :
5713 $as_echo_n "(cached) " >&6
5715 lt_cv_ld_reload_flag='-r'
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5718 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5719 reload_flag=$lt_cv_ld_reload_flag
5720 case $reload_flag in
5722 *) reload_flag=" $reload_flag" ;;
5724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5726 cygwin* | mingw* | pw32* | cegcc*)
5727 if test "$GCC" != yes; then
5732 if test "$GCC" = yes; then
5733 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5748 if test -n "$ac_tool_prefix"; then
5749 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5750 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if ${ac_cv_prog_OBJDUMP+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 if test -n "$OBJDUMP"; then
5757 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 test -z "$as_dir" && as_dir=.
5764 for ac_exec_ext in '' $ac_executable_extensions; do
5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5766 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 OBJDUMP=$ac_cv_prog_OBJDUMP
5777 if test -n "$OBJDUMP"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5779 $as_echo "$OBJDUMP" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5787 if test -z "$ac_cv_prog_OBJDUMP"; then
5788 ac_ct_OBJDUMP=$OBJDUMP
5789 # Extract the first word of "objdump", so it can be a program name with args.
5790 set dummy objdump; ac_word=$2
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$ac_ct_OBJDUMP"; then
5797 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5817 if test -n "$ac_ct_OBJDUMP"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5819 $as_echo "$ac_ct_OBJDUMP" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5825 if test "x$ac_ct_OBJDUMP" = x; then
5828 case $cross_compiling:$ac_tool_warned in
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5834 OBJDUMP=$ac_ct_OBJDUMP
5837 OBJDUMP="$ac_cv_prog_OBJDUMP"
5840 test -z "$OBJDUMP" && OBJDUMP=objdump
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5851 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5852 if ${lt_cv_deplibs_check_method+:} false; then :
5853 $as_echo_n "(cached) " >&6
5855 lt_cv_file_magic_cmd='$MAGIC_CMD'
5856 lt_cv_file_magic_test_file=
5857 lt_cv_deplibs_check_method='unknown'
5858 # Need to set the preceding variable on all platforms that support
5859 # interlibrary dependencies.
5860 # 'none' -- dependencies not supported.
5861 # `unknown' -- same as none, but documents that we really don't know.
5862 # 'pass_all' -- all dependencies passed with no checks.
5863 # 'test_compile' -- check by making test program.
5864 # 'file_magic [[regex]]' -- check by looking for files in library path
5865 # which responds to the $file_magic_cmd with a given extended regex.
5866 # If you have `file' or equivalent on your system and you're not sure
5867 # whether `pass_all' will *always* work, you probably want this one.
5871 lt_cv_deplibs_check_method=pass_all
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5880 lt_cv_file_magic_cmd='/usr/bin/file -L'
5881 lt_cv_file_magic_test_file=/shlib/libc.so
5885 # func_win32_libid is a shell function defined in ltmain.sh
5886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5887 lt_cv_file_magic_cmd='func_win32_libid'
5891 # Base MSYS/MinGW do not provide the 'file' command needed by
5892 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5893 # unless we find 'file', for example because we are cross-compiling.
5894 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5895 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897 lt_cv_file_magic_cmd='func_win32_libid'
5899 # Keep this pattern in sync with the one in func_win32_libid.
5900 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5901 lt_cv_file_magic_cmd='$OBJDUMP -f'
5906 # use the weaker test based on 'objdump'. See mingw*.
5907 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5908 lt_cv_file_magic_cmd='$OBJDUMP -f'
5911 darwin* | rhapsody*)
5912 lt_cv_deplibs_check_method=pass_all
5915 freebsd* | dragonfly*)
5916 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5919 # Not sure whether the presence of OpenBSD here was a mistake.
5920 # Let's accept both of them until this is cleared up.
5921 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5922 lt_cv_file_magic_cmd=/usr/bin/file
5923 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5927 lt_cv_deplibs_check_method=pass_all
5932 lt_cv_deplibs_check_method=pass_all
5935 hpux10.20* | hpux11*)
5936 lt_cv_file_magic_cmd=/usr/bin/file
5939 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5940 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5943 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]'
5944 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5947 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5948 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5954 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5958 irix5* | irix6* | nonstopux*)
5960 *-32|*"-32 ") libmagic=32-bit;;
5961 *-n32|*"-n32 ") libmagic=N32;;
5962 *-64|*"-64 ") libmagic=64-bit;;
5963 *) libmagic=never-match;;
5965 lt_cv_deplibs_check_method=pass_all
5968 # This must be glibc/ELF.
5969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5970 lt_cv_deplibs_check_method=pass_all
5973 netbsd* | netbsdelf*-gnu)
5974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5983 lt_cv_file_magic_cmd=/usr/bin/file
5984 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5988 lt_cv_deplibs_check_method=pass_all
5992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5999 osf3* | osf4* | osf5*)
6000 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6008 lt_cv_deplibs_check_method=pass_all
6011 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6012 lt_cv_deplibs_check_method=pass_all
6016 case $host_vendor in
6018 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]'
6019 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6022 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_file_magic_cmd='/bin/file'
6026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6029 lt_cv_file_magic_cmd='/bin/file'
6030 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6031 lt_cv_file_magic_test_file=/lib/libc.so
6034 lt_cv_deplibs_check_method=pass_all
6037 lt_cv_deplibs_check_method=pass_all
6043 lt_cv_deplibs_check_method=pass_all
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6049 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6053 if test "$build" = "$host"; then
6056 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6059 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6065 file_magic_cmd=$lt_cv_file_magic_cmd
6066 deplibs_check_method=$lt_cv_deplibs_check_method
6067 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6090 if test -n "$ac_tool_prefix"; then
6091 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6092 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6094 $as_echo_n "checking for $ac_word... " >&6; }
6095 if ${ac_cv_prog_DLLTOOL+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 if test -n "$DLLTOOL"; then
6099 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6108 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 DLLTOOL=$ac_cv_prog_DLLTOOL
6119 if test -n "$DLLTOOL"; then
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6121 $as_echo "$DLLTOOL" >&6; }
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6129 if test -z "$ac_cv_prog_DLLTOOL"; then
6130 ac_ct_DLLTOOL=$DLLTOOL
6131 # Extract the first word of "dlltool", so it can be a program name with args.
6132 set dummy dlltool; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6136 $as_echo_n "(cached) " >&6
6138 if test -n "$ac_ct_DLLTOOL"; then
6139 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6159 if test -n "$ac_ct_DLLTOOL"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6161 $as_echo "$ac_ct_DLLTOOL" >&6; }
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6167 if test "x$ac_ct_DLLTOOL" = x; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6176 DLLTOOL=$ac_ct_DLLTOOL
6179 DLLTOOL="$ac_cv_prog_DLLTOOL"
6182 test -z "$DLLTOOL" && DLLTOOL=dlltool
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6194 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6195 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6196 $as_echo_n "(cached) " >&6
6198 lt_cv_sharedlib_from_linklib_cmd='unknown'
6201 cygwin* | mingw* | pw32* | cegcc*)
6202 # two different shell functions defined in ltmain.sh
6203 # decide which to use based on capabilities of $DLLTOOL
6204 case `$DLLTOOL --help 2>&1` in
6205 *--identify-strict*)
6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6209 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6214 # fallback: assume linklib IS sharedlib
6215 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6221 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6222 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6223 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6231 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_AR+:} false; then :
6239 $as_echo_n "(cached) " >&6
6241 if test -n "$AR"; then
6242 ac_cv_prog_AR="$AR" # Let the user override the test.
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 if test -n "$AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6264 $as_echo "$AR" >&6; }
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6271 test -n "$AR" && break
6274 if test -z "$AR"; then
6278 # Extract the first word of "$ac_prog", so it can be a program name with args.
6279 set dummy $ac_prog; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6283 $as_echo_n "(cached) " >&6
6285 if test -n "$ac_ct_AR"; then
6286 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295 ac_cv_prog_ac_ct_AR="$ac_prog"
6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306 if test -n "$ac_ct_AR"; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6308 $as_echo "$ac_ct_AR" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6315 test -n "$ac_ct_AR" && break
6318 if test "x$ac_ct_AR" = x; then
6321 case $cross_compiling:$ac_tool_warned in
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325 ac_tool_warned=yes ;;
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6345 $as_echo_n "checking for archiver @FILE support... " >&6; }
6346 if ${lt_cv_ar_at_file+:} false; then :
6347 $as_echo_n "(cached) " >&6
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6361 if ac_fn_c_try_compile "$LINENO"; then :
6362 echo conftest.$ac_objext > conftest.lst
6363 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6365 (eval $lt_ar_try) 2>&5
6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368 test $ac_status = 0; }
6369 if test "$ac_status" -eq 0; then
6370 # Ensure the archiver fails upon bogus file names.
6371 rm -f conftest.$ac_objext libconftest.a
6372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6373 (eval $lt_ar_try) 2>&5
6375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6376 test $ac_status = 0; }
6377 if test "$ac_status" -ne 0; then
6381 rm -f conftest.* libconftest.a
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6388 $as_echo "$lt_cv_ar_at_file" >&6; }
6390 if test "x$lt_cv_ar_at_file" = xno; then
6393 archiver_list_spec=$lt_cv_ar_at_file
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}strip; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_STRIP+:} false; then :
6408 $as_echo_n "(cached) " >&6
6410 if test -n "$STRIP"; then
6411 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 STRIP=$ac_cv_prog_STRIP
6431 if test -n "$STRIP"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6433 $as_echo "$STRIP" >&6; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6441 if test -z "$ac_cv_prog_STRIP"; then
6443 # Extract the first word of "strip", so it can be a program name with args.
6444 set dummy strip; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$ac_ct_STRIP"; then
6451 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_ac_ct_STRIP="strip"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6471 if test -n "$ac_ct_STRIP"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6473 $as_echo "$ac_ct_STRIP" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6479 if test "x$ac_ct_STRIP" = x; then
6482 case $cross_compiling:$ac_tool_warned in
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6491 STRIP="$ac_cv_prog_STRIP"
6494 test -z "$STRIP" && STRIP=:
6501 if test -n "$ac_tool_prefix"; then
6502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_RANLIB+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$RANLIB"; then
6510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 RANLIB=$ac_cv_prog_RANLIB
6530 if test -n "$RANLIB"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6532 $as_echo "$RANLIB" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6540 if test -z "$ac_cv_prog_RANLIB"; then
6541 ac_ct_RANLIB=$RANLIB
6542 # Extract the first word of "ranlib", so it can be a program name with args.
6543 set dummy ranlib; ac_word=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if test -n "$ac_ct_RANLIB"; then
6550 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559 ac_cv_prog_ac_ct_RANLIB="ranlib"
6560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 $as_echo "$ac_ct_RANLIB" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6578 if test "x$ac_ct_RANLIB" = x; then
6581 case $cross_compiling:$ac_tool_warned in
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6587 RANLIB=$ac_ct_RANLIB
6590 RANLIB="$ac_cv_prog_RANLIB"
6593 test -z "$RANLIB" && RANLIB=:
6600 # Determine commands to create old-style static archives.
6601 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6602 old_postinstall_cmds='chmod 644 $oldlib'
6603 old_postuninstall_cmds=
6605 if test -n "$RANLIB"; then
6608 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6614 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6619 lock_old_archive_extraction=yes ;;
6621 lock_old_archive_extraction=no ;;
6662 # If no C compiler was specified, use CC.
6665 # If no C compiler flags were specified, use CFLAGS.
6666 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6668 # Allow CC to be a program name with arguments.
6672 # Check for command to grab the raw symbol name followed by C symbol from nm.
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6674 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6675 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6676 $as_echo_n "(cached) " >&6
6679 # These are sane defaults that work on at least a few old systems.
6680 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6682 # Character class describing NM global symbol codes.
6683 symcode='[BCDEGRST]'
6685 # Regexp to match symbols that can be accessed directly from C.
6686 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6688 # Define system-specific variables.
6693 cygwin* | mingw* | pw32* | cegcc*)
6694 symcode='[ABCDGISTW]'
6697 if test "$host_cpu" = ia64; then
6698 symcode='[ABCDEGRST]'
6702 symcode='[BCDEGRST]'
6705 symcode='[BCDEGQRST]'
6716 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6724 # If we're using GNU nm, then use its standard symbol codes.
6725 case `$NM -V 2>&1` in
6726 *GNU* | *'with BFD'*)
6727 symcode='[ABCDGIRSTW]' ;;
6730 # Transform an extracted symbol line into a proper C declaration.
6731 # Some systems (esp. on ia64) link data and code symbols differently,
6732 # so use this general approach.
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6735 # Transform an extracted symbol line into symbol name and symbol address
6736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6737 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'"
6739 # Handle CRLF in mingw tool chain
6743 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6747 # Try without a prefix underscore, then with it.
6748 for ac_symprfx in "" "_"; do
6750 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6751 symxfrm="\\1 $ac_symprfx\\2 \\2"
6753 # Write the raw and C identifiers.
6754 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6755 # Fake it for dumpbin and say T for any non-static function
6756 # and D for any global variable.
6757 # Also find C++ and __fastcall symbols from MSVC++,
6758 # which start with @ or ?.
6759 lt_cv_sys_global_symbol_pipe="$AWK '"\
6760 " {last_section=section; section=\$ 3};"\
6761 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6762 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6763 " \$ 0!~/External *\|/{next};"\
6764 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6765 " {if(hide[section]) next};"\
6766 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6767 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6768 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6769 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6770 " ' prfx=^$ac_symprfx"
6772 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6774 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6776 # Check to see that the pipe works correctly.
6780 cat > conftest.$ac_ext <<_LT_EOF
6785 void nm_test_func(void);
6786 void nm_test_func(void){}
6790 int main(){nm_test_var='a';nm_test_func();return(0);}
6793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794 (eval $ac_compile) 2>&5
6796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797 test $ac_status = 0; }; then
6798 # Now try to grab the symbols.
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6801 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s "$nlist"; then
6805 # Try sorting and uniquifying the output.
6806 if sort "$nlist" | uniq > "$nlist"T; then
6807 mv -f "$nlist"T "$nlist"
6812 # Make sure that we snagged all the symbols we need.
6813 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6814 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6815 cat <<_LT_EOF > conftest.$ac_ext
6816 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6817 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6818 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6819 relocations are performed -- see ld's documentation on pseudo-relocs. */
6820 # define LT@&t@_DLSYM_CONST
6821 #elif defined(__osf__)
6822 /* This system does not cope well with relocations in const data. */
6823 # define LT@&t@_DLSYM_CONST
6825 # define LT@&t@_DLSYM_CONST const
6833 # Now generate the symbol file.
6834 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6836 cat <<_LT_EOF >> conftest.$ac_ext
6838 /* The mapping between symbol names and symbols. */
6839 LT@&t@_DLSYM_CONST struct {
6843 lt__PROGRAM__LTX_preloaded_symbols[] =
6845 { "@PROGRAM@", (void *) 0 },
6847 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6848 cat <<\_LT_EOF >> conftest.$ac_ext
6852 /* This works around a problem in FreeBSD linker */
6853 #ifdef FREEBSD_WORKAROUND
6854 static const void *lt_preloaded_setup() {
6855 return lt__PROGRAM__LTX_preloaded_symbols;
6863 # Now try linking the two files.
6864 mv conftest.$ac_objext conftstm.$ac_objext
6865 lt_globsym_save_LIBS=$LIBS
6866 lt_globsym_save_CFLAGS=$CFLAGS
6867 LIBS="conftstm.$ac_objext"
6868 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6870 (eval $ac_link) 2>&5
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6876 LIBS=$lt_globsym_save_LIBS
6877 CFLAGS=$lt_globsym_save_CFLAGS
6879 echo "cannot find nm_test_func in $nlist" >&5
6882 echo "cannot find nm_test_var in $nlist" >&5
6885 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6888 echo "$progname: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 rm -rf conftest* conftst*
6893 # Do not use the global_symbol_pipe unless it works.
6894 if test "$pipe_works" = yes; then
6897 lt_cv_sys_global_symbol_pipe=
6903 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6904 lt_cv_sys_global_symbol_to_cdecl=
6906 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6908 $as_echo "failed" >&6; }
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6911 $as_echo "ok" >&6; }
6914 # Response file support.
6915 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6916 nm_file_list_spec='@'
6917 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6918 nm_file_list_spec='@'
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6948 $as_echo_n "checking for sysroot... " >&6; }
6950 @%:@ Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952 withval=$with_sysroot;
6959 case ${with_sysroot} in #(
6961 if test "$GCC" = yes; then
6962 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6966 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6972 $as_echo "${with_sysroot}" >&6; }
6973 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6978 $as_echo "${lt_sysroot:-no}" >&6; }
6984 @%:@ Check whether --enable-libtool-lock was given.
6985 if test "${enable_libtool_lock+set}" = set; then :
6986 enableval=$enable_libtool_lock;
6989 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991 # Some flags need to be propagated to the compiler or linker for good
6995 # Find out which ABI we are using.
6996 echo 'int i;' > conftest.$ac_ext
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998 (eval $ac_compile) 2>&5
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 case `/usr/bin/file conftest.$ac_objext` in
7014 # Find out which ABI we are using.
7015 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7017 (eval $ac_compile) 2>&5
7019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7020 test $ac_status = 0; }; then
7021 if test "$lt_cv_prog_gnu_ld" = yes; then
7022 case `/usr/bin/file conftest.$ac_objext` in
7024 LD="${LD-ld} -melf32bsmip"
7027 LD="${LD-ld} -melf32bmipn32"
7030 LD="${LD-ld} -melf64bmip"
7034 case `/usr/bin/file conftest.$ac_objext` in
7050 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7051 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7052 # Find out which ABI we are using.
7053 echo 'int i;' > conftest.$ac_ext
7054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7055 (eval $ac_compile) 2>&5
7057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7058 test $ac_status = 0; }; then
7059 case `/usr/bin/file conftest.o` in
7062 x86_64-*kfreebsd*-gnu)
7063 LD="${LD-ld} -m elf_i386_fbsd"
7066 LD="${LD-ld} -m elf_i386"
7068 ppc64-*linux*|powerpc64-*linux*)
7069 LD="${LD-ld} -m elf32ppclinux"
7072 LD="${LD-ld} -m elf_s390"
7075 LD="${LD-ld} -m elf32_sparc"
7081 x86_64-*kfreebsd*-gnu)
7082 LD="${LD-ld} -m elf_x86_64_fbsd"
7085 LD="${LD-ld} -m elf_x86_64"
7087 ppc*-*linux*|powerpc*-*linux*)
7088 LD="${LD-ld} -m elf64ppc"
7090 s390*-*linux*|s390*-*tpf*)
7091 LD="${LD-ld} -m elf64_s390"
7094 LD="${LD-ld} -m elf64_sparc"
7104 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7105 SAVE_CFLAGS="$CFLAGS"
7106 CFLAGS="$CFLAGS -belf"
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7108 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7109 if ${lt_cv_cc_needs_belf+:} false; then :
7110 $as_echo_n "(cached) " >&6
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7129 if ac_fn_c_try_link "$LINENO"; then :
7130 lt_cv_cc_needs_belf=yes
7132 lt_cv_cc_needs_belf=no
7134 rm -f core conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext
7137 ac_cpp='$CPP $CPPFLAGS'
7138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7144 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7145 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7146 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7147 CFLAGS="$SAVE_CFLAGS"
7151 # Find out which ABI we are using.
7152 echo 'int i;' > conftest.$ac_ext
7153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7154 (eval $ac_compile) 2>&5
7156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7157 test $ac_status = 0; }; then
7158 case `/usr/bin/file conftest.o` in
7160 case $lt_cv_prog_gnu_ld in
7164 LD="${LD-ld} -m elf_x86_64"
7167 LD="${LD-ld} -m elf64_sparc"
7170 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7171 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7176 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7188 need_locks="$enable_libtool_lock"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}mt; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7196 $as_echo_n "(cached) " >&6
7198 if test -n "$MANIFEST_TOOL"; then
7199 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7219 if test -n "$MANIFEST_TOOL"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7221 $as_echo "$MANIFEST_TOOL" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7229 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7230 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7231 # Extract the first word of "mt", so it can be a program name with args.
7232 set dummy mt; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7234 $as_echo_n "checking for $ac_word... " >&6; }
7235 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7236 $as_echo_n "(cached) " >&6
7238 if test -n "$ac_ct_MANIFEST_TOOL"; then
7239 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7259 if test -n "$ac_ct_MANIFEST_TOOL"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7261 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7264 $as_echo "no" >&6; }
7267 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7274 ac_tool_warned=yes ;;
7276 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7279 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7282 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7284 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7285 if ${lt_cv_path_mainfest_tool+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 lt_cv_path_mainfest_tool=no
7289 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7290 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7291 cat conftest.err >&5
7292 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7293 lt_cv_path_mainfest_tool=yes
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7298 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7299 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7309 rhapsody* | darwin*)
7310 if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 if test -n "$DSYMUTIL"; then
7319 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7339 if test -n "$DSYMUTIL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7341 $as_echo "$DSYMUTIL" >&6; }
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7349 if test -z "$ac_cv_prog_DSYMUTIL"; then
7350 ac_ct_DSYMUTIL=$DSYMUTIL
7351 # Extract the first word of "dsymutil", so it can be a program name with args.
7352 set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 if test -n "$ac_ct_DSYMUTIL"; then
7359 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7379 if test -n "$ac_ct_DSYMUTIL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7381 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7387 if test "x$ac_ct_DSYMUTIL" = x; then
7390 case $cross_compiling:$ac_tool_warned in
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7396 DSYMUTIL=$ac_ct_DSYMUTIL
7399 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_NMEDIT+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 if test -n "$NMEDIT"; then
7411 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 NMEDIT=$ac_cv_prog_NMEDIT
7431 if test -n "$NMEDIT"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7433 $as_echo "$NMEDIT" >&6; }
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_NMEDIT"; then
7442 ac_ct_NMEDIT=$NMEDIT
7443 # Extract the first word of "nmedit", so it can be a program name with args.
7444 set dummy nmedit; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 if test -n "$ac_ct_NMEDIT"; then
7451 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7471 if test -n "$ac_ct_NMEDIT"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7473 $as_echo "$ac_ct_NMEDIT" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479 if test "x$ac_ct_NMEDIT" = x; then
7482 case $cross_compiling:$ac_tool_warned in
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7488 NMEDIT=$ac_ct_NMEDIT
7491 NMEDIT="$ac_cv_prog_NMEDIT"
7494 if test -n "$ac_tool_prefix"; then
7495 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_LIPO+:} false; then :
7500 $as_echo_n "(cached) " >&6
7502 if test -n "$LIPO"; then
7503 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 LIPO=$ac_cv_prog_LIPO
7523 if test -n "$LIPO"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7525 $as_echo "$LIPO" >&6; }
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7533 if test -z "$ac_cv_prog_LIPO"; then
7535 # Extract the first word of "lipo", so it can be a program name with args.
7536 set dummy lipo; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7540 $as_echo_n "(cached) " >&6
7542 if test -n "$ac_ct_LIPO"; then
7543 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_ac_ct_LIPO="lipo"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7563 if test -n "$ac_ct_LIPO"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7565 $as_echo "$ac_ct_LIPO" >&6; }
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7571 if test "x$ac_ct_LIPO" = x; then
7574 case $cross_compiling:$ac_tool_warned in
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7583 LIPO="$ac_cv_prog_LIPO"
7586 if test -n "$ac_tool_prefix"; then
7587 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL+:} false; then :
7592 $as_echo_n "(cached) " >&6
7594 if test -n "$OTOOL"; then
7595 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 OTOOL=$ac_cv_prog_OTOOL
7615 if test -n "$OTOOL"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7617 $as_echo "$OTOOL" >&6; }
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7625 if test -z "$ac_cv_prog_OTOOL"; then
7627 # Extract the first word of "otool", so it can be a program name with args.
7628 set dummy otool; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7632 $as_echo_n "(cached) " >&6
7634 if test -n "$ac_ct_OTOOL"; then
7635 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_OTOOL="otool"
7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7655 if test -n "$ac_ct_OTOOL"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7657 $as_echo "$ac_ct_OTOOL" >&6; }
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7663 if test "x$ac_ct_OTOOL" = x; then
7666 case $cross_compiling:$ac_tool_warned in
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7675 OTOOL="$ac_cv_prog_OTOOL"
7678 if test -n "$ac_tool_prefix"; then
7679 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7680 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_OTOOL64+:} false; then :
7684 $as_echo_n "(cached) " >&6
7686 if test -n "$OTOOL64"; then
7687 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 OTOOL64=$ac_cv_prog_OTOOL64
7707 if test -n "$OTOOL64"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7709 $as_echo "$OTOOL64" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 if test -z "$ac_cv_prog_OTOOL64"; then
7718 ac_ct_OTOOL64=$OTOOL64
7719 # Extract the first word of "otool64", so it can be a program name with args.
7720 set dummy otool64; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 if test -n "$ac_ct_OTOOL64"; then
7727 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_prog_ac_ct_OTOOL64="otool64"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7747 if test -n "$ac_ct_OTOOL64"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7749 $as_echo "$ac_ct_OTOOL64" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 if test "x$ac_ct_OTOOL64" = x; then
7758 case $cross_compiling:$ac_tool_warned in
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7764 OTOOL64=$ac_ct_OTOOL64
7767 OTOOL64="$ac_cv_prog_OTOOL64"
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7797 $as_echo_n "checking for -single_module linker flag... " >&6; }
7798 if ${lt_cv_apple_cc_single_mod+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 lt_cv_apple_cc_single_mod=no
7802 if test -z "${LT_MULTI_MODULE}"; then
7803 # By default we will add the -single_module flag. You can override
7804 # by either setting the environment variable LT_MULTI_MODULE
7805 # non-empty at configure time, or by adding -multi_module to the
7807 rm -rf libconftest.dylib*
7808 echo "int foo(void){return 1;}" > conftest.c
7809 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810 -dynamiclib -Wl,-single_module conftest.c" >&5
7811 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7814 # If there is a non-empty error log, and "single_module"
7815 # appears in it, assume the flag caused a linker warning
7816 if test -s conftest.err && $GREP single_module conftest.err; then
7817 cat conftest.err >&5
7818 # Otherwise, if the output was created with a 0 exit code from
7819 # the compiler, it worked.
7820 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7821 lt_cv_apple_cc_single_mod=yes
7823 cat conftest.err >&5
7825 rm -rf libconftest.dylib*
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7830 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7833 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7834 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 lt_cv_ld_exported_symbols_list=no
7838 save_LDFLAGS=$LDFLAGS
7839 echo "_main" > conftest.sym
7840 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7852 if ac_fn_c_try_link "$LINENO"; then :
7853 lt_cv_ld_exported_symbols_list=yes
7855 lt_cv_ld_exported_symbols_list=no
7857 rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 LDFLAGS="$save_LDFLAGS"
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7863 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7866 $as_echo_n "checking for -force_load linker flag... " >&6; }
7867 if ${lt_cv_ld_force_load+:} false; then :
7868 $as_echo_n "(cached) " >&6
7870 lt_cv_ld_force_load=no
7871 cat > conftest.c << _LT_EOF
7872 int forced_loaded() { return 2;}
7874 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7875 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7876 echo "$AR cru libconftest.a conftest.o" >&5
7877 $AR cru libconftest.a conftest.o 2>&5
7878 echo "$RANLIB libconftest.a" >&5
7879 $RANLIB libconftest.a 2>&5
7880 cat > conftest.c << _LT_EOF
7881 int main() { return 0;}
7883 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7884 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7886 if test -s conftest.err && $GREP force_load conftest.err; then
7887 cat conftest.err >&5
7888 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7889 lt_cv_ld_force_load=yes
7891 cat conftest.err >&5
7893 rm -f conftest.err libconftest.a conftest conftest.c
7894 rm -rf conftest.dSYM
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7898 $as_echo "$lt_cv_ld_force_load" >&6; }
7900 rhapsody* | darwin1.[012])
7901 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7903 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7904 darwin*) # darwin 5.x on
7905 # if running on 10.5 or later, the deployment target defaults
7906 # to the OS version, if on x86, and 10.4, the deployment
7907 # target defaults to 10.4. Don't you love it?
7908 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7909 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7910 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7912 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7914 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7918 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7919 _lt_dar_single_mod='$single_module'
7921 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7922 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7924 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7926 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7927 _lt_dsymutil='~$DSYMUTIL $lib || :'
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7935 $as_echo_n "checking for ANSI C header files... " >&6; }
7936 if ${ac_cv_header_stdc+:} false; then :
7937 $as_echo_n "(cached) " >&6
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 ac_cv_header_stdc=yes
7957 ac_cv_header_stdc=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 if test $ac_cv_header_stdc = yes; then
7962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969 $EGREP "memchr" >/dev/null 2>&1; then :
7972 ac_cv_header_stdc=no
7978 if test $ac_cv_header_stdc = yes; then
7979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "free" >/dev/null 2>&1; then :
7989 ac_cv_header_stdc=no
7995 if test $ac_cv_header_stdc = yes; then
7996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7997 if test "$cross_compiling" = yes; then :
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8004 #if ((' ' & 0x0FF) == 0x020)
8005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8008 # define ISLOWER(c) \
8009 (('a' <= (c) && (c) <= 'i') \
8010 || ('j' <= (c) && (c) <= 'r') \
8011 || ('s' <= (c) && (c) <= 'z'))
8012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8020 for (i = 0; i < 256; i++)
8021 if (XOR (islower (i), ISLOWER (i))
8022 || toupper (i) != TOUPPER (i))
8027 if ac_fn_c_try_run "$LINENO"; then :
8030 ac_cv_header_stdc=no
8032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8033 conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8039 $as_echo "$ac_cv_header_stdc" >&6; }
8040 if test $ac_cv_header_stdc = yes; then
8042 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8048 inttypes.h stdint.h unistd.h
8050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8054 cat >>confdefs.h <<_ACEOF
8055 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8063 for ac_header in dlfcn.h
8065 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8067 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8068 cat >>confdefs.h <<_ACEOF
8069 @%:@define HAVE_DLFCN_H 1
8090 @%:@ Check whether --enable-shared was given.
8091 if test "${enable_shared+set}" = set; then :
8092 enableval=$enable_shared; p=${PACKAGE-default}
8094 yes) enable_shared=yes ;;
8095 no) enable_shared=no ;;
8098 # Look at the argument we got. We use all the common list separators.
8099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8100 for pkg in $enableval; do
8102 if test "X$pkg" = "X$p"; then
8121 @%:@ Check whether --enable-static was given.
8122 if test "${enable_static+set}" = set; then :
8123 enableval=$enable_static; p=${PACKAGE-default}
8125 yes) enable_static=yes ;;
8126 no) enable_static=no ;;
8129 # Look at the argument we got. We use all the common list separators.
8130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8131 for pkg in $enableval; do
8133 if test "X$pkg" = "X$p"; then
8153 @%:@ Check whether --with-pic was given.
8154 if test "${with_pic+set}" = set; then :
8155 withval=$with_pic; lt_p=${PACKAGE-default}
8157 yes|no) pic_mode=$withval ;;
8160 # Look at the argument we got. We use all the common list separators.
8161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8162 for lt_pkg in $withval; do
8164 if test "X$lt_pkg" = "X$lt_p"; then
8176 test -z "$pic_mode" && pic_mode=default
8184 @%:@ Check whether --enable-fast-install was given.
8185 if test "${enable_fast_install+set}" = set; then :
8186 enableval=$enable_fast_install; p=${PACKAGE-default}
8188 yes) enable_fast_install=yes ;;
8189 no) enable_fast_install=no ;;
8191 enable_fast_install=no
8192 # Look at the argument we got. We use all the common list separators.
8193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8194 for pkg in $enableval; do
8196 if test "X$pkg" = "X$p"; then
8197 enable_fast_install=yes
8204 enable_fast_install=yes
8217 # This can be used to rebuild libtool when needed
8218 LIBTOOL_DEPS="$ltmain"
8220 # Always use our own libtool.
8221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8252 test -z "$LN_S" && LN_S="ln -s"
8267 if test -n "${ZSH_VERSION+set}" ; then
8268 setopt NO_GLOB_SUBST
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8272 $as_echo_n "checking for objdir... " >&6; }
8273 if ${lt_cv_objdir+:} false; then :
8274 $as_echo_n "(cached) " >&6
8276 rm -f .libs 2>/dev/null
8277 mkdir .libs 2>/dev/null
8278 if test -d .libs; then
8281 # MS-DOS does not allow filenames that begin with a dot.
8284 rmdir .libs 2>/dev/null
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8287 $as_echo "$lt_cv_objdir" >&6; }
8288 objdir=$lt_cv_objdir
8294 cat >>confdefs.h <<_ACEOF
8295 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8303 # AIX sometimes has problems with the GCC collect2 program. For some
8304 # reason, if we set the COLLECT_NAMES environment variable, the problems
8305 # vanish in a puff of smoke.
8306 if test "X${COLLECT_NAMES+set}" != Xset; then
8308 export COLLECT_NAMES
8315 can_build_shared=yes
8317 # All known linkers require a `.a' archive for static linking (except MSVC,
8318 # which needs '.lib').
8321 with_gnu_ld="$lt_cv_prog_gnu_ld"
8324 old_CFLAGS="$CFLAGS"
8326 # Set sane defaults for various variables
8327 test -z "$CC" && CC=cc
8328 test -z "$LTCC" && LTCC=$CC
8329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8330 test -z "$LD" && LD=ld
8331 test -z "$ac_objext" && ac_objext=o
8333 for cc_temp in $compiler""; do
8335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8341 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8344 # Only perform the check for file, if the check method requires it
8345 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8346 case $deplibs_check_method in
8348 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8350 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8351 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8352 $as_echo_n "(cached) " >&6
8356 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8359 lt_save_MAGIC_CMD="$MAGIC_CMD"
8360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8361 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8362 for ac_dir in $ac_dummy; do
8364 test -z "$ac_dir" && ac_dir=.
8365 if test -f $ac_dir/${ac_tool_prefix}file; then
8366 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8367 if test -n "$file_magic_test_file"; then
8368 case $deplibs_check_method in
8370 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8373 $EGREP "$file_magic_regex" > /dev/null; then
8378 *** Warning: the command libtool uses to detect shared libraries,
8379 *** $file_magic_cmd, produces output that libtool cannot recognize.
8380 *** The result is that libtool may fail to recognize shared libraries
8381 *** as such. This will affect the creation of libtool libraries that
8382 *** depend on shared libraries, but programs linked with such libtool
8383 *** libraries will work regardless of this problem. Nevertheless, you
8384 *** may want to report the problem to your system manager and/or to
8385 *** bug-libtool@gnu.org
8395 MAGIC_CMD="$lt_save_MAGIC_CMD"
8400 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8401 if test -n "$MAGIC_CMD"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8403 $as_echo "$MAGIC_CMD" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8413 if test -z "$lt_cv_path_MAGIC_CMD"; then
8414 if test -n "$ac_tool_prefix"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8416 $as_echo_n "checking for file... " >&6; }
8417 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8418 $as_echo_n "(cached) " >&6
8422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8425 lt_save_MAGIC_CMD="$MAGIC_CMD"
8426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8427 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8428 for ac_dir in $ac_dummy; do
8430 test -z "$ac_dir" && ac_dir=.
8431 if test -f $ac_dir/file; then
8432 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8433 if test -n "$file_magic_test_file"; then
8434 case $deplibs_check_method in
8436 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8438 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8439 $EGREP "$file_magic_regex" > /dev/null; then
8444 *** Warning: the command libtool uses to detect shared libraries,
8445 *** $file_magic_cmd, produces output that libtool cannot recognize.
8446 *** The result is that libtool may fail to recognize shared libraries
8447 *** as such. This will affect the creation of libtool libraries that
8448 *** depend on shared libraries, but programs linked with such libtool
8449 *** libraries will work regardless of this problem. Nevertheless, you
8450 *** may want to report the problem to your system manager and/or to
8451 *** bug-libtool@gnu.org
8461 MAGIC_CMD="$lt_save_MAGIC_CMD"
8466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8467 if test -n "$MAGIC_CMD"; then
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8469 $as_echo "$MAGIC_CMD" >&6; }
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8472 $as_echo "no" >&6; }
8485 # Use C for the default configuration in the libtool script
8489 ac_cpp='$CPP $CPPFLAGS'
8490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495 # Source file extension for C test sources.
8498 # Object file extension for compiled C test sources.
8502 # Code to be used in simple compile tests
8503 lt_simple_compile_test_code="int some_variable = 0;"
8505 # Code to be used in simple link tests
8506 lt_simple_link_test_code='int main(){return(0);}'
8514 # If no C compiler was specified, use CC.
8517 # If no C compiler flags were specified, use CFLAGS.
8518 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8520 # Allow CC to be a program name with arguments.
8523 # Save the default compiler, since it gets overwritten when the other
8524 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8525 compiler_DEFAULT=$CC
8527 # save warnings/boilerplate of simple test code
8528 ac_outfile=conftest.$ac_objext
8529 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8530 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8531 _lt_compiler_boilerplate=`cat conftest.err`
8534 ac_outfile=conftest.$ac_objext
8535 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8536 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8537 _lt_linker_boilerplate=`cat conftest.err`
8542 ## There is no encapsulation within the following macros, do not change
8543 ## the running order or otherwise move them around unless you know exactly
8544 ## what you are doing...
8545 if test -n "$compiler"; then
8547 lt_prog_compiler_no_builtin_flag=
8549 if test "$GCC" = yes; then
8550 case $cc_basename in
8552 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8554 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8558 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8559 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 lt_cv_prog_compiler_rtti_exceptions=no
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 lt_compiler_flag="-fno-rtti -fno-exceptions"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 # The option is referenced via a variable to avoid confusing sed.
8571 lt_compile=`echo "$ac_compile" | $SED \
8572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8574 -e 's:$: $lt_compiler_flag:'`
8575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8576 (eval "$lt_compile" 2>conftest.err)
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 if (exit $ac_status) && test -s "$ac_outfile"; then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings other than the usual output.
8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_rtti_exceptions=yes
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8593 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8595 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8596 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8608 lt_prog_compiler_wl=
8609 lt_prog_compiler_pic=
8610 lt_prog_compiler_static=
8613 if test "$GCC" = yes; then
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_static='-static'
8619 # All AIX code is PIC.
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 now supports IA64 processor
8622 lt_prog_compiler_static='-Bstatic'
8629 # see comment about AmigaOS4 .so support
8630 lt_prog_compiler_pic='-fPIC'
8633 # FIXME: we need at least 68020 code to build shared libraries, but
8634 # adding the `-m68020' flag to GCC prevents building anything better,
8636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8642 # PIC is the default for these OSes.
8645 mingw* | cygwin* | pw32* | os2* | cegcc*)
8646 # This hack is so that the source file can tell whether it is being
8647 # built for inclusion in a dll (and should export symbols for example).
8648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8649 # (--disable-auto-import) libraries
8650 lt_prog_compiler_pic='-DDLL_EXPORT'
8653 darwin* | rhapsody*)
8654 # PIC is the default on this platform
8655 # Common symbols not allowed in MH_DYLIB files
8656 lt_prog_compiler_pic='-fno-common'
8660 # PIC is the default for Haiku.
8661 # The "-static" flag exists, but is broken.
8662 lt_prog_compiler_static=
8666 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8667 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8668 # sets the default TLS model and affects inlining.
8674 lt_prog_compiler_pic='-fPIC'
8680 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8681 # Instead, we relocate shared libraries at runtime.
8685 # Just because we use GCC doesn't mean we suddenly get shared libraries
8686 # on systems that don't support them.
8687 lt_prog_compiler_can_build_shared=no
8692 # QNX uses GNU C++, but need to define -shared option too, otherwise
8694 lt_prog_compiler_pic='-fPIC -shared'
8698 if test -d /usr/nec; then
8699 lt_prog_compiler_pic=-Kconform_pic
8704 lt_prog_compiler_pic='-fPIC'
8708 case $cc_basename in
8709 nvcc*) # Cuda Compiler Driver 2.2
8710 lt_prog_compiler_wl='-Xlinker '
8711 if test -n "$lt_prog_compiler_pic"; then
8712 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
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 | 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\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
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=''
8810 *Sun\ F* | *Sun*Fortran*)
8811 lt_prog_compiler_pic='-KPIC'
8812 lt_prog_compiler_static='-Bstatic'
8813 lt_prog_compiler_wl='-Qoption ld '
8817 lt_prog_compiler_pic='-KPIC'
8818 lt_prog_compiler_static='-Bstatic'
8819 lt_prog_compiler_wl='-Wl,'
8821 *Intel*\ [CF]*Compiler*)
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fPIC'
8824 lt_prog_compiler_static='-static'
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_pic='-fpic'
8829 lt_prog_compiler_static='-Bstatic'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8842 # QNX uses GNU C++, but need to define -shared option too, otherwise
8844 lt_prog_compiler_pic='-fPIC -shared'
8847 osf3* | osf4* | osf5*)
8848 lt_prog_compiler_wl='-Wl,'
8849 # All OSF/1 code is PIC.
8850 lt_prog_compiler_static='-non_shared'
8854 lt_prog_compiler_static='-non_shared'
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 case $cc_basename in
8861 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8862 lt_prog_compiler_wl='-Qoption ld ';;
8864 lt_prog_compiler_wl='-Wl,';;
8869 lt_prog_compiler_wl='-Qoption ld '
8870 lt_prog_compiler_pic='-PIC'
8871 lt_prog_compiler_static='-Bstatic'
8874 sysv4 | sysv4.2uw2* | sysv4.3*)
8875 lt_prog_compiler_wl='-Wl,'
8876 lt_prog_compiler_pic='-KPIC'
8877 lt_prog_compiler_static='-Bstatic'
8881 if test -d /usr/nec ;then
8882 lt_prog_compiler_pic='-Kconform_pic'
8883 lt_prog_compiler_static='-Bstatic'
8887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-Bstatic'
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_can_build_shared=no
8899 lt_prog_compiler_pic='-pic'
8900 lt_prog_compiler_static='-Bstatic'
8904 lt_prog_compiler_can_build_shared=no
8910 # For platforms which do not support PIC, -DPIC is meaningless:
8912 lt_prog_compiler_pic=
8915 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8920 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8921 if ${lt_cv_prog_compiler_pic+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8927 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8928 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8931 # Check to make sure the PIC flag actually works.
8933 if test -n "$lt_prog_compiler_pic"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8936 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8937 $as_echo_n "(cached) " >&6
8939 lt_cv_prog_compiler_pic_works=no
8940 ac_outfile=conftest.$ac_objext
8941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8942 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8943 # Insert the option either (1) after the last *FLAGS variable, or
8944 # (2) before a word containing "conftest.", or (3) at the end.
8945 # Note that $ac_compile itself does not contain backslashes and begins
8946 # with a dollar sign (not a hyphen), so the echo should work correctly.
8947 # The option is referenced via a variable to avoid confusing sed.
8948 lt_compile=`echo "$ac_compile" | $SED \
8949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8951 -e 's:$: $lt_compiler_flag:'`
8952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8953 (eval "$lt_compile" 2>conftest.err)
8955 cat conftest.err >&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 if (exit $ac_status) && test -s "$ac_outfile"; then
8958 # The compiler can only warn and ignore the option if not recognized
8959 # So say no if there are warnings other than the usual output.
8960 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8963 lt_cv_prog_compiler_pic_works=yes
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8970 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8973 case $lt_prog_compiler_pic in
8975 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8978 lt_prog_compiler_pic=
8979 lt_prog_compiler_can_build_shared=no
8995 # Check to make sure the static flag actually works.
8997 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9000 if ${lt_cv_prog_compiler_static_works+:} false; then :
9001 $as_echo_n "(cached) " >&6
9003 lt_cv_prog_compiler_static_works=no
9004 save_LDFLAGS="$LDFLAGS"
9005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9008 # The linker can only warn and ignore the option if not recognized
9009 # So say no if there are warnings
9010 if test -s conftest.err; then
9011 # Append any errors to the config.log.
9012 cat conftest.err 1>&5
9013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9015 if diff conftest.exp conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_static_works=yes
9019 lt_cv_prog_compiler_static_works=yes
9023 LDFLAGS="$save_LDFLAGS"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9029 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9032 lt_prog_compiler_static=
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9043 if ${lt_cv_prog_compiler_c_o+:} false; then :
9044 $as_echo_n "(cached) " >&6
9046 lt_cv_prog_compiler_c_o=no
9047 $RM -r conftest 2>/dev/null
9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9053 lt_compiler_flag="-o out/conftest2.$ac_objext"
9054 # Insert the option either (1) after the last *FLAGS variable, or
9055 # (2) before a word containing "conftest.", or (3) at the end.
9056 # Note that $ac_compile itself does not contain backslashes and begins
9057 # with a dollar sign (not a hyphen), so the echo should work correctly.
9058 lt_compile=`echo "$ac_compile" | $SED \
9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061 -e 's:$: $lt_compiler_flag:'`
9062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063 (eval "$lt_compile" 2>out/conftest.err)
9065 cat out/conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9069 # The compiler can only warn and ignore the option if not recognized
9070 # So say no if there are warnings
9071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9072 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9073 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9074 lt_cv_prog_compiler_c_o=yes
9079 # SGI C++ compiler will create directory out/ii_files/ for
9080 # template instantiation
9081 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9082 $RM out/* && rmdir out
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9098 if ${lt_cv_prog_compiler_c_o+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 lt_cv_prog_compiler_c_o=no
9102 $RM -r conftest 2>/dev/null
9106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9108 lt_compiler_flag="-o out/conftest2.$ac_objext"
9109 # Insert the option either (1) after the last *FLAGS variable, or
9110 # (2) before a word containing "conftest.", or (3) at the end.
9111 # Note that $ac_compile itself does not contain backslashes and begins
9112 # with a dollar sign (not a hyphen), so the echo should work correctly.
9113 lt_compile=`echo "$ac_compile" | $SED \
9114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9116 -e 's:$: $lt_compiler_flag:'`
9117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9118 (eval "$lt_compile" 2>out/conftest.err)
9120 cat out/conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9124 # The compiler can only warn and ignore the option if not recognized
9125 # So say no if there are warnings
9126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9129 lt_cv_prog_compiler_c_o=yes
9134 # SGI C++ compiler will create directory out/ii_files/ for
9135 # template instantiation
9136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9137 $RM out/* && rmdir out
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9149 hard_links="nottested"
9150 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9151 # do not overwrite the value of need_locks provided by the user
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9153 $as_echo_n "checking if we can lock with hard links... " >&6; }
9156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9158 ln conftest.a conftest.b 2>&5 || hard_links=no
9159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9161 $as_echo "$hard_links" >&6; }
9162 if test "$hard_links" = no; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9180 allow_undefined_flag=
9181 always_export_symbols=no
9183 archive_expsym_cmds=
9184 compiler_needs_object=no
9185 enable_shared_with_static_runtimes=no
9186 export_dynamic_flag_spec=
9187 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9188 hardcode_automatic=no
9190 hardcode_direct_absolute=no
9191 hardcode_libdir_flag_spec=
9192 hardcode_libdir_separator=
9194 hardcode_shlibpath_var=unsupported
9196 link_all_deplibs=unknown
9199 old_archive_from_new_cmds=
9200 old_archive_from_expsyms_cmds=
9201 thread_safe_flag_spec=
9202 whole_archive_flag_spec=
9203 # include_expsyms should be a list of space-separated symbols to be *always*
9204 # included in the symbol list
9206 # exclude_expsyms can be an extended regexp of symbols to exclude
9207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9209 # as well as any symbol that contains `d'.
9210 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9212 # platforms (ab)use it in PIC code, but their linkers get confused if
9213 # the symbol is explicitly referenced. Since portable code cannot
9214 # rely on this symbol name, it's probably fine to never include it in
9215 # preloaded symbol tables.
9216 # Exclude shared library initialization/finalization symbols.
9217 extract_expsyms_cmds=
9220 cygwin* | mingw* | pw32* | cegcc*)
9221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9222 # When not using gcc, we currently assume that we are using
9223 # Microsoft Visual C++.
9224 if test "$GCC" != yes; then
9229 # we just hope/assume this is gcc and not c89 (= MSVC++)
9235 linux* | k*bsd*-gnu | gnu*)
9242 # On some targets, GNU ld is compatible enough with the native linker
9243 # that we're better off using the native interface for both.
9244 lt_use_gnu_ld_interface=no
9245 if test "$with_gnu_ld" = yes; then
9248 # The AIX port of GNU ld has always aspired to compatibility
9249 # with the native linker. However, as the warning in the GNU ld
9250 # block says, versions before 2.19.5* couldn't really create working
9251 # shared libraries, regardless of the interface used.
9252 case `$LD -v 2>&1` in
9253 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9254 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9255 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9257 lt_use_gnu_ld_interface=yes
9262 lt_use_gnu_ld_interface=yes
9267 if test "$lt_use_gnu_ld_interface" = yes; then
9268 # If archive_cmds runs LD, not CC, wlarc should be empty
9271 # Set some defaults for GNU ld with shared library support. These
9272 # are reset later if shared libraries are not supported. Putting them
9273 # here allows them to be overridden if necessary.
9274 runpath_var=LD_RUN_PATH
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 export_dynamic_flag_spec='${wl}--export-dynamic'
9277 # ancient GNU ld didn't support --whole-archive et. al.
9278 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9279 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9281 whole_archive_flag_spec=
9283 supports_anon_versioning=no
9284 case `$LD -v 2>&1` in
9285 *GNU\ gold*) supports_anon_versioning=yes ;;
9286 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9287 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9288 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9289 *\ 2.11.*) ;; # other 2.11 versions
9290 *) supports_anon_versioning=yes ;;
9293 # See if GNU ld supports shared libraries.
9296 # On AIX/PPC, the GNU linker is very broken
9297 if test "$host_cpu" != ia64; then
9301 *** Warning: the GNU linker, at least up to release 2.19, is reported
9302 *** to be unable to reliably create shared libraries on AIX.
9303 *** Therefore, libtool is disabling shared libraries support. If you
9304 *** really care for shared libraries, you may want to install binutils
9305 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9306 *** You will then need to restart the configuration process.
9315 # see comment about AmigaOS4 .so support
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 archive_expsym_cmds=''
9320 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)'
9321 hardcode_libdir_flag_spec='-L$libdir'
9322 hardcode_minus_L=yes
9328 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9329 allow_undefined_flag=unsupported
9330 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9331 # support --undefined. This deserves some investigation. FIXME
9332 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9338 cygwin* | mingw* | pw32* | cegcc*)
9339 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9340 # as there is no search path for DLLs.
9341 hardcode_libdir_flag_spec='-L$libdir'
9342 export_dynamic_flag_spec='${wl}--export-all-symbols'
9343 allow_undefined_flag=unsupported
9344 always_export_symbols=no
9345 enable_shared_with_static_runtimes=yes
9346 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'
9347 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9349 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9351 # If the export-symbols file already is a .def file (1st line
9352 # is EXPORTS), use it as is; otherwise, prepend...
9353 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9354 cp $export_symbols $output_objdir/$soname.def;
9356 echo EXPORTS > $output_objdir/$soname.def;
9357 cat $export_symbols >> $output_objdir/$soname.def;
9359 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9367 link_all_deplibs=yes
9372 hardcode_shlibpath_var=no
9373 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9374 export_dynamic_flag_spec='${wl}-E'
9375 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9376 # Instead, shared libraries are loaded at an image base (0x10000000 by
9377 # default) and relocated if they conflict, which is a slow very memory
9378 # consuming and fragmenting process. To avoid this, we pick a random,
9379 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9380 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9381 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9382 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'
9385 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9387 if test "$host_os" = linux-dietlibc; then
9388 case $cc_basename in
9389 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9392 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9393 && test "$tmp_diet" = no
9395 tmp_addflag=' $pic_flag'
9396 tmp_sharedflag='-shared'
9397 case $cc_basename,$host_cpu in
9398 pgcc*) # Portland Group C compiler
9399 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'
9400 tmp_addflag=' $pic_flag'
9402 pgf77* | pgf90* | pgf95* | pgfortran*)
9403 # Portland Group f77 and f90 compilers
9404 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'
9405 tmp_addflag=' $pic_flag -Mnomain' ;;
9406 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9407 tmp_addflag=' -i_dynamic' ;;
9408 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9409 tmp_addflag=' -i_dynamic -nofor_main' ;;
9410 ifc* | ifort*) # Intel Fortran compiler
9411 tmp_addflag=' -nofor_main' ;;
9412 lf95*) # Lahey Fortran 8.1
9413 whole_archive_flag_spec=
9414 tmp_sharedflag='--shared' ;;
9415 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9416 tmp_sharedflag='-qmkshrobj'
9418 nvcc*) # Cuda Compiler Driver 2.2
9419 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'
9420 compiler_needs_object=yes
9423 case `$CC -V 2>&1 | sed 5q` in
9424 *Sun\ C*) # Sun C 5.9
9425 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'
9426 compiler_needs_object=yes
9427 tmp_sharedflag='-G' ;;
9428 *Sun\ F*) # Sun Fortran 8.3
9429 tmp_sharedflag='-G' ;;
9431 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 if test "x$supports_anon_versioning" = xyes; then
9434 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9435 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9436 echo "local: *; };" >> $output_objdir/$libname.ver~
9437 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9440 case $cc_basename in
9441 xlf* | bgf* | bgxlf* | mpixlf*)
9442 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9443 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9445 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9446 if test "x$supports_anon_versioning" = xyes; then
9447 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9449 echo "local: *; };" >> $output_objdir/$libname.ver~
9450 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9459 netbsd* | netbsdelf*-gnu)
9460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9461 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9464 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9465 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9470 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9474 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9475 *** create shared libraries on Solaris systems. Therefore, libtool
9476 *** is disabling shared libraries support. We urge you to upgrade GNU
9477 *** binutils to release 2.9.1 or newer. Another option is to modify
9478 *** your PATH or compiler configuration so that the native linker is
9479 *** used, and then restart.
9482 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9491 case `$LD -v 2>&1` in
9492 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9496 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9497 *** reliably create shared libraries on SCO systems. Therefore, libtool
9498 *** is disabling shared libraries support. We urge you to upgrade GNU
9499 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9500 *** your PATH or compiler configuration so that the native linker is
9501 *** used, and then restart.
9506 # For security reasons, it is highly recommended that you always
9507 # use absolute paths for naming shared libraries, and exclude the
9508 # DT_RUNPATH tag from executables and libraries. But doing so
9509 # requires that you compile everything twice, which is a pain.
9510 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9525 hardcode_shlibpath_var=no
9529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9538 if test "$ld_shlibs" = no; then
9540 hardcode_libdir_flag_spec=
9541 export_dynamic_flag_spec=
9542 whole_archive_flag_spec=
9545 # PORTME fill in a description of your system's linker (not GNU ld)
9548 allow_undefined_flag=unsupported
9549 always_export_symbols=yes
9550 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'
9551 # Note: this linker hardcodes the directories in LIBPATH if there
9552 # are no directories specified by -L.
9553 hardcode_minus_L=yes
9554 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9555 # Neither direct hardcoding nor static linking is supported with a
9557 hardcode_direct=unsupported
9562 if test "$host_cpu" = ia64; then
9563 # On IA64, the linker does run time linking by default, so we don't
9564 # have to do anything special.
9565 aix_use_runtimelinking=no
9566 exp_sym_flag='-Bexport'
9569 # If we're using GNU nm, then we don't want the "-C" option.
9570 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9571 # Also, AIX nm treats weak defined symbols like other global
9572 # defined symbols, whereas GNU nm marks them as "W".
9573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9574 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'
9576 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'
9578 aix_use_runtimelinking=no
9580 # Test if we are trying to use run time linking or normal
9581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9582 # need to do runtime linking.
9583 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9584 for ld_flag in $LDFLAGS; do
9585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9586 aix_use_runtimelinking=yes
9593 exp_sym_flag='-bexport'
9594 no_entry_flag='-bnoentry'
9597 # When large executables or shared objects are built, AIX ld can
9598 # have problems creating the table of contents. If linking a library
9599 # or program results in "error TOC overflow" add -mminimal-toc to
9600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9605 hardcode_direct_absolute=yes
9606 hardcode_libdir_separator=':'
9607 link_all_deplibs=yes
9608 file_list_spec='${wl}-f,'
9610 if test "$GCC" = yes; then
9611 case $host_os in aix4.[012]|aix4.[012].*)
9612 # We only want to do this on AIX 4.2 and lower, the check
9613 # below for broken collect2 doesn't work under 4.3+
9614 collect2name=`${CC} -print-prog-name=collect2`
9615 if test -f "$collect2name" &&
9616 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9618 # We have reworked collect2
9621 # We have old collect2
9622 hardcode_direct=unsupported
9623 # It fails to find uninstalled libraries when the uninstalled
9624 # path is not listed in the libpath. Setting hardcode_minus_L
9625 # to unsupported forces relinking
9626 hardcode_minus_L=yes
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_libdir_separator=
9632 shared_flag='-shared'
9633 if test "$aix_use_runtimelinking" = yes; then
9634 shared_flag="$shared_flag "'${wl}-G'
9639 if test "$host_cpu" = ia64; then
9640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641 # chokes on -Wl,-G. The following line is correct:
9644 if test "$aix_use_runtimelinking" = yes; then
9645 shared_flag='${wl}-G'
9647 shared_flag='${wl}-bM:SRE'
9652 export_dynamic_flag_spec='${wl}-bexpall'
9653 # It seems that -bexpall does not export symbols beginning with
9654 # underscore (_), so it is better to generate a list of symbols to export.
9655 always_export_symbols=yes
9656 if test "$aix_use_runtimelinking" = yes; then
9657 # Warning - without using the other runtime loading flags (-brtl),
9658 # -berok will link without error, but may produce a broken library.
9659 allow_undefined_flag='-berok'
9660 # Determine the default libpath from the value encoded in an
9662 if test "${lt_cv_aix_libpath+set}" = set; then
9663 aix_libpath=$lt_cv_aix_libpath
9665 if ${lt_cv_aix_libpath_+:} false; then :
9666 $as_echo_n "(cached) " >&6
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9679 if ac_fn_c_try_link "$LINENO"; then :
9681 lt_aix_libpath_sed='
9682 /Import File Strings/,/^$/ {
9684 s/^0 *\([^ ]*\) *$/\1/
9688 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9689 # Check for a 64-bit object if we didn't find anything.
9690 if test -z "$lt_cv_aix_libpath_"; then
9691 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 if test -z "$lt_cv_aix_libpath_"; then
9697 lt_cv_aix_libpath_="/usr/lib:/lib"
9702 aix_libpath=$lt_cv_aix_libpath_
9705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9706 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"
9708 if test "$host_cpu" = ia64; then
9709 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9710 allow_undefined_flag="-z nodefs"
9711 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"
9713 # Determine the default libpath from the value encoded in an
9715 if test "${lt_cv_aix_libpath+set}" = set; then
9716 aix_libpath=$lt_cv_aix_libpath
9718 if ${lt_cv_aix_libpath_+:} false; then :
9719 $as_echo_n "(cached) " >&6
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9732 if ac_fn_c_try_link "$LINENO"; then :
9734 lt_aix_libpath_sed='
9735 /Import File Strings/,/^$/ {
9737 s/^0 *\([^ ]*\) *$/\1/
9741 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742 # Check for a 64-bit object if we didn't find anything.
9743 if test -z "$lt_cv_aix_libpath_"; then
9744 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 if test -z "$lt_cv_aix_libpath_"; then
9750 lt_cv_aix_libpath_="/usr/lib:/lib"
9755 aix_libpath=$lt_cv_aix_libpath_
9758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9759 # Warning - without using the other run time loading flags,
9760 # -berok will link without error, but may produce a broken library.
9761 no_undefined_flag=' ${wl}-bernotok'
9762 allow_undefined_flag=' ${wl}-berok'
9763 if test "$with_gnu_ld" = yes; then
9764 # We only use this code for GNU lds that support --whole-archive.
9765 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9767 # Exported symbols can be pulled into shared objects from archives
9768 whole_archive_flag_spec='$convenience'
9770 archive_cmds_need_lc=yes
9771 # This is similar to how AIX traditionally builds its shared libraries.
9772 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'
9780 # see comment about AmigaOS4 .so support
9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782 archive_expsym_cmds=''
9785 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)'
9786 hardcode_libdir_flag_spec='-L$libdir'
9787 hardcode_minus_L=yes
9793 export_dynamic_flag_spec=-rdynamic
9796 cygwin* | mingw* | pw32* | cegcc*)
9797 # When not using gcc, we currently assume that we are using
9798 # Microsoft Visual C++.
9799 # hardcode_libdir_flag_spec is actually meaningless, as there is
9800 # no search path for DLLs.
9801 case $cc_basename in
9804 hardcode_libdir_flag_spec=' '
9805 allow_undefined_flag=unsupported
9806 always_export_symbols=yes
9808 # Tell ltmain to make .lib files, not .a files.
9810 # Tell ltmain to make .dll files, not .so files.
9812 # FIXME: Setting linknames here is a bad hack.
9813 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9814 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9815 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9817 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9819 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9821 # The linker will not automatically build a static lib if we build a DLL.
9822 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9823 enable_shared_with_static_runtimes=yes
9824 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9827 old_postinstall_cmds='chmod 644 $oldlib'
9828 postlink_cmds='lt_outputfile="@OUTPUT@"~
9829 lt_tool_outputfile="@TOOL_OUTPUT@"~
9830 case $lt_outputfile in
9833 lt_outputfile="$lt_outputfile.exe"
9834 lt_tool_outputfile="$lt_tool_outputfile.exe"
9837 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9838 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9839 $RM "$lt_outputfile.manifest";
9843 # Assume MSVC wrapper
9844 hardcode_libdir_flag_spec=' '
9845 allow_undefined_flag=unsupported
9846 # Tell ltmain to make .lib files, not .a files.
9848 # Tell ltmain to make .dll files, not .so files.
9850 # FIXME: Setting linknames here is a bad hack.
9851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9852 # The linker will automatically build a .lib file if we build a DLL.
9853 old_archive_from_new_cmds='true'
9854 # FIXME: Should let the user specify the lib program.
9855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9856 enable_shared_with_static_runtimes=yes
9861 darwin* | rhapsody*)
9864 archive_cmds_need_lc=no
9866 hardcode_automatic=yes
9867 hardcode_shlibpath_var=unsupported
9868 if test "$lt_cv_ld_force_load" = "yes"; then
9869 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\"`'
9872 whole_archive_flag_spec=''
9874 link_all_deplibs=yes
9875 allow_undefined_flag="$_lt_dar_allow_undefined"
9876 case $cc_basename in
9877 ifort*) _lt_dar_can_shared=yes ;;
9878 *) _lt_dar_can_shared=$GCC ;;
9880 if test "$_lt_dar_can_shared" = "yes"; then
9881 output_verbose_link_cmd=func_echo_all
9882 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9883 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9884 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}"
9885 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}"
9894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_shlibpath_var=no
9899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9900 # support. Future versions do this automatically, but an explicit c++rt0.o
9901 # does not break anything, and helps significantly (at the cost of a little
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9905 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_shlibpath_var=no
9910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9914 hardcode_minus_L=yes
9915 hardcode_shlibpath_var=no
9918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9919 freebsd* | dragonfly*)
9920 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921 hardcode_libdir_flag_spec='-R$libdir'
9923 hardcode_shlibpath_var=no
9927 if test "$GCC" = yes; then
9928 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'
9930 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'
9932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9933 hardcode_libdir_separator=:
9936 # hardcode_minus_L: Not really in the search PATH,
9937 # but as the default location of the library.
9938 hardcode_minus_L=yes
9939 export_dynamic_flag_spec='${wl}-E'
9943 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9944 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9948 if test "$with_gnu_ld" = no; then
9949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9950 hardcode_libdir_separator=:
9952 hardcode_direct_absolute=yes
9953 export_dynamic_flag_spec='${wl}-E'
9954 # hardcode_minus_L: Not really in the search PATH,
9955 # but as the default location of the library.
9956 hardcode_minus_L=yes
9961 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9964 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9976 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9983 # Older versions of the 11.00 compiler do not understand -b yet
9984 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9986 $as_echo_n "checking if $CC understands -b... " >&6; }
9987 if ${lt_cv_prog_compiler__b+:} false; then :
9988 $as_echo_n "(cached) " >&6
9990 lt_cv_prog_compiler__b=no
9991 save_LDFLAGS="$LDFLAGS"
9992 LDFLAGS="$LDFLAGS -b"
9993 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9994 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9995 # The linker can only warn and ignore the option if not recognized
9996 # So say no if there are warnings
9997 if test -s conftest.err; then
9998 # Append any errors to the config.log.
9999 cat conftest.err 1>&5
10000 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10001 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10002 if diff conftest.exp conftest.er2 >/dev/null; then
10003 lt_cv_prog_compiler__b=yes
10006 lt_cv_prog_compiler__b=yes
10010 LDFLAGS="$save_LDFLAGS"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10014 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10016 if test x"$lt_cv_prog_compiler__b" = xyes; then
10017 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10025 if test "$with_gnu_ld" = no; then
10026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10027 hardcode_libdir_separator=:
10032 hardcode_shlibpath_var=no
10035 hardcode_direct=yes
10036 hardcode_direct_absolute=yes
10037 export_dynamic_flag_spec='${wl}-E'
10039 # hardcode_minus_L: Not really in the search PATH,
10040 # but as the default location of the library.
10041 hardcode_minus_L=yes
10047 irix5* | irix6* | nonstopux*)
10048 if test "$GCC" = yes; then
10049 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'
10050 # Try to use the -exported_symbol ld option, if it does not
10051 # work, assume that -exports_file does not work either and
10052 # implicitly export all symbols.
10053 # This should be the same for all languages, so no per-tag cache variable.
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10055 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10056 if ${lt_cv_irix_exported_symbol+:} false; then :
10057 $as_echo_n "(cached) " >&6
10059 save_LDFLAGS="$LDFLAGS"
10060 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 int foo (void) { return 0; }
10065 if ac_fn_c_try_link "$LINENO"; then :
10066 lt_cv_irix_exported_symbol=yes
10068 lt_cv_irix_exported_symbol=no
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LDFLAGS="$save_LDFLAGS"
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10075 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10076 if test "$lt_cv_irix_exported_symbol" = yes; then
10077 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'
10080 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'
10081 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'
10083 archive_cmds_need_lc='no'
10084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085 hardcode_libdir_separator=:
10087 link_all_deplibs=yes
10090 netbsd* | netbsdelf*-gnu)
10091 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10094 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10096 hardcode_libdir_flag_spec='-R$libdir'
10097 hardcode_direct=yes
10098 hardcode_shlibpath_var=no
10102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_direct=yes
10104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105 hardcode_libdir_separator=:
10106 hardcode_shlibpath_var=no
10113 if test -f /usr/libexec/ld.so; then
10114 hardcode_direct=yes
10115 hardcode_shlibpath_var=no
10116 hardcode_direct_absolute=yes
10117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10121 export_dynamic_flag_spec='${wl}-E'
10124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10126 hardcode_libdir_flag_spec='-R$libdir'
10129 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10130 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10140 hardcode_libdir_flag_spec='-L$libdir'
10141 hardcode_minus_L=yes
10142 allow_undefined_flag=unsupported
10143 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'
10144 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10148 if test "$GCC" = yes; then
10149 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10150 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'
10152 allow_undefined_flag=' -expect_unresolved \*'
10153 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'
10155 archive_cmds_need_lc='no'
10156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10157 hardcode_libdir_separator=:
10160 osf4* | osf5*) # as osf3* with the addition of -msym flag
10161 if test "$GCC" = yes; then
10162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10163 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'
10164 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 allow_undefined_flag=' -expect_unresolved \*'
10167 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'
10168 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~
10169 $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'
10171 # Both c and cxx compiler support -rpath directly
10172 hardcode_libdir_flag_spec='-rpath $libdir'
10174 archive_cmds_need_lc='no'
10175 hardcode_libdir_separator=:
10179 no_undefined_flag=' -z defs'
10180 if test "$GCC" = yes; then
10182 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10184 $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'
10186 case `$CC -V 2>&1` in
10189 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10191 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10195 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10197 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10201 hardcode_libdir_flag_spec='-R$libdir'
10202 hardcode_shlibpath_var=no
10204 solaris2.[0-5] | solaris2.[0-5].*) ;;
10206 # The compiler driver will combine and reorder linker options,
10207 # but understands `-z linker_flag'. GCC discards it without `$wl',
10208 # but is careful enough not to reorder.
10209 # Supported since Solaris 2.6 (maybe 2.5.1?)
10210 if test "$GCC" = yes; then
10211 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10213 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10217 link_all_deplibs=yes
10221 if test "x$host_vendor" = xsequent; then
10222 # Use $CC to link under sequent, because it throws in some extra .o
10223 # files that make .init and .fini sections work.
10224 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10226 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_libdir_flag_spec='-L$libdir'
10229 hardcode_direct=yes
10230 hardcode_minus_L=yes
10231 hardcode_shlibpath_var=no
10235 case $host_vendor in
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_direct=yes # is this really true???
10241 ## LD is ld it makes a PLAMLIB
10242 ## CC just makes a GrossModule.
10243 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10244 reload_cmds='$CC -r -o $output$reload_objs'
10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10252 runpath_var='LD_RUN_PATH'
10253 hardcode_shlibpath_var=no
10257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10258 hardcode_shlibpath_var=no
10259 export_dynamic_flag_spec='-Bexport'
10263 if test -d /usr/nec; then
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_shlibpath_var=no
10266 runpath_var=LD_RUN_PATH
10267 hardcode_runpath_var=yes
10272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10273 no_undefined_flag='${wl}-z,text'
10274 archive_cmds_need_lc=no
10275 hardcode_shlibpath_var=no
10276 runpath_var='LD_RUN_PATH'
10278 if test "$GCC" = yes; then
10279 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 sysv5* | sco3.2v5* | sco5v6*)
10288 # Note: We can NOT use -z defs as we might desire, because we do not
10289 # link with -lc, and that would cause any symbols used from libc to
10290 # always be unresolved, which means just about no library would
10291 # ever link correctly. If we're not using GNU ld we use -z text
10292 # though, which does catch some bad symbols but isn't as heavy-handed
10294 no_undefined_flag='${wl}-z,text'
10295 allow_undefined_flag='${wl}-z,nodefs'
10296 archive_cmds_need_lc=no
10297 hardcode_shlibpath_var=no
10298 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10299 hardcode_libdir_separator=':'
10300 link_all_deplibs=yes
10301 export_dynamic_flag_spec='${wl}-Bexport'
10302 runpath_var='LD_RUN_PATH'
10304 if test "$GCC" = yes; then
10305 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10309 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_libdir_flag_spec='-L$libdir'
10316 hardcode_shlibpath_var=no
10324 if test x$host_vendor = xsni; then
10326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10327 export_dynamic_flag_spec='${wl}-Blargedynsym'
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10334 $as_echo "$ld_shlibs" >&6; }
10335 test "$ld_shlibs" = no && can_build_shared=no
10337 with_gnu_ld=$with_gnu_ld
10354 # Do we need to explicitly link libc?
10356 case "x$archive_cmds_need_lc" in
10358 # Assume -lc should be added
10359 archive_cmds_need_lc=yes
10361 if test "$enable_shared" = yes && test "$GCC" = yes; then
10362 case $archive_cmds in
10364 # FIXME: we may have to deal with multi-command sequences.
10367 # Test whether the compiler implicitly links with -lc since on some
10368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10369 # to ld, don't add -lc before -lgcc.
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10372 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10373 $as_echo_n "(cached) " >&6
10376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10379 (eval $ac_compile) 2>&5
10381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10382 test $ac_status = 0; } 2>conftest.err; then
10385 libobjs=conftest.$ac_objext
10387 wl=$lt_prog_compiler_wl
10388 pic_flag=$lt_prog_compiler_pic
10394 lt_save_allow_undefined_flag=$allow_undefined_flag
10395 allow_undefined_flag=
10396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10397 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400 test $ac_status = 0; }
10402 lt_cv_archive_cmds_need_lc=no
10404 lt_cv_archive_cmds_need_lc=yes
10406 allow_undefined_flag=$lt_save_allow_undefined_flag
10408 cat conftest.err 1>&5
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10414 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10415 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10574 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10576 if test "$GCC" = yes; then
10578 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10579 *) lt_awk_arg="/^libraries:/" ;;
10582 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10583 *) lt_sed_strip_eq="s,=/,/,g" ;;
10585 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10586 case $lt_search_path_spec in
10588 # if the path contains ";" then we assume it to be the separator
10589 # otherwise default to the standard path separator (i.e. ":") - it is
10590 # assumed that no part of a normal pathname contains ";" but that should
10591 # okay in the real world where ";" in dirpaths is itself problematic.
10592 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10595 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10598 # Ok, now we have the path, separated by spaces, we can step through it
10599 # and add multilib dir if necessary.
10600 lt_tmp_lt_search_path_spec=
10601 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10602 for lt_sys_path in $lt_search_path_spec; do
10603 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10604 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10606 test -d "$lt_sys_path" && \
10607 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10610 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10611 BEGIN {RS=" "; FS="/|\n";} {
10614 for (lt_i = NF; lt_i > 0; lt_i--) {
10615 if ($lt_i != "" && $lt_i != ".") {
10616 if ($lt_i == "..") {
10619 if (lt_count == 0) {
10620 lt_foo="/" $lt_i lt_foo;
10627 if (lt_foo != "") { lt_freq[lt_foo]++; }
10628 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10630 # AWK program above erroneously prepends '/' to C:/dos/paths
10633 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10634 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10636 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10638 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10640 library_names_spec=
10641 libname_spec='lib$name'
10645 postuninstall_cmds=
10649 shlibpath_overrides_runpath=unknown
10651 dynamic_linker="$host_os ld.so"
10652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10653 need_lib_prefix=unknown
10654 hardcode_into_libs=no
10656 # when you set need_version to no, make sure it does not cause -set_version
10657 # flags to be left without arguments
10658 need_version=unknown
10662 version_type=linux # correct to gnu/linux during the next big refactor
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10664 shlibpath_var=LIBPATH
10666 # AIX 3 has no versioning support, so we append a major version to the name.
10667 soname_spec='${libname}${release}${shared_ext}$major'
10671 version_type=linux # correct to gnu/linux during the next big refactor
10674 hardcode_into_libs=yes
10675 if test "$host_cpu" = ia64; then
10676 # AIX 5 supports IA64
10677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10678 shlibpath_var=LD_LIBRARY_PATH
10680 # With GCC up to 2.95.x, collect2 would create an import file
10681 # for dependence libraries. The import file would start with
10682 # the line `#! .'. This would cause the generated library to
10683 # depend on `.', always an invalid library. This was fixed in
10684 # development snapshots of GCC prior to 3.0.
10686 aix4 | aix4.[01] | aix4.[01].*)
10687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10689 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10692 can_build_shared=no
10696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10697 # soname into executable. Probably we can add versioning support to
10698 # collect2, so additional links can be useful in future.
10699 if test "$aix_use_runtimelinking" = yes; then
10700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10701 # instead of lib<name>.a to let people know that these are not
10702 # typical AIX shared libraries.
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 # We preserve .a as extension for shared libraries through AIX4.2
10706 # and later when we are not doing run time linking.
10707 library_names_spec='${libname}${release}.a $libname.a'
10708 soname_spec='${libname}${release}${shared_ext}$major'
10710 shlibpath_var=LIBPATH
10717 # Since July 2007 AmigaOS4 officially supports .so libraries.
10718 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 library_names_spec='$libname.ixlibrary $libname.a'
10723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10724 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'
10730 library_names_spec='${libname}${shared_ext}'
10731 dynamic_linker="$host_os ld.so"
10732 shlibpath_var=LIBRARY_PATH
10736 version_type=linux # correct to gnu/linux during the next big refactor
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10744 # the default ld.so.conf also contains /usr/contrib/lib and
10745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10746 # libtool to hard-code these into programs
10749 cygwin* | mingw* | pw32* | cegcc*)
10750 version_type=windows
10755 case $GCC,$cc_basename in
10758 library_names_spec='$libname.dll.a'
10759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10760 postinstall_cmds='base_file=`basename \${file}`~
10761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10762 dldir=$destdir/`dirname \$dlpath`~
10763 test -d \$dldir || mkdir -p \$dldir~
10764 $install_prog $dir/$dlname \$dldir/$dlname~
10765 chmod a+x \$dldir/$dlname~
10766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10770 dlpath=$dir/\$dldll~
10772 shlibpath_overrides_runpath=yes
10776 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10777 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10782 # MinGW DLLs use traditional 'lib' prefix
10783 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10786 # pw32 DLLs use 'pw' prefix rather than 'lib'
10787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10790 dynamic_linker='Win32 ld.exe'
10795 libname_spec='$name'
10796 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10797 library_names_spec='${libname}.dll.lib'
10801 sys_lib_search_path_spec=
10804 for lt_path in $LIB
10807 # Let DOS variable expansion print the short 8.3 style file name.
10808 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10809 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10812 # Convert to MSYS style.
10813 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10816 # Convert to unix form, then to dos form, then back to unix form
10817 # but this time dos style (no spaces!) so that the unix form looks
10818 # like /cygdrive/c/PROGRA~1:/cygdr...
10819 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10820 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10821 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10824 sys_lib_search_path_spec="$LIB"
10825 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10826 # It is most probably a Windows format PATH.
10827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10831 # FIXME: find the short name or the path components, as spaces are
10832 # common. (e.g. "Program Files" -> "PROGRA~1")
10836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10837 postinstall_cmds='base_file=`basename \${file}`~
10838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10839 dldir=$destdir/`dirname \$dlpath`~
10840 test -d \$dldir || mkdir -p \$dldir~
10841 $install_prog $dir/$dlname \$dldir/$dlname'
10842 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10843 dlpath=$dir/\$dldll~
10845 shlibpath_overrides_runpath=yes
10846 dynamic_linker='Win32 link.exe'
10850 # Assume MSVC wrapper
10851 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10852 dynamic_linker='Win32 ld.exe'
10855 # FIXME: first we should search . and the directory the executable is in
10859 darwin* | rhapsody*)
10860 dynamic_linker="$host_os dyld"
10861 version_type=darwin
10864 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10865 soname_spec='${libname}${release}${major}$shared_ext'
10866 shlibpath_overrides_runpath=yes
10867 shlibpath_var=DYLD_LIBRARY_PATH
10868 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10870 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10875 version_type=linux # correct to gnu/linux during the next big refactor
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 shlibpath_var=LD_LIBRARY_PATH
10883 freebsd* | dragonfly*)
10884 # DragonFly does not have aout. When/if they implement a new
10885 # versioning mechanism, adjust this.
10886 if test -x /usr/bin/objformat; then
10887 objformat=`/usr/bin/objformat`
10890 freebsd[23].*) objformat=aout ;;
10891 *) objformat=elf ;;
10894 version_type=freebsd-$objformat
10895 case $version_type in
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10906 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10911 freebsd3.[01]* | freebsdelf3.[01]*)
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10920 *) # from 4.6 on, and DragonFly
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10928 version_type=linux # correct to gnu/linux during the next big refactor
10931 dynamic_linker="$host_os runtime_loader"
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10937 hardcode_into_libs=yes
10940 hpux9* | hpux10* | hpux11*)
10941 # Give a soname corresponding to the major version so that dld.sl refuses to
10942 # link against other versions.
10949 hardcode_into_libs=yes
10950 dynamic_linker="$host_os dld.so"
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 if test "X$HPUX_IA64_MODE" = X32; then
10956 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10958 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964 hardcode_into_libs=yes
10965 dynamic_linker="$host_os dld.sl"
10966 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10975 dynamic_linker="$host_os dld.sl"
10976 shlibpath_var=SHLIB_PATH
10977 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10982 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10983 postinstall_cmds='chmod 555 $lib'
10984 # or fails outright, so override atomically:
10985 install_override_mode=555
10989 version_type=linux # correct to gnu/linux during the next big refactor
10992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10993 soname_spec='${libname}${release}${shared_ext}$major'
10994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10995 shlibpath_var=LD_LIBRARY_PATH
10996 shlibpath_overrides_runpath=no
10997 hardcode_into_libs=yes
11000 irix5* | irix6* | nonstopux*)
11002 nonstopux*) version_type=nonstopux ;;
11004 if test "$lt_cv_prog_gnu_ld" = yes; then
11005 version_type=linux # correct to gnu/linux during the next big refactor
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11015 irix5* | nonstopux*)
11016 libsuff= shlibsuff=
11019 case $LD in # libtool.m4 will add one of these switches to LD
11020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11021 libsuff= shlibsuff= libmagic=32-bit;;
11022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11023 libsuff=32 shlibsuff=N32 libmagic=N32;;
11024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026 *) libsuff= shlibsuff= libmagic=never-match;;
11030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031 shlibpath_overrides_runpath=no
11032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034 hardcode_into_libs=yes
11037 # No shared lib support for Linux oldld, aout, or coff.
11038 linux*oldld* | linux*aout* | linux*coff*)
11042 # This must be glibc/ELF.
11043 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11044 version_type=linux # correct to gnu/linux during the next big refactor
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=no
11053 # Some binutils ld are patched to set DT_RUNPATH
11054 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11055 $as_echo_n "(cached) " >&6
11057 lt_cv_shlibpath_overrides_runpath=no
11058 save_LDFLAGS=$LDFLAGS
11059 save_libdir=$libdir
11060 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11061 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11073 if ac_fn_c_try_link "$LINENO"; then :
11074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11075 lt_cv_shlibpath_overrides_runpath=yes
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LDFLAGS=$save_LDFLAGS
11081 libdir=$save_libdir
11085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11087 # This implies no fast_install, which is unacceptable.
11088 # Some rework will be needed to allow for fast_install
11089 # before this can be enabled.
11090 hardcode_into_libs=yes
11092 # Append ld.so.conf contents to the search path
11093 if test -f /etc/ld.so.conf; then
11094 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' ' '`
11095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11098 # We used to test for /lib/ld.so.1 and disable shared libraries on
11099 # powerpc, because MkLinux only supported shared libraries with the
11100 # GNU dynamic linker. Since this was broken with cross compilers,
11101 # most powerpc-linux boxes support dynamic linking these days and
11102 # people can always --disable-shared, the test was removed, and we
11103 # assume the GNU/Linux dynamic linker is in use.
11104 dynamic_linker='GNU/Linux ld.so'
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11112 soname_spec='${libname}${release}${shared_ext}$major'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=no
11115 hardcode_into_libs=yes
11116 dynamic_linker='NetBSD ld.elf_so'
11123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11126 dynamic_linker='NetBSD (a.out) ld.so'
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 dynamic_linker='NetBSD ld.elf_so'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11134 hardcode_into_libs=yes
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=no
11152 hardcode_into_libs=yes
11153 dynamic_linker='ldqnx.so'
11158 sys_lib_dlsearch_path_spec="/usr/lib"
11160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11163 *) need_version=no ;;
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11170 openbsd2.[89] | openbsd2.[89].*)
11171 shlibpath_overrides_runpath=no
11174 shlibpath_overrides_runpath=yes
11178 shlibpath_overrides_runpath=yes
11183 libname_spec='$name'
11186 library_names_spec='$libname${shared_ext} $libname.a'
11187 dynamic_linker='OS/2 ld.exe'
11188 shlibpath_var=LIBPATH
11191 osf3* | osf4* | osf5*)
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11207 version_type=linux # correct to gnu/linux during the next big refactor
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 hardcode_into_libs=yes
11215 # ldd complains unless libraries are executable
11216 postinstall_cmds='chmod +x $lib'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 if test "$with_gnu_ld" = yes; then
11232 version_type=linux # correct to gnu/linux during the next big refactor
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_vendor in
11238 shlibpath_overrides_runpath=no
11240 runpath_var=LD_RUN_PATH
11248 shlibpath_overrides_runpath=no
11249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11255 if test -d /usr/nec ;then
11256 version_type=linux # correct to gnu/linux during the next big refactor
11257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11258 soname_spec='$libname${shared_ext}.$major'
11259 shlibpath_var=LD_LIBRARY_PATH
11263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11264 version_type=freebsd-elf
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 hardcode_into_libs=yes
11272 if test "$with_gnu_ld" = yes; then
11273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11282 sys_lib_dlsearch_path_spec='/usr/lib'
11286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11287 version_type=linux # correct to gnu/linux during the next big refactor
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 shlibpath_overrides_runpath=no
11293 hardcode_into_libs=yes
11297 version_type=linux # correct to gnu/linux during the next big refactor
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 shlibpath_var=LD_LIBRARY_PATH
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11308 $as_echo "$dynamic_linker" >&6; }
11309 test "$dynamic_linker" = no && can_build_shared=no
11311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11312 if test "$GCC" = yes; then
11313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11319 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11417 if test -n "$hardcode_libdir_flag_spec" ||
11418 test -n "$runpath_var" ||
11419 test "X$hardcode_automatic" = "Xyes" ; then
11421 # We can hardcode non-existent directories.
11422 if test "$hardcode_direct" != no &&
11423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11424 # have to relink, otherwise we might link with an installed library
11425 # when we should be linking with a yet-to-be-installed one
11426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11427 test "$hardcode_minus_L" != no; then
11428 # Linking always hardcodes the temporary library directory.
11429 hardcode_action=relink
11431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11432 hardcode_action=immediate
11435 # We cannot hardcode anything, or else we can only hardcode existing
11437 hardcode_action=unsupported
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11440 $as_echo "$hardcode_action" >&6; }
11442 if test "$hardcode_action" = relink ||
11443 test "$inherit_rpath" = yes; then
11444 # Fast installation is not supported
11445 enable_fast_install=no
11446 elif test "$shlibpath_overrides_runpath" = yes ||
11447 test "$enable_shared" = no; then
11448 # Fast installation is not necessary
11449 enable_fast_install=needless
11457 if test "x$enable_dlopen" != xyes; then
11458 enable_dlopen=unknown
11459 enable_dlopen_self=unknown
11460 enable_dlopen_self_static=unknown
11467 lt_cv_dlopen="load_add_on"
11469 lt_cv_dlopen_self=yes
11472 mingw* | pw32* | cegcc*)
11473 lt_cv_dlopen="LoadLibrary"
11478 lt_cv_dlopen="dlopen"
11483 # if libdl is installed we need to link against it
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11485 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11486 if ${ac_cv_lib_dl_dlopen+:} false; then :
11487 $as_echo_n "(cached) " >&6
11489 ac_check_lib_save_LIBS=$LIBS
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 ac_cv_lib_dl_dlopen=yes
11512 ac_cv_lib_dl_dlopen=no
11514 rm -f core conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11519 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11520 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11524 lt_cv_dlopen="dyld"
11526 lt_cv_dlopen_self=yes
11533 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11534 if test "x$ac_cv_func_shl_load" = xyes; then :
11535 lt_cv_dlopen="shl_load"
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11538 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11539 if ${ac_cv_lib_dld_shl_load+:} false; then :
11540 $as_echo_n "(cached) " >&6
11542 ac_check_lib_save_LIBS=$LIBS
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11557 return shl_load ();
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 ac_cv_lib_dld_shl_load=yes
11565 ac_cv_lib_dld_shl_load=no
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11572 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11573 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11574 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11576 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11577 if test "x$ac_cv_func_dlopen" = xyes; then :
11578 lt_cv_dlopen="dlopen"
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11582 if ${ac_cv_lib_dl_dlopen+:} false; then :
11583 $as_echo_n "(cached) " >&6
11585 ac_check_lib_save_LIBS=$LIBS
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11590 /* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11605 if ac_fn_c_try_link "$LINENO"; then :
11606 ac_cv_lib_dl_dlopen=yes
11608 ac_cv_lib_dl_dlopen=no
11610 rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612 LIBS=$ac_check_lib_save_LIBS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11616 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11620 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11621 if ${ac_cv_lib_svld_dlopen+:} false; then :
11622 $as_echo_n "(cached) " >&6
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lsvld $LIBS"
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11644 if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_lib_svld_dlopen=yes
11647 ac_cv_lib_svld_dlopen=no
11649 rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11654 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11655 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11659 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11660 if ${ac_cv_lib_dld_dld_link+:} false; then :
11661 $as_echo_n "(cached) " >&6
11663 ac_check_lib_save_LIBS=$LIBS
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11678 return dld_link ();
11683 if ac_fn_c_try_link "$LINENO"; then :
11684 ac_cv_lib_dld_dld_link=yes
11686 ac_cv_lib_dld_dld_link=no
11688 rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690 LIBS=$ac_check_lib_save_LIBS
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11693 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11694 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11716 if test "x$lt_cv_dlopen" != xno; then
11722 case $lt_cv_dlopen in
11724 save_CPPFLAGS="$CPPFLAGS"
11725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11727 save_LDFLAGS="$LDFLAGS"
11728 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11731 LIBS="$lt_cv_dlopen_libs $LIBS"
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11734 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11735 if ${lt_cv_dlopen_self+:} false; then :
11736 $as_echo_n "(cached) " >&6
11738 if test "$cross_compiling" = yes; then :
11739 lt_cv_dlopen_self=cross
11741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742 lt_status=$lt_dlunknown
11743 cat > conftest.$ac_ext <<_LT_EOF
11744 #line $LINENO "configure"
11745 #include "confdefs.h"
11754 # define LT_DLGLOBAL RTLD_GLOBAL
11757 # define LT_DLGLOBAL DL_GLOBAL
11759 # define LT_DLGLOBAL 0
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764 find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11770 # define LT_DLLAZY_OR_NOW DL_LAZY
11773 # define LT_DLLAZY_OR_NOW RTLD_NOW
11776 # define LT_DLLAZY_OR_NOW DL_NOW
11778 # define LT_DLLAZY_OR_NOW 0
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786 correspondingly for the symbols needed. */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 int fnord () __attribute__((visibility("default")));
11791 int fnord () { return 42; }
11794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795 int status = $lt_dlunknown;
11799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11803 else puts (dlerror ());
11805 /* dlclose (self); */
11813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814 (eval $ac_link) 2>&5
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818 (./conftest; exit; ) >&5 2>/dev/null
11820 case x$lt_status in
11821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11826 # compilation failed
11827 lt_cv_dlopen_self=no
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11835 $as_echo "$lt_cv_dlopen_self" >&6; }
11837 if test "x$lt_cv_dlopen_self" = xyes; then
11838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11840 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11841 if ${lt_cv_dlopen_self_static+:} false; then :
11842 $as_echo_n "(cached) " >&6
11844 if test "$cross_compiling" = yes; then :
11845 lt_cv_dlopen_self_static=cross
11847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11848 lt_status=$lt_dlunknown
11849 cat > conftest.$ac_ext <<_LT_EOF
11850 #line $LINENO "configure"
11851 #include "confdefs.h"
11860 # define LT_DLGLOBAL RTLD_GLOBAL
11863 # define LT_DLGLOBAL DL_GLOBAL
11865 # define LT_DLGLOBAL 0
11869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11870 find out it does not work in some platform. */
11871 #ifndef LT_DLLAZY_OR_NOW
11873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11876 # define LT_DLLAZY_OR_NOW DL_LAZY
11879 # define LT_DLLAZY_OR_NOW RTLD_NOW
11882 # define LT_DLLAZY_OR_NOW DL_NOW
11884 # define LT_DLLAZY_OR_NOW 0
11891 /* When -fvisbility=hidden is used, assume the code has been annotated
11892 correspondingly for the symbols needed. */
11893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11894 int fnord () __attribute__((visibility("default")));
11897 int fnord () { return 42; }
11900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11901 int status = $lt_dlunknown;
11905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11909 else puts (dlerror ());
11911 /* dlclose (self); */
11919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11920 (eval $ac_link) 2>&5
11922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11924 (./conftest; exit; ) >&5 2>/dev/null
11926 case x$lt_status in
11927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11929 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11932 # compilation failed
11933 lt_cv_dlopen_self_static=no
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11944 CPPFLAGS="$save_CPPFLAGS"
11945 LDFLAGS="$save_LDFLAGS"
11950 case $lt_cv_dlopen_self in
11951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11952 *) enable_dlopen_self=unknown ;;
11955 case $lt_cv_dlopen_self_static in
11956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11957 *) enable_dlopen_self_static=unknown ;;
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11981 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11985 $as_echo "yes" >&6; }
11987 # FIXME - insert some real tests, host_os isn't really good enough
11990 if test -n "$STRIP" ; then
11991 striplib="$STRIP -x"
11992 old_striplib="$STRIP -S"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11994 $as_echo "yes" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 $as_echo "no" >&6; }
12018 # Report which library types will actually be built
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12020 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12022 $as_echo "$can_build_shared" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12025 $as_echo_n "checking whether to build shared libraries... " >&6; }
12026 test "$can_build_shared" = "no" && enable_shared=no
12028 # On AIX, shared libraries and static libraries use the same namespace, and
12029 # are all built from PIC.
12032 test "$enable_shared" = yes && enable_static=no
12033 if test -n "$RANLIB"; then
12034 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12035 postinstall_cmds='$RANLIB $lib'
12040 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12041 test "$enable_shared" = yes && enable_static=no
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12046 $as_echo "$enable_shared" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12049 $as_echo_n "checking whether to build static libraries... " >&6; }
12050 # Make sure either enable_shared or enable_static is yes.
12051 test "$enable_shared" = yes || enable_static=yes
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12053 $as_echo "$enable_static" >&6; }
12060 ac_cpp='$CPP $CPPFLAGS'
12061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12081 ac_config_commands="$ac_config_commands libtool"
12086 # Only expand once:
12092 if test "$enable_libevent_regress" = "yes"; then
12093 BUILD_REGRESS_TRUE=
12094 BUILD_REGRESS_FALSE='#'
12096 BUILD_REGRESS_TRUE='#'
12097 BUILD_REGRESS_FALSE=
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12102 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12103 if ${ac_cv_search_inet_ntoa+:} false; then :
12104 $as_echo_n "(cached) " >&6
12106 ac_func_search_save_LIBS=$LIBS
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12120 return inet_ntoa ();
12125 for ac_lib in '' nsl; do
12126 if test -z "$ac_lib"; then
12127 ac_res="none required"
12130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12132 if ac_fn_c_try_link "$LINENO"; then :
12133 ac_cv_search_inet_ntoa=$ac_res
12135 rm -f core conftest.err conftest.$ac_objext \
12137 if ${ac_cv_search_inet_ntoa+:} false; then :
12141 if ${ac_cv_search_inet_ntoa+:} false; then :
12144 ac_cv_search_inet_ntoa=no
12146 rm conftest.$ac_ext
12147 LIBS=$ac_func_search_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12150 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12151 ac_res=$ac_cv_search_inet_ntoa
12152 if test "$ac_res" != no; then :
12153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12158 $as_echo_n "checking for library containing socket... " >&6; }
12159 if ${ac_cv_search_socket+:} false; then :
12160 $as_echo_n "(cached) " >&6
12162 ac_func_search_save_LIBS=$LIBS
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12166 /* Override any GCC internal prototype to avoid an error.
12167 Use char because int might match the return type of a GCC
12168 builtin and then its argument prototype would still apply. */
12181 for ac_lib in '' socket; do
12182 if test -z "$ac_lib"; then
12183 ac_res="none required"
12186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12188 if ac_fn_c_try_link "$LINENO"; then :
12189 ac_cv_search_socket=$ac_res
12191 rm -f core conftest.err conftest.$ac_objext \
12193 if ${ac_cv_search_socket+:} false; then :
12197 if ${ac_cv_search_socket+:} false; then :
12200 ac_cv_search_socket=no
12202 rm conftest.$ac_ext
12203 LIBS=$ac_func_search_save_LIBS
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12206 $as_echo "$ac_cv_search_socket" >&6; }
12207 ac_res=$ac_cv_search_socket
12208 if test "$ac_res" != no; then :
12209 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12214 $as_echo_n "checking for library containing inet_aton... " >&6; }
12215 if ${ac_cv_search_inet_aton+:} false; then :
12216 $as_echo_n "(cached) " >&6
12218 ac_func_search_save_LIBS=$LIBS
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 /* end confdefs.h. */
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12232 return inet_aton ();
12237 for ac_lib in '' resolv; do
12238 if test -z "$ac_lib"; then
12239 ac_res="none required"
12242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12244 if ac_fn_c_try_link "$LINENO"; then :
12245 ac_cv_search_inet_aton=$ac_res
12247 rm -f core conftest.err conftest.$ac_objext \
12249 if ${ac_cv_search_inet_aton+:} false; then :
12253 if ${ac_cv_search_inet_aton+:} false; then :
12256 ac_cv_search_inet_aton=no
12258 rm conftest.$ac_ext
12259 LIBS=$ac_func_search_save_LIBS
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12262 $as_echo "$ac_cv_search_inet_aton" >&6; }
12263 ac_res=$ac_cv_search_inet_aton
12264 if test "$ac_res" != no; then :
12265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12270 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12271 if ${ac_cv_search_clock_gettime+:} false; then :
12272 $as_echo_n "(cached) " >&6
12274 ac_func_search_save_LIBS=$LIBS
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12278 /* Override any GCC internal prototype to avoid an error.
12279 Use char because int might match the return type of a GCC
12280 builtin and then its argument prototype would still apply. */
12284 char clock_gettime ();
12288 return clock_gettime ();
12293 for ac_lib in '' rt; do
12294 if test -z "$ac_lib"; then
12295 ac_res="none required"
12298 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12300 if ac_fn_c_try_link "$LINENO"; then :
12301 ac_cv_search_clock_gettime=$ac_res
12303 rm -f core conftest.err conftest.$ac_objext \
12305 if ${ac_cv_search_clock_gettime+:} false; then :
12309 if ${ac_cv_search_clock_gettime+:} false; then :
12312 ac_cv_search_clock_gettime=no
12314 rm conftest.$ac_ext
12315 LIBS=$ac_func_search_save_LIBS
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12318 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12319 ac_res=$ac_cv_search_clock_gettime
12320 if test "$ac_res" != no; then :
12321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12326 $as_echo_n "checking for library containing sendfile... " >&6; }
12327 if ${ac_cv_search_sendfile+:} false; then :
12328 $as_echo_n "(cached) " >&6
12330 ac_func_search_save_LIBS=$LIBS
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12344 return sendfile ();
12349 for ac_lib in '' sendfile; do
12350 if test -z "$ac_lib"; then
12351 ac_res="none required"
12354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_search_sendfile=$ac_res
12359 rm -f core conftest.err conftest.$ac_objext \
12361 if ${ac_cv_search_sendfile+:} false; then :
12365 if ${ac_cv_search_sendfile+:} false; then :
12368 ac_cv_search_sendfile=no
12370 rm conftest.$ac_ext
12371 LIBS=$ac_func_search_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12374 $as_echo "$ac_cv_search_sendfile" >&6; }
12375 ac_res=$ac_cv_search_sendfile
12376 if test "$ac_res" != no; then :
12377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12383 $as_echo_n "checking for WIN32... " >&6; }
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12403 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12409 $as_echo_n "checking for CYGWIN... " >&6; }
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12425 if ac_fn_c_try_compile "$LINENO"; then :
12426 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12427 $as_echo "yes" >&6; }
12429 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 for ac_header in zlib.h
12436 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12437 if test "x$ac_cv_header_zlib_h" = xyes; then :
12438 cat >>confdefs.h <<_ACEOF
12439 @%:@define HAVE_ZLIB_H 1
12447 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12453 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12454 if ${ac_cv_search_inflateEnd+:} false; then :
12455 $as_echo_n "(cached) " >&6
12457 ac_func_search_save_LIBS=$LIBS
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12467 char inflateEnd ();
12471 return inflateEnd ();
12476 for ac_lib in '' z; do
12477 if test -z "$ac_lib"; then
12478 ac_res="none required"
12481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 ac_cv_search_inflateEnd=$ac_res
12486 rm -f core conftest.err conftest.$ac_objext \
12488 if ${ac_cv_search_inflateEnd+:} false; then :
12492 if ${ac_cv_search_inflateEnd+:} false; then :
12495 ac_cv_search_inflateEnd=no
12497 rm conftest.$ac_ext
12498 LIBS=$ac_func_search_save_LIBS
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12501 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12502 ac_res=$ac_cv_search_inflateEnd
12503 if test "$ac_res" != no; then :
12504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12508 $as_echo "@%:@define HAVE_LIBZ 1" >>confdefs.h
12515 if test "$have_zlib" = "yes"; then
12517 ZLIB_REGRESS_FALSE='#'
12519 ZLIB_REGRESS_TRUE='#'
12520 ZLIB_REGRESS_FALSE=
12524 if test "$bwin32" = true; then
12525 EV_LIB_WS32=-lws2_32
12535 for ac_header in openssl/bio.h
12537 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12539 cat >>confdefs.h <<_ACEOF
12540 @%:@define HAVE_OPENSSL_BIO_H 1
12548 if test "$enable_openssl" = "yes"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12554 $as_echo_n "checking for library containing SSL_new... " >&6; }
12555 if ${ac_cv_search_SSL_new+:} false; then :
12556 $as_echo_n "(cached) " >&6
12558 ac_func_search_save_LIBS=$LIBS
12559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12577 for ac_lib in '' ssl; do
12578 if test -z "$ac_lib"; then
12579 ac_res="none required"
12582 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12584 if ac_fn_c_try_link "$LINENO"; then :
12585 ac_cv_search_SSL_new=$ac_res
12587 rm -f core conftest.err conftest.$ac_objext \
12589 if ${ac_cv_search_SSL_new+:} false; then :
12593 if ${ac_cv_search_SSL_new+:} false; then :
12596 ac_cv_search_SSL_new=no
12598 rm conftest.$ac_ext
12599 LIBS=$ac_func_search_save_LIBS
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12602 $as_echo "$ac_cv_search_SSL_new" >&6; }
12603 ac_res=$ac_cv_search_SSL_new
12604 if test "$ac_res" != no; then :
12605 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12607 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12609 $as_echo "@%:@define HAVE_OPENSSL 1" >>confdefs.h
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12620 $as_echo_n "checking for ANSI C header files... " >&6; }
12621 if ${ac_cv_header_stdc+:} false; then :
12622 $as_echo_n "(cached) " >&6
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626 #include <stdlib.h>
12627 #include <stdarg.h>
12628 #include <string.h>
12639 if ac_fn_c_try_compile "$LINENO"; then :
12640 ac_cv_header_stdc=yes
12642 ac_cv_header_stdc=no
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test $ac_cv_header_stdc = yes; then
12647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h. */
12650 #include <string.h>
12653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12654 $EGREP "memchr" >/dev/null 2>&1; then :
12657 ac_cv_header_stdc=no
12663 if test $ac_cv_header_stdc = yes; then
12664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <stdlib.h>
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671 $EGREP "free" >/dev/null 2>&1; then :
12674 ac_cv_header_stdc=no
12680 if test $ac_cv_header_stdc = yes; then
12681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12682 if test "$cross_compiling" = yes; then :
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12688 #include <stdlib.h>
12689 #if ((' ' & 0x0FF) == 0x020)
12690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12693 # define ISLOWER(c) \
12694 (('a' <= (c) && (c) <= 'i') \
12695 || ('j' <= (c) && (c) <= 'r') \
12696 || ('s' <= (c) && (c) <= 'z'))
12697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12705 for (i = 0; i < 256; i++)
12706 if (XOR (islower (i), ISLOWER (i))
12707 || toupper (i) != TOUPPER (i))
12712 if ac_fn_c_try_run "$LINENO"; then :
12715 ac_cv_header_stdc=no
12717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12718 conftest.$ac_objext conftest.beam conftest.$ac_ext
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12724 $as_echo "$ac_cv_header_stdc" >&6; }
12725 if test $ac_cv_header_stdc = yes; then
12727 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12731 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12734 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12736 cat >>confdefs.h <<_ACEOF
12737 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12744 for ac_header in sys/stat.h
12746 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12747 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12748 cat >>confdefs.h <<_ACEOF
12749 @%:@define HAVE_SYS_STAT_H 1
12756 for ac_header in sys/sysctl.h
12758 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12759 #ifdef HAVE_SYS_PARAM_H
12760 #include <sys/param.h>
12764 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12765 cat >>confdefs.h <<_ACEOF
12766 @%:@define HAVE_SYS_SYSCTL_H 1
12773 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12775 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12779 #include <sys/queue.h>
12780 #ifdef TAILQ_FOREACH
12785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12786 $EGREP "yes" >/dev/null 2>&1; then :
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12788 $as_echo "yes" >&6; }
12790 $as_echo "@%:@define HAVE_TAILQFOREACH 1" >>confdefs.h
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794 $as_echo "no" >&6; }
12801 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12803 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12807 #include <sys/time.h>
12813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12814 $EGREP "yes" >/dev/null 2>&1; then :
12816 $as_echo "@%:@define HAVE_TIMERADD 1" >>confdefs.h
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12829 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12831 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12835 #include <sys/time.h>
12841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12842 $EGREP "yes" >/dev/null 2>&1; then :
12844 $as_echo "@%:@define HAVE_TIMERCMP 1" >>confdefs.h
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12847 $as_echo "yes" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12857 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12859 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 #include <sys/time.h>
12869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12870 $EGREP "yes" >/dev/null 2>&1; then :
12872 $as_echo "@%:@define HAVE_TIMERCLEAR 1" >>confdefs.h
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12875 $as_echo "yes" >&6; }
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878 $as_echo "no" >&6; }
12885 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12887 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12891 #include <sys/time.h>
12897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12898 $EGREP "yes" >/dev/null 2>&1; then :
12900 $as_echo "@%:@define HAVE_TIMERISSET 1" >>confdefs.h
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903 $as_echo "yes" >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12913 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12914 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12915 #include <sys/sysctl.h>
12918 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12924 cat >>confdefs.h <<_ACEOF
12925 @%:@define HAVE_DECL_CTL_KERN $ac_have_decl
12927 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12928 #include <sys/sysctl.h>
12931 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12937 cat >>confdefs.h <<_ACEOF
12938 @%:@define HAVE_DECL_KERN_RANDOM $ac_have_decl
12940 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12941 #include <sys/sysctl.h>
12944 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12950 cat >>confdefs.h <<_ACEOF
12951 @%:@define HAVE_DECL_RANDOM_UUID $ac_have_decl
12953 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12954 #include <sys/sysctl.h>
12957 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12963 cat >>confdefs.h <<_ACEOF
12964 @%:@define HAVE_DECL_KERN_ARND $ac_have_decl
12969 if test x$bwin32 = xtrue; then
12971 BUILD_WIN32_FALSE='#'
12973 BUILD_WIN32_TRUE='#'
12977 if test x$cygwin = xtrue; then
12979 BUILD_CYGWIN_FALSE='#'
12981 BUILD_CYGWIN_TRUE='#'
12982 BUILD_CYGWIN_FALSE=
12985 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12986 BUILD_WITH_NO_UNDEFINED_TRUE=
12987 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12989 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12990 BUILD_WITH_NO_UNDEFINED_FALSE=
12994 if test x$bwin32 = xtrue; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12996 $as_echo_n "checking for library containing getservbyname... " >&6; }
12997 if ${ac_cv_search_getservbyname+:} false; then :
12998 $as_echo_n "(cached) " >&6
13000 ac_func_search_save_LIBS=$LIBS
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13004 /* Override any GCC internal prototype to avoid an error.
13005 Use char because int might match the return type of a GCC
13006 builtin and then its argument prototype would still apply. */
13010 char getservbyname ();
13014 return getservbyname ();
13019 for ac_lib in '' ws2_32; do
13020 if test -z "$ac_lib"; then
13021 ac_res="none required"
13024 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_search_getservbyname=$ac_res
13029 rm -f core conftest.err conftest.$ac_objext \
13031 if ${ac_cv_search_getservbyname+:} false; then :
13035 if ${ac_cv_search_getservbyname+:} false; then :
13038 ac_cv_search_getservbyname=no
13040 rm conftest.$ac_ext
13041 LIBS=$ac_func_search_save_LIBS
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13044 $as_echo "$ac_cv_search_getservbyname" >&6; }
13045 ac_res=$ac_cv_search_getservbyname
13046 if test "$ac_res" != no; then :
13047 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13054 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13055 if ${ac_cv_c_const+:} false; then :
13056 $as_echo_n "(cached) " >&6
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13065 #ifndef __cplusplus
13066 /* Ultrix mips cc rejects this sort of thing. */
13067 typedef int charset[2];
13068 const charset cs = { 0, 0 };
13069 /* SunOS 4.1.1 cc rejects this. */
13070 char const *const *pcpcc;
13072 /* NEC SVR4.0.2 mips cc rejects this. */
13073 struct point {int x, y;};
13074 static struct point const zero = {0,0};
13075 /* AIX XL C 1.02.0.0 rejects this.
13076 It does not let you subtract one const X* pointer from another in
13077 an arm of an if-expression whose if-part is not a constant
13079 const char *g = "string";
13080 pcpcc = &g + (g ? g-g : 0);
13081 /* HPUX 7.0 cc rejects these. */
13083 ppc = (char**) pcpcc;
13084 pcpcc = (char const *const *) ppc;
13085 { /* SCO 3.2v4 cc rejects this sort of thing. */
13088 char const *s = 0 ? (char *) 0 : (char const *) 0;
13093 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13094 int x[] = {25, 17};
13095 const int *foo = &x[0];
13098 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13099 typedef const int *iptr;
13103 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13104 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13105 struct s { int j; const int *ap[3]; } bx;
13106 struct s *b = &bx; b->j = 5;
13108 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13109 const int foo = 10;
13110 if (!foo) return 0;
13112 return !cs[0] && !zero.x;
13119 if ac_fn_c_try_compile "$LINENO"; then :
13124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13127 $as_echo "$ac_cv_c_const" >&6; }
13128 if test $ac_cv_c_const = no; then
13130 $as_echo "@%:@define const /**/" >>confdefs.h
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13135 $as_echo_n "checking for inline... " >&6; }
13136 if ${ac_cv_c_inline+:} false; then :
13137 $as_echo_n "(cached) " >&6
13140 for ac_kw in inline __inline__ __inline; do
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13143 #ifndef __cplusplus
13145 static $ac_kw foo_t static_foo () {return 0; }
13146 $ac_kw foo_t foo () {return 0; }
13150 if ac_fn_c_try_compile "$LINENO"; then :
13151 ac_cv_c_inline=$ac_kw
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 test "$ac_cv_c_inline" != no && break
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13159 $as_echo "$ac_cv_c_inline" >&6; }
13161 case $ac_cv_c_inline in
13164 case $ac_cv_c_inline in
13166 *) ac_val=$ac_cv_c_inline;;
13168 cat >>confdefs.h <<_ACEOF
13169 #ifndef __cplusplus
13170 #define inline $ac_val
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13177 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13178 if ${ac_cv_header_time+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 #include <sys/types.h>
13184 #include <sys/time.h>
13190 if ((struct tm *) 0)
13196 if ac_fn_c_try_compile "$LINENO"; then :
13197 ac_cv_header_time=yes
13199 ac_cv_header_time=no
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13204 $as_echo "$ac_cv_header_time" >&6; }
13205 if test $ac_cv_header_time = yes; then
13207 $as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
13212 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13217 cat >>confdefs.h <<_ACEOF
13218 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13224 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf arc4random_addrandom issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13229 cat >>confdefs.h <<_ACEOF
13230 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13236 for ac_func in umask
13238 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13239 if test "x$ac_cv_func_umask" = xyes; then :
13240 cat >>confdefs.h <<_ACEOF
13241 @%:@define HAVE_UMASK 1
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13249 $as_echo_n "checking for getaddrinfo... " >&6; }
13250 if ${libevent_cv_getaddrinfo+:} false; then :
13251 $as_echo_n "(cached) " >&6
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13256 #ifdef HAVE_NETDB_H
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 libevent_cv_getaddrinfo=yes
13274 libevent_cv_getaddrinfo=no
13277 rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13282 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13283 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13285 $as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
13289 for ac_func in getservbyname
13291 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13292 if test "x$ac_cv_func_getservbyname" = xyes; then :
13293 cat >>confdefs.h <<_ACEOF
13294 @%:@define HAVE_GETSERVBYNAME 1
13300 # Check for gethostbyname_r in all its glorious incompatible versions.
13301 # (This is cut-and-pasted from Tor, which based its logic on
13302 # Python's configure.in.)
13305 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13306 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13309 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13311 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13322 struct hostent *h1, *h2;
13324 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13330 if ac_fn_c_try_compile "$LINENO"; then :
13332 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13335 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13338 $as_echo "6" >&6; }
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13352 struct hostent *h1;
13354 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13360 if ac_fn_c_try_compile "$LINENO"; then :
13362 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13365 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13368 $as_echo "5" >&6; }
13372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373 /* end confdefs.h. */
13382 struct hostent *h1;
13383 struct hostent_data hd;
13384 (void) gethostbyname_r(cp1,h1,&hd);
13390 if ac_fn_c_try_compile "$LINENO"; then :
13392 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13395 $as_echo "@%:@define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13398 $as_echo "3" >&6; }
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13403 $as_echo "0" >&6; }
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 # The cast to long int works around a bug in the HP C Compiler
13421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13423 # This bug is HP SR number 8606223364.
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13425 $as_echo_n "checking size of long... " >&6; }
13426 if ${ac_cv_sizeof_long+:} false; then :
13427 $as_echo_n "(cached) " >&6
13429 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13432 if test "$ac_cv_type_long" = yes; then
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 as_fn_error 77 "cannot compute sizeof (long)
13436 See \`config.log' for more details" "$LINENO" 5; }
13438 ac_cv_sizeof_long=0
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13444 $as_echo "$ac_cv_sizeof_long" >&6; }
13448 cat >>confdefs.h <<_ACEOF
13449 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13455 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13459 #define _GNU_SOURCE
13466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13467 $EGREP "yes" >/dev/null 2>&1; then :
13469 $as_echo "@%:@define HAVE_SETFD 1" >>confdefs.h
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 $as_echo "yes" >&6; }
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475 $as_echo "no" >&6; }
13482 if test x$bwin32 != xtrue; then
13483 for ac_func in select
13485 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13486 if test "x$ac_cv_func_select" = xyes; then :
13487 cat >>confdefs.h <<_ACEOF
13488 @%:@define HAVE_SELECT 1
13494 if test "x$haveselect" = "xyes" ; then
13498 if test "x$haveselect" = "xyes"; then
13499 SELECT_BACKEND_TRUE=
13500 SELECT_BACKEND_FALSE='#'
13502 SELECT_BACKEND_TRUE='#'
13503 SELECT_BACKEND_FALSE=
13508 for ac_func in poll
13510 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13511 if test "x$ac_cv_func_poll" = xyes; then :
13512 cat >>confdefs.h <<_ACEOF
13513 @%:@define HAVE_POLL 1
13519 if test "x$havepoll" = "xyes" ; then
13522 if test "x$havepoll" = "xyes"; then
13524 POLL_BACKEND_FALSE='#'
13526 POLL_BACKEND_TRUE='#'
13527 POLL_BACKEND_FALSE=
13532 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13534 $as_echo "@%:@define HAVE_DEVPOLL 1" >>confdefs.h
13537 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13538 DEVPOLL_BACKEND_TRUE=
13539 DEVPOLL_BACKEND_FALSE='#'
13541 DEVPOLL_BACKEND_TRUE='#'
13542 DEVPOLL_BACKEND_FALSE=
13547 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13548 for ac_func in kqueue
13550 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13551 if test "x$ac_cv_func_kqueue" = xyes; then :
13552 cat >>confdefs.h <<_ACEOF
13553 @%:@define HAVE_KQUEUE 1
13559 if test "x$havekqueue" = "xyes" ; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13561 $as_echo_n "checking for working kqueue... " >&6; }
13562 if test "$cross_compiling" = yes; then :
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13564 $as_echo "no" >&6; }
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #include <sys/types.h>
13569 #include <sys/time.h>
13570 #include <sys/event.h>
13572 #include <unistd.h>
13576 main(int argc, char **argv)
13582 struct timespec ts;
13585 if (pipe(fd) == -1)
13587 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13590 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13593 if ((kq = kqueue()) == -1)
13596 memset(&ev, 0, sizeof(ev));
13598 ev.filter = EVFILT_WRITE;
13599 ev.flags = EV_ADD | EV_ENABLE;
13600 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13604 read(fd[0], buf, sizeof(buf));
13608 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13609 if (n == -1 || n == 0)
13615 if ac_fn_c_try_run "$LINENO"; then :
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13617 $as_echo "yes" >&6; }
13619 $as_echo "@%:@define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13628 conftest.$ac_objext conftest.beam conftest.$ac_ext
13633 if test "x$havekqueue" = "xyes"; then
13634 KQUEUE_BACKEND_TRUE=
13635 KQUEUE_BACKEND_FALSE='#'
13637 KQUEUE_BACKEND_TRUE='#'
13638 KQUEUE_BACKEND_FALSE=
13642 haveepollsyscall=no
13644 for ac_func in epoll_ctl
13646 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13647 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13648 cat >>confdefs.h <<_ACEOF
13649 @%:@define HAVE_EPOLL_CTL 1
13655 if test "x$haveepoll" = "xyes" ; then
13657 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13661 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13662 if test "x$haveepoll" = "xno" ; then
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13664 $as_echo_n "checking for epoll system call... " >&6; }
13665 if test "$cross_compiling" = yes; then :
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13667 $as_echo "no" >&6; }
13669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13670 /* end confdefs.h. */
13671 #include <stdint.h>
13672 #include <sys/param.h>
13673 #include <sys/types.h>
13674 #include <sys/syscall.h>
13675 #include <sys/epoll.h>
13676 #include <unistd.h>
13679 epoll_create(int size)
13681 return (syscall(__NR_epoll_create, size));
13685 main(int argc, char **argv)
13689 epfd = epoll_create(256);
13690 exit (epfd == -1 ? 1 : 0);
13693 if ac_fn_c_try_run "$LINENO"; then :
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13695 $as_echo "yes" >&6; }
13697 $as_echo "@%:@define HAVE_EPOLL 1" >>confdefs.h
13701 case " $LIB@&t@OBJS " in
13702 *" epoll_sub.$ac_objext "* ) ;;
13703 *) LIB@&t@OBJS="$LIB@&t@OBJS epoll_sub.$ac_objext"
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13710 $as_echo "no" >&6; }
13712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13713 conftest.$ac_objext conftest.beam conftest.$ac_ext
13718 if test "x$haveepoll" = "xyes"; then
13719 EPOLL_BACKEND_TRUE=
13720 EPOLL_BACKEND_FALSE='#'
13722 EPOLL_BACKEND_TRUE='#'
13723 EPOLL_BACKEND_FALSE=
13728 for ac_func in port_create
13730 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13731 if test "x$ac_cv_func_port_create" = xyes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 @%:@define HAVE_PORT_CREATE 1
13739 if test "x$haveeventports" = "xyes" ; then
13741 $as_echo "@%:@define HAVE_EVENT_PORTS 1" >>confdefs.h
13745 if test "x$haveeventports" = "xyes"; then
13746 EVPORT_BACKEND_TRUE=
13747 EVPORT_BACKEND_FALSE='#'
13749 EVPORT_BACKEND_TRUE='#'
13750 EVPORT_BACKEND_FALSE=
13754 if test "x$bwin32" = "xtrue"; then
13758 if test "x$needsignal" = "xyes"; then
13759 SIGNAL_SUPPORT_TRUE=
13760 SIGNAL_SUPPORT_FALSE='#'
13762 SIGNAL_SUPPORT_TRUE='#'
13763 SIGNAL_SUPPORT_FALSE=
13767 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13768 if test "x$ac_cv_type_pid_t" = xyes; then :
13772 cat >>confdefs.h <<_ACEOF
13773 @%:@define pid_t int
13778 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13779 if test "x$ac_cv_type_size_t" = xyes; then :
13783 cat >>confdefs.h <<_ACEOF
13784 @%:@define size_t unsigned int
13789 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13790 if test "x$ac_cv_type_ssize_t" = xyes; then :
13794 cat >>confdefs.h <<_ACEOF
13795 @%:@define ssize_t int
13801 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13802 #include <stdint.h>
13803 #elif defined(HAVE_INTTYPES_H)
13804 #include <inttypes.h>
13806 #ifdef HAVE_SYS_TYPES_H
13807 #include <sys/types.h>
13810 if test "x$ac_cv_type_uint64_t" = xyes; then :
13812 cat >>confdefs.h <<_ACEOF
13813 @%:@define HAVE_UINT64_T 1
13818 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13819 #include <stdint.h>
13820 #elif defined(HAVE_INTTYPES_H)
13821 #include <inttypes.h>
13823 #ifdef HAVE_SYS_TYPES_H
13824 #include <sys/types.h>
13827 if test "x$ac_cv_type_uint32_t" = xyes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 @%:@define HAVE_UINT32_T 1
13835 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13836 #include <stdint.h>
13837 #elif defined(HAVE_INTTYPES_H)
13838 #include <inttypes.h>
13840 #ifdef HAVE_SYS_TYPES_H
13841 #include <sys/types.h>
13844 if test "x$ac_cv_type_uint16_t" = xyes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 @%:@define HAVE_UINT16_T 1
13852 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13853 #include <stdint.h>
13854 #elif defined(HAVE_INTTYPES_H)
13855 #include <inttypes.h>
13857 #ifdef HAVE_SYS_TYPES_H
13858 #include <sys/types.h>
13861 if test "x$ac_cv_type_uint8_t" = xyes; then :
13863 cat >>confdefs.h <<_ACEOF
13864 @%:@define HAVE_UINT8_T 1
13869 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13870 #include <stdint.h>
13871 #elif defined(HAVE_INTTYPES_H)
13872 #include <inttypes.h>
13874 #ifdef HAVE_SYS_TYPES_H
13875 #include <sys/types.h>
13878 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 @%:@define HAVE_UINTPTR_T 1
13888 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13889 #include <sys/types.h>
13891 #ifdef HAVE_SYS_SELECT_H
13892 #include <sys/select.h>
13895 if test "x$ac_cv_type_fd_mask" = xyes; then :
13897 cat >>confdefs.h <<_ACEOF
13898 @%:@define HAVE_FD_MASK 1
13905 # The cast to long int works around a bug in the HP C Compiler
13906 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13907 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13908 # This bug is HP SR number 8606223364.
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13910 $as_echo_n "checking size of long long... " >&6; }
13911 if ${ac_cv_sizeof_long_long+:} false; then :
13912 $as_echo_n "(cached) " >&6
13914 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13917 if test "$ac_cv_type_long_long" = yes; then
13918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13920 as_fn_error 77 "cannot compute sizeof (long long)
13921 See \`config.log' for more details" "$LINENO" 5; }
13923 ac_cv_sizeof_long_long=0
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13929 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13933 cat >>confdefs.h <<_ACEOF
13934 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13938 # The cast to long int works around a bug in the HP C Compiler
13939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13941 # This bug is HP SR number 8606223364.
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13943 $as_echo_n "checking size of long... " >&6; }
13944 if ${ac_cv_sizeof_long+:} false; then :
13945 $as_echo_n "(cached) " >&6
13947 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13950 if test "$ac_cv_type_long" = yes; then
13951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13953 as_fn_error 77 "cannot compute sizeof (long)
13954 See \`config.log' for more details" "$LINENO" 5; }
13956 ac_cv_sizeof_long=0
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13962 $as_echo "$ac_cv_sizeof_long" >&6; }
13966 cat >>confdefs.h <<_ACEOF
13967 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
13971 # The cast to long int works around a bug in the HP C Compiler
13972 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13973 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13974 # This bug is HP SR number 8606223364.
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13976 $as_echo_n "checking size of int... " >&6; }
13977 if ${ac_cv_sizeof_int+:} false; then :
13978 $as_echo_n "(cached) " >&6
13980 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13983 if test "$ac_cv_type_int" = yes; then
13984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13986 as_fn_error 77 "cannot compute sizeof (int)
13987 See \`config.log' for more details" "$LINENO" 5; }
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13995 $as_echo "$ac_cv_sizeof_int" >&6; }
13999 cat >>confdefs.h <<_ACEOF
14000 @%:@define SIZEOF_INT $ac_cv_sizeof_int
14004 # The cast to long int works around a bug in the HP C Compiler
14005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14007 # This bug is HP SR number 8606223364.
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14009 $as_echo_n "checking size of short... " >&6; }
14010 if ${ac_cv_sizeof_short+:} false; then :
14011 $as_echo_n "(cached) " >&6
14013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14016 if test "$ac_cv_type_short" = yes; then
14017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14019 as_fn_error 77 "cannot compute sizeof (short)
14020 See \`config.log' for more details" "$LINENO" 5; }
14022 ac_cv_sizeof_short=0
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14028 $as_echo "$ac_cv_sizeof_short" >&6; }
14032 cat >>confdefs.h <<_ACEOF
14033 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
14037 # The cast to long int works around a bug in the HP C Compiler
14038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14040 # This bug is HP SR number 8606223364.
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14042 $as_echo_n "checking size of size_t... " >&6; }
14043 if ${ac_cv_sizeof_size_t+:} false; then :
14044 $as_echo_n "(cached) " >&6
14046 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14049 if test "$ac_cv_type_size_t" = yes; then
14050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14052 as_fn_error 77 "cannot compute sizeof (size_t)
14053 See \`config.log' for more details" "$LINENO" 5; }
14055 ac_cv_sizeof_size_t=0
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14061 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14065 cat >>confdefs.h <<_ACEOF
14066 @%:@define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14070 # The cast to long int works around a bug in the HP C Compiler
14071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14073 # This bug is HP SR number 8606223364.
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14075 $as_echo_n "checking size of void *... " >&6; }
14076 if ${ac_cv_sizeof_void_p+:} false; then :
14077 $as_echo_n "(cached) " >&6
14079 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14082 if test "$ac_cv_type_void_p" = yes; then
14083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14085 as_fn_error 77 "cannot compute sizeof (void *)
14086 See \`config.log' for more details" "$LINENO" 5; }
14088 ac_cv_sizeof_void_p=0
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14094 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14098 cat >>confdefs.h <<_ACEOF
14099 @%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14104 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14105 #include <sys/types.h>
14106 #ifdef HAVE_NETINET_IN_H
14107 #include <netinet/in.h>
14109 #ifdef HAVE_NETINET_IN6_H
14110 #include <netinet/in6.h>
14112 #ifdef HAVE_SYS_SOCKET_H
14113 #include <sys/socket.h>
14115 #ifdef HAVE_NETDB_H
14119 #define WIN32_WINNT 0x400
14120 #define _WIN32_WINNT 0x400
14121 #define WIN32_LEAN_AND_MEAN
14122 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14123 #include <winsock.h>
14125 #include <winsock2.h>
14126 #include <ws2tcpip.h>
14131 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 @%:@define HAVE_STRUCT_IN6_ADDR 1
14139 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14140 #include <sys/types.h>
14141 #ifdef HAVE_NETINET_IN_H
14142 #include <netinet/in.h>
14144 #ifdef HAVE_NETINET_IN6_H
14145 #include <netinet/in6.h>
14147 #ifdef HAVE_SYS_SOCKET_H
14148 #include <sys/socket.h>
14150 #ifdef HAVE_NETDB_H
14154 #define WIN32_WINNT 0x400
14155 #define _WIN32_WINNT 0x400
14156 #define WIN32_LEAN_AND_MEAN
14157 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14158 #include <winsock.h>
14160 #include <winsock2.h>
14161 #include <ws2tcpip.h>
14166 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14168 cat >>confdefs.h <<_ACEOF
14169 @%:@define HAVE_STRUCT_SOCKADDR_IN6 1
14174 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14175 #include <sys/types.h>
14176 #ifdef HAVE_NETINET_IN_H
14177 #include <netinet/in.h>
14179 #ifdef HAVE_NETINET_IN6_H
14180 #include <netinet/in6.h>
14182 #ifdef HAVE_SYS_SOCKET_H
14183 #include <sys/socket.h>
14185 #ifdef HAVE_NETDB_H
14189 #define WIN32_WINNT 0x400
14190 #define _WIN32_WINNT 0x400
14191 #define WIN32_LEAN_AND_MEAN
14192 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14193 #include <winsock.h>
14195 #include <winsock2.h>
14196 #include <ws2tcpip.h>
14201 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14203 cat >>confdefs.h <<_ACEOF
14204 @%:@define HAVE_SA_FAMILY_T 1
14209 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14210 #include <sys/types.h>
14211 #ifdef HAVE_NETINET_IN_H
14212 #include <netinet/in.h>
14214 #ifdef HAVE_NETINET_IN6_H
14215 #include <netinet/in6.h>
14217 #ifdef HAVE_SYS_SOCKET_H
14218 #include <sys/socket.h>
14220 #ifdef HAVE_NETDB_H
14224 #define WIN32_WINNT 0x400
14225 #define _WIN32_WINNT 0x400
14226 #define WIN32_LEAN_AND_MEAN
14227 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14228 #include <winsock.h>
14230 #include <winsock2.h>
14231 #include <ws2tcpip.h>
14236 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14238 cat >>confdefs.h <<_ACEOF
14239 @%:@define HAVE_STRUCT_ADDRINFO 1
14244 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14245 #include <sys/types.h>
14246 #ifdef HAVE_NETINET_IN_H
14247 #include <netinet/in.h>
14249 #ifdef HAVE_NETINET_IN6_H
14250 #include <netinet/in6.h>
14252 #ifdef HAVE_SYS_SOCKET_H
14253 #include <sys/socket.h>
14255 #ifdef HAVE_NETDB_H
14259 #define WIN32_WINNT 0x400
14260 #define _WIN32_WINNT 0x400
14261 #define WIN32_LEAN_AND_MEAN
14262 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14263 #include <winsock.h>
14265 #include <winsock2.h>
14266 #include <ws2tcpip.h>
14271 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14273 cat >>confdefs.h <<_ACEOF
14274 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE 1
14280 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14281 #ifdef HAVE_NETINET_IN_H
14282 #include <netinet/in.h>
14284 #ifdef HAVE_NETINET_IN6_H
14285 #include <netinet/in6.h>
14287 #ifdef HAVE_SYS_SOCKET_H
14288 #include <sys/socket.h>
14291 #define WIN32_WINNT 0x400
14292 #define _WIN32_WINNT 0x400
14293 #define WIN32_LEAN_AND_MEAN
14294 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14295 #include <winsock.h>
14297 #include <winsock2.h>
14298 #include <ws2tcpip.h>
14303 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14305 cat >>confdefs.h <<_ACEOF
14306 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14311 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14312 #ifdef HAVE_NETINET_IN_H
14313 #include <netinet/in.h>
14315 #ifdef HAVE_NETINET_IN6_H
14316 #include <netinet/in6.h>
14318 #ifdef HAVE_SYS_SOCKET_H
14319 #include <sys/socket.h>
14322 #define WIN32_WINNT 0x400
14323 #define _WIN32_WINNT 0x400
14324 #define WIN32_LEAN_AND_MEAN
14325 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14326 #include <winsock.h>
14328 #include <winsock2.h>
14329 #include <ws2tcpip.h>
14334 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14336 cat >>confdefs.h <<_ACEOF
14337 @%:@define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14342 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14343 #ifdef HAVE_NETINET_IN_H
14344 #include <netinet/in.h>
14346 #ifdef HAVE_NETINET_IN6_H
14347 #include <netinet/in6.h>
14349 #ifdef HAVE_SYS_SOCKET_H
14350 #include <sys/socket.h>
14353 #define WIN32_WINNT 0x400
14354 #define _WIN32_WINNT 0x400
14355 #define WIN32_LEAN_AND_MEAN
14356 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14357 #include <winsock.h>
14359 #include <winsock2.h>
14360 #include <ws2tcpip.h>
14365 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14367 cat >>confdefs.h <<_ACEOF
14368 @%:@define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14373 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14374 #ifdef HAVE_NETINET_IN_H
14375 #include <netinet/in.h>
14377 #ifdef HAVE_NETINET_IN6_H
14378 #include <netinet/in6.h>
14380 #ifdef HAVE_SYS_SOCKET_H
14381 #include <sys/socket.h>
14384 #define WIN32_WINNT 0x400
14385 #define _WIN32_WINNT 0x400
14386 #define WIN32_LEAN_AND_MEAN
14387 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14388 #include <winsock.h>
14390 #include <winsock2.h>
14391 #include <ws2tcpip.h>
14396 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14398 cat >>confdefs.h <<_ACEOF
14399 @%:@define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14404 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14405 #ifdef HAVE_NETINET_IN_H
14406 #include <netinet/in.h>
14408 #ifdef HAVE_NETINET_IN6_H
14409 #include <netinet/in6.h>
14411 #ifdef HAVE_SYS_SOCKET_H
14412 #include <sys/socket.h>
14415 #define WIN32_WINNT 0x400
14416 #define _WIN32_WINNT 0x400
14417 #define WIN32_LEAN_AND_MEAN
14418 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14419 #include <winsock.h>
14421 #include <winsock2.h>
14422 #include <ws2tcpip.h>
14427 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14435 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14436 #ifdef HAVE_NETINET_IN_H
14437 #include <netinet/in.h>
14439 #ifdef HAVE_NETINET_IN6_H
14440 #include <netinet/in6.h>
14442 #ifdef HAVE_SYS_SOCKET_H
14443 #include <sys/socket.h>
14446 #define WIN32_WINNT 0x400
14447 #define _WIN32_WINNT 0x400
14448 #define WIN32_LEAN_AND_MEAN
14449 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14450 #include <winsock.h>
14452 #include <winsock2.h>
14453 #include <ws2tcpip.h>
14458 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14460 cat >>confdefs.h <<_ACEOF
14461 @%:@define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14469 $as_echo_n "checking for socklen_t... " >&6; }
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14473 #include <sys/types.h>
14474 #include <sys/socket.h>
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14490 $as_echo "@%:@define socklen_t unsigned int" >>confdefs.h
14494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14497 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14504 const char *cp = __func__;
14509 if ac_fn_c_try_compile "$LINENO"; then :
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14511 $as_echo "yes" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14516 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14523 const char *cp = __FUNCTION__;
14528 if ac_fn_c_try_compile "$LINENO"; then :
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14530 $as_echo "yes" >&6; }
14532 $as_echo "@%:@define __func__ __FUNCTION__" >>confdefs.h
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14536 $as_echo "no" >&6; }
14538 $as_echo "@%:@define __func__ __FILE__" >>confdefs.h
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14546 # check if we can compile with pthreads
14548 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14553 ac_cpp='$CPP $CPPFLAGS'
14554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14560 # We used to check for pthread.h first, but this fails if pthread.h
14561 # requires special compiler flags (e.g. on True64 or Sequent).
14562 # It gets checked for in the link test anyway.
14564 # First of all, check if the user has set any of the PTHREAD_LIBS,
14565 # etcetera environment variables, and if threads linking works using
14567 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14568 save_CFLAGS="$CFLAGS"
14569 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14571 LIBS="$PTHREAD_LIBS $LIBS"
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14573 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply. */
14583 char pthread_join ();
14587 return pthread_join ();
14592 if ac_fn_c_try_link "$LINENO"; then :
14595 rm -f core conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14598 $as_echo "$acx_pthread_ok" >&6; }
14599 if test x"$acx_pthread_ok" = xno; then
14604 CFLAGS="$save_CFLAGS"
14607 # We must check for the threads library under a number of different
14608 # names; the ordering is very important because some systems
14609 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14610 # libraries is broken (non-POSIX).
14612 # Create a list of thread flags to try. Items starting with a "-" are
14613 # C compiler flags, and other items are library names, except for "none"
14614 # which indicates that we try without any flags at all, and "pthread-config"
14615 # which is a program returning the flags for the Pth emulation library.
14617 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14619 # The ordering *is* (sometimes) important. Some notes on the
14620 # individual items follow:
14622 # pthreads: AIX (must check this before -lpthread)
14623 # none: in case threads are in libc; should be tried before -Kthread and
14624 # other compiler flags to prevent continual compiler warnings
14625 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14626 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14627 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14628 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14629 # -pthreads: Solaris/gcc
14630 # -mthreads: Mingw32/gcc, Lynx/gcc
14631 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14632 # doesn't hurt to check since this sometimes defines pthreads too;
14633 # also defines -D_REENTRANT)
14634 # ... -mt is also the pthreads flag for HP/aCC
14635 # pthread: Linux, etcetera
14636 # --thread-safe: KAI C++
14637 # pthread-config: use pthread-config program (for GNU Pth library)
14639 case "${host_cpu}-${host_os}" in
14642 # On Solaris (at least, for some versions), libc contains stubbed
14643 # (non-functional) versions of the pthreads routines, so link-based
14644 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14645 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14646 # a function called by this macro, so we could check for that, but
14647 # who knows whether they'll stub that too in a future libc.) So,
14648 # we'll just look for -pthreads and -lpthread first:
14650 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14654 if test x"$acx_pthread_ok" = xno; then
14655 for flag in $acx_pthread_flags; do
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14660 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14665 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14666 PTHREAD_CFLAGS="$flag"
14670 # Extract the first word of "pthread-config", so it can be a program name with args.
14671 set dummy pthread-config; ac_word=$2
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14673 $as_echo_n "checking for $ac_word... " >&6; }
14674 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14675 $as_echo_n "(cached) " >&6
14677 if test -n "$acx_pthread_config"; then
14678 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681 for as_dir in $PATH
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687 ac_cv_prog_acx_pthread_config="yes"
14688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14695 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14698 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14699 if test -n "$acx_pthread_config"; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14701 $as_echo "$acx_pthread_config" >&6; }
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14708 if test x"$acx_pthread_config" = xno; then continue; fi
14709 PTHREAD_CFLAGS="`pthread-config --cflags`"
14710 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14715 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14716 PTHREAD_LIBS="-l$flag"
14721 save_CFLAGS="$CFLAGS"
14722 LIBS="$PTHREAD_LIBS $LIBS"
14723 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14725 # Check for various functions. We must include pthread.h,
14726 # since some functions may be macros. (On the Sequent, we
14727 # need a special flag -Kthread to make this header compile.)
14728 # We check for pthread_join because it is in -lpthread on IRIX
14729 # while pthread_create is in libc. We check for pthread_attr_init
14730 # due to DEC craziness with -lpthreads. We check for
14731 # pthread_cleanup_push because it is one of the few pthread
14732 # functions on Solaris that doesn't have a non-functional libc stub.
14733 # We try pthread_create on general principles.
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736 #include <pthread.h>
14740 pthread_t th; pthread_join(th, 0);
14741 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14742 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14747 if ac_fn_c_try_link "$LINENO"; then :
14750 rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14754 CFLAGS="$save_CFLAGS"
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14757 $as_echo "$acx_pthread_ok" >&6; }
14758 if test "x$acx_pthread_ok" = xyes; then
14767 # Various other checks:
14768 if test "x$acx_pthread_ok" = xyes; then
14770 LIBS="$PTHREAD_LIBS $LIBS"
14771 save_CFLAGS="$CFLAGS"
14772 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14776 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14778 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781 #include <pthread.h>
14785 int attr=$attr; return attr;
14790 if ac_fn_c_try_link "$LINENO"; then :
14791 attr_name=$attr; break
14793 rm -f core conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14797 $as_echo "$attr_name" >&6; }
14798 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14800 cat >>confdefs.h <<_ACEOF
14801 @%:@define PTHREAD_CREATE_JOINABLE $attr_name
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14807 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14809 case "${host_cpu}-${host_os}" in
14810 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14811 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14814 $as_echo "${flag}" >&6; }
14815 if test "x$flag" != xno; then
14816 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14820 CFLAGS="$save_CFLAGS"
14822 # More AIX lossage: must compile with xlc_r or cc_r
14823 if test x"$GCC" != xyes; then
14824 for ac_prog in xlc_r cc_r
14826 # Extract the first word of "$ac_prog", so it can be a program name with args.
14827 set dummy $ac_prog; ac_word=$2
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14829 $as_echo_n "checking for $ac_word... " >&6; }
14830 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14831 $as_echo_n "(cached) " >&6
14833 if test -n "$PTHREAD_CC"; then
14834 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14837 for as_dir in $PATH
14840 test -z "$as_dir" && as_dir=.
14841 for ac_exec_ext in '' $ac_executable_extensions; do
14842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14843 ac_cv_prog_PTHREAD_CC="$ac_prog"
14844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14853 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14854 if test -n "$PTHREAD_CC"; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14856 $as_echo "$PTHREAD_CC" >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14859 $as_echo "no" >&6; }
14863 test -n "$PTHREAD_CC" && break
14865 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14878 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14879 if test x"$acx_pthread_ok" = xyes; then
14882 $as_echo "@%:@define HAVE_PTHREADS 1" >>confdefs.h
14891 ac_cpp='$CPP $CPPFLAGS'
14892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14897 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14898 # The cast to long int works around a bug in the HP C Compiler
14899 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14900 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14901 # This bug is HP SR number 8606223364.
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14903 $as_echo_n "checking size of pthread_t... " >&6; }
14904 if ${ac_cv_sizeof_pthread_t+:} false; then :
14905 $as_echo_n "(cached) " >&6
14907 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14908 #include <pthread.h>
14913 if test "$ac_cv_type_pthread_t" = yes; then
14914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14916 as_fn_error 77 "cannot compute sizeof (pthread_t)
14917 See \`config.log' for more details" "$LINENO" 5; }
14919 ac_cv_sizeof_pthread_t=0
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14925 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14929 cat >>confdefs.h <<_ACEOF
14930 @%:@define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14935 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14944 # check if we should compile locking into the library
14945 if test x$enable_thread_support = xno; then
14947 $as_echo "@%:@define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14951 # check if we should hard-code the mm functions.
14952 if test x$enable_malloc_replacement = xno; then
14954 $as_echo "@%:@define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14958 # check if we should hard-code debugging out
14959 if test x$enable_debug_mode = xno; then
14961 $as_echo "@%:@define DISABLE_DEBUG_MODE 1" >>confdefs.h
14965 # check if we have and should use openssl
14966 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14975 # Add some more warnings which we use in development but not in the
14976 # released versions. (Some relevant gcc versions can't handle these.)
14977 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14980 /* end confdefs.h. */
14986 #if !defined(__GNUC__) || (__GNUC__ < 4)
14993 if ac_fn_c_try_compile "$LINENO"; then :
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15007 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15014 if ac_fn_c_try_compile "$LINENO"; then :
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15028 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15035 if ac_fn_c_try_compile "$LINENO"; then :
15040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15049 #if !defined(__clang__)
15056 if ac_fn_c_try_compile "$LINENO"; then :
15061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 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 -Werror"
15064 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15066 if test x$have_gcc4 = xyes ; then
15067 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15068 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15069 #CFLAGS="$CFLAGS -Wold-style-definition"
15072 if test x$have_gcc42 = xyes ; then
15073 # These warnings break gcc 4.0.2 and work on gcc 4.2
15074 CFLAGS="$CFLAGS -Waddress"
15077 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15078 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15079 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15082 if test x$have_gcc45 = xyes ; then
15083 # These warnings work on gcc 4.5
15084 CFLAGS="$CFLAGS -Wlogical-op"
15087 if test x$have_clang = xyes; then
15088 # Disable the unused-function warnings, because these trigger
15089 # for minheap-internal.h related code.
15090 CFLAGS="$CFLAGS -Wno-unused-function"
15092 # clang on macosx emits warnigns for each directory specified which
15093 # isn't "used" generating a lot of build noise (typically 3 warnings
15097 CFLAGS="$CFLAGS -Qunused-arguments"
15102 ##This will break the world on some 64-bit architectures
15103 # CFLAGS="$CFLAGS -Winline"
15107 LIBEVENT_GC_SECTIONS=
15108 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15110 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15111 if ${libevent_cv_gc_sections_runs+:} false; then :
15112 $as_echo_n "(cached) " >&6
15115 origCFLAGS="$CFLAGS"
15116 CFLAGS="$CFLAGS -Wl,--gc-sections"
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15120 #include <stdlib.h>
15130 int read_success_once;
15132 fpC = fopen("conftest.c", "r");
15136 cch = fread(buf, sizeof(buf), 1, fpC);
15137 read_success_once |= (0 != cch);
15138 } while (0 != cch);
15139 if (!read_success_once)
15143 if (0 != fclose(fpC))
15146 exit(EXIT_SUCCESS);
15153 if ac_fn_c_try_link "$LINENO"; then :
15155 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15156 libevent_cv_gc_sections_runs=no
15158 libevent_cv_gc_sections_runs=no
15159 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15163 libevent_cv_gc_sections_runs=no
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 CFLAGS="$origCFLAGS"
15169 { origCFLAGS=; unset origCFLAGS;}
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15174 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15175 case "$libevent_cv_gc_sections_runs" in
15177 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15178 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15184 if test "$enable_libevent_install" = "yes"; then
15185 INSTALL_LIBEVENT_TRUE=
15186 INSTALL_LIBEVENT_FALSE='#'
15188 INSTALL_LIBEVENT_TRUE='#'
15189 INSTALL_LIBEVENT_FALSE=
15193 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15195 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15197 cat >confcache <<\_ACEOF
15198 # This file is a shell script that caches the results of configure
15199 # tests run on this system so they can be shared between configure
15200 # scripts and configure runs, see configure's option --config-cache.
15201 # It is not useful on other systems. If it contains results you don't
15202 # want to keep, you may remove or edit it.
15204 # config.status only pays attention to the cache file if you give it
15205 # the --recheck option to rerun configure.
15207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15209 # following values.
15213 # The following way of writing the cache mishandles newlines in values,
15214 # but we know of no workaround that is simple, portable, and efficient.
15215 # So, we kill variables containing newlines.
15216 # Ultrix sh set writes to stderr and can't be redirected directly,
15217 # and sets the high bit in the cache file unless we assign to the vars.
15219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15220 eval ac_val=\$$ac_var
15224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15228 _ | IFS | as_nl) ;; #(
15229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15230 *) { eval $ac_var=; unset $ac_var;} ;;
15236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15237 *${as_nl}ac_space=\ *)
15238 # `set' does not quote correctly, so add quotes: double-quote
15239 # substitution turns \\\\ into \\, and sed turns \\ into \.
15242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15245 # `set' quotes correctly as required by POSIX, so do not add quotes.
15246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15260 if test -w "$cache_file"; then
15261 if test "x$cache_file" != "x/dev/null"; then
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15263 $as_echo "$as_me: updating cache $cache_file" >&6;}
15264 if test ! -f "$cache_file" || test -h "$cache_file"; then
15265 cat confcache >"$cache_file"
15267 case $cache_file in #(
15269 mv -f confcache "$cache_file"$$ &&
15270 mv -f "$cache_file"$$ "$cache_file" ;; #(
15272 mv -f confcache "$cache_file" ;;
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15278 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15284 # Let make expand exec_prefix.
15285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15287 DEFS=-DHAVE_CONFIG_H
15292 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15293 # 1. Remove the extension, and $U if already installed.
15294 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15295 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15296 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15297 # will be set to the directory where LIBOBJS objects are built.
15298 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15299 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15301 LIB@&t@OBJS=$ac_libobjs
15303 LTLIBOBJS=$ac_ltlibobjs
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15307 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15308 if test -n "$am_sleep_pid"; then
15309 # Hide warnings about reused PIDs.
15310 wait $am_sleep_pid 2>/dev/null
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15313 $as_echo "done" >&6; }
15314 if test -n "$EXEEXT"; then
15316 am__EXEEXT_FALSE='#'
15318 am__EXEEXT_TRUE='#'
15322 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15323 as_fn_error $? "conditional \"AMDEP\" was never defined.
15324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15326 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15327 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15330 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15331 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15335 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15336 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15338 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15339 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15340 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15342 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15343 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15347 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15351 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15355 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15359 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15363 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15367 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15370 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15371 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15374 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15375 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15378 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15379 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15383 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15387 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15391 : "${CONFIG_STATUS=./config.status}"
15393 ac_clean_files_save=$ac_clean_files
15394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15396 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15398 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15400 # Generated by $as_me.
15401 # Run this file to recreate the current configuration.
15402 # Compiler output produced by configure, useful for debugging
15403 # configure, is in config.log if it exists.
15406 ac_cs_recheck=false
15409 SHELL=\${CONFIG_SHELL-$SHELL}
15412 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15413 ## -------------------- ##
15414 ## M4sh Initialization. ##
15415 ## -------------------- ##
15417 # Be more Bourne compatible
15418 DUALCASE=1; export DUALCASE # for MKS sh
15419 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15422 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15423 # is contrary to our usage. Disable this feature.
15424 alias -g '${1+"$@"}'='"$@"'
15425 setopt NO_GLOB_SUBST
15427 case `(set -o) 2>/dev/null` in @%:@(
15429 set -o posix ;; @%:@(
15439 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15440 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15442 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15443 # Prefer a ksh shell builtin over an external printf program on Solaris,
15444 # but without wasting forks for bash or zsh.
15445 if test -z "$BASH_VERSION$ZSH_VERSION" \
15446 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15447 as_echo='print -r --'
15448 as_echo_n='print -rn --'
15449 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15450 as_echo='printf %s\n'
15451 as_echo_n='printf %s'
15453 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15454 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15455 as_echo_n='/usr/ucb/echo -n'
15457 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15458 as_echo_n_body='eval
15462 expr "X$arg" : "X\\(.*\\)$as_nl";
15463 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15465 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15467 export as_echo_n_body
15468 as_echo_n='sh -c $as_echo_n_body as_echo'
15470 export as_echo_body
15471 as_echo='sh -c $as_echo_body as_echo'
15474 # The user is always right.
15475 if test "${PATH_SEPARATOR+set}" != set; then
15477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15478 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15485 # We need space, tab and new line, in precisely that order. Quoting is
15486 # there to prevent editors from complaining about space-tab.
15487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15488 # splitting by setting IFS to empty value.)
15491 # Find who we are. Look in the path if we contain no directory separator.
15494 *[\\/]* ) as_myself=$0 ;;
15495 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496 for as_dir in $PATH
15499 test -z "$as_dir" && as_dir=.
15500 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15506 # We did not find ourselves, most probably we were run as `sh COMMAND'
15507 # in which case we are not to be found in the path.
15508 if test "x$as_myself" = x; then
15511 if test ! -f "$as_myself"; then
15512 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15516 # Unset variables that we do not need and which cause bugs (e.g. in
15517 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15518 # suppresses any "Segmentation fault" message there. '((' could
15519 # trigger a bug in pdksh 5.2.14.
15520 for as_var in BASH_ENV ENV MAIL MAILPATH
15521 do eval test x\${$as_var+set} = xset \
15522 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15535 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15538 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15539 @%:@ ----------------------------------------
15540 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15541 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15542 @%:@ script with STATUS, using 1 if that was 0.
15545 as_status=$1; test $as_status -eq 0 && as_status=1
15547 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15548 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15550 $as_echo "$as_me: error: $2" >&2
15551 as_fn_exit $as_status
15555 @%:@ as_fn_set_status STATUS
15556 @%:@ -----------------------
15557 @%:@ Set @S|@? to STATUS, without forking.
15558 as_fn_set_status ()
15561 } @%:@ as_fn_set_status
15563 @%:@ as_fn_exit STATUS
15564 @%:@ -----------------
15565 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15569 as_fn_set_status $1
15573 @%:@ as_fn_unset VAR
15574 @%:@ ---------------
15575 @%:@ Portably unset VAR.
15578 { eval $1=; unset $1;}
15580 as_unset=as_fn_unset
15581 @%:@ as_fn_append VAR VALUE
15582 @%:@ ----------------------
15583 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15584 @%:@ advantage of any shell optimizations that allow amortized linear growth over
15585 @%:@ repeated appends, instead of the typical quadratic growth present in naive
15586 @%:@ implementations.
15587 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15588 eval 'as_fn_append ()
15599 @%:@ as_fn_arith ARG...
15600 @%:@ ------------------
15601 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15602 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15603 @%:@ must be portable across @S|@(()) and expr.
15604 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15605 eval 'as_fn_arith ()
15612 as_val=`expr "$@" || test $? -eq 1`
15617 if expr a : '\(a\)' >/dev/null 2>&1 &&
15618 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15624 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15625 as_basename=basename
15630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15636 as_me=`$as_basename -- "$0" ||
15637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15638 X"$0" : 'X\(//\)$' \| \
15639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15641 sed '/^.*\/\([^/][^/]*\)\/*$/{
15655 # Avoid depending upon Character Ranges.
15656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15659 as_cr_digits='0123456789'
15660 as_cr_alnum=$as_cr_Letters$as_cr_digits
15662 ECHO_C= ECHO_N= ECHO_T=
15663 case `echo -n x` in @%:@(((((
15665 case `echo 'xy\c'` in
15666 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15668 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15675 rm -f conf$$ conf$$.exe conf$$.file
15676 if test -d conf$$.dir; then
15677 rm -f conf$$.dir/conf$$.file
15680 mkdir conf$$.dir 2>/dev/null
15682 if (echo >conf$$.file) 2>/dev/null; then
15683 if ln -s conf$$.file conf$$ 2>/dev/null; then
15685 # ... but there are two gotchas:
15686 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15687 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15688 # In both cases, we have to default to `cp -pR'.
15689 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15691 elif ln conf$$.file conf$$ 2>/dev/null; then
15699 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15700 rmdir conf$$.dir 2>/dev/null
15705 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15710 -*) as_dir=./$as_dir;;
15712 test -d "$as_dir" || eval $as_mkdir_p || {
15716 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15717 *) as_qdir=$as_dir;;
15719 as_dirs="'$as_qdir' $as_dirs"
15720 as_dir=`$as_dirname -- "$as_dir" ||
15721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15722 X"$as_dir" : 'X\(//\)[^/]' \| \
15723 X"$as_dir" : 'X\(//\)$' \| \
15724 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15725 $as_echo X"$as_dir" |
15726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15730 /^X\(\/\/\)[^/].*/{
15743 test -d "$as_dir" && break
15745 test -z "$as_dirs" || eval "mkdir $as_dirs"
15746 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15749 } @%:@ as_fn_mkdir_p
15750 if mkdir -p . 2>/dev/null; then
15751 as_mkdir_p='mkdir -p "$as_dir"'
15753 test -d ./-p && rmdir ./-p
15758 @%:@ as_fn_executable_p FILE
15759 @%:@ -----------------------
15760 @%:@ Test if FILE is an executable regular file.
15761 as_fn_executable_p ()
15763 test -f "$1" && test -x "$1"
15764 } @%:@ as_fn_executable_p
15765 as_test_x='test -x'
15766 as_executable_p=as_fn_executable_p
15768 # Sed expression to map a string onto a valid CPP name.
15769 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15771 # Sed expression to map a string onto a valid variable name.
15772 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15776 ## ----------------------------------- ##
15777 ## Main body of $CONFIG_STATUS script. ##
15778 ## ----------------------------------- ##
15780 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 # Save the log message, to keep $0 and so on meaningful, and to
15784 # report actual input values of CONFIG_FILES etc. instead of their
15785 # values after options handling.
15787 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15788 generated by GNU Autoconf 2.69. Invocation command line was
15790 CONFIG_FILES = $CONFIG_FILES
15791 CONFIG_HEADERS = $CONFIG_HEADERS
15792 CONFIG_LINKS = $CONFIG_LINKS
15793 CONFIG_COMMANDS = $CONFIG_COMMANDS
15796 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15801 case $ac_config_files in *"
15802 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15805 case $ac_config_headers in *"
15806 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15811 # Files that config.status was made for.
15812 config_files="$ac_config_files"
15813 config_headers="$ac_config_headers"
15814 config_commands="$ac_config_commands"
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15820 \`$as_me' instantiates files and other configuration actions
15821 from templates according to the current configuration. Unless the files
15822 and actions are specified as TAGs, all are instantiated by default.
15824 Usage: $0 [OPTION]... [TAG]...
15826 -h, --help print this help, then exit
15827 -V, --version print version number and configuration settings, then exit
15828 --config print configuration, then exit
15829 -q, --quiet, --silent
15830 do not print progress messages
15831 -d, --debug don't remove temporary files
15832 --recheck update $as_me by reconfiguring in the same conditions
15833 --file=FILE[:TEMPLATE]
15834 instantiate the configuration file FILE
15835 --header=FILE[:TEMPLATE]
15836 instantiate the configuration header FILE
15838 Configuration files:
15841 Configuration headers:
15844 Configuration commands:
15847 Report bugs to the package provider."
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15851 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15853 libevent config.status 2.0.21-stable-dev
15854 configured by $0, generated by GNU Autoconf 2.69,
15855 with options \\"\$ac_cs_config\\"
15857 Copyright (C) 2012 Free Software Foundation, Inc.
15858 This config.status script is free software; the Free Software Foundation
15859 gives unlimited permission to copy, distribute and modify it."
15866 test -n "\$AWK" || AWK=awk
15869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870 # The default lists apply if the user does not specify any file.
15876 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15877 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15893 # Handling of the options.
15894 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15896 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15897 $as_echo "$ac_cs_version"; exit ;;
15898 --config | --confi | --conf | --con | --co | --c )
15899 $as_echo "$ac_cs_config"; exit ;;
15900 --debug | --debu | --deb | --de | --d | -d )
15902 --file | --fil | --fi | --f )
15905 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15906 '') as_fn_error $? "missing file argument" ;;
15908 as_fn_append CONFIG_FILES " '$ac_optarg'"
15909 ac_need_defaults=false;;
15910 --header | --heade | --head | --hea )
15913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15915 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15916 ac_need_defaults=false;;
15918 # Conflict between --help and --header
15919 as_fn_error $? "ambiguous option: \`$1'
15920 Try \`$0 --help' for more information.";;
15921 --help | --hel | -h )
15922 $as_echo "$ac_cs_usage"; exit ;;
15923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15927 # This is an error.
15928 -*) as_fn_error $? "unrecognized option: \`$1'
15929 Try \`$0 --help' for more information." ;;
15931 *) as_fn_append ac_config_targets " $1"
15932 ac_need_defaults=false ;;
15938 ac_configure_extra_args=
15940 if $ac_cs_silent; then
15942 ac_configure_extra_args="$ac_configure_extra_args --silent"
15946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15947 if \$ac_cs_recheck; then
15948 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15951 CONFIG_SHELL='$SHELL'
15952 export CONFIG_SHELL
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15961 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
15962 @%:@@%:@ Running $as_me. @%:@@%:@
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15972 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15975 # The HP-UX ksh and POSIX shell print the target directory to stdout
15976 # if CDPATH is set.
15977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15979 sed_quote_subst='$sed_quote_subst'
15980 double_quote_subst='$double_quote_subst'
15981 delay_variable_subst='$delay_variable_subst'
15982 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15983 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15984 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15985 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15986 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15987 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16018 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16019 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16020 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16021 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16024 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16025 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16026 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16027 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16028 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16029 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16030 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16031 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16032 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16033 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16034 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16035 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16036 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16037 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16038 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"`'
16039 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16040 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16044 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16045 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16049 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16050 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16051 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16052 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16053 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16054 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16055 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16056 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16057 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16058 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16059 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16060 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16061 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16062 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16063 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16064 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16065 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16066 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16067 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16068 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16069 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16070 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16071 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16072 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16081 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16082 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16083 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16084 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16085 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16086 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16105 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16106 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16107 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16108 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16109 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16110 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16111 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16114 LTCFLAGS='$LTCFLAGS'
16115 compiler='$compiler_DEFAULT'
16117 # A function that is used when there is no print builtin or printf.
16118 func_fallback_echo ()
16120 eval 'cat <<_LTECHO_EOF
16125 # Quote evaled strings.
16140 deplibs_check_method \
16145 sharedlib_from_linklib_cmd \
16148 archiver_list_spec \
16154 lt_cv_sys_global_symbol_pipe \
16155 lt_cv_sys_global_symbol_to_cdecl \
16156 lt_cv_sys_global_symbol_to_c_name_address \
16157 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16158 nm_file_list_spec \
16159 lt_prog_compiler_no_builtin_flag \
16160 lt_prog_compiler_pic \
16161 lt_prog_compiler_wl \
16162 lt_prog_compiler_static \
16163 lt_cv_prog_compiler_c_o \
16172 export_dynamic_flag_spec \
16173 whole_archive_flag_spec \
16174 compiler_needs_object \
16176 allow_undefined_flag \
16177 no_undefined_flag \
16178 hardcode_libdir_flag_spec \
16179 hardcode_libdir_separator \
16183 variables_saved_for_relink \
16185 library_names_spec \
16187 install_override_mode \
16191 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16192 *[\\\\\\\`\\"\\\$]*)
16193 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16196 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16201 # Double-quote double-evaled strings.
16202 for var in reload_cmds \
16203 old_postinstall_cmds \
16204 old_postuninstall_cmds \
16206 extract_expsyms_cmds \
16207 old_archive_from_new_cmds \
16208 old_archive_from_expsyms_cmds \
16210 archive_expsym_cmds \
16212 module_expsym_cmds \
16213 export_symbols_cmds \
16217 postuninstall_cmds \
16219 sys_lib_search_path_spec \
16220 sys_lib_dlsearch_path_spec; do
16221 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16222 *[\\\\\\\`\\"\\\$]*)
16223 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16226 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16231 ac_aux_dir='$ac_aux_dir'
16232 xsi_shell='$xsi_shell'
16233 lt_shell_append='$lt_shell_append'
16235 # See if we are running on zsh, and set the options which allow our
16236 # commands through without removal of \ escapes INIT.
16237 if test -n "\${ZSH_VERSION+set}" ; then
16238 setopt NO_GLOB_SUBST
16244 TIMESTAMP='$TIMESTAMP'
16253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16255 # Handling of arguments.
16256 for ac_config_target in $ac_config_targets
16258 case $ac_config_target in
16259 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16260 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16261 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16262 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16263 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16264 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16265 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16266 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16267 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16268 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16270 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16275 # If the user did not use the arguments to specify the items to instantiate,
16276 # then the envvar interface is used. Set only those that are not.
16277 # We use the long form for the default assignment because of an extremely
16278 # bizarre bug on SunOS 4.1.3.
16279 if $ac_need_defaults; then
16280 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16281 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16282 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16285 # Have a temporary directory for convenience. Make it in the build tree
16286 # simply because there is no reason against having it here, and in addition,
16287 # creating and moving files from /tmp can sometimes cause problems.
16288 # Hook for its removal unless debugging.
16289 # Note that there is a small window in which the directory will not be cleaned:
16290 # after its creation but before its name has been assigned to `$tmp'.
16294 trap 'exit_status=$?
16295 : "${ac_tmp:=$tmp}"
16296 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16298 trap 'as_fn_exit 1' 1 2 13 15
16300 # Create a (secure) tmp directory for tmp files.
16303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16307 tmp=./conf$$-$RANDOM
16308 (umask 077 && mkdir "$tmp")
16309 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16312 # Set up the scripts for CONFIG_FILES section.
16313 # No need to generate them if there are no CONFIG_FILES.
16314 # This happens for instance with `./config.status config.h'.
16315 if test -n "$CONFIG_FILES"; then
16318 ac_cr=`echo X | tr X '\015'`
16319 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16320 # But we know of no other shell where ac_cr would be empty at this
16321 # point, so we can use a bashism as a fallback.
16322 if test "x$ac_cr" = x; then
16323 eval ac_cr=\$\'\\r\'
16325 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16326 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16329 ac_cs_awk_cr=$ac_cr
16332 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16337 echo "cat >conf$$subs.awk <<_ACEOF" &&
16338 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16340 } >conf$$subs.sh ||
16341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16342 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16344 for ac_last_try in false false false false false :; do
16345 . ./conf$$subs.sh ||
16346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16348 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16349 if test $ac_delim_n = $ac_delim_num; then
16351 elif $ac_last_try; then
16352 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16354 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16357 rm -f conf$$subs.sh
16359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16360 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16364 s/^/S["/; s/!.*/"]=/
16374 s/\(.\{148\}\)..*/\1/
16376 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16381 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16388 s/\(.\{148\}\)..*/\1/
16390 s/["\\]/\\&/g; s/^/"/; s/$/"/
16394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16399 ' <conf$$subs.awk | sed '
16404 ' >>$CONFIG_STATUS || ac_write_fail=1
16405 rm -f conf$$subs.awk
16406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16408 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16409 for (key in S) S_is_set[key] = 1
16415 nfields = split(line, field, "@")
16417 len = length(field[1])
16418 for (i = 2; i < nfields; i++) {
16420 keylen = length(key)
16421 if (S_is_set[key]) {
16423 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16424 len += length(value) + length(field[++i])
16435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16436 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16437 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16440 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16441 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16444 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16445 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16446 # trailing colons and then remove the whole line if VPATH becomes empty
16447 # (actually we leave an empty line to preserve line numbers).
16448 if test "x$srcdir" = x.; then
16449 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16468 fi # test -n "$CONFIG_FILES"
16470 # Set up the scripts for CONFIG_HEADERS section.
16471 # No need to generate them if there are no CONFIG_HEADERS.
16472 # This happens for instance with `./config.status Makefile'.
16473 if test -n "$CONFIG_HEADERS"; then
16474 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16478 # Transform confdefs.h into an awk script `defines.awk', embedded as
16479 # here-document in config.status, that substitutes the proper values into
16480 # config.h.in to produce config.h.
16482 # Create a delimiter string that does not exist in confdefs.h, to ease
16483 # handling of long lines.
16485 for ac_last_try in false false :; do
16486 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16487 if test -z "$ac_tt"; then
16489 elif $ac_last_try; then
16490 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16492 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16496 # For the awk script, D is an array of macro values keyed by name,
16497 # likewise P contains macro parameters if any. Preserve backslash
16498 # newline sequences.
16500 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16502 s/.\{148\}/&'"$ac_delim"'/g
16505 s/^[ ]*#[ ]*define[ ][ ]*/ /
16512 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16518 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16519 D["\1"]=" \3\\\\\\n"\\/p
16521 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16526 s/.\{148\}/&'"$ac_delim"'/g
16531 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16534 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16536 ' <confdefs.h | sed '
16537 s/'"$ac_delim"'/"\\\
16538 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 for (key in D) D_is_set[key] = 1
16544 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16546 split(line, arg, " ")
16547 if (arg[1] == "#") {
16551 defundef = substr(arg[1], 2)
16554 split(mac1, mac2, "(") #)
16556 prefix = substr(line, 1, index(line, defundef) - 1)
16557 if (D_is_set[macro]) {
16558 # Preserve the white space surrounding the "#".
16559 print prefix "define", macro P[macro] D[macro]
16562 # Replace #undef with comments. This is necessary, for example,
16563 # in the case of _POSIX_SOURCE, which is predefined and required
16564 # on some systems where configure will not decide to define it.
16565 if (defundef == "undef") {
16566 print "/*", prefix defundef, macro, "*/"
16574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16575 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16576 fi # test -n "$CONFIG_HEADERS"
16579 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16584 :[FHLC]) ac_mode=$ac_tag; continue;;
16586 case $ac_mode$ac_tag in
16588 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16589 :[FH]-) ac_tag=-:-;;
16590 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16607 -) ac_f="$ac_tmp/stdin";;
16608 *) # Look for the file first in the build tree, then in the source tree
16609 # (if the path is not absolute). The absolute path cannot be DOS-style,
16610 # because $ac_f cannot contain `:'.
16614 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16616 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16618 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16619 as_fn_append ac_file_inputs " '$ac_f'"
16622 # Let's still pretend it is `configure' which instantiates (i.e., don't
16623 # use $as_me), people would be surprised to read:
16624 # /* config.h. Generated by config.status. */
16625 configure_input='Generated from '`
16626 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16628 if test x"$ac_file" != x-; then
16629 configure_input="$ac_file. $configure_input"
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16631 $as_echo "$as_me: creating $ac_file" >&6;}
16633 # Neutralize special characters interpreted by sed in replacement strings.
16634 case $configure_input in #(
16635 *\&* | *\|* | *\\* )
16636 ac_sed_conf_input=`$as_echo "$configure_input" |
16637 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16638 *) ac_sed_conf_input=$configure_input;;
16642 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16643 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16648 ac_dir=`$as_dirname -- "$ac_file" ||
16649 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650 X"$ac_file" : 'X\(//\)[^/]' \| \
16651 X"$ac_file" : 'X\(//\)$' \| \
16652 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16653 $as_echo X"$ac_file" |
16654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16658 /^X\(\/\/\)[^/].*/{
16671 as_dir="$ac_dir"; as_fn_mkdir_p
16675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16677 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16678 # A ".." for each directory in $ac_dir_suffix.
16679 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16680 case $ac_top_builddir_sub in
16681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16685 ac_abs_top_builddir=$ac_pwd
16686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16687 # for backward compatibility:
16688 ac_top_builddir=$ac_top_build_prefix
16691 .) # We are building in place.
16693 ac_top_srcdir=$ac_top_builddir_sub
16694 ac_abs_top_srcdir=$ac_pwd ;;
16695 [\\/]* | ?:[\\/]* ) # Absolute name.
16696 ac_srcdir=$srcdir$ac_dir_suffix;
16697 ac_top_srcdir=$srcdir
16698 ac_abs_top_srcdir=$srcdir ;;
16699 *) # Relative name.
16700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16701 ac_top_srcdir=$ac_top_build_prefix$srcdir
16702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16717 ac_MKDIR_P=$MKDIR_P
16719 [\\/$]* | ?:[\\/]* ) ;;
16720 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16725 # If the template does not know about datarootdir, expand it.
16726 # FIXME: This hack should be removed a few years after 2.60.
16727 ac_datarootdir_hack=; ac_datarootdir_seen=
16738 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16739 *datarootdir*) ac_datarootdir_seen=yes;;
16740 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16742 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745 ac_datarootdir_hack='
16746 s&@datadir@&$datadir&g
16747 s&@docdir@&$docdir&g
16748 s&@infodir@&$infodir&g
16749 s&@localedir@&$localedir&g
16750 s&@mandir@&$mandir&g
16751 s&\\\${datarootdir}&$datarootdir&g' ;;
16755 # Neutralize VPATH when `$srcdir' = `.'.
16756 # Shell code in configure.ac might set extrasub.
16757 # FIXME: do we really want to maintain this feature?
16758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16759 ac_sed_extra="$ac_vpsub
16762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16765 s|@configure_input@|$ac_sed_conf_input|;t t
16766 s&@top_builddir@&$ac_top_builddir_sub&;t t
16767 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16768 s&@srcdir@&$ac_srcdir&;t t
16769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16770 s&@top_srcdir@&$ac_top_srcdir&;t t
16771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16772 s&@builddir@&$ac_builddir&;t t
16773 s&@abs_builddir@&$ac_abs_builddir&;t t
16774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16775 s&@INSTALL@&$ac_INSTALL&;t t
16776 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16777 $ac_datarootdir_hack
16779 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16780 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16782 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16783 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16784 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16785 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16787 which seems to be undefined. Please make sure it is defined" >&5
16788 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16789 which seems to be undefined. Please make sure it is defined" >&2;}
16791 rm -f "$ac_tmp/stdin"
16793 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16794 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16802 if test x"$ac_file" != x-; then
16804 $as_echo "/* $configure_input */" \
16805 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16806 } >"$ac_tmp/config.h" \
16807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16808 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16810 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16813 mv "$ac_tmp/config.h" "$ac_file" \
16814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16817 $as_echo "/* $configure_input */" \
16818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16819 || as_fn_error $? "could not create -" "$LINENO" 5
16821 # Compute "$ac_file"'s index in $config_headers.
16824 for _am_header in $config_headers :; do
16825 case $_am_header in
16826 $_am_arg | $_am_arg:* )
16829 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16832 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16833 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16834 X"$_am_arg" : 'X\(//\)[^/]' \| \
16835 X"$_am_arg" : 'X\(//\)$' \| \
16836 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16837 $as_echo X"$_am_arg" |
16838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16842 /^X\(\/\/\)[^/].*/{
16854 s/.*/./; q'`/stamp-h$_am_stamp_count
16857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16858 $as_echo "$as_me: executing $ac_file commands" >&6;}
16863 case $ac_file$ac_mode in
16864 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16865 # Older Autoconf quotes --file arguments for eval, but not when files
16866 # are listed without --file. Let's play safe and only enable the eval
16867 # if we detect the quoting.
16868 case $CONFIG_FILES in
16869 *\'*) eval set x "$CONFIG_FILES" ;;
16870 *) set x $CONFIG_FILES ;;
16875 # Strip MF so we end up with the name of the file.
16876 mf=`echo "$mf" | sed -e 's/:.*$//'`
16877 # Check whether this is an Automake generated Makefile or not.
16878 # We used to match only the files named 'Makefile.in', but
16879 # some people rename them; so instead we look at the file content.
16880 # Grep'ing the first line is not enough: some people post-process
16881 # each Makefile.in and add a new line on top of each file to say so.
16882 # Grep'ing the whole file is not good either: AIX grep has a line
16883 # limit of 2048, but all sed's we know have understand at least 4000.
16884 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16885 dirpart=`$as_dirname -- "$mf" ||
16886 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16887 X"$mf" : 'X\(//\)[^/]' \| \
16888 X"$mf" : 'X\(//\)$' \| \
16889 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16895 /^X\(\/\/\)[^/].*/{
16911 # Extract the definition of DEPDIR, am__include, and am__quote
16912 # from the Makefile without running 'make'.
16913 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16914 test -z "$DEPDIR" && continue
16915 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16916 test -z "$am__include" && continue
16917 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16918 # Find all dependency output files, they are included files with
16919 # $(DEPDIR) in their names. We invoke sed twice because it is the
16920 # simplest approach to changing $(DEPDIR) to its actual value in the
16922 for file in `sed -n "
16923 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16924 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16925 # Make sure the directory exists.
16926 test -f "$dirpart/$file" && continue
16927 fdir=`$as_dirname -- "$file" ||
16928 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16929 X"$file" : 'X\(//\)[^/]' \| \
16930 X"$file" : 'X\(//\)$' \| \
16931 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16932 $as_echo X"$file" |
16933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16937 /^X\(\/\/\)[^/].*/{
16950 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16951 # echo "creating $dirpart/$file"
16952 echo '# dummy' > "$dirpart/$file"
16959 # See if we are running on zsh, and set the options which allow our
16960 # commands through without removal of \ escapes.
16961 if test -n "${ZSH_VERSION+set}" ; then
16962 setopt NO_GLOB_SUBST
16965 cfgfile="${ofile}T"
16966 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16969 cat <<_LT_EOF >> "$cfgfile"
16972 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16973 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16974 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16975 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16977 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16978 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16980 # Written by Gordon Matzigkeit, 1996
16982 # This file is part of GNU Libtool.
16984 # GNU Libtool is free software; you can redistribute it and/or
16985 # modify it under the terms of the GNU General Public License as
16986 # published by the Free Software Foundation; either version 2 of
16987 # the License, or (at your option) any later version.
16989 # As a special exception to the GNU General Public License,
16990 # if you distribute this file as part of a program or library that
16991 # is built using GNU Libtool, you may include this file under the
16992 # same distribution terms that you use for the rest of that program.
16994 # GNU Libtool is distributed in the hope that it will be useful,
16995 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16996 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16997 # GNU General Public License for more details.
16999 # You should have received a copy of the GNU General Public License
17000 # along with GNU Libtool; see the file COPYING. If not, a copy
17001 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17002 # obtained by writing to the Free Software Foundation, Inc.,
17003 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17006 # The names of the tagged configurations supported by this script.
17009 # ### BEGIN LIBTOOL CONFIG
17011 # Which release of libtool.m4 was used?
17012 macro_version=$macro_version
17013 macro_revision=$macro_revision
17015 # Whether or not to build shared libraries.
17016 build_libtool_libs=$enable_shared
17018 # Whether or not to build static libraries.
17019 build_old_libs=$enable_static
17021 # What type of objects to build.
17024 # Whether or not to optimize for fast installation.
17025 fast_install=$enable_fast_install
17027 # Shell to use when invoking shell scripts.
17030 # An echo program that protects backslashes.
17033 # The PATH separator for the build system.
17034 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17037 host_alias=$host_alias
17041 # The build system.
17042 build_alias=$build_alias
17046 # A sed program that does not truncate output.
17049 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17050 Xsed="\$SED -e 1s/^X//"
17052 # A grep program that handles long lines.
17058 # A literal string matcher.
17061 # A BSD- or MS-compatible name lister.
17064 # Whether we need soft or hard links.
17067 # What is the maximum length of a command?
17068 max_cmd_len=$max_cmd_len
17070 # Object file suffix (normally "o").
17073 # Executable file suffix (normally "").
17076 # whether the shell understands "unset".
17079 # turn spaces into newlines.
17082 # turn newlines into spaces.
17085 # convert \$build file names to \$host format.
17086 to_host_file_cmd=$lt_cv_to_host_file_cmd
17088 # convert \$build files to toolchain format.
17089 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17091 # An object symbol dumper.
17092 OBJDUMP=$lt_OBJDUMP
17094 # Method to check whether dependent libraries are shared objects.
17095 deplibs_check_method=$lt_deplibs_check_method
17097 # Command to use when deplibs_check_method = "file_magic".
17098 file_magic_cmd=$lt_file_magic_cmd
17100 # How to find potential files when deplibs_check_method = "file_magic".
17101 file_magic_glob=$lt_file_magic_glob
17103 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17104 want_nocaseglob=$lt_want_nocaseglob
17106 # DLL creation program.
17107 DLLTOOL=$lt_DLLTOOL
17109 # Command to associate shared and link libraries.
17110 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17115 # Flags to create an archive.
17116 AR_FLAGS=$lt_AR_FLAGS
17118 # How to feed a file listing to the archiver.
17119 archiver_list_spec=$lt_archiver_list_spec
17121 # A symbol stripping program.
17124 # Commands used to install an old-style archive.
17126 old_postinstall_cmds=$lt_old_postinstall_cmds
17127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17129 # Whether to use a lock for old archive extraction.
17130 lock_old_archive_extraction=$lock_old_archive_extraction
17135 # LTCC compiler flags.
17136 LTCFLAGS=$lt_CFLAGS
17138 # Take the output of nm and produce a listing of raw symbols and C names.
17139 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17141 # Transform the output of nm in a proper C declaration.
17142 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17144 # Transform the output of nm in a C name address pair.
17145 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17147 # Transform the output of nm in a C name address pair when lib prefix is needed.
17148 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17150 # Specify filename containing input files for \$NM.
17151 nm_file_list_spec=$lt_nm_file_list_spec
17153 # The root where to search for dependent libraries,and in which our libraries should be installed.
17154 lt_sysroot=$lt_sysroot
17156 # The name of the directory that contains temporary libtool files.
17159 # Used to examine libraries when file_magic_cmd begins with "file".
17160 MAGIC_CMD=$MAGIC_CMD
17162 # Must we lock files when doing compilation?
17163 need_locks=$lt_need_locks
17166 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17168 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17169 DSYMUTIL=$lt_DSYMUTIL
17171 # Tool to change global to local symbols on Mac OS X.
17174 # Tool to manipulate fat objects and archives on Mac OS X.
17177 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17180 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17181 OTOOL64=$lt_OTOOL64
17183 # Old archive suffix (normally "a").
17186 # Shared library suffix (normally ".so").
17187 shrext_cmds=$lt_shrext_cmds
17189 # The commands to extract the exported symbol list from a shared archive.
17190 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17192 # Variables whose values should be saved in libtool wrapper scripts and
17193 # restored at link time.
17194 variables_saved_for_relink=$lt_variables_saved_for_relink
17196 # Do we need the "lib" prefix for modules?
17197 need_lib_prefix=$need_lib_prefix
17199 # Do we need a version for libraries?
17200 need_version=$need_version
17202 # Library versioning type.
17203 version_type=$version_type
17205 # Shared library runtime path variable.
17206 runpath_var=$runpath_var
17208 # Shared library path variable.
17209 shlibpath_var=$shlibpath_var
17211 # Is shlibpath searched before the hard-coded library search path?
17212 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17214 # Format of library name prefix.
17215 libname_spec=$lt_libname_spec
17217 # List of archive names. First name is the real one, the rest are links.
17218 # The last name is the one that the linker finds with -lNAME
17219 library_names_spec=$lt_library_names_spec
17221 # The coded name of the library, if different from the real name.
17222 soname_spec=$lt_soname_spec
17224 # Permission mode override for installation of shared libraries.
17225 install_override_mode=$lt_install_override_mode
17227 # Command to use after installation of a shared archive.
17228 postinstall_cmds=$lt_postinstall_cmds
17230 # Command to use after uninstallation of a shared archive.
17231 postuninstall_cmds=$lt_postuninstall_cmds
17233 # Commands used to finish a libtool library installation in a directory.
17234 finish_cmds=$lt_finish_cmds
17236 # As "finish_cmds", except a single script fragment to be evaled but
17238 finish_eval=$lt_finish_eval
17240 # Whether we should hardcode library paths into libraries.
17241 hardcode_into_libs=$hardcode_into_libs
17243 # Compile-time system search path for libraries.
17244 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17246 # Run-time system search path for libraries.
17247 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17249 # Whether dlopen is supported.
17250 dlopen_support=$enable_dlopen
17252 # Whether dlopen of programs is supported.
17253 dlopen_self=$enable_dlopen_self
17255 # Whether dlopen of statically linked programs is supported.
17256 dlopen_self_static=$enable_dlopen_self_static
17258 # Commands to strip libraries.
17259 old_striplib=$lt_old_striplib
17260 striplib=$lt_striplib
17263 # The linker used to build libraries.
17266 # How to create reloadable object files.
17267 reload_flag=$lt_reload_flag
17268 reload_cmds=$lt_reload_cmds
17270 # Commands used to build an old-style archive.
17271 old_archive_cmds=$lt_old_archive_cmds
17273 # A language specific compiler.
17276 # Is the compiler the GNU compiler?
17279 # Compiler flag to turn off builtin functions.
17280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17282 # Additional compiler flags for building library objects.
17283 pic_flag=$lt_lt_prog_compiler_pic
17285 # How to pass a linker flag through the compiler.
17286 wl=$lt_lt_prog_compiler_wl
17288 # Compiler flag to prevent dynamic linking.
17289 link_static_flag=$lt_lt_prog_compiler_static
17291 # Does compiler simultaneously support -c and -o options?
17292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17294 # Whether or not to add -lc for building shared libraries.
17295 build_libtool_need_lc=$archive_cmds_need_lc
17297 # Whether or not to disallow shared libs when runtime libs are static.
17298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17300 # Compiler flag to allow reflexive dlopens.
17301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17303 # Compiler flag to generate shared objects directly from archives.
17304 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17306 # Whether the compiler copes with passing no objects directly.
17307 compiler_needs_object=$lt_compiler_needs_object
17309 # Create an old-style archive from a shared archive.
17310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17312 # Create a temporary old-style archive to link instead of a shared archive.
17313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17315 # Commands used to build a shared archive.
17316 archive_cmds=$lt_archive_cmds
17317 archive_expsym_cmds=$lt_archive_expsym_cmds
17319 # Commands used to build a loadable module if different from building
17320 # a shared archive.
17321 module_cmds=$lt_module_cmds
17322 module_expsym_cmds=$lt_module_expsym_cmds
17324 # Whether we are building with GNU ld or not.
17325 with_gnu_ld=$lt_with_gnu_ld
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag
17330 # Flag that enforces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag
17333 # Flag to hardcode \$libdir into a binary during linking.
17334 # This must work even if \$libdir does not exist
17335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17337 # Whether we need a single "-rpath" flag with a separated argument.
17338 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17340 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17341 # DIR into the resulting binary.
17342 hardcode_direct=$hardcode_direct
17344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17345 # DIR into the resulting binary and the resulting library dependency is
17346 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17347 # library is relocated.
17348 hardcode_direct_absolute=$hardcode_direct_absolute
17350 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17351 # into the resulting binary.
17352 hardcode_minus_L=$hardcode_minus_L
17354 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17355 # into the resulting binary.
17356 hardcode_shlibpath_var=$hardcode_shlibpath_var
17358 # Set to "yes" if building a shared library automatically hardcodes DIR
17359 # into the library and all subsequent libraries and executables linked
17361 hardcode_automatic=$hardcode_automatic
17363 # Set to yes if linker adds runtime paths of dependent libraries
17364 # to runtime path list.
17365 inherit_rpath=$inherit_rpath
17367 # Whether libtool must link a program against all its dependency libraries.
17368 link_all_deplibs=$link_all_deplibs
17370 # Set to "yes" if exported symbols are required.
17371 always_export_symbols=$always_export_symbols
17373 # The commands to list exported symbols.
17374 export_symbols_cmds=$lt_export_symbols_cmds
17376 # Symbols that should not be listed in the preloaded symbols.
17377 exclude_expsyms=$lt_exclude_expsyms
17379 # Symbols that must always be exported.
17380 include_expsyms=$lt_include_expsyms
17382 # Commands necessary for linking programs (against libraries) with templates.
17383 prelink_cmds=$lt_prelink_cmds
17385 # Commands necessary for finishing linking programs.
17386 postlink_cmds=$lt_postlink_cmds
17388 # Specify filename containing input files.
17389 file_list_spec=$lt_file_list_spec
17391 # How to hardcode a shared library path into an executable.
17392 hardcode_action=$hardcode_action
17394 # ### END LIBTOOL CONFIG
17400 cat <<\_LT_EOF >> "$cfgfile"
17401 # AIX sometimes has problems with the GCC collect2 program. For some
17402 # reason, if we set the COLLECT_NAMES environment variable, the problems
17403 # vanish in a puff of smoke.
17404 if test "X${COLLECT_NAMES+set}" != Xset; then
17406 export COLLECT_NAMES
17413 ltmain="$ac_aux_dir/ltmain.sh"
17416 # We use sed instead of cat because bash on DJGPP gets confused if
17417 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17418 # text mode, it properly converts lines to CR/LF. This bash problem
17419 # is reportedly fixed, but why not run on old versions too?
17420 sed '$q' "$ltmain" >> "$cfgfile" \
17421 || (rm -f "$cfgfile"; exit 1)
17423 if test x"$xsi_shell" = xyes; then
17424 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17428 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17429 \ * ) func_dirname_result="${3}" ;;\
17431 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17432 && mv -f "$cfgfile.tmp" "$cfgfile" \
17433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17434 test 0 -eq $? || _lt_function_replace_fail=:
17437 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17440 \ func_basename_result="${1##*/}"\
17441 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17442 && mv -f "$cfgfile.tmp" "$cfgfile" \
17443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17444 test 0 -eq $? || _lt_function_replace_fail=:
17447 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17448 func_dirname_and_basename ()\
17451 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17452 \ * ) func_dirname_result="${3}" ;;\
17454 \ func_basename_result="${1##*/}"\
17455 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17456 && mv -f "$cfgfile.tmp" "$cfgfile" \
17457 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17458 test 0 -eq $? || _lt_function_replace_fail=:
17461 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17464 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17465 \ # positional parameters, so assign one to ordinary parameter first.\
17466 \ func_stripname_result=${3}\
17467 \ func_stripname_result=${func_stripname_result#"${1}"}\
17468 \ func_stripname_result=${func_stripname_result%"${2}"}\
17469 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17470 && mv -f "$cfgfile.tmp" "$cfgfile" \
17471 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17472 test 0 -eq $? || _lt_function_replace_fail=:
17475 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17476 func_split_long_opt ()\
17478 \ func_split_long_opt_name=${1%%=*}\
17479 \ func_split_long_opt_arg=${1#*=}\
17480 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17481 && mv -f "$cfgfile.tmp" "$cfgfile" \
17482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17483 test 0 -eq $? || _lt_function_replace_fail=:
17486 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17487 func_split_short_opt ()\
17489 \ func_split_short_opt_arg=${1#??}\
17490 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17491 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17492 && mv -f "$cfgfile.tmp" "$cfgfile" \
17493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17494 test 0 -eq $? || _lt_function_replace_fail=:
17497 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17501 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17502 \ *) func_lo2o_result=${1} ;;\
17504 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17505 && mv -f "$cfgfile.tmp" "$cfgfile" \
17506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17507 test 0 -eq $? || _lt_function_replace_fail=:
17510 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17513 func_xform_result=${1%.*}.lo\
17514 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17515 && mv -f "$cfgfile.tmp" "$cfgfile" \
17516 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17517 test 0 -eq $? || _lt_function_replace_fail=:
17520 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17523 func_arith_result=$(( $* ))\
17524 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17525 && mv -f "$cfgfile.tmp" "$cfgfile" \
17526 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17527 test 0 -eq $? || _lt_function_replace_fail=:
17530 sed -e '/^func_len ()$/,/^} # func_len /c\
17533 func_len_result=${#1}\
17534 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17535 && mv -f "$cfgfile.tmp" "$cfgfile" \
17536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17537 test 0 -eq $? || _lt_function_replace_fail=:
17541 if test x"$lt_shell_append" = xyes; then
17542 sed -e '/^func_append ()$/,/^} # func_append /c\
17545 eval "${1}+=\\${2}"\
17546 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17547 && mv -f "$cfgfile.tmp" "$cfgfile" \
17548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17549 test 0 -eq $? || _lt_function_replace_fail=:
17552 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17553 func_append_quoted ()\
17555 \ func_quote_for_eval "${2}"\
17556 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17557 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17558 && mv -f "$cfgfile.tmp" "$cfgfile" \
17559 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17560 test 0 -eq $? || _lt_function_replace_fail=:
17563 # Save a `func_append' function call where possible by direct use of '+='
17564 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17565 && mv -f "$cfgfile.tmp" "$cfgfile" \
17566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17567 test 0 -eq $? || _lt_function_replace_fail=:
17569 # Save a `func_append' function call even when '+=' is not available
17570 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17571 && mv -f "$cfgfile.tmp" "$cfgfile" \
17572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17573 test 0 -eq $? || _lt_function_replace_fail=:
17576 if test x"$_lt_function_replace_fail" = x":"; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17578 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17582 mv -f "$cfgfile" "$ofile" ||
17583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17594 ac_clean_files=$ac_clean_files_save
17596 test $ac_write_fail = 0 ||
17597 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17600 # configure is writing to config.log, and then calls config.status.
17601 # config.status does its own redirection, appending to config.log.
17602 # Unfortunately, on DOS this fails, as config.log is still kept open
17603 # by configure, so config.status won't be able to write to it; its
17604 # output is simply discarded. So we exec the FD to /dev/null,
17605 # effectively closing config.log, so it can be properly (re)opened and
17606 # appended to by config.status. When coming back to configure, we
17607 # need to make the FD available again.
17608 if test "$no_create" != yes; then
17610 ac_config_status_args=
17611 test "$silent" = yes &&
17612 ac_config_status_args="$ac_config_status_args --quiet"
17614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17617 # would make configure fail if this is the last instruction.
17618 $ac_cs_success || as_fn_exit 1
17620 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17622 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}