2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta.
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 #(
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=.
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 $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$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
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) 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 $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.1.5-beta'
591 PACKAGE_STRING='libevent 2.1.5-beta'
595 ac_unique_file="event.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
653 DEVPOLL_BACKEND_FALSE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
742 INSTALL_STRIP_PROGRAM
784 program_transform_name
797 enable_option_checking
799 enable_dependency_tracking
802 enable_thread_support
803 enable_malloc_replacement
806 enable_libevent_install
807 enable_libevent_regress
809 enable_function_sections
820 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
989 -help | --help | --hel | --he | -h)
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1138 -site=* | --site=* | --sit=*)
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=\$ac_optarg ;;
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information"
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error $? "missing argument to $ac_option"
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1265 # Be sure to have absolute directory names.
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1278 target=$target_alias
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error $? "working directory cannot be determined"
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error $? "pwd does not report name of working directory"
1303 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes
1306 # Try the directory containing this script, then the parent directory.
1307 ac_confdir=`$as_dirname -- "$as_myself" ||
1308 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309 X"$as_myself" : 'X\(//\)[^/]' \| \
1310 X"$as_myself" : 'X\(//\)$' \| \
1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312 $as_echo X"$as_myself" |
1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1335 ac_srcdir_defaulted=no
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 # Remove unnecessary trailing slashes from srcdir.
1350 # Double slashes in file names in object file debugging info
1351 # mess up M-x gdb in Emacs.
1353 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 for ac_var in $ac_precious_vars; do
1356 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_env_${ac_var}_value=\$${ac_var}
1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363 # Report the --help message.
1365 if test "$ac_init_help" = "long"; then
1366 # Omit some internal or obsolete options to make the list less imposing.
1367 # This message is too long to be a string in the A/UX 3.1 sh.
1369 \`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems.
1371 Usage: $0 [OPTION]... [VAR=VALUE]...
1373 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374 VAR=VALUE. See below for descriptions of some of the useful variables.
1376 Defaults for the options are specified in brackets.
1379 -h, --help display this help and exit
1380 --help=short display options specific to this package
1381 --help=recursive display the short help of all the included packages
1382 -V, --version display version information and exit
1383 -q, --quiet, --silent do not print \`checking ...' messages
1384 --cache-file=FILE cache test results in FILE [disabled]
1385 -C, --config-cache alias for \`--cache-file=config.cache'
1386 -n, --no-create do not create output files
1387 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389 Installation directories:
1390 --prefix=PREFIX install architecture-independent files in PREFIX
1391 [$ac_default_prefix]
1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 By default, \`make install' will install all the files in
1396 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398 for instance \`--prefix=\$HOME'.
1400 For better control, use the options below.
1402 Fine tuning of the installation directories:
1403 --bindir=DIR user executables [EPREFIX/bin]
1404 --sbindir=DIR system admin executables [EPREFIX/sbin]
1405 --libexecdir=DIR program executables [EPREFIX/libexec]
1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409 --libdir=DIR object code libraries [EPREFIX/lib]
1410 --includedir=DIR C header files [PREFIX/include]
1411 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414 --infodir=DIR info documentation [DATAROOTDIR/info]
1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416 --mandir=DIR man documentation [DATAROOTDIR/man]
1417 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1418 --htmldir=DIR html documentation [DOCDIR]
1419 --dvidir=DIR dvi documentation [DOCDIR]
1420 --pdfdir=DIR pdf documentation [DOCDIR]
1421 --psdir=DIR ps documentation [DOCDIR]
1427 --program-prefix=PREFIX prepend PREFIX to installed program names
1428 --program-suffix=SUFFIX append SUFFIX to installed program names
1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of libevent 2.1.5-beta:";;
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-dependency-tracking
1450 do not reject slow dependency extractors
1451 --disable-dependency-tracking
1452 speeds up one-time build
1453 --disable-gcc-warnings disable verbose warnings with GCC
1454 --enable-gcc-hardening enable compiler security checks
1455 --disable-thread-support
1456 disable support for threading
1457 --disable-malloc-replacement
1458 disable support for replacing the memory mgt
1460 --disable-openssl disable support for openssl encryption
1461 --disable-debug-mode disable support for running in debug mode
1462 --disable-libevent-install, disable installation of libevent
1464 --disable-libevent-regress, skip regress in make check
1466 --disable-samples, skip building of sample programs
1468 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1470 --enable-verbose-debug, verbose debug logging
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --disable-largefile omit support for large files
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-pic try to use only PIC/non-PIC objects [default=use
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-sysroot=DIR Search for dependent libraries within DIR
1486 (or the compiler's sysroot if not specified).
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to the package provider.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1564 libevent configure 2.1.5-beta
1565 generated by GNU Autoconf 2.69
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_compile
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1653 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656 # the include files in INCLUDES and setting the cache variable VAR
1658 ac_fn_c_check_header_mongrel ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if eval \${$3+:} false; then :
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1671 # Is the header compilable?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673 $as_echo_n "checking $2 usability... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_header_compiler=yes
1682 ac_header_compiler=no
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686 $as_echo "$ac_header_compiler" >&6; }
1688 # Is the header present?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690 $as_echo_n "checking $2 presence... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1695 if ac_fn_c_try_cpp "$LINENO"; then :
1696 ac_header_preproc=yes
1698 ac_header_preproc=no
1700 rm -f conftest.err conftest.i conftest.$ac_ext
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702 $as_echo "$ac_header_preproc" >&6; }
1704 # So? What about this header?
1705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1716 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1720 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1730 eval "$3=\$ac_header_compiler"
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 } # ac_fn_c_check_header_mongrel
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1774 ac_retval=$ac_status
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists and can be compiled using the include files in
1785 # INCLUDES, setting the cache variable VAR accordingly.
1786 ac_fn_c_check_header_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 } # ac_fn_c_check_header_compile
1813 # ac_fn_c_try_link LINENO
1814 # -----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded.
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext conftest$ac_exeext
1820 if { { ac_try="$ac_link"
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>conftest.err
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest$ac_exeext && {
1839 test "$cross_compiling" = yes ||
1840 test -x conftest$ac_exeext
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851 # interfere with the next link command; also delete a directory that is
1852 # left behind by Apple's compiler. We do this before executing the actions.
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_link
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1882 # include <limits.h>
1884 # include <assert.h>
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1911 if ac_fn_c_try_link "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 } # ac_fn_c_check_func
1926 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927 # ---------------------------------------------
1928 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1930 ac_fn_c_check_decl ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 as_decl_name=`echo $2|sed 's/ *(.*//'`
1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1946 #ifndef $as_decl_name
1948 (void) $as_decl_use;
1950 (void) $as_decl_name;
1958 if ac_fn_c_try_compile "$LINENO"; then :
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_c_check_decl
1972 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1973 # -------------------------------------------
1974 # Tests whether TYPE exists after having included INCLUDES, setting cache
1975 # variable VAR accordingly.
1976 ac_fn_c_check_type ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2010 if ac_fn_c_try_compile "$LINENO"; then :
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_type
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 ac_fn_c_compute_int ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2044 return test_array [0];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid; break
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) < 0)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 return test_array [0];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=$ac_mid; break
2114 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115 if test $ac_mid -le $ac_hi; then
2119 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2210 # ----------------------------------------------------
2211 # Tries to find if the field MEMBER exists in type AGGR, after including
2212 # INCLUDES, setting cache variable VAR accordingly.
2213 ac_fn_c_check_member ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2217 $as_echo_n "checking for $2.$3... " >&6; }
2218 if eval \${$4+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2234 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2244 if (sizeof ac_aggr.$3)
2250 if ac_fn_c_try_compile "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_check_member
2265 cat >config.log <<_ACEOF
2266 This file contains any messages produced by compilers while
2267 running configure, to aid debugging if configure makes a mistake.
2269 It was created by libevent $as_me 2.1.5-beta, which was
2270 generated by GNU Autoconf 2.69. Invocation command line was
2282 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2283 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2284 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2285 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2286 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2289 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2291 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2292 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2293 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2294 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2295 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2296 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2297 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 $as_echo "PATH: $as_dir"
2322 # Keep a trace of the command line.
2323 # Strip out --no-create and --no-recursion so they do not pile up.
2324 # Strip out --silent because we don't want to record it for future runs.
2325 # Also quote any args containing shell meta-characters.
2326 # Make two passes to allow for proper duplicate-argument suppression.
2330 ac_must_keep_next=false
2336 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2338 | -silent | --silent | --silen | --sile | --sil)
2341 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346 as_fn_append ac_configure_args1 " '$ac_arg'"
2347 if test $ac_must_keep_next = true; then
2348 ac_must_keep_next=false # Got value, back to normal.
2351 *=* | --config-cache | -C | -disable-* | --disable-* \
2352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2354 | -with-* | --with-* | -without-* | --without-* | --x)
2355 case "$ac_configure_args0 " in
2356 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359 -* ) ac_must_keep_next=true ;;
2362 as_fn_append ac_configure_args " '$ac_arg'"
2367 { ac_configure_args0=; unset ac_configure_args0;}
2368 { ac_configure_args1=; unset ac_configure_args1;}
2370 # When interrupted or exit'd, cleanup temporary files, and complete
2371 # config.log. We remove comments because anyway the quotes in there
2372 # would cause problems or look ugly.
2373 # WARNING: Use '\'' to represent an apostrophe within the trap.
2374 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2375 trap 'exit_status=$?
2376 # Save into config.log some information that might help in debugging.
2380 $as_echo "## ---------------- ##
2381 ## Cache variables. ##
2382 ## ---------------- ##"
2384 # The following way of writing the cache mishandles newlines in values,
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2392 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395 _ | IFS | as_nl) ;; #(
2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2397 *) { eval $ac_var=; unset $ac_var;} ;;
2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
2405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2416 $as_echo "## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##"
2420 for ac_var in $ac_subst_vars
2422 eval ac_val=\$$ac_var
2424 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 $as_echo "$ac_var='\''$ac_val'\''"
2430 if test -n "$ac_subst_files"; then
2431 $as_echo "## ------------------- ##
2432 ## File substitutions. ##
2433 ## ------------------- ##"
2435 for ac_var in $ac_subst_files
2437 eval ac_val=\$$ac_var
2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441 $as_echo "$ac_var='\''$ac_val'\''"
2446 if test -s confdefs.h; then
2447 $as_echo "## ----------- ##
2454 test "$ac_signal" != 0 &&
2455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
2458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462 for ac_signal in 1 2 13 15; do
2463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2468 rm -f -r conftest* confdefs.h
2470 $as_echo "/* confdefs.h */" > confdefs.h
2472 # Predefined preprocessor variables.
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_NAME "$PACKAGE_NAME"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_STRING "$PACKAGE_STRING"
2490 cat >>confdefs.h <<_ACEOF
2491 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494 cat >>confdefs.h <<_ACEOF
2495 #define PACKAGE_URL "$PACKAGE_URL"
2499 # Let the site file select an alternate cache file if it wants to.
2500 # Prefer an explicitly selected file to automatically selected ones.
2503 if test -n "$CONFIG_SITE"; then
2504 # We do not want a PATH search for config.site.
2505 case $CONFIG_SITE in #((
2506 -*) ac_site_file1=./$CONFIG_SITE;;
2507 */*) ac_site_file1=$CONFIG_SITE;;
2508 *) ac_site_file1=./$CONFIG_SITE;;
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 test "x$ac_site_file" = xNONE && continue
2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2525 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2527 as_fn_error $? "failed to load site script $ac_site_file
2528 See \`config.log' for more details" "$LINENO" 5; }
2532 if test -r "$cache_file"; then
2533 # Some versions of bash will fail to source /dev/null (special files
2534 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2535 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2537 $as_echo "$as_me: loading cache $cache_file" >&6;}
2539 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2540 *) . "./$cache_file";;
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2545 $as_echo "$as_me: creating cache $cache_file" >&6;}
2549 # Check that the precious variables saved in the cache have kept the same
2551 ac_cache_corrupted=false
2552 for ac_var in $ac_precious_vars; do
2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
2557 case $ac_old_set,$ac_new_set in
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2560 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2561 ac_cache_corrupted=: ;;
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
2569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2574 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2578 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2582 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2584 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2591 *) ac_arg=$ac_var=$ac_new_val ;;
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2599 if $ac_cache_corrupted; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2603 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2604 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606 ## -------------------- ##
2607 ## Main body of script. ##
2608 ## -------------------- ##
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 for ac_dir in build-aux "$srcdir"/build-aux; do
2623 if test -f "$ac_dir/install-sh"; then
2625 ac_install_sh="$ac_aux_dir/install-sh -c"
2627 elif test -f "$ac_dir/install.sh"; then
2629 ac_install_sh="$ac_aux_dir/install.sh -c"
2631 elif test -f "$ac_dir/shtool"; then
2633 ac_install_sh="$ac_aux_dir/shtool install -c"
2637 if test -z "$ac_aux_dir"; then
2638 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2646 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2647 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650 am__api_version='1.15'
2652 # Find a good install program. We prefer a C program (faster),
2653 # so one script is as good as another. But avoid the broken or
2654 # incompatible versions:
2655 # SysV /etc/install, /usr/sbin/install
2656 # SunOS /usr/etc/install
2657 # IRIX /sbin/install
2659 # AmigaOS /C/install, which installs bootblocks on floppy discs
2660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2663 # OS/2's system install, which has a completely different semantic
2664 # ./install, which can be erroneously created by make from ./install.sh.
2665 # Reject install programs that cannot install multiple files.
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2667 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2668 if test -z "$INSTALL"; then
2669 if ${ac_cv_path_install+:} false; then :
2670 $as_echo_n "(cached) " >&6
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 test -z "$as_dir" && as_dir=.
2677 # Account for people who put trailing slashes in PATH elements.
2678 case $as_dir/ in #((
2679 ./ | .// | /[cC]/* | \
2680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2681 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2684 # OSF1 and SCO ODT 3.0 have their own names for install.
2685 # Don't use installbsd from OSF since it installs stuff as root
2687 for ac_prog in ginstall scoinst install; do
2688 for ac_exec_ext in '' $ac_executable_extensions; do
2689 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2690 if test $ac_prog = install &&
2691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2692 # AIX install. It has an incompatible calling convention.
2694 elif test $ac_prog = install &&
2695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696 # program-specific install script used by HP pwplus--don't use.
2699 rm -rf conftest.one conftest.two conftest.dir
2700 echo one > conftest.one
2701 echo two > conftest.two
2703 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2704 test -s conftest.one && test -s conftest.two &&
2705 test -s conftest.dir/conftest.one &&
2706 test -s conftest.dir/conftest.two
2708 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2721 rm -rf conftest.one conftest.two conftest.dir
2724 if test "${ac_cv_path_install+set}" = set; then
2725 INSTALL=$ac_cv_path_install
2727 # As a last resort, use the slow shell script. Don't cache a
2728 # value for INSTALL within a source directory, because that will
2729 # break other packages using the cache if that directory is
2730 # removed, or if the value is a relative name.
2731 INSTALL=$ac_install_sh
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2735 $as_echo "$INSTALL" >&6; }
2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2738 # It thinks the first close brace ends the variable substitution.
2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2746 $as_echo_n "checking whether build environment is sane... " >&6; }
2747 # Reject unsafe characters in $srcdir or the absolute working directory
2748 # name. Accept space and tab only in the latter.
2752 *[\\\"\#\$\&\'\`$am_lf]*)
2753 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2756 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2757 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2760 # Do 'set' in a subshell so we don't clobber the current shell's
2761 # arguments. Must try -L first in case configure is actually a
2762 # symlink; some systems play weird games with the mod time of symlinks
2763 # (eg FreeBSD returns the mod time of the symlink's containing
2767 for am_try in 1 2; do
2768 echo "timestamp, slept: $am_has_slept" > conftest.file
2769 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2770 if test "$*" = "X"; then
2772 set X `ls -t "$srcdir/configure" conftest.file`
2774 if test "$*" != "X $srcdir/configure conftest.file" \
2775 && test "$*" != "X conftest.file $srcdir/configure"; then
2777 # If neither matched, then we have a broken ls. This can happen
2778 # if, for instance, CONFIG_SHELL is bash and it inherits a
2779 # broken ls alias from the environment. This has actually
2780 # happened. Such a system could not be considered "sane".
2781 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2782 alias in your environment" "$LINENO" 5
2784 if test "$2" = conftest.file || test $am_try -eq 2; then
2791 test "$2" = conftest.file
2797 as_fn_error $? "newly created file is older than distributed files!
2798 Check your system clock" "$LINENO" 5
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801 $as_echo "yes" >&6; }
2802 # If we didn't sleep, we still need to ensure time stamps of config.status and
2803 # generated files are strictly newer.
2805 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2812 test "$program_prefix" != NONE &&
2813 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2814 # Use a double $ so make ignores it.
2815 test "$program_suffix" != NONE &&
2816 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2817 # Double any \ or $.
2818 # By default was `s,x,x', remove it if useless.
2819 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2820 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2822 # Expand $ac_aux_dir to an absolute path.
2823 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2825 if test x"${MISSING+set}" != xset; then
2828 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2830 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2833 # Use eval to expand $SHELL
2834 if eval "$MISSING --is-lightweight"; then
2835 am_missing_run="$MISSING "
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2839 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2842 if test x"${install_sh+set}" != xset; then
2845 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2847 install_sh="\${SHELL} $am_aux_dir/install-sh"
2851 # Installed binaries are usually stripped using 'strip' when the user
2852 # run "make install-strip". However 'strip' might not be the right
2853 # tool to use in cross-compilation environments, therefore Automake
2854 # will honor the 'STRIP' environment variable to overrule this program.
2855 if test "$cross_compiling" != no; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}strip; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_STRIP+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$STRIP"; then
2865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 STRIP=$ac_cv_prog_STRIP
2885 if test -n "$STRIP"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2887 $as_echo "$STRIP" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2895 if test -z "$ac_cv_prog_STRIP"; then
2897 # Extract the first word of "strip", so it can be a program name with args.
2898 set dummy strip; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$ac_ct_STRIP"; then
2905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_ac_ct_STRIP="strip"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2925 if test -n "$ac_ct_STRIP"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2927 $as_echo "$ac_ct_STRIP" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2933 if test "x$ac_ct_STRIP" = x; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2945 STRIP="$ac_cv_prog_STRIP"
2949 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2952 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2953 if test -z "$MKDIR_P"; then
2954 if ${ac_cv_path_mkdir+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2961 test -z "$as_dir" && as_dir=.
2962 for ac_prog in mkdir gmkdir; do
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2965 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2966 'mkdir (GNU coreutils) '* | \
2967 'mkdir (coreutils) '* | \
2968 'mkdir (fileutils) '4.1*)
2969 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2979 test -d ./--version && rmdir ./--version
2980 if test "${ac_cv_path_mkdir+set}" = set; then
2981 MKDIR_P="$ac_cv_path_mkdir -p"
2983 # As a last resort, use the slow shell script. Don't cache a
2984 # value for MKDIR_P within a source directory, because that will
2985 # break other packages using the cache if that directory is
2986 # removed, or if the value is a relative name.
2987 MKDIR_P="$ac_install_sh -d"
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2991 $as_echo "$MKDIR_P" >&6; }
2993 for ac_prog in gawk mawk nawk awk
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_AWK+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$AWK"; then
3003 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_AWK="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 if test -n "$AWK"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3025 $as_echo "$AWK" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$AWK" && break
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3036 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3038 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3039 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3040 $as_echo_n "(cached) " >&6
3042 cat >conftest.make <<\_ACEOF
3045 @echo '@@@%%%=$(MAKE)=@@@%%%'
3047 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3048 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3050 eval ac_cv_prog_make_${ac_make}_set=yes;;
3052 eval ac_cv_prog_make_${ac_make}_set=no;;
3056 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058 $as_echo "yes" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 SET_MAKE="MAKE=${MAKE-make}"
3066 rm -rf .tst 2>/dev/null
3067 mkdir .tst 2>/dev/null
3068 if test -d .tst; then
3073 rmdir .tst 2>/dev/null
3075 # Check whether --enable-silent-rules was given.
3076 if test "${enable_silent_rules+set}" = set; then :
3077 enableval=$enable_silent_rules;
3080 case $enable_silent_rules in # (((
3081 yes) AM_DEFAULT_VERBOSITY=0;;
3082 no) AM_DEFAULT_VERBOSITY=1;;
3083 *) AM_DEFAULT_VERBOSITY=1;;
3085 am_make=${MAKE-make}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3087 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3088 if ${am_cv_make_support_nested_variables+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 if $as_echo 'TRUE=$(BAR$(V))
3097 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3098 am_cv_make_support_nested_variables=yes
3100 am_cv_make_support_nested_variables=no
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3104 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3105 if test $am_cv_make_support_nested_variables = yes; then
3107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3109 AM_V=$AM_DEFAULT_VERBOSITY
3110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3114 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3115 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3116 # is not polluted with repeated "-I."
3117 am__isrc=' -I$(srcdir)'
3118 # test to see if srcdir already configured
3119 if test -f $srcdir/config.status; then
3120 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3124 # test whether we have cygpath
3125 if test -z "$CYGPATH_W"; then
3126 if (cygpath --version) >/dev/null 2>/dev/null; then
3127 CYGPATH_W='cygpath -w'
3134 # Define the identity of the package.
3136 VERSION='2.1.5-beta'
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE "$PACKAGE"
3144 cat >>confdefs.h <<_ACEOF
3145 #define VERSION "$VERSION"
3148 # Some tools Automake needs.
3150 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3153 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3156 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3159 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3162 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3164 # For better backward compatibility. To be removed once Automake 1.9.x
3165 # dies out for good. For more background, see:
3166 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3167 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3168 mkdir_p='$(MKDIR_P)'
3170 # We need awk for the "check" target (and possibly the TAP driver). The
3171 # system "awk" is bad on some platforms.
3172 # Always define AMTAR for backward compatibility. Yes, it's still used
3173 # in the wild :-( We should find a proper way to deprecate it ...
3177 # We'll loop over all known methods to create a tar archive until one works.
3178 _am_tools='gnutar pax cpio none'
3180 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3187 # POSIX will say in a future version that running "rm -f" with no argument
3188 # is OK; and we want to be able to make that assumption in our Makefile
3189 # recipes. So use an aggressive probe to check that the usage we want is
3190 # actually supported "in the wild" to an acceptable degree.
3191 # See automake bug#10828.
3192 # To make any issue more visible, cause the running configure to be aborted
3193 # by default if the 'rm' program in use doesn't match our expectations; the
3194 # user can still override this though.
3195 if rm -f && rm -fr && rm -rf; then : OK; else
3199 Your 'rm' program seems unable to run without file operands specified
3200 on the command line, even when the '-f' option is present. This is contrary
3201 to the behaviour of most rm programs out there, and not conforming with
3202 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3204 Please tell bug-automake@gnu.org about your system, including the value
3205 of your $PATH and any error possibly output before this message. This
3206 can help us improve future automake versions.
3209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3210 echo 'Configuration will proceed anyway, since you have set the' >&2
3211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3215 Aborting the configuration process, to ensure you take notice of the issue.
3217 You can download and install GNU coreutils to get an 'rm' implementation
3218 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3220 If you want to complete the configuration process using your problematic
3221 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3222 to "yes", and re-run configure.
3225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3229 # Check whether --enable-silent-rules was given.
3230 if test "${enable_silent_rules+set}" = set; then :
3231 enableval=$enable_silent_rules;
3234 case $enable_silent_rules in # (((
3235 yes) AM_DEFAULT_VERBOSITY=0;;
3236 no) AM_DEFAULT_VERBOSITY=1;;
3237 *) AM_DEFAULT_VERBOSITY=0;;
3239 am_make=${MAKE-make}
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3241 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3242 if ${am_cv_make_support_nested_variables+:} false; then :
3243 $as_echo_n "(cached) " >&6
3245 if $as_echo 'TRUE=$(BAR$(V))
3251 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3252 am_cv_make_support_nested_variables=yes
3254 am_cv_make_support_nested_variables=no
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3258 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3259 if test $am_cv_make_support_nested_variables = yes; then
3261 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3263 AM_V=$AM_DEFAULT_VERBOSITY
3264 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3268 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3271 $as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h
3274 if test "$prefix" = "NONE"; then
3279 # Make sure we can run config.sub.
3280 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3281 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3284 $as_echo_n "checking build system type... " >&6; }
3285 if ${ac_cv_build+:} false; then :
3286 $as_echo_n "(cached) " >&6
3288 ac_build_alias=$build_alias
3289 test "x$ac_build_alias" = x &&
3290 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3291 test "x$ac_build_alias" = x &&
3292 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3294 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3298 $as_echo "$ac_cv_build" >&6; }
3299 case $ac_cv_build in
3301 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3304 ac_save_IFS=$IFS; IFS='-'
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3314 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3318 $as_echo_n "checking host system type... " >&6; }
3319 if ${ac_cv_host+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 if test "x$host_alias" = x; then
3323 ac_cv_host=$ac_cv_build
3325 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3331 $as_echo "$ac_cv_host" >&6; }
3334 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3337 ac_save_IFS=$IFS; IFS='-'
3343 # Remember, the first character of IFS is used to create $*,
3344 # except with old shells:
3347 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3350 DEPDIR="${am__leading_dot}deps"
3352 ac_config_commands="$ac_config_commands depfiles"
3355 am_make=${MAKE-make}
3356 cat > confinc << 'END'
3358 @echo this is the am__doit target
3361 # If we don't find an include directive, just comment out the code.
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3363 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3367 # First try GNU make style include.
3368 echo "include confinc" > confmf
3369 # Ignore all kinds of additional output from 'make'.
3370 case `$am_make -s -f confmf 2> /dev/null` in #(
3371 *the\ am__doit\ target*)
3377 # Now try BSD make style include.
3378 if test "$am__include" = "#"; then
3379 echo '.include "confinc"' > confmf
3380 case `$am_make -s -f confmf 2> /dev/null` in #(
3381 *the\ am__doit\ target*)
3382 am__include=.include
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3391 $as_echo "$_am_result" >&6; }
3392 rm -f confinc confmf
3394 # Check whether --enable-dependency-tracking was given.
3395 if test "${enable_dependency_tracking+set}" = set; then :
3396 enableval=$enable_dependency_tracking;
3399 if test "x$enable_dependency_tracking" != xno; then
3400 am_depcomp="$ac_aux_dir/depcomp"
3404 if test "x$enable_dependency_tracking" != xno; then
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 if test -n "$ac_tool_prefix"; then
3419 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424 $as_echo_n "(cached) " >&6
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3457 if test -z "$ac_cv_prog_CC"; then
3459 # Extract the first word of "gcc", so it can be a program name with args.
3460 set dummy gcc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3464 $as_echo_n "(cached) " >&6
3466 if test -n "$ac_ct_CC"; then
3467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 ac_cv_prog_ac_ct_CC="gcc"
3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3487 if test -n "$ac_ct_CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3489 $as_echo "$ac_ct_CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3495 if test "x$ac_ct_CC" = x; then
3498 case $cross_compiling:$ac_tool_warned in
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3510 if test -z "$CC"; then
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}cc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3551 if test -z "$CC"; then
3552 # Extract the first word of "cc", so it can be a program name with args.
3553 set dummy cc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir=.
3568 for ac_exec_ext in '' $ac_executable_extensions; do
3569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3571 ac_prog_rejected=yes
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582 if test $ac_prog_rejected = yes; then
3583 # We found a bogon in the path, so make sure we never use it.
3584 set dummy $ac_cv_prog_CC
3586 if test $# != 0; then
3587 # We chose a different compiler from the bogus one.
3588 # However, it has the same basename, so the bogon will be chosen
3589 # first if we set CC to just the basename; use the full file name.
3591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3597 if test -n "$CC"; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3607 if test -z "$CC"; then
3608 if test -n "$ac_tool_prefix"; then
3609 for ac_prog in cl.exe
3611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 if test -n "$CC"; then
3619 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 if test -n "$CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641 $as_echo "$CC" >&6; }
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3648 test -n "$CC" && break
3651 if test -z "$CC"; then
3653 for ac_prog in cl.exe
3655 # Extract the first word of "$ac_prog", so it can be a program name with args.
3656 set dummy $ac_prog; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 if test -n "$ac_ct_CC"; then
3663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672 ac_cv_prog_ac_ct_CC="$ac_prog"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3683 if test -n "$ac_ct_CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3685 $as_echo "$ac_ct_CC" >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3692 test -n "$ac_ct_CC" && break
3695 if test "x$ac_ct_CC" = x; then
3698 case $cross_compiling:$ac_tool_warned in
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3702 ac_tool_warned=yes ;;
3711 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error $? "no acceptable C compiler found in \$PATH
3714 See \`config.log' for more details" "$LINENO" 5; }
3716 # Provide some information about the compiler.
3717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720 for ac_option in --version -v -V -qversion; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 $as_echo "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3730 if test -s conftest.err; then
3732 ... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
3736 rm -f conftest.er1 conftest.err
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3752 ac_clean_files_save=$ac_clean_files
3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754 # Try to create an executable without -o first, disregard a.out.
3755 # It will help us diagnose broken compilers, and finding out an intuition
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758 $as_echo_n "checking whether the C compiler works... " >&6; }
3759 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3761 # The possible output files:
3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3765 for ac_file in $ac_files
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3774 if { { ac_try="$ac_link_default"
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3788 # so that the user can short-circuit this test for compilers unknown to
3790 for ac_file in $ac_files ''
3792 test -f "$ac_file" || continue
3794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3797 # We found the default executable, but exeext='' is most
3801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3803 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 # We set ac_cv_exeext here because the later test for it is not
3806 # safe: cross compilers may not add the suffix if given an `-o'
3807 # argument, so we may need to know it at that point already.
3808 # Even if this section looks crufty: it has the advantage of
3815 test "$ac_cv_exeext" = no && ac_cv_exeext=
3820 if test -z "$ac_file"; then :
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 $as_echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3828 as_fn_error 77 "C compiler cannot create executables
3829 See \`config.log' for more details" "$LINENO" 5; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3832 $as_echo "yes" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3835 $as_echo_n "checking for C compiler default output file name... " >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3837 $as_echo "$ac_file" >&6; }
3838 ac_exeext=$ac_cv_exeext
3840 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3841 ac_clean_files=$ac_clean_files_save
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3843 $as_echo_n "checking for suffix of executables... " >&6; }
3844 if { { ac_try="$ac_link"
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_link") 2>&5
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3857 # work properly (i.e., refer to `conftest.exe'), while it won't with
3859 for ac_file in conftest.exe conftest conftest.*; do
3860 test -f "$ac_file" || continue
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3871 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3872 See \`config.log' for more details" "$LINENO" 5; }
3874 rm -f conftest conftest$ac_cv_exeext
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3876 $as_echo "$ac_cv_exeext" >&6; }
3878 rm -f conftest.$ac_ext
3879 EXEEXT=$ac_cv_exeext
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3887 FILE *f = fopen ("conftest.out", "w");
3888 return ferror (f) || fclose (f) != 0;
3894 ac_clean_files="$ac_clean_files conftest.out"
3895 # Check that the compiler produces executables we can run. If not, either
3896 # the compiler is broken, or we cross compile.
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3898 $as_echo_n "checking whether we are cross compiling... " >&6; }
3899 if test "$cross_compiling" != yes; then
3900 { { ac_try="$ac_link"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }
3911 if { ac_try='./conftest$ac_cv_exeext'
3912 { { case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_try") 2>&5
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; }; then
3924 if test "$cross_compiling" = maybe; then
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error $? "cannot run C compiled programs.
3930 If you meant to cross compile, use \`--host'.
3931 See \`config.log' for more details" "$LINENO" 5; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3936 $as_echo "$cross_compiling" >&6; }
3938 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3939 ac_clean_files=$ac_clean_files_save
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3941 $as_echo_n "checking for suffix of object files... " >&6; }
3942 if ${ac_cv_objext+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3956 rm -f conftest.o conftest.obj
3957 if { { ac_try="$ac_compile"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_compile") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 for ac_file in conftest.o conftest.obj conftest.*; do
3969 test -f "$ac_file" || continue;
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3972 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3977 $as_echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "cannot compute suffix of object files: cannot compile
3983 See \`config.log' for more details" "$LINENO" 5; }
3985 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3988 $as_echo "$ac_cv_objext" >&6; }
3989 OBJEXT=$ac_cv_objext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3992 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3993 if ${ac_cv_c_compiler_gnu+:} false; then :
3994 $as_echo_n "(cached) " >&6
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4010 if ac_fn_c_try_compile "$LINENO"; then :
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4020 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4021 if test $ac_compiler_gnu = yes; then
4026 ac_test_CFLAGS=${CFLAGS+set}
4027 ac_save_CFLAGS=$CFLAGS
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4029 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4030 if ${ac_cv_prog_cc_g+:} false; then :
4031 $as_echo_n "(cached) " >&6
4033 ac_save_c_werror_flag=$ac_c_werror_flag
4034 ac_c_werror_flag=yes
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4048 if ac_fn_c_try_compile "$LINENO"; then :
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4063 if ac_fn_c_try_compile "$LINENO"; then :
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 if ac_fn_c_try_compile "$LINENO"; then :
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 ac_c_werror_flag=$ac_save_c_werror_flag
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4090 $as_echo "$ac_cv_prog_cc_g" >&6; }
4091 if test "$ac_test_CFLAGS" = set; then
4092 CFLAGS=$ac_save_CFLAGS
4093 elif test $ac_cv_prog_cc_g = yes; then
4094 if test "$GCC" = yes; then
4100 if test "$GCC" = yes; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4107 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4108 if ${ac_cv_prog_cc_c89+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 ac_cv_prog_cc_c89=no
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4119 struct buf { int x; };
4120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121 static char *e (p, i)
4127 static char *f (char * (*g) (char **, int), char **p, ...)
4132 s = g (p, va_arg (v,int));
4137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4138 function prototypes and stuff, but not '\xHH' hex character constants.
4139 These don't provoke an error unfortunately, instead are silently treated
4140 as 'x'. The following induces an error, until -std is added to get
4141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4142 array size at least. It's necessary to write '\x00'==0 to get something
4143 that's true only with -std. */
4144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147 inside strings and character constants. */
4149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4151 int test (int i, double x);
4152 struct s1 {int (*f) (int a);};
4153 struct s2 {int (*f) (double a);};
4154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4160 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4168 CC="$ac_save_CC $ac_arg"
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_c89=$ac_arg
4172 rm -f core conftest.err conftest.$ac_objext
4173 test "x$ac_cv_prog_cc_c89" != "xno" && break
4175 rm -f conftest.$ac_ext
4180 case "x$ac_cv_prog_cc_c89" in
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 $as_echo "none needed" >&6; } ;;
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4186 $as_echo "unsupported" >&6; } ;;
4188 CC="$CC $ac_cv_prog_cc_c89"
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4190 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4192 if test "x$ac_cv_prog_cc_c89" != xno; then :
4197 ac_cpp='$CPP $CPPFLAGS'
4198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4208 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4209 if ${am_cv_prog_cc_c_o+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4223 # Make sure it works both with $CC and with simple cc.
4224 # Following AC_PROG_CC_C_O, we do the test twice because some
4225 # compilers refuse to overwrite an existing .o file with -o,
4226 # though they will create one.
4227 am_cv_prog_cc_c_o=yes
4229 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4230 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } \
4234 && test -f conftest2.$ac_objext; then
4237 am_cv_prog_cc_c_o=no
4241 rm -f core conftest*
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4245 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4246 if test "$am_cv_prog_cc_c_o" != yes; then
4247 # Losing compiler, so override with the script.
4248 # FIXME: It is wrong to rewrite CC.
4249 # But if we don't then we get into trouble of one sort or another.
4250 # A longer-term fix would be to have automake use am__CC in this case,
4251 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4252 CC="$am_aux_dir/compile $CC"
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261 depcc="$CC" am_compiler_list=
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4264 $as_echo_n "checking dependency style of $depcc... " >&6; }
4265 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4269 # We make a subdir and do the tests there. Otherwise we can end up
4270 # making bogus files that we don't know about and never remove. For
4271 # instance it was reported that on HP-UX the gcc test will end up
4272 # making a dummy file named 'D' -- because '-MD' means "put the output
4276 # Copy depcomp to subdir because otherwise we won't find it if we're
4277 # using a relative directory.
4278 cp "$am_depcomp" conftest.dir
4280 # We will build objects and dependencies in a subdirectory because
4281 # it helps to detect inapplicable dependency modes. For instance
4282 # both Tru64's cc and ICC support -MD to output dependencies as a
4283 # side effect of compilation, but ICC will put the dependencies in
4284 # the current directory while Tru64 will put them in the object
4288 am_cv_CC_dependencies_compiler_type=none
4289 if test "$am_compiler_list" = ""; then
4290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4293 case " $depcc " in #(
4294 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4297 for depmode in $am_compiler_list; do
4298 # Setup a source with many dependencies, because some compilers
4299 # like to wrap large dependency lists on column 80 (with \), and
4300 # we should not choose a depcomp mode which is confused by this.
4302 # We need to recreate these files for each test, as the compiler may
4303 # overwrite some of them when testing with obscure command lines.
4304 # This happens at least with the AIX C compiler.
4306 for i in 1 2 3 4 5 6; do
4307 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4308 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4309 # Solaris 10 /bin/sh.
4310 echo '/* dummy */' > sub/conftst$i.h
4312 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4314 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4315 # mode. It turns out that the SunPro C++ compiler does not properly
4316 # handle '-M -o', and we need to detect this. Also, some Intel
4317 # versions had trouble with output in subdirs.
4318 am__obj=sub/conftest.${OBJEXT-o}
4319 am__minus_obj="-o $am__obj"
4322 # This depmode causes a compiler race in universal mode.
4323 test "$am__universal" = false || continue
4326 # After this tag, mechanisms are not by side-effect, so they'll
4327 # only be used when explicitly requested.
4328 if test "x$enable_dependency_tracking" = xyes; then
4334 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4335 # This compiler won't grok '-c -o', but also, the minuso test has
4336 # not run yet. These depmodes are late enough in the game, and
4337 # so weak that their functioning should not be impacted.
4338 am__obj=conftest.${OBJEXT-o}
4343 if depmode=$depmode \
4344 source=sub/conftest.c object=$am__obj \
4345 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4346 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4347 >/dev/null 2>conftest.err &&
4348 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4349 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4350 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4351 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4352 # icc doesn't choke on unknown options, it will just issue warnings
4353 # or remarks (even with -Werror). So we grep stderr for any message
4354 # that says an option was ignored or not supported.
4355 # When given -MP, icc 7.0 and 7.1 complain thusly:
4356 # icc: Command line warning: ignoring option '-M'; no argument required
4357 # The diagnosis changed in icc 8.0:
4358 # icc: Command line remark: option '-MP' not supported
4359 if (grep 'ignoring option' conftest.err ||
4360 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4361 am_cv_CC_dependencies_compiler_type=$depmode
4370 am_cv_CC_dependencies_compiler_type=none
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4375 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4376 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4379 test "x$enable_dependency_tracking" != xno \
4380 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4382 am__fastdepCC_FALSE='#'
4384 am__fastdepCC_TRUE='#'
4385 am__fastdepCC_FALSE=
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4396 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4397 # On Suns, sometimes $CPP names a directory.
4398 if test -n "$CPP" && test -d "$CPP"; then
4401 if test -z "$CPP"; then
4402 if ${ac_cv_prog_CPP+:} false; then :
4403 $as_echo_n "(cached) " >&6
4405 # Double quotes because CPP needs to be expanded
4406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4409 for ac_c_preproc_warn_flag in '' yes
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4420 # include <limits.h>
4422 # include <assert.h>
4426 if ac_fn_c_try_cpp "$LINENO"; then :
4429 # Broken: fails on valid input.
4432 rm -f conftest.err conftest.i conftest.$ac_ext
4434 # OK, works on sane cases. Now check whether nonexistent headers
4435 # can be detected and how.
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4438 #include <ac_nonexistent.h>
4440 if ac_fn_c_try_cpp "$LINENO"; then :
4441 # Broken: success on invalid input.
4444 # Passes both tests.
4448 rm -f conftest.err conftest.i conftest.$ac_ext
4451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4452 rm -f conftest.i conftest.err conftest.$ac_ext
4453 if $ac_preproc_ok; then :
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4466 $as_echo "$CPP" >&6; }
4468 for ac_c_preproc_warn_flag in '' yes
4470 # Use a header file that comes with gcc, so configuring glibc
4471 # with a fresh cross-compiler works.
4472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4473 # <limits.h> exists even on freestanding compilers.
4474 # On the NeXT, cc -E runs the code through the compiler's parser,
4475 # not just through cpp. "Syntax error" is here to catch this case.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4479 # include <limits.h>
4481 # include <assert.h>
4485 if ac_fn_c_try_cpp "$LINENO"; then :
4488 # Broken: fails on valid input.
4491 rm -f conftest.err conftest.i conftest.$ac_ext
4493 # OK, works on sane cases. Now check whether nonexistent headers
4494 # can be detected and how.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #include <ac_nonexistent.h>
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500 # Broken: success on invalid input.
4503 # Passes both tests.
4507 rm -f conftest.err conftest.i conftest.$ac_ext
4510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511 rm -f conftest.i conftest.err conftest.$ac_ext
4512 if $ac_preproc_ok; then :
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4518 See \`config.log' for more details" "$LINENO" 5; }
4522 ac_cpp='$CPP $CPPFLAGS'
4523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4529 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4530 if ${ac_cv_path_GREP+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -z "$GREP"; then
4534 ac_path_GREP_found=false
4535 # Loop through the user's path and test for each of PROGNAME-LIST
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4540 test -z "$as_dir" && as_dir=.
4541 for ac_prog in grep ggrep; do
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4544 as_fn_executable_p "$ac_path_GREP" || continue
4545 # Check for GNU ac_path_GREP and select it if it is found.
4546 # Check for GNU $ac_path_GREP
4547 case `"$ac_path_GREP" --version 2>&1` in
4549 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4552 $as_echo_n 0123456789 >"conftest.in"
4555 cat "conftest.in" "conftest.in" >"conftest.tmp"
4556 mv "conftest.tmp" "conftest.in"
4557 cp "conftest.in" "conftest.nl"
4558 $as_echo 'GREP' >> "conftest.nl"
4559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4561 as_fn_arith $ac_count + 1 && ac_count=$as_val
4562 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4563 # Best one so far, save it but keep looking for a better one
4564 ac_cv_path_GREP="$ac_path_GREP"
4565 ac_path_GREP_max=$ac_count
4567 # 10*(2^10) chars as input seems more than enough
4568 test $ac_count -gt 10 && break
4570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4573 $ac_path_GREP_found && break 3
4578 if test -z "$ac_cv_path_GREP"; then
4579 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4582 ac_cv_path_GREP=$GREP
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4587 $as_echo "$ac_cv_path_GREP" >&6; }
4588 GREP="$ac_cv_path_GREP"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4592 $as_echo_n "checking for egrep... " >&6; }
4593 if ${ac_cv_path_EGREP+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4597 then ac_cv_path_EGREP="$GREP -E"
4599 if test -z "$EGREP"; then
4600 ac_path_EGREP_found=false
4601 # Loop through the user's path and test for each of PROGNAME-LIST
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 test -z "$as_dir" && as_dir=.
4607 for ac_prog in egrep; do
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4610 as_fn_executable_p "$ac_path_EGREP" || continue
4611 # Check for GNU ac_path_EGREP and select it if it is found.
4612 # Check for GNU $ac_path_EGREP
4613 case `"$ac_path_EGREP" --version 2>&1` in
4615 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4618 $as_echo_n 0123456789 >"conftest.in"
4621 cat "conftest.in" "conftest.in" >"conftest.tmp"
4622 mv "conftest.tmp" "conftest.in"
4623 cp "conftest.in" "conftest.nl"
4624 $as_echo 'EGREP' >> "conftest.nl"
4625 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627 as_fn_arith $ac_count + 1 && ac_count=$as_val
4628 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4629 # Best one so far, save it but keep looking for a better one
4630 ac_cv_path_EGREP="$ac_path_EGREP"
4631 ac_path_EGREP_max=$ac_count
4633 # 10*(2^10) chars as input seems more than enough
4634 test $ac_count -gt 10 && break
4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 $ac_path_EGREP_found && break 3
4644 if test -z "$ac_cv_path_EGREP"; then
4645 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4648 ac_cv_path_EGREP=$EGREP
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4654 $as_echo "$ac_cv_path_EGREP" >&6; }
4655 EGREP="$ac_cv_path_EGREP"
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4659 $as_echo_n "checking for ANSI C header files... " >&6; }
4660 if ${ac_cv_header_stdc+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_cv_header_stdc=yes
4681 ac_cv_header_stdc=no
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685 if test $ac_cv_header_stdc = yes; then
4686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693 $EGREP "memchr" >/dev/null 2>&1; then :
4696 ac_cv_header_stdc=no
4702 if test $ac_cv_header_stdc = yes; then
4703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4710 $EGREP "free" >/dev/null 2>&1; then :
4713 ac_cv_header_stdc=no
4719 if test $ac_cv_header_stdc = yes; then
4720 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4721 if test "$cross_compiling" = yes; then :
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4728 #if ((' ' & 0x0FF) == 0x020)
4729 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4730 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4732 # define ISLOWER(c) \
4733 (('a' <= (c) && (c) <= 'i') \
4734 || ('j' <= (c) && (c) <= 'r') \
4735 || ('s' <= (c) && (c) <= 'z'))
4736 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4739 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4744 for (i = 0; i < 256; i++)
4745 if (XOR (islower (i), ISLOWER (i))
4746 || toupper (i) != TOUPPER (i))
4751 if ac_fn_c_try_run "$LINENO"; then :
4754 ac_cv_header_stdc=no
4756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4757 conftest.$ac_objext conftest.beam conftest.$ac_ext
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4763 $as_echo "$ac_cv_header_stdc" >&6; }
4764 if test $ac_cv_header_stdc = yes; then
4766 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4770 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4771 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4772 inttypes.h stdint.h unistd.h
4774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4777 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4778 cat >>confdefs.h <<_ACEOF
4779 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4790 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4791 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4798 if test "$MINIX" = yes; then
4800 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4803 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4806 $as_echo "#define _MINIX 1" >>confdefs.h
4813 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4820 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4821 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h. */
4827 # define __EXTENSIONS__ 1
4828 $ac_includes_default
4837 if ac_fn_c_try_compile "$LINENO"; then :
4838 ac_cv_safe_to_define___extensions__=yes
4840 ac_cv_safe_to_define___extensions__=no
4842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4845 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4846 test $ac_cv_safe_to_define___extensions__ = yes &&
4847 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4849 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4851 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4853 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4855 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4866 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4873 $as_echo_n "checking whether ln -s works... " >&6; }
4875 if test "$LN_S" = "ln -s"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4880 $as_echo "no, using $LN_S" >&6; }
4883 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4885 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4888 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4889 if ${ac_cv_path_SED+:} false; then :
4890 $as_echo_n "(cached) " >&6
4892 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4893 for ac_i in 1 2 3 4 5 6 7; do
4894 ac_script="$ac_script$as_nl$ac_script"
4896 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4897 { ac_script=; unset ac_script;}
4898 if test -z "$SED"; then
4899 ac_path_SED_found=false
4900 # Loop through the user's path and test for each of PROGNAME-LIST
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 test -z "$as_dir" && as_dir=.
4906 for ac_prog in sed gsed; do
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4909 as_fn_executable_p "$ac_path_SED" || continue
4910 # Check for GNU ac_path_SED and select it if it is found.
4911 # Check for GNU $ac_path_SED
4912 case `"$ac_path_SED" --version 2>&1` in
4914 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4917 $as_echo_n 0123456789 >"conftest.in"
4920 cat "conftest.in" "conftest.in" >"conftest.tmp"
4921 mv "conftest.tmp" "conftest.in"
4922 cp "conftest.in" "conftest.nl"
4923 $as_echo '' >> "conftest.nl"
4924 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4926 as_fn_arith $ac_count + 1 && ac_count=$as_val
4927 if test $ac_count -gt ${ac_path_SED_max-0}; then
4928 # Best one so far, save it but keep looking for a better one
4929 ac_cv_path_SED="$ac_path_SED"
4930 ac_path_SED_max=$ac_count
4932 # 10*(2^10) chars as input seems more than enough
4933 test $ac_count -gt 10 && break
4935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 $ac_path_SED_found && break 3
4943 if test -z "$ac_cv_path_SED"; then
4944 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4952 $as_echo "$ac_cv_path_SED" >&6; }
4953 SED="$ac_cv_path_SED"
4957 if test $ac_cv_c_compiler_gnu = yes; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4959 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4960 if ${ac_cv_prog_gcc_traditional+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 ac_pattern="Autoconf.*'x'"
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4971 ac_cv_prog_gcc_traditional=yes
4973 ac_cv_prog_gcc_traditional=no
4978 if test $ac_cv_prog_gcc_traditional = no; then
4979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h. */
4984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4985 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4986 ac_cv_prog_gcc_traditional=yes
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4993 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4994 if test $ac_cv_prog_gcc_traditional = yes; then
4995 CC="$CC -traditional"
5000 # We need to test for at least gcc 2.95 here, because older versions don't
5001 # have -fno-strict-aliasing
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5009 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5016 if ac_fn_c_try_compile "$LINENO"; then :
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 if test "$GCC" = "yes" ; then
5024 # Enable many gcc warnings by default...
5025 CFLAGS="$CFLAGS -Wall"
5026 # And disable the strict-aliasing optimization, since it breaks
5027 # our sockaddr-handling code in strange ways.
5028 if test x$have_gcc295 = xyes; then
5029 CFLAGS="$CFLAGS -fno-strict-aliasing"
5033 # OS X Lion started deprecating the system openssl. Let's just disable
5034 # all deprecation warnings on OS X.
5038 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5042 # Check whether --enable-gcc-warnings was given.
5043 if test "${enable_gcc_warnings+set}" = set; then :
5044 enableval=$enable_gcc_warnings;
5048 # Check whether --enable-gcc-hardening was given.
5049 if test "${enable_gcc_hardening+set}" = set; then :
5050 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5051 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5052 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5053 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5058 # Check whether --enable-thread-support was given.
5059 if test "${enable_thread_support+set}" = set; then :
5060 enableval=$enable_thread_support;
5062 enable_thread_support=yes
5065 # Check whether --enable-malloc-replacement was given.
5066 if test "${enable_malloc_replacement+set}" = set; then :
5067 enableval=$enable_malloc_replacement;
5069 enable_malloc_replacement=yes
5072 # Check whether --enable-openssl was given.
5073 if test "${enable_openssl+set}" = set; then :
5074 enableval=$enable_openssl;
5079 # Check whether --enable-debug-mode was given.
5080 if test "${enable_debug_mode+set}" = set; then :
5081 enableval=$enable_debug_mode;
5083 enable_debug_mode=yes
5086 # Check whether --enable-libevent-install was given.
5087 if test "${enable_libevent_install+set}" = set; then :
5088 enableval=$enable_libevent_install;
5090 enable_libevent_install=yes
5093 # Check whether --enable-libevent-regress was given.
5094 if test "${enable_libevent_regress+set}" = set; then :
5095 enableval=$enable_libevent_regress;
5097 enable_libevent_regress=yes
5100 # Check whether --enable-samples was given.
5101 if test "${enable_samples+set}" = set; then :
5102 enableval=$enable_samples;
5107 # Check whether --enable-function-sections was given.
5108 if test "${enable_function_sections+set}" = set; then :
5109 enableval=$enable_function_sections;
5111 enable_function_sections=no
5114 # Check whether --enable-verbose-debug was given.
5115 if test "${enable_verbose_debug+set}" = set; then :
5116 enableval=$enable_verbose_debug;
5118 enable_verbose_debug=no
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5126 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5131 macro_version='2.4.2'
5132 macro_revision='1.3337'
5146 ltmain="$ac_aux_dir/ltmain.sh"
5148 # Backslashify metacharacters that are still active within
5149 # double-quoted strings.
5150 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5152 # Same as above, but do not quote variable references.
5153 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5155 # Sed substitution to delay expansion of an escaped shell variable in a
5156 # double_quote_subst'ed string.
5157 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5159 # Sed substitution to delay expansion of an escaped single quote.
5160 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5162 # Sed substitution to avoid accidental globbing in evaled expressions
5163 no_glob_subst='s/\*/\\\*/g'
5165 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5166 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5170 $as_echo_n "checking how to print strings... " >&6; }
5171 # Test print first, because it will be a builtin if present.
5172 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5173 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5175 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5178 # Use this function as a fallback that always works.
5179 func_fallback_echo ()
5181 eval 'cat <<_LTECHO_EOF
5185 ECHO='func_fallback_echo'
5188 # func_echo_all arg...
5189 # Invoke $ECHO with all args, space-separated.
5196 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5197 $as_echo "printf" >&6; } ;;
5198 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5199 $as_echo "print -r" >&6; } ;;
5200 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5201 $as_echo "cat" >&6; } ;;
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5218 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5219 if ${ac_cv_path_SED+:} false; then :
5220 $as_echo_n "(cached) " >&6
5222 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5223 for ac_i in 1 2 3 4 5 6 7; do
5224 ac_script="$ac_script$as_nl$ac_script"
5226 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5227 { ac_script=; unset ac_script;}
5228 if test -z "$SED"; then
5229 ac_path_SED_found=false
5230 # Loop through the user's path and test for each of PROGNAME-LIST
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_prog in sed gsed; do
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5239 as_fn_executable_p "$ac_path_SED" || continue
5240 # Check for GNU ac_path_SED and select it if it is found.
5241 # Check for GNU $ac_path_SED
5242 case `"$ac_path_SED" --version 2>&1` in
5244 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5247 $as_echo_n 0123456789 >"conftest.in"
5250 cat "conftest.in" "conftest.in" >"conftest.tmp"
5251 mv "conftest.tmp" "conftest.in"
5252 cp "conftest.in" "conftest.nl"
5253 $as_echo '' >> "conftest.nl"
5254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5256 as_fn_arith $ac_count + 1 && ac_count=$as_val
5257 if test $ac_count -gt ${ac_path_SED_max-0}; then
5258 # Best one so far, save it but keep looking for a better one
5259 ac_cv_path_SED="$ac_path_SED"
5260 ac_path_SED_max=$ac_count
5262 # 10*(2^10) chars as input seems more than enough
5263 test $ac_count -gt 10 && break
5265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5268 $ac_path_SED_found && break 3
5273 if test -z "$ac_cv_path_SED"; then
5274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5282 $as_echo "$ac_cv_path_SED" >&6; }
5283 SED="$ac_cv_path_SED"
5286 test -z "$SED" && SED=sed
5287 Xsed="$SED -e 1s/^X//"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5300 $as_echo_n "checking for fgrep... " >&6; }
5301 if ${ac_cv_path_FGREP+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5305 then ac_cv_path_FGREP="$GREP -F"
5307 if test -z "$FGREP"; then
5308 ac_path_FGREP_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in fgrep; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5318 as_fn_executable_p "$ac_path_FGREP" || continue
5319 # Check for GNU ac_path_FGREP and select it if it is found.
5320 # Check for GNU $ac_path_FGREP
5321 case `"$ac_path_FGREP" --version 2>&1` in
5323 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5326 $as_echo_n 0123456789 >"conftest.in"
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo 'FGREP' >> "conftest.nl"
5333 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 as_fn_arith $ac_count + 1 && ac_count=$as_val
5336 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_FGREP="$ac_path_FGREP"
5339 ac_path_FGREP_max=$ac_count
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5347 $ac_path_FGREP_found && break 3
5352 if test -z "$ac_cv_path_FGREP"; then
5353 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5356 ac_cv_path_FGREP=$FGREP
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5362 $as_echo "$ac_cv_path_FGREP" >&6; }
5363 FGREP="$ac_cv_path_FGREP"
5366 test -z "$GREP" && GREP=grep
5386 # Check whether --with-gnu-ld was given.
5387 if test "${with_gnu_ld+set}" = set; then :
5388 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5394 if test "$GCC" = yes; then
5395 # Check if gcc -print-prog-name=ld gives a path.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5397 $as_echo_n "checking for ld used by $CC... " >&6; }
5400 # gcc leaves a trailing carriage return which upsets mingw
5401 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5403 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5406 # Accept absolute paths.
5408 re_direlt='/[^/][^/]*/\.\./'
5409 # Canonicalize the pathname of ld
5410 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5411 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5412 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5414 test -z "$LD" && LD="$ac_prog"
5417 # If it fails, then pretend we aren't using GCC.
5421 # If it is relative, then search for the first ld in PATH.
5425 elif test "$with_gnu_ld" = yes; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5427 $as_echo_n "checking for GNU ld... " >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5430 $as_echo_n "checking for non-GNU ld... " >&6; }
5432 if ${lt_cv_path_LD+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 if test -z "$LD"; then
5436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5437 for ac_dir in $PATH; do
5439 test -z "$ac_dir" && ac_dir=.
5440 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5441 lt_cv_path_LD="$ac_dir/$ac_prog"
5442 # Check to see if the program is GNU ld. I'd rather use --version,
5443 # but apparently some variants of GNU ld only accept -v.
5444 # Break only if it was the GNU/non-GNU ld that we prefer.
5445 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5446 *GNU* | *'with BFD'*)
5447 test "$with_gnu_ld" != no && break
5450 test "$with_gnu_ld" != yes && break
5457 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5462 if test -n "$LD"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5464 $as_echo "$LD" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5469 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5471 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5472 if ${lt_cv_prog_gnu_ld+:} false; then :
5473 $as_echo_n "(cached) " >&6
5475 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5476 case `$LD -v 2>&1 </dev/null` in
5477 *GNU* | *'with BFD'*)
5478 lt_cv_prog_gnu_ld=yes
5481 lt_cv_prog_gnu_ld=no
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5486 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5487 with_gnu_ld=$lt_cv_prog_gnu_ld
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5498 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5499 if ${lt_cv_path_NM+:} false; then :
5500 $as_echo_n "(cached) " >&6
5502 if test -n "$NM"; then
5503 # Let the user override the test.
5506 lt_nm_to_check="${ac_tool_prefix}nm"
5507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5508 lt_nm_to_check="$lt_nm_to_check nm"
5510 for lt_tmp_nm in $lt_nm_to_check; do
5511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514 test -z "$ac_dir" && ac_dir=.
5515 tmp_nm="$ac_dir/$lt_tmp_nm"
5516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5517 # Check to see if the nm accepts a BSD-compat flag.
5518 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5519 # nm: unknown option "B" ignored
5520 # Tru64's nm complains that /dev/null is an invalid object file
5521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5522 */dev/null* | *'Invalid file or object type'*)
5523 lt_cv_path_NM="$tmp_nm -B"
5527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5529 lt_cv_path_NM="$tmp_nm -p"
5533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5534 continue # so that we can try to find one that supports BSD flags
5543 : ${lt_cv_path_NM=no}
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5547 $as_echo "$lt_cv_path_NM" >&6; }
5548 if test "$lt_cv_path_NM" != "no"; then
5551 # Didn't find any BSD compatible name lister, look for dumpbin.
5552 if test -n "$DUMPBIN"; then :
5553 # Let the user override the test.
5555 if test -n "$ac_tool_prefix"; then
5556 for ac_prog in dumpbin "link -dump"
5558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561 $as_echo_n "checking for $ac_word... " >&6; }
5562 if ${ac_cv_prog_DUMPBIN+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 if test -n "$DUMPBIN"; then
5566 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5575 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 DUMPBIN=$ac_cv_prog_DUMPBIN
5586 if test -n "$DUMPBIN"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5588 $as_echo "$DUMPBIN" >&6; }
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5595 test -n "$DUMPBIN" && break
5598 if test -z "$DUMPBIN"; then
5599 ac_ct_DUMPBIN=$DUMPBIN
5600 for ac_prog in dumpbin "link -dump"
5602 # Extract the first word of "$ac_prog", so it can be a program name with args.
5603 set dummy $ac_prog; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$ac_ct_DUMPBIN"; then
5610 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5630 if test -n "$ac_ct_DUMPBIN"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5632 $as_echo "$ac_ct_DUMPBIN" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5639 test -n "$ac_ct_DUMPBIN" && break
5642 if test "x$ac_ct_DUMPBIN" = x; then
5645 case $cross_compiling:$ac_tool_warned in
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5649 ac_tool_warned=yes ;;
5651 DUMPBIN=$ac_ct_DUMPBIN
5655 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5657 DUMPBIN="$DUMPBIN -symbols"
5665 if test "$DUMPBIN" != ":"; then
5669 test -z "$NM" && NM=nm
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5677 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5678 if ${lt_cv_nm_interface+:} false; then :
5679 $as_echo_n "(cached) " >&6
5681 lt_cv_nm_interface="BSD nm"
5682 echo "int some_variable = 0;" > conftest.$ac_ext
5683 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5684 (eval "$ac_compile" 2>conftest.err)
5685 cat conftest.err >&5
5686 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5687 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5688 cat conftest.err >&5
5689 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5690 cat conftest.out >&5
5691 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5692 lt_cv_nm_interface="MS dumpbin"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5697 $as_echo "$lt_cv_nm_interface" >&6; }
5699 # find the maximum length of command line arguments
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5701 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5702 if ${lt_cv_sys_max_cmd_len+:} false; then :
5703 $as_echo_n "(cached) " >&6
5710 # On DJGPP, this test can blow up pretty badly due to problems in libc
5711 # (any single argument exceeding 2000 bytes causes a buffer overrun
5712 # during glob expansion). Even if it were fixed, the result of this
5713 # check would be larger than it should be.
5714 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5718 # Under GNU Hurd, this test is not required because there is
5719 # no limit to the length of command line arguments.
5720 # Libtool will interpret -1 as no limit whatsoever
5721 lt_cv_sys_max_cmd_len=-1;
5724 cygwin* | mingw* | cegcc*)
5725 # On Win9x/ME, this test blows up -- it succeeds, but takes
5726 # about 5 minutes as the teststring grows exponentially.
5727 # Worse, since 9x/ME are not pre-emptively multitasking,
5728 # you end up with a "frozen" computer, even though with patience
5729 # the test eventually succeeds (with a max line length of 256k).
5730 # Instead, let's just punt: use the minimum linelength reported by
5731 # all of the supported platforms: 8192 (on NT/2K/XP).
5732 lt_cv_sys_max_cmd_len=8192;
5736 # On MiNT this can take a long time and run out of memory.
5737 lt_cv_sys_max_cmd_len=8192;
5741 # On AmigaOS with pdksh, this test takes hours, literally.
5742 # So we just punt and use a minimum line length of 8192.
5743 lt_cv_sys_max_cmd_len=8192;
5746 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5747 # This has been around since 386BSD, at least. Likely further.
5748 if test -x /sbin/sysctl; then
5749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5750 elif test -x /usr/sbin/sysctl; then
5751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5755 # And add a safety zone
5756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5761 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5762 lt_cv_sys_max_cmd_len=196608
5766 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5767 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5768 # nice to cause kernel panics so lets avoid the loop below.
5769 # First set a reasonable default.
5770 lt_cv_sys_max_cmd_len=16384
5772 if test -x /sbin/sysconfig; then
5773 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5774 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5779 lt_cv_sys_max_cmd_len=102400
5781 sysv5* | sco5v6* | sysv4.2uw2*)
5782 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5783 if test -n "$kargmax"; then
5784 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5786 lt_cv_sys_max_cmd_len=32768
5790 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5791 if test -n "$lt_cv_sys_max_cmd_len"; then
5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5795 # Make teststring a little bigger before we do anything with it.
5796 # a 1K string should be a reasonable start.
5797 for i in 1 2 3 4 5 6 7 8 ; do
5798 teststring=$teststring$teststring
5800 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5801 # If test is not a shell built-in, we'll probably end up computing a
5802 # maximum length that is only half of the actual maximum length, but
5804 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5805 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5806 test $i != 17 # 1/2 MB should be enough
5809 teststring=$teststring$teststring
5811 # Only check the string length outside the loop.
5812 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5814 # Add a significant safety factor because C++ compilers can tack on
5815 # massive amounts of additional arguments before passing them to the
5816 # linker. It appears as though 1/2 is a usable value.
5817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5824 if test -n $lt_cv_sys_max_cmd_len ; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5826 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5829 $as_echo "none" >&6; }
5831 max_cmd_len=$lt_cv_sys_max_cmd_len
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5843 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5844 # Try some XSI features
5847 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5849 && eval 'test $(( 1 + 1 )) -eq 2 \
5850 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5853 $as_echo "$xsi_shell" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5857 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5859 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5861 && lt_shell_append=yes
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5863 $as_echo "$lt_shell_append" >&6; }
5866 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5876 # test EBCDIC or ASCII
5877 case `echo X|tr X '\101'` in
5878 A) # ASCII based system
5879 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5880 lt_SP2NL='tr \040 \012'
5881 lt_NL2SP='tr \015\012 \040\040'
5883 *) # EBCDIC based system
5884 lt_SP2NL='tr \100 \n'
5885 lt_NL2SP='tr \r\n \100\100'
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5898 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5899 if ${lt_cv_to_host_file_cmd+:} false; then :
5900 $as_echo_n "(cached) " >&6
5905 *-*-mingw* ) # actually msys
5906 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5909 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5911 * ) # otherwise, assume *nix
5912 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5918 *-*-mingw* ) # actually msys
5919 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5922 lt_cv_to_host_file_cmd=func_convert_file_noop
5924 * ) # otherwise, assume *nix
5925 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5929 * ) # unhandled hosts (and "normal" native builds)
5930 lt_cv_to_host_file_cmd=func_convert_file_noop
5936 to_host_file_cmd=$lt_cv_to_host_file_cmd
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5938 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5945 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5946 if ${lt_cv_to_tool_file_cmd+:} false; then :
5947 $as_echo_n "(cached) " >&6
5949 #assume ordinary cross tools, or native build.
5950 lt_cv_to_tool_file_cmd=func_convert_file_noop
5954 *-*-mingw* ) # actually msys
5955 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5963 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5965 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5972 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5973 if ${lt_cv_ld_reload_flag+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 lt_cv_ld_reload_flag='-r'
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5979 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5980 reload_flag=$lt_cv_ld_reload_flag
5981 case $reload_flag in
5983 *) reload_flag=" $reload_flag" ;;
5985 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5987 cygwin* | mingw* | pw32* | cegcc*)
5988 if test "$GCC" != yes; then
5993 if test "$GCC" = yes; then
5994 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5996 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if ${ac_cv_prog_OBJDUMP+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 if test -n "$OBJDUMP"; then
6018 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 OBJDUMP=$ac_cv_prog_OBJDUMP
6038 if test -n "$OBJDUMP"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6040 $as_echo "$OBJDUMP" >&6; }
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_OBJDUMP"; then
6049 ac_ct_OBJDUMP=$OBJDUMP
6050 # Extract the first word of "objdump", so it can be a program name with args.
6051 set dummy objdump; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6055 $as_echo_n "(cached) " >&6
6057 if test -n "$ac_ct_OBJDUMP"; then
6058 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6078 if test -n "$ac_ct_OBJDUMP"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6080 $as_echo "$ac_ct_OBJDUMP" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_OBJDUMP" = x; then
6089 case $cross_compiling:$ac_tool_warned in
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6095 OBJDUMP=$ac_ct_OBJDUMP
6098 OBJDUMP="$ac_cv_prog_OBJDUMP"
6101 test -z "$OBJDUMP" && OBJDUMP=objdump
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6112 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6113 if ${lt_cv_deplibs_check_method+:} false; then :
6114 $as_echo_n "(cached) " >&6
6116 lt_cv_file_magic_cmd='$MAGIC_CMD'
6117 lt_cv_file_magic_test_file=
6118 lt_cv_deplibs_check_method='unknown'
6119 # Need to set the preceding variable on all platforms that support
6120 # interlibrary dependencies.
6121 # 'none' -- dependencies not supported.
6122 # `unknown' -- same as none, but documents that we really don't know.
6123 # 'pass_all' -- all dependencies passed with no checks.
6124 # 'test_compile' -- check by making test program.
6125 # 'file_magic [[regex]]' -- check by looking for files in library path
6126 # which responds to the $file_magic_cmd with a given extended regex.
6127 # If you have `file' or equivalent on your system and you're not sure
6128 # whether `pass_all' will *always* work, you probably want this one.
6132 lt_cv_deplibs_check_method=pass_all
6136 lt_cv_deplibs_check_method=pass_all
6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6141 lt_cv_file_magic_cmd='/usr/bin/file -L'
6142 lt_cv_file_magic_test_file=/shlib/libc.so
6146 # func_win32_libid is a shell function defined in ltmain.sh
6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148 lt_cv_file_magic_cmd='func_win32_libid'
6152 # Base MSYS/MinGW do not provide the 'file' command needed by
6153 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6154 # unless we find 'file', for example because we are cross-compiling.
6155 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6156 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6158 lt_cv_file_magic_cmd='func_win32_libid'
6160 # Keep this pattern in sync with the one in func_win32_libid.
6161 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6162 lt_cv_file_magic_cmd='$OBJDUMP -f'
6167 # use the weaker test based on 'objdump'. See mingw*.
6168 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6169 lt_cv_file_magic_cmd='$OBJDUMP -f'
6172 darwin* | rhapsody*)
6173 lt_cv_deplibs_check_method=pass_all
6176 freebsd* | dragonfly*)
6177 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180 # Not sure whether the presence of OpenBSD here was a mistake.
6181 # Let's accept both of them until this is cleared up.
6182 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6183 lt_cv_file_magic_cmd=/usr/bin/file
6184 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6188 lt_cv_deplibs_check_method=pass_all
6193 lt_cv_deplibs_check_method=pass_all
6197 lt_cv_deplibs_check_method=pass_all
6200 hpux10.20* | hpux11*)
6201 lt_cv_file_magic_cmd=/usr/bin/file
6204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6205 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6208 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]'
6209 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6213 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6223 irix5* | irix6* | nonstopux*)
6225 *-32|*"-32 ") libmagic=32-bit;;
6226 *-n32|*"-n32 ") libmagic=N32;;
6227 *-64|*"-64 ") libmagic=64-bit;;
6228 *) libmagic=never-match;;
6230 lt_cv_deplibs_check_method=pass_all
6233 # This must be Linux ELF.
6234 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6235 lt_cv_deplibs_check_method=pass_all
6239 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6242 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6248 lt_cv_file_magic_cmd=/usr/bin/file
6249 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6253 lt_cv_deplibs_check_method=pass_all
6257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6264 osf3* | osf4* | osf5*)
6265 lt_cv_deplibs_check_method=pass_all
6269 lt_cv_deplibs_check_method=pass_all
6273 lt_cv_deplibs_check_method=pass_all
6276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6277 lt_cv_deplibs_check_method=pass_all
6281 case $host_vendor in
6283 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]'
6284 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6287 lt_cv_deplibs_check_method=pass_all
6290 lt_cv_file_magic_cmd='/bin/file'
6291 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6294 lt_cv_file_magic_cmd='/bin/file'
6295 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6296 lt_cv_file_magic_test_file=/lib/libc.so
6299 lt_cv_deplibs_check_method=pass_all
6302 lt_cv_deplibs_check_method=pass_all
6308 lt_cv_deplibs_check_method=pass_all
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6314 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6318 if test "$build" = "$host"; then
6321 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6324 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6330 file_magic_cmd=$lt_cv_file_magic_cmd
6331 deplibs_check_method=$lt_cv_deplibs_check_method
6332 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_DLLTOOL+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -n "$DLLTOOL"; then
6364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 DLLTOOL=$ac_cv_prog_DLLTOOL
6384 if test -n "$DLLTOOL"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6386 $as_echo "$DLLTOOL" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_DLLTOOL"; then
6395 ac_ct_DLLTOOL=$DLLTOOL
6396 # Extract the first word of "dlltool", so it can be a program name with args.
6397 set dummy dlltool; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6401 $as_echo_n "(cached) " >&6
6403 if test -n "$ac_ct_DLLTOOL"; then
6404 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6424 if test -n "$ac_ct_DLLTOOL"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6426 $as_echo "$ac_ct_DLLTOOL" >&6; }
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_DLLTOOL" = x; then
6435 case $cross_compiling:$ac_tool_warned in
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6441 DLLTOOL=$ac_ct_DLLTOOL
6444 DLLTOOL="$ac_cv_prog_DLLTOOL"
6447 test -z "$DLLTOOL" && DLLTOOL=dlltool
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6459 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6460 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 lt_cv_sharedlib_from_linklib_cmd='unknown'
6466 cygwin* | mingw* | pw32* | cegcc*)
6467 # two different shell functions defined in ltmain.sh
6468 # decide which to use based on capabilities of $DLLTOOL
6469 case `$DLLTOOL --help 2>&1` in
6470 *--identify-strict*)
6471 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6474 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6479 # fallback: assume linklib IS sharedlib
6480 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6486 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6487 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6488 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6496 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_prog_AR+:} false; then :
6504 $as_echo_n "(cached) " >&6
6506 if test -n "$AR"; then
6507 ac_cv_prog_AR="$AR" # Let the user override the test.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6516 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 if test -n "$AR"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6529 $as_echo "$AR" >&6; }
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6536 test -n "$AR" && break
6539 if test -z "$AR"; then
6543 # Extract the first word of "$ac_prog", so it can be a program name with args.
6544 set dummy $ac_prog; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 if test -n "$ac_ct_AR"; then
6551 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560 ac_cv_prog_ac_ct_AR="$ac_prog"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6571 if test -n "$ac_ct_AR"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6573 $as_echo "$ac_ct_AR" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6580 test -n "$ac_ct_AR" && break
6583 if test "x$ac_ct_AR" = x; then
6586 case $cross_compiling:$ac_tool_warned in
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6590 ac_tool_warned=yes ;;
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6610 $as_echo_n "checking for archiver @FILE support... " >&6; }
6611 if ${lt_cv_ar_at_file+:} false; then :
6612 $as_echo_n "(cached) " >&6
6615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616 /* end confdefs.h. */
6626 if ac_fn_c_try_compile "$LINENO"; then :
6627 echo conftest.$ac_objext > conftest.lst
6628 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6630 (eval $lt_ar_try) 2>&5
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }
6634 if test "$ac_status" -eq 0; then
6635 # Ensure the archiver fails upon bogus file names.
6636 rm -f conftest.$ac_objext libconftest.a
6637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6638 (eval $lt_ar_try) 2>&5
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }
6642 if test "$ac_status" -ne 0; then
6646 rm -f conftest.* libconftest.a
6649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6653 $as_echo "$lt_cv_ar_at_file" >&6; }
6655 if test "x$lt_cv_ar_at_file" = xno; then
6658 archiver_list_spec=$lt_cv_ar_at_file
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 $as_echo_n "checking for $ac_word... " >&6; }
6672 if ${ac_cv_prog_STRIP+:} false; then :
6673 $as_echo_n "(cached) " >&6
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6698 $as_echo "$STRIP" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 $as_echo "no" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6708 # Extract the first word of "strip", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_STRIP="strip"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6738 $as_echo "$ac_ct_STRIP" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6744 if test "x$ac_ct_STRIP" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751 ac_tool_warned=yes ;;
6756 STRIP="$ac_cv_prog_STRIP"
6759 test -z "$STRIP" && STRIP=:
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_RANLIB+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 RANLIB=$ac_cv_prog_RANLIB
6795 if test -n "$RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6797 $as_echo "$RANLIB" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6805 if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib", so it can be a program name with args.
6808 set dummy ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837 $as_echo "$ac_ct_RANLIB" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6843 if test "x$ac_ct_RANLIB" = x; then
6846 case $cross_compiling:$ac_tool_warned in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6852 RANLIB=$ac_ct_RANLIB
6855 RANLIB="$ac_cv_prog_RANLIB"
6858 test -z "$RANLIB" && RANLIB=:
6865 # Determine commands to create old-style static archives.
6866 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6867 old_postinstall_cmds='chmod 644 $oldlib'
6868 old_postuninstall_cmds=
6870 if test -n "$RANLIB"; then
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6884 lock_old_archive_extraction=yes ;;
6886 lock_old_archive_extraction=no ;;
6927 # If no C compiler was specified, use CC.
6930 # If no C compiler flags were specified, use CFLAGS.
6931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6933 # Allow CC to be a program name with arguments.
6937 # Check for command to grab the raw symbol name followed by C symbol from nm.
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6939 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6940 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6941 $as_echo_n "(cached) " >&6
6944 # These are sane defaults that work on at least a few old systems.
6945 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6947 # Character class describing NM global symbol codes.
6948 symcode='[BCDEGRST]'
6950 # Regexp to match symbols that can be accessed directly from C.
6951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953 # Define system-specific variables.
6958 cygwin* | mingw* | pw32* | cegcc*)
6959 symcode='[ABCDGISTW]'
6962 if test "$host_cpu" = ia64; then
6963 symcode='[ABCDEGRST]'
6967 symcode='[BCDEGRST]'
6970 symcode='[BCDEGQRST]'
6981 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6989 # If we're using GNU nm, then use its standard symbol codes.
6990 case `$NM -V 2>&1` in
6991 *GNU* | *'with BFD'*)
6992 symcode='[ABCDGIRSTW]' ;;
6995 # Transform an extracted symbol line into a proper C declaration.
6996 # Some systems (esp. on ia64) link data and code symbols differently,
6997 # so use this general approach.
6998 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7000 # Transform an extracted symbol line into symbol name and symbol address
7001 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7002 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'"
7004 # Handle CRLF in mingw tool chain
7008 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7012 # Try without a prefix underscore, then with it.
7013 for ac_symprfx in "" "_"; do
7015 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7016 symxfrm="\\1 $ac_symprfx\\2 \\2"
7018 # Write the raw and C identifiers.
7019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7020 # Fake it for dumpbin and say T for any non-static function
7021 # and D for any global variable.
7022 # Also find C++ and __fastcall symbols from MSVC++,
7023 # which start with @ or ?.
7024 lt_cv_sys_global_symbol_pipe="$AWK '"\
7025 " {last_section=section; section=\$ 3};"\
7026 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7027 " \$ 0!~/External *\|/{next};"\
7028 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7029 " {if(hide[section]) next};"\
7030 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7031 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7032 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7033 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7034 " ' prfx=^$ac_symprfx"
7036 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7040 # Check to see that the pipe works correctly.
7044 cat > conftest.$ac_ext <<_LT_EOF
7049 void nm_test_func(void);
7050 void nm_test_func(void){}
7054 int main(){nm_test_var='a';nm_test_func();return(0);}
7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7058 (eval $ac_compile) 2>&5
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; }; then
7062 # Now try to grab the symbols.
7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7065 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; } && test -s "$nlist"; then
7069 # Try sorting and uniquifying the output.
7070 if sort "$nlist" | uniq > "$nlist"T; then
7071 mv -f "$nlist"T "$nlist"
7076 # Make sure that we snagged all the symbols we need.
7077 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7078 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7079 cat <<_LT_EOF > conftest.$ac_ext
7080 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7081 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7082 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7083 relocations are performed -- see ld's documentation on pseudo-relocs. */
7084 # define LT_DLSYM_CONST
7085 #elif defined(__osf__)
7086 /* This system does not cope well with relocations in const data. */
7087 # define LT_DLSYM_CONST
7089 # define LT_DLSYM_CONST const
7097 # Now generate the symbol file.
7098 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7100 cat <<_LT_EOF >> conftest.$ac_ext
7102 /* The mapping between symbol names and symbols. */
7103 LT_DLSYM_CONST struct {
7107 lt__PROGRAM__LTX_preloaded_symbols[] =
7109 { "@PROGRAM@", (void *) 0 },
7111 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7112 cat <<\_LT_EOF >> conftest.$ac_ext
7116 /* This works around a problem in FreeBSD linker */
7117 #ifdef FREEBSD_WORKAROUND
7118 static const void *lt_preloaded_setup() {
7119 return lt__PROGRAM__LTX_preloaded_symbols;
7127 # Now try linking the two files.
7128 mv conftest.$ac_objext conftstm.$ac_objext
7129 lt_globsym_save_LIBS=$LIBS
7130 lt_globsym_save_CFLAGS=$CFLAGS
7131 LIBS="conftstm.$ac_objext"
7132 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7134 (eval $ac_link) 2>&5
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7140 LIBS=$lt_globsym_save_LIBS
7141 CFLAGS=$lt_globsym_save_CFLAGS
7143 echo "cannot find nm_test_func in $nlist" >&5
7146 echo "cannot find nm_test_var in $nlist" >&5
7149 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7152 echo "$progname: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 rm -rf conftest* conftst*
7157 # Do not use the global_symbol_pipe unless it works.
7158 if test "$pipe_works" = yes; then
7161 lt_cv_sys_global_symbol_pipe=
7167 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7168 lt_cv_sys_global_symbol_to_cdecl=
7170 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7172 $as_echo "failed" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7175 $as_echo "ok" >&6; }
7178 # Response file support.
7179 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7180 nm_file_list_spec='@'
7181 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7182 nm_file_list_spec='@'
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7212 $as_echo_n "checking for sysroot... " >&6; }
7214 # Check whether --with-sysroot was given.
7215 if test "${with_sysroot+set}" = set; then :
7216 withval=$with_sysroot;
7223 case ${with_sysroot} in #(
7225 if test "$GCC" = yes; then
7226 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7230 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7236 $as_echo "${with_sysroot}" >&6; }
7237 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7242 $as_echo "${lt_sysroot:-no}" >&6; }
7248 # Check whether --enable-libtool-lock was given.
7249 if test "${enable_libtool_lock+set}" = set; then :
7250 enableval=$enable_libtool_lock;
7253 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7255 # Some flags need to be propagated to the compiler or linker for good
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 case `/usr/bin/file conftest.$ac_objext` in
7278 # Find out which ABI we are using.
7279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7281 (eval $ac_compile) 2>&5
7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7284 test $ac_status = 0; }; then
7285 if test "$lt_cv_prog_gnu_ld" = yes; then
7286 case `/usr/bin/file conftest.$ac_objext` in
7288 LD="${LD-ld} -melf32bsmip"
7291 LD="${LD-ld} -melf32bmipn32"
7294 LD="${LD-ld} -melf64bmip"
7298 case `/usr/bin/file conftest.$ac_objext` in
7314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7316 # Find out which ABI we are using.
7317 echo 'int i;' > conftest.$ac_ext
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7319 (eval $ac_compile) 2>&5
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; }; then
7323 case `/usr/bin/file conftest.o` in
7326 x86_64-*kfreebsd*-gnu)
7327 LD="${LD-ld} -m elf_i386_fbsd"
7330 LD="${LD-ld} -m elf_i386"
7332 ppc64-*linux*|powerpc64-*linux*)
7333 LD="${LD-ld} -m elf32ppclinux"
7336 LD="${LD-ld} -m elf_s390"
7339 LD="${LD-ld} -m elf32_sparc"
7345 x86_64-*kfreebsd*-gnu)
7346 LD="${LD-ld} -m elf_x86_64_fbsd"
7349 LD="${LD-ld} -m elf_x86_64"
7351 ppc*-*linux*|powerpc*-*linux*)
7352 LD="${LD-ld} -m elf64ppc"
7354 s390*-*linux*|s390*-*tpf*)
7355 LD="${LD-ld} -m elf64_s390"
7358 LD="${LD-ld} -m elf64_sparc"
7368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7369 SAVE_CFLAGS="$CFLAGS"
7370 CFLAGS="$CFLAGS -belf"
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7372 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7373 if ${lt_cv_cc_needs_belf+:} false; then :
7374 $as_echo_n "(cached) " >&6
7377 ac_cpp='$CPP $CPPFLAGS'
7378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7393 if ac_fn_c_try_link "$LINENO"; then :
7394 lt_cv_cc_needs_belf=yes
7396 lt_cv_cc_needs_belf=no
7398 rm -f core conftest.err conftest.$ac_objext \
7399 conftest$ac_exeext conftest.$ac_ext
7401 ac_cpp='$CPP $CPPFLAGS'
7402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7408 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7411 CFLAGS="$SAVE_CFLAGS"
7415 # Find out which ABI we are using.
7416 echo 'int i;' > conftest.$ac_ext
7417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7418 (eval $ac_compile) 2>&5
7420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421 test $ac_status = 0; }; then
7422 case `/usr/bin/file conftest.o` in
7424 case $lt_cv_prog_gnu_ld in
7425 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7439 need_locks="$enable_libtool_lock"
7441 if test -n "$ac_tool_prefix"; then
7442 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}mt; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7447 $as_echo_n "(cached) " >&6
7449 if test -n "$MANIFEST_TOOL"; then
7450 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7470 if test -n "$MANIFEST_TOOL"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7472 $as_echo "$MANIFEST_TOOL" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7480 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7481 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7482 # Extract the first word of "mt", so it can be a program name with args.
7483 set dummy mt; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 if test -n "$ac_ct_MANIFEST_TOOL"; then
7490 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7510 if test -n "$ac_ct_MANIFEST_TOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7512 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7518 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7521 case $cross_compiling:$ac_tool_warned in
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7527 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7530 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7533 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7535 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7536 if ${lt_cv_path_mainfest_tool+:} false; then :
7537 $as_echo_n "(cached) " >&6
7539 lt_cv_path_mainfest_tool=no
7540 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7541 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7542 cat conftest.err >&5
7543 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7544 lt_cv_path_mainfest_tool=yes
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7549 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7550 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7560 rhapsody* | darwin*)
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7567 $as_echo_n "(cached) " >&6
7569 if test -n "$DSYMUTIL"; then
7570 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7590 if test -n "$DSYMUTIL"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7592 $as_echo "$DSYMUTIL" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }
7600 if test -z "$ac_cv_prog_DSYMUTIL"; then
7601 ac_ct_DSYMUTIL=$DSYMUTIL
7602 # Extract the first word of "dsymutil", so it can be a program name with args.
7603 set dummy dsymutil; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 if test -n "$ac_ct_DSYMUTIL"; then
7610 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7630 if test -n "$ac_ct_DSYMUTIL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7632 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7638 if test "x$ac_ct_DSYMUTIL" = x; then
7641 case $cross_compiling:$ac_tool_warned in
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7645 ac_tool_warned=yes ;;
7647 DSYMUTIL=$ac_ct_DSYMUTIL
7650 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7653 if test -n "$ac_tool_prefix"; then
7654 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_NMEDIT+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 if test -n "$NMEDIT"; then
7662 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 test -z "$as_dir" && as_dir=.
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 NMEDIT=$ac_cv_prog_NMEDIT
7682 if test -n "$NMEDIT"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7684 $as_echo "$NMEDIT" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7692 if test -z "$ac_cv_prog_NMEDIT"; then
7693 ac_ct_NMEDIT=$NMEDIT
7694 # Extract the first word of "nmedit", so it can be a program name with args.
7695 set dummy nmedit; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 if test -n "$ac_ct_NMEDIT"; then
7702 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7722 if test -n "$ac_ct_NMEDIT"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7724 $as_echo "$ac_ct_NMEDIT" >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7730 if test "x$ac_ct_NMEDIT" = x; then
7733 case $cross_compiling:$ac_tool_warned in
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737 ac_tool_warned=yes ;;
7739 NMEDIT=$ac_ct_NMEDIT
7742 NMEDIT="$ac_cv_prog_NMEDIT"
7745 if test -n "$ac_tool_prefix"; then
7746 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7747 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_prog_LIPO+:} false; then :
7751 $as_echo_n "(cached) " >&6
7753 if test -n "$LIPO"; then
7754 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 LIPO=$ac_cv_prog_LIPO
7774 if test -n "$LIPO"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7776 $as_echo "$LIPO" >&6; }
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7784 if test -z "$ac_cv_prog_LIPO"; then
7786 # Extract the first word of "lipo", so it can be a program name with args.
7787 set dummy lipo; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -n "$ac_ct_LIPO"; then
7794 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_ac_ct_LIPO="lipo"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7814 if test -n "$ac_ct_LIPO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7816 $as_echo "$ac_ct_LIPO" >&6; }
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7822 if test "x$ac_ct_LIPO" = x; then
7825 case $cross_compiling:$ac_tool_warned in
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829 ac_tool_warned=yes ;;
7834 LIPO="$ac_cv_prog_LIPO"
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}otool; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if ${ac_cv_prog_OTOOL+:} false; then :
7843 $as_echo_n "(cached) " >&6
7845 if test -n "$OTOOL"; then
7846 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 OTOOL=$ac_cv_prog_OTOOL
7866 if test -n "$OTOOL"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7868 $as_echo "$OTOOL" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7876 if test -z "$ac_cv_prog_OTOOL"; then
7878 # Extract the first word of "otool", so it can be a program name with args.
7879 set dummy otool; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 if test -n "$ac_ct_OTOOL"; then
7886 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_ac_ct_OTOOL="otool"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7906 if test -n "$ac_ct_OTOOL"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7908 $as_echo "$ac_ct_OTOOL" >&6; }
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7914 if test "x$ac_ct_OTOOL" = x; then
7917 case $cross_compiling:$ac_tool_warned in
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921 ac_tool_warned=yes ;;
7926 OTOOL="$ac_cv_prog_OTOOL"
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_OTOOL64+:} false; then :
7935 $as_echo_n "(cached) " >&6
7937 if test -n "$OTOOL64"; then
7938 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 OTOOL64=$ac_cv_prog_OTOOL64
7958 if test -n "$OTOOL64"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7960 $as_echo "$OTOOL64" >&6; }
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_OTOOL64"; then
7969 ac_ct_OTOOL64=$OTOOL64
7970 # Extract the first word of "otool64", so it can be a program name with args.
7971 set dummy otool64; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7975 $as_echo_n "(cached) " >&6
7977 if test -n "$ac_ct_OTOOL64"; then
7978 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_OTOOL64="otool64"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7998 if test -n "$ac_ct_OTOOL64"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8000 $as_echo "$ac_ct_OTOOL64" >&6; }
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_OTOOL64" = x; then
8009 case $cross_compiling:$ac_tool_warned in
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8015 OTOOL64=$ac_ct_OTOOL64
8018 OTOOL64="$ac_cv_prog_OTOOL64"
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8048 $as_echo_n "checking for -single_module linker flag... " >&6; }
8049 if ${lt_cv_apple_cc_single_mod+:} false; then :
8050 $as_echo_n "(cached) " >&6
8052 lt_cv_apple_cc_single_mod=no
8053 if test -z "${LT_MULTI_MODULE}"; then
8054 # By default we will add the -single_module flag. You can override
8055 # by either setting the environment variable LT_MULTI_MODULE
8056 # non-empty at configure time, or by adding -multi_module to the
8058 rm -rf libconftest.dylib*
8059 echo "int foo(void){return 1;}" > conftest.c
8060 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8061 -dynamiclib -Wl,-single_module conftest.c" >&5
8062 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8063 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8065 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8066 lt_cv_apple_cc_single_mod=yes
8068 cat conftest.err >&5
8070 rm -rf libconftest.dylib*
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8075 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8077 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8078 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8079 $as_echo_n "(cached) " >&6
8081 lt_cv_ld_exported_symbols_list=no
8082 save_LDFLAGS=$LDFLAGS
8083 echo "_main" > conftest.sym
8084 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8096 if ac_fn_c_try_link "$LINENO"; then :
8097 lt_cv_ld_exported_symbols_list=yes
8099 lt_cv_ld_exported_symbols_list=no
8101 rm -f core conftest.err conftest.$ac_objext \
8102 conftest$ac_exeext conftest.$ac_ext
8103 LDFLAGS="$save_LDFLAGS"
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8107 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8109 $as_echo_n "checking for -force_load linker flag... " >&6; }
8110 if ${lt_cv_ld_force_load+:} false; then :
8111 $as_echo_n "(cached) " >&6
8113 lt_cv_ld_force_load=no
8114 cat > conftest.c << _LT_EOF
8115 int forced_loaded() { return 2;}
8117 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8118 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8119 echo "$AR cru libconftest.a conftest.o" >&5
8120 $AR cru libconftest.a conftest.o 2>&5
8121 echo "$RANLIB libconftest.a" >&5
8122 $RANLIB libconftest.a 2>&5
8123 cat > conftest.c << _LT_EOF
8124 int main() { return 0;}
8126 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8127 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8129 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8130 lt_cv_ld_force_load=yes
8132 cat conftest.err >&5
8134 rm -f conftest.err libconftest.a conftest conftest.c
8135 rm -rf conftest.dSYM
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8139 $as_echo "$lt_cv_ld_force_load" >&6; }
8141 rhapsody* | darwin1.[012])
8142 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8145 darwin*) # darwin 5.x on
8146 # if running on 10.5 or later, the deployment target defaults
8147 # to the OS version, if on x86, and 10.4, the deployment
8148 # target defaults to 10.4. Don't you love it?
8149 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8150 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8151 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8155 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8159 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8160 _lt_dar_single_mod='$single_module'
8162 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8163 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8165 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8167 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8168 _lt_dsymutil='~$DSYMUTIL $lib || :'
8175 for ac_header in dlfcn.h
8177 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8179 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8180 cat >>confdefs.h <<_ACEOF
8181 #define HAVE_DLFCN_H 1
8202 # Check whether --enable-shared was given.
8203 if test "${enable_shared+set}" = set; then :
8204 enableval=$enable_shared; p=${PACKAGE-default}
8206 yes) enable_shared=yes ;;
8207 no) enable_shared=no ;;
8210 # Look at the argument we got. We use all the common list separators.
8211 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212 for pkg in $enableval; do
8214 if test "X$pkg" = "X$p"; then
8233 # Check whether --enable-static was given.
8234 if test "${enable_static+set}" = set; then :
8235 enableval=$enable_static; p=${PACKAGE-default}
8237 yes) enable_static=yes ;;
8238 no) enable_static=no ;;
8241 # Look at the argument we got. We use all the common list separators.
8242 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8243 for pkg in $enableval; do
8245 if test "X$pkg" = "X$p"; then
8265 # Check whether --with-pic was given.
8266 if test "${with_pic+set}" = set; then :
8267 withval=$with_pic; pic_mode="$withval"
8273 test -z "$pic_mode" && pic_mode=default
8281 # Check whether --enable-fast-install was given.
8282 if test "${enable_fast_install+set}" = set; then :
8283 enableval=$enable_fast_install; p=${PACKAGE-default}
8285 yes) enable_fast_install=yes ;;
8286 no) enable_fast_install=no ;;
8288 enable_fast_install=no
8289 # Look at the argument we got. We use all the common list separators.
8290 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8291 for pkg in $enableval; do
8293 if test "X$pkg" = "X$p"; then
8294 enable_fast_install=yes
8301 enable_fast_install=yes
8314 # This can be used to rebuild libtool when needed
8315 LIBTOOL_DEPS="$ltmain"
8317 # Always use our own libtool.
8318 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8345 test -z "$LN_S" && LN_S="ln -s"
8360 if test -n "${ZSH_VERSION+set}" ; then
8361 setopt NO_GLOB_SUBST
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8365 $as_echo_n "checking for objdir... " >&6; }
8366 if ${lt_cv_objdir+:} false; then :
8367 $as_echo_n "(cached) " >&6
8369 rm -f .libs 2>/dev/null
8370 mkdir .libs 2>/dev/null
8371 if test -d .libs; then
8374 # MS-DOS does not allow filenames that begin with a dot.
8377 rmdir .libs 2>/dev/null
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8380 $as_echo "$lt_cv_objdir" >&6; }
8381 objdir=$lt_cv_objdir
8387 cat >>confdefs.h <<_ACEOF
8388 #define LT_OBJDIR "$lt_cv_objdir/"
8396 # AIX sometimes has problems with the GCC collect2 program. For some
8397 # reason, if we set the COLLECT_NAMES environment variable, the problems
8398 # vanish in a puff of smoke.
8399 if test "X${COLLECT_NAMES+set}" != Xset; then
8401 export COLLECT_NAMES
8408 can_build_shared=yes
8410 # All known linkers require a `.a' archive for static linking (except MSVC,
8411 # which needs '.lib').
8414 with_gnu_ld="$lt_cv_prog_gnu_ld"
8417 old_CFLAGS="$CFLAGS"
8419 # Set sane defaults for various variables
8420 test -z "$CC" && CC=cc
8421 test -z "$LTCC" && LTCC=$CC
8422 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8423 test -z "$LD" && LD=ld
8424 test -z "$ac_objext" && ac_objext=o
8426 for cc_temp in $compiler""; do
8428 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8429 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8434 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8437 # Only perform the check for file, if the check method requires it
8438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8439 case $deplibs_check_method in
8441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8443 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8445 $as_echo_n "(cached) " >&6
8449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8452 lt_save_MAGIC_CMD="$MAGIC_CMD"
8453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8454 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8455 for ac_dir in $ac_dummy; do
8457 test -z "$ac_dir" && ac_dir=.
8458 if test -f $ac_dir/${ac_tool_prefix}file; then
8459 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8460 if test -n "$file_magic_test_file"; then
8461 case $deplibs_check_method in
8463 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8464 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8465 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8466 $EGREP "$file_magic_regex" > /dev/null; then
8471 *** Warning: the command libtool uses to detect shared libraries,
8472 *** $file_magic_cmd, produces output that libtool cannot recognize.
8473 *** The result is that libtool may fail to recognize shared libraries
8474 *** as such. This will affect the creation of libtool libraries that
8475 *** depend on shared libraries, but programs linked with such libtool
8476 *** libraries will work regardless of this problem. Nevertheless, you
8477 *** may want to report the problem to your system manager and/or to
8478 *** bug-libtool@gnu.org
8488 MAGIC_CMD="$lt_save_MAGIC_CMD"
8493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8494 if test -n "$MAGIC_CMD"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8496 $as_echo "$MAGIC_CMD" >&6; }
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499 $as_echo "no" >&6; }
8506 if test -z "$lt_cv_path_MAGIC_CMD"; then
8507 if test -n "$ac_tool_prefix"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8509 $as_echo_n "checking for file... " >&6; }
8510 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8511 $as_echo_n "(cached) " >&6
8515 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8518 lt_save_MAGIC_CMD="$MAGIC_CMD"
8519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8520 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8521 for ac_dir in $ac_dummy; do
8523 test -z "$ac_dir" && ac_dir=.
8524 if test -f $ac_dir/file; then
8525 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8526 if test -n "$file_magic_test_file"; then
8527 case $deplibs_check_method in
8529 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8532 $EGREP "$file_magic_regex" > /dev/null; then
8537 *** Warning: the command libtool uses to detect shared libraries,
8538 *** $file_magic_cmd, produces output that libtool cannot recognize.
8539 *** The result is that libtool may fail to recognize shared libraries
8540 *** as such. This will affect the creation of libtool libraries that
8541 *** depend on shared libraries, but programs linked with such libtool
8542 *** libraries will work regardless of this problem. Nevertheless, you
8543 *** may want to report the problem to your system manager and/or to
8544 *** bug-libtool@gnu.org
8554 MAGIC_CMD="$lt_save_MAGIC_CMD"
8559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8560 if test -n "$MAGIC_CMD"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8562 $as_echo "$MAGIC_CMD" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8578 # Use C for the default configuration in the libtool script
8582 ac_cpp='$CPP $CPPFLAGS'
8583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588 # Source file extension for C test sources.
8591 # Object file extension for compiled C test sources.
8595 # Code to be used in simple compile tests
8596 lt_simple_compile_test_code="int some_variable = 0;"
8598 # Code to be used in simple link tests
8599 lt_simple_link_test_code='int main(){return(0);}'
8607 # If no C compiler was specified, use CC.
8610 # If no C compiler flags were specified, use CFLAGS.
8611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8613 # Allow CC to be a program name with arguments.
8616 # Save the default compiler, since it gets overwritten when the other
8617 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8618 compiler_DEFAULT=$CC
8620 # save warnings/boilerplate of simple test code
8621 ac_outfile=conftest.$ac_objext
8622 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8623 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8624 _lt_compiler_boilerplate=`cat conftest.err`
8627 ac_outfile=conftest.$ac_objext
8628 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8629 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630 _lt_linker_boilerplate=`cat conftest.err`
8635 ## There is no encapsulation within the following macros, do not change
8636 ## the running order or otherwise move them around unless you know exactly
8637 ## what you are doing...
8638 if test -n "$compiler"; then
8640 lt_prog_compiler_no_builtin_flag=
8642 if test "$GCC" = yes; then
8643 case $cc_basename in
8645 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8647 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8652 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 lt_cv_prog_compiler_rtti_exceptions=no
8656 ac_outfile=conftest.$ac_objext
8657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8658 lt_compiler_flag="-fno-rtti -fno-exceptions"
8659 # Insert the option either (1) after the last *FLAGS variable, or
8660 # (2) before a word containing "conftest.", or (3) at the end.
8661 # Note that $ac_compile itself does not contain backslashes and begins
8662 # with a dollar sign (not a hyphen), so the echo should work correctly.
8663 # The option is referenced via a variable to avoid confusing sed.
8664 lt_compile=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>conftest.err)
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s "$ac_outfile"; then
8674 # The compiler can only warn and ignore the option if not recognized
8675 # So say no if there are warnings other than the usual output.
8676 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8678 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8679 lt_cv_prog_compiler_rtti_exceptions=yes
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8689 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8701 lt_prog_compiler_wl=
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_static=
8706 if test "$GCC" = yes; then
8707 lt_prog_compiler_wl='-Wl,'
8708 lt_prog_compiler_static='-static'
8712 # All AIX code is PIC.
8713 if test "$host_cpu" = ia64; then
8714 # AIX 5 now supports IA64 processor
8715 lt_prog_compiler_static='-Bstatic'
8722 # see comment about AmigaOS4 .so support
8723 lt_prog_compiler_pic='-fPIC'
8726 # FIXME: we need at least 68020 code to build shared libraries, but
8727 # adding the `-m68020' flag to GCC prevents building anything better,
8729 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8734 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8735 # PIC is the default for these OSes.
8738 mingw* | cygwin* | pw32* | os2* | cegcc*)
8739 # This hack is so that the source file can tell whether it is being
8740 # built for inclusion in a dll (and should export symbols for example).
8741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8742 # (--disable-auto-import) libraries
8743 lt_prog_compiler_pic='-DDLL_EXPORT'
8746 darwin* | rhapsody*)
8747 # PIC is the default on this platform
8748 # Common symbols not allowed in MH_DYLIB files
8749 lt_prog_compiler_pic='-fno-common'
8753 # PIC is the default for Haiku.
8754 # The "-static" flag exists, but is broken.
8755 lt_prog_compiler_static=
8759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8761 # sets the default TLS model and affects inlining.
8767 lt_prog_compiler_pic='-fPIC'
8773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8774 # Instead, we relocate shared libraries at runtime.
8778 # Just because we use GCC doesn't mean we suddenly get shared libraries
8779 # on systems that don't support them.
8780 lt_prog_compiler_can_build_shared=no
8785 # QNX uses GNU C++, but need to define -shared option too, otherwise
8787 lt_prog_compiler_pic='-fPIC -shared'
8791 if test -d /usr/nec; then
8792 lt_prog_compiler_pic=-Kconform_pic
8797 lt_prog_compiler_pic='-fPIC'
8801 case $cc_basename in
8802 nvcc*) # Cuda Compiler Driver 2.2
8803 lt_prog_compiler_wl='-Xlinker '
8804 lt_prog_compiler_pic='-Xcompiler -fPIC'
8808 # PORTME Check for flag to pass linker flags through the system compiler.
8811 lt_prog_compiler_wl='-Wl,'
8812 if test "$host_cpu" = ia64; then
8813 # AIX 5 now supports IA64 processor
8814 lt_prog_compiler_static='-Bstatic'
8816 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8820 mingw* | cygwin* | pw32* | os2* | cegcc*)
8821 # This hack is so that the source file can tell whether it is being
8822 # built for inclusion in a dll (and should export symbols for example).
8823 lt_prog_compiler_pic='-DDLL_EXPORT'
8826 hpux9* | hpux10* | hpux11*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8835 lt_prog_compiler_pic='+Z'
8838 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8839 lt_prog_compiler_static='${wl}-a ${wl}archive'
8842 irix5* | irix6* | nonstopux*)
8843 lt_prog_compiler_wl='-Wl,'
8844 # PIC (with -KPIC) is the default.
8845 lt_prog_compiler_static='-non_shared'
8848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8849 case $cc_basename in
8850 # old Intel for x86_64 which still supported -KPIC.
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-static'
8856 # icc used to be incompatible with GCC.
8857 # ICC 10 doesn't accept -KPIC any more.
8859 lt_prog_compiler_wl='-Wl,'
8860 lt_prog_compiler_pic='-fPIC'
8861 lt_prog_compiler_static='-static'
8863 # Lahey Fortran 8.1.
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='--shared'
8867 lt_prog_compiler_static='--static'
8870 # NAG Fortran compiler
8871 lt_prog_compiler_wl='-Wl,-Wl,,'
8872 lt_prog_compiler_pic='-PIC'
8873 lt_prog_compiler_static='-Bstatic'
8875 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8876 # Portland Group compilers (*not* the Pentium gcc compiler,
8877 # which looks to be a dead project)
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-fpic'
8880 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_wl='-Wl,'
8884 # All Alpha code is PIC.
8885 lt_prog_compiler_static='-non_shared'
8887 xl* | bgxl* | bgf* | mpixl*)
8888 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8889 lt_prog_compiler_wl='-Wl,'
8890 lt_prog_compiler_pic='-qpic'
8891 lt_prog_compiler_static='-qstaticlink'
8894 case `$CC -V 2>&1 | sed 5q` in
8895 *Sun\ F* | *Sun*Fortran*)
8896 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8897 lt_prog_compiler_pic='-KPIC'
8898 lt_prog_compiler_static='-Bstatic'
8899 lt_prog_compiler_wl=''
8903 lt_prog_compiler_pic='-KPIC'
8904 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-Bstatic'
8918 # QNX uses GNU C++, but need to define -shared option too, otherwise
8920 lt_prog_compiler_pic='-fPIC -shared'
8923 osf3* | osf4* | osf5*)
8924 lt_prog_compiler_wl='-Wl,'
8925 # All OSF/1 code is PIC.
8926 lt_prog_compiler_static='-non_shared'
8930 lt_prog_compiler_static='-non_shared'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 case $cc_basename in
8937 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8938 lt_prog_compiler_wl='-Qoption ld ';;
8940 lt_prog_compiler_wl='-Wl,';;
8945 lt_prog_compiler_wl='-Qoption ld '
8946 lt_prog_compiler_pic='-PIC'
8947 lt_prog_compiler_static='-Bstatic'
8950 sysv4 | sysv4.2uw2* | sysv4.3*)
8951 lt_prog_compiler_wl='-Wl,'
8952 lt_prog_compiler_pic='-KPIC'
8953 lt_prog_compiler_static='-Bstatic'
8957 if test -d /usr/nec ;then
8958 lt_prog_compiler_pic='-Kconform_pic'
8959 lt_prog_compiler_static='-Bstatic'
8963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8964 lt_prog_compiler_wl='-Wl,'
8965 lt_prog_compiler_pic='-KPIC'
8966 lt_prog_compiler_static='-Bstatic'
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_can_build_shared=no
8975 lt_prog_compiler_pic='-pic'
8976 lt_prog_compiler_static='-Bstatic'
8980 lt_prog_compiler_can_build_shared=no
8986 # For platforms which do not support PIC, -DPIC is meaningless:
8988 lt_prog_compiler_pic=
8991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8996 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8997 if ${lt_cv_prog_compiler_pic+:} false; then :
8998 $as_echo_n "(cached) " >&6
9000 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9003 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9004 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9007 # Check to make sure the PIC flag actually works.
9009 if test -n "$lt_prog_compiler_pic"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9011 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9012 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9013 $as_echo_n "(cached) " >&6
9015 lt_cv_prog_compiler_pic_works=no
9016 ac_outfile=conftest.$ac_objext
9017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9019 # Insert the option either (1) after the last *FLAGS variable, or
9020 # (2) before a word containing "conftest.", or (3) at the end.
9021 # Note that $ac_compile itself does not contain backslashes and begins
9022 # with a dollar sign (not a hyphen), so the echo should work correctly.
9023 # The option is referenced via a variable to avoid confusing sed.
9024 lt_compile=`echo "$ac_compile" | $SED \
9025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9027 -e 's:$: $lt_compiler_flag:'`
9028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9029 (eval "$lt_compile" 2>conftest.err)
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 if (exit $ac_status) && test -s "$ac_outfile"; then
9034 # The compiler can only warn and ignore the option if not recognized
9035 # So say no if there are warnings other than the usual output.
9036 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9039 lt_cv_prog_compiler_pic_works=yes
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9046 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9048 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9049 case $lt_prog_compiler_pic in
9051 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9054 lt_prog_compiler_pic=
9055 lt_prog_compiler_can_build_shared=no
9071 # Check to make sure the static flag actually works.
9073 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9075 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9076 if ${lt_cv_prog_compiler_static_works+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 lt_cv_prog_compiler_static_works=no
9080 save_LDFLAGS="$LDFLAGS"
9081 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9082 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9083 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9084 # The linker can only warn and ignore the option if not recognized
9085 # So say no if there are warnings
9086 if test -s conftest.err; then
9087 # Append any errors to the config.log.
9088 cat conftest.err 1>&5
9089 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9091 if diff conftest.exp conftest.er2 >/dev/null; then
9092 lt_cv_prog_compiler_static_works=yes
9095 lt_cv_prog_compiler_static_works=yes
9099 LDFLAGS="$save_LDFLAGS"
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9103 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9105 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9108 lt_prog_compiler_static=
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9119 if ${lt_cv_prog_compiler_c_o+:} false; then :
9120 $as_echo_n "(cached) " >&6
9122 lt_cv_prog_compiler_c_o=no
9123 $RM -r conftest 2>/dev/null
9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129 lt_compiler_flag="-o out/conftest2.$ac_objext"
9130 # Insert the option either (1) after the last *FLAGS variable, or
9131 # (2) before a word containing "conftest.", or (3) at the end.
9132 # Note that $ac_compile itself does not contain backslashes and begins
9133 # with a dollar sign (not a hyphen), so the echo should work correctly.
9134 lt_compile=`echo "$ac_compile" | $SED \
9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9137 -e 's:$: $lt_compiler_flag:'`
9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9139 (eval "$lt_compile" 2>out/conftest.err)
9141 cat out/conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9145 # The compiler can only warn and ignore the option if not recognized
9146 # So say no if there are warnings
9147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9150 lt_cv_prog_compiler_c_o=yes
9155 # SGI C++ compiler will create directory out/ii_files/ for
9156 # template instantiation
9157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9158 $RM out/* && rmdir out
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9165 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9173 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9174 if ${lt_cv_prog_compiler_c_o+:} false; then :
9175 $as_echo_n "(cached) " >&6
9177 lt_cv_prog_compiler_c_o=no
9178 $RM -r conftest 2>/dev/null
9182 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184 lt_compiler_flag="-o out/conftest2.$ac_objext"
9185 # Insert the option either (1) after the last *FLAGS variable, or
9186 # (2) before a word containing "conftest.", or (3) at the end.
9187 # Note that $ac_compile itself does not contain backslashes and begins
9188 # with a dollar sign (not a hyphen), so the echo should work correctly.
9189 lt_compile=`echo "$ac_compile" | $SED \
9190 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9191 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9192 -e 's:$: $lt_compiler_flag:'`
9193 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9194 (eval "$lt_compile" 2>out/conftest.err)
9196 cat out/conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9200 # The compiler can only warn and ignore the option if not recognized
9201 # So say no if there are warnings
9202 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9203 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9204 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9205 lt_cv_prog_compiler_c_o=yes
9210 # SGI C++ compiler will create directory out/ii_files/ for
9211 # template instantiation
9212 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9213 $RM out/* && rmdir out
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9220 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9225 hard_links="nottested"
9226 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9227 # do not overwrite the value of need_locks provided by the user
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9229 $as_echo_n "checking if we can lock with hard links... " >&6; }
9232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9234 ln conftest.a conftest.b 2>&5 || hard_links=no
9235 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9237 $as_echo "$hard_links" >&6; }
9238 if test "$hard_links" = no; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9240 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9253 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9256 allow_undefined_flag=
9257 always_export_symbols=no
9259 archive_expsym_cmds=
9260 compiler_needs_object=no
9261 enable_shared_with_static_runtimes=no
9262 export_dynamic_flag_spec=
9263 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9264 hardcode_automatic=no
9266 hardcode_direct_absolute=no
9267 hardcode_libdir_flag_spec=
9268 hardcode_libdir_flag_spec_ld=
9269 hardcode_libdir_separator=
9271 hardcode_shlibpath_var=unsupported
9273 link_all_deplibs=unknown
9276 old_archive_from_new_cmds=
9277 old_archive_from_expsyms_cmds=
9278 thread_safe_flag_spec=
9279 whole_archive_flag_spec=
9280 # include_expsyms should be a list of space-separated symbols to be *always*
9281 # included in the symbol list
9283 # exclude_expsyms can be an extended regexp of symbols to exclude
9284 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9285 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9286 # as well as any symbol that contains `d'.
9287 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9288 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9289 # platforms (ab)use it in PIC code, but their linkers get confused if
9290 # the symbol is explicitly referenced. Since portable code cannot
9291 # rely on this symbol name, it's probably fine to never include it in
9292 # preloaded symbol tables.
9293 # Exclude shared library initialization/finalization symbols.
9294 extract_expsyms_cmds=
9297 cygwin* | mingw* | pw32* | cegcc*)
9298 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9299 # When not using gcc, we currently assume that we are using
9300 # Microsoft Visual C++.
9301 if test "$GCC" != yes; then
9306 # we just hope/assume this is gcc and not c89 (= MSVC++)
9316 # On some targets, GNU ld is compatible enough with the native linker
9317 # that we're better off using the native interface for both.
9318 lt_use_gnu_ld_interface=no
9319 if test "$with_gnu_ld" = yes; then
9322 # The AIX port of GNU ld has always aspired to compatibility
9323 # with the native linker. However, as the warning in the GNU ld
9324 # block says, versions before 2.19.5* couldn't really create working
9325 # shared libraries, regardless of the interface used.
9326 case `$LD -v 2>&1` in
9327 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9328 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9329 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9331 lt_use_gnu_ld_interface=yes
9336 lt_use_gnu_ld_interface=yes
9341 if test "$lt_use_gnu_ld_interface" = yes; then
9342 # If archive_cmds runs LD, not CC, wlarc should be empty
9345 # Set some defaults for GNU ld with shared library support. These
9346 # are reset later if shared libraries are not supported. Putting them
9347 # here allows them to be overridden if necessary.
9348 runpath_var=LD_RUN_PATH
9349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9350 export_dynamic_flag_spec='${wl}--export-dynamic'
9351 # ancient GNU ld didn't support --whole-archive et. al.
9352 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9353 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9355 whole_archive_flag_spec=
9357 supports_anon_versioning=no
9358 case `$LD -v 2>&1` in
9359 *GNU\ gold*) supports_anon_versioning=yes ;;
9360 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9361 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9362 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9363 *\ 2.11.*) ;; # other 2.11 versions
9364 *) supports_anon_versioning=yes ;;
9367 # See if GNU ld supports shared libraries.
9370 # On AIX/PPC, the GNU linker is very broken
9371 if test "$host_cpu" != ia64; then
9375 *** Warning: the GNU linker, at least up to release 2.19, is reported
9376 *** to be unable to reliably create shared libraries on AIX.
9377 *** Therefore, libtool is disabling shared libraries support. If you
9378 *** really care for shared libraries, you may want to install binutils
9379 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9380 *** You will then need to restart the configuration process.
9389 # see comment about AmigaOS4 .so support
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds=''
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9402 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9403 allow_undefined_flag=unsupported
9404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9405 # support --undefined. This deserves some investigation. FIXME
9406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 cygwin* | mingw* | pw32* | cegcc*)
9413 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9414 # as there is no search path for DLLs.
9415 hardcode_libdir_flag_spec='-L$libdir'
9416 export_dynamic_flag_spec='${wl}--export-all-symbols'
9417 allow_undefined_flag=unsupported
9418 always_export_symbols=no
9419 enable_shared_with_static_runtimes=yes
9420 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'
9421 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9423 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9424 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9425 # If the export-symbols file already is a .def file (1st line
9426 # is EXPORTS), use it as is; otherwise, prepend...
9427 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9428 cp $export_symbols $output_objdir/$soname.def;
9430 echo EXPORTS > $output_objdir/$soname.def;
9431 cat $export_symbols >> $output_objdir/$soname.def;
9433 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 link_all_deplibs=yes
9446 hardcode_shlibpath_var=no
9447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9448 export_dynamic_flag_spec='${wl}-E'
9449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9450 # Instead, shared libraries are loaded at an image base (0x10000000 by
9451 # default) and relocated if they conflict, which is a slow very memory
9452 # consuming and fragmenting process. To avoid this, we pick a random,
9453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9454 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9456 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'
9459 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9461 if test "$host_os" = linux-dietlibc; then
9462 case $cc_basename in
9463 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9466 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9467 && test "$tmp_diet" = no
9469 tmp_addflag=' $pic_flag'
9470 tmp_sharedflag='-shared'
9471 case $cc_basename,$host_cpu in
9472 pgcc*) # Portland Group C compiler
9473 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'
9474 tmp_addflag=' $pic_flag'
9476 pgf77* | pgf90* | pgf95* | pgfortran*)
9477 # Portland Group f77 and f90 compilers
9478 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'
9479 tmp_addflag=' $pic_flag -Mnomain' ;;
9480 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9481 tmp_addflag=' -i_dynamic' ;;
9482 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9483 tmp_addflag=' -i_dynamic -nofor_main' ;;
9484 ifc* | ifort*) # Intel Fortran compiler
9485 tmp_addflag=' -nofor_main' ;;
9486 lf95*) # Lahey Fortran 8.1
9487 whole_archive_flag_spec=
9488 tmp_sharedflag='--shared' ;;
9489 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9490 tmp_sharedflag='-qmkshrobj'
9492 nvcc*) # Cuda Compiler Driver 2.2
9493 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'
9494 compiler_needs_object=yes
9497 case `$CC -V 2>&1 | sed 5q` in
9498 *Sun\ C*) # Sun C 5.9
9499 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'
9500 compiler_needs_object=yes
9501 tmp_sharedflag='-G' ;;
9502 *Sun\ F*) # Sun Fortran 8.3
9503 tmp_sharedflag='-G' ;;
9505 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 if test "x$supports_anon_versioning" = xyes; then
9508 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9509 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9510 echo "local: *; };" >> $output_objdir/$libname.ver~
9511 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9514 case $cc_basename in
9515 xlf* | bgf* | bgxlf* | mpixlf*)
9516 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9517 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9518 hardcode_libdir_flag_spec=
9519 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9520 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9521 if test "x$supports_anon_versioning" = xyes; then
9522 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9523 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9524 echo "local: *; };" >> $output_objdir/$libname.ver~
9525 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9535 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9536 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9545 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9549 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9550 *** create shared libraries on Solaris systems. Therefore, libtool
9551 *** is disabling shared libraries support. We urge you to upgrade GNU
9552 *** binutils to release 2.9.1 or newer. Another option is to modify
9553 *** your PATH or compiler configuration so that the native linker is
9554 *** used, and then restart.
9557 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9566 case `$LD -v 2>&1` in
9567 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9571 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9572 *** reliably create shared libraries on SCO systems. Therefore, libtool
9573 *** is disabling shared libraries support. We urge you to upgrade GNU
9574 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9575 *** your PATH or compiler configuration so that the native linker is
9576 *** used, and then restart.
9581 # For security reasons, it is highly recommended that you always
9582 # use absolute paths for naming shared libraries, and exclude the
9583 # DT_RUNPATH tag from executables and libraries. But doing so
9584 # requires that you compile everything twice, which is a pain.
9585 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9588 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9597 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600 hardcode_shlibpath_var=no
9604 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9605 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9613 if test "$ld_shlibs" = no; then
9615 hardcode_libdir_flag_spec=
9616 export_dynamic_flag_spec=
9617 whole_archive_flag_spec=
9620 # PORTME fill in a description of your system's linker (not GNU ld)
9623 allow_undefined_flag=unsupported
9624 always_export_symbols=yes
9625 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'
9626 # Note: this linker hardcodes the directories in LIBPATH if there
9627 # are no directories specified by -L.
9628 hardcode_minus_L=yes
9629 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9630 # Neither direct hardcoding nor static linking is supported with a
9632 hardcode_direct=unsupported
9637 if test "$host_cpu" = ia64; then
9638 # On IA64, the linker does run time linking by default, so we don't
9639 # have to do anything special.
9640 aix_use_runtimelinking=no
9641 exp_sym_flag='-Bexport'
9644 # If we're using GNU nm, then we don't want the "-C" option.
9645 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9646 # Also, AIX nm treats weak defined symbols like other global
9647 # defined symbols, whereas GNU nm marks them as "W".
9648 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9649 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'
9651 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'
9653 aix_use_runtimelinking=no
9655 # Test if we are trying to use run time linking or normal
9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657 # need to do runtime linking.
9658 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9659 for ld_flag in $LDFLAGS; do
9660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9661 aix_use_runtimelinking=yes
9668 exp_sym_flag='-bexport'
9669 no_entry_flag='-bnoentry'
9672 # When large executables or shared objects are built, AIX ld can
9673 # have problems creating the table of contents. If linking a library
9674 # or program results in "error TOC overflow" add -mminimal-toc to
9675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9680 hardcode_direct_absolute=yes
9681 hardcode_libdir_separator=':'
9682 link_all_deplibs=yes
9683 file_list_spec='${wl}-f,'
9685 if test "$GCC" = yes; then
9686 case $host_os in aix4.[012]|aix4.[012].*)
9687 # We only want to do this on AIX 4.2 and lower, the check
9688 # below for broken collect2 doesn't work under 4.3+
9689 collect2name=`${CC} -print-prog-name=collect2`
9690 if test -f "$collect2name" &&
9691 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9693 # We have reworked collect2
9696 # We have old collect2
9697 hardcode_direct=unsupported
9698 # It fails to find uninstalled libraries when the uninstalled
9699 # path is not listed in the libpath. Setting hardcode_minus_L
9700 # to unsupported forces relinking
9701 hardcode_minus_L=yes
9702 hardcode_libdir_flag_spec='-L$libdir'
9703 hardcode_libdir_separator=
9707 shared_flag='-shared'
9708 if test "$aix_use_runtimelinking" = yes; then
9709 shared_flag="$shared_flag "'${wl}-G'
9713 if test "$host_cpu" = ia64; then
9714 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9715 # chokes on -Wl,-G. The following line is correct:
9718 if test "$aix_use_runtimelinking" = yes; then
9719 shared_flag='${wl}-G'
9721 shared_flag='${wl}-bM:SRE'
9726 export_dynamic_flag_spec='${wl}-bexpall'
9727 # It seems that -bexpall does not export symbols beginning with
9728 # underscore (_), so it is better to generate a list of symbols to export.
9729 always_export_symbols=yes
9730 if test "$aix_use_runtimelinking" = yes; then
9731 # Warning - without using the other runtime loading flags (-brtl),
9732 # -berok will link without error, but may produce a broken library.
9733 allow_undefined_flag='-berok'
9734 # Determine the default libpath from the value encoded in an
9736 if test "${lt_cv_aix_libpath+set}" = set; then
9737 aix_libpath=$lt_cv_aix_libpath
9739 if ${lt_cv_aix_libpath_+:} false; then :
9740 $as_echo_n "(cached) " >&6
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9753 if ac_fn_c_try_link "$LINENO"; then :
9755 lt_aix_libpath_sed='
9756 /Import File Strings/,/^$/ {
9758 s/^0 *\([^ ]*\) *$/\1/
9762 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763 # Check for a 64-bit object if we didn't find anything.
9764 if test -z "$lt_cv_aix_libpath_"; then
9765 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 if test -z "$lt_cv_aix_libpath_"; then
9771 lt_cv_aix_libpath_="/usr/lib:/lib"
9776 aix_libpath=$lt_cv_aix_libpath_
9779 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9780 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"
9782 if test "$host_cpu" = ia64; then
9783 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9784 allow_undefined_flag="-z nodefs"
9785 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"
9787 # Determine the default libpath from the value encoded in an
9789 if test "${lt_cv_aix_libpath+set}" = set; then
9790 aix_libpath=$lt_cv_aix_libpath
9792 if ${lt_cv_aix_libpath_+:} false; then :
9793 $as_echo_n "(cached) " >&6
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9806 if ac_fn_c_try_link "$LINENO"; then :
9808 lt_aix_libpath_sed='
9809 /Import File Strings/,/^$/ {
9811 s/^0 *\([^ ]*\) *$/\1/
9815 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9816 # Check for a 64-bit object if we didn't find anything.
9817 if test -z "$lt_cv_aix_libpath_"; then
9818 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 if test -z "$lt_cv_aix_libpath_"; then
9824 lt_cv_aix_libpath_="/usr/lib:/lib"
9829 aix_libpath=$lt_cv_aix_libpath_
9832 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9833 # Warning - without using the other run time loading flags,
9834 # -berok will link without error, but may produce a broken library.
9835 no_undefined_flag=' ${wl}-bernotok'
9836 allow_undefined_flag=' ${wl}-berok'
9837 if test "$with_gnu_ld" = yes; then
9838 # We only use this code for GNU lds that support --whole-archive.
9839 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9841 # Exported symbols can be pulled into shared objects from archives
9842 whole_archive_flag_spec='$convenience'
9844 archive_cmds_need_lc=yes
9845 # This is similar to how AIX traditionally builds its shared libraries.
9846 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'
9854 # see comment about AmigaOS4 .so support
9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 archive_expsym_cmds=''
9859 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)'
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_minus_L=yes
9867 export_dynamic_flag_spec=-rdynamic
9870 cygwin* | mingw* | pw32* | cegcc*)
9871 # When not using gcc, we currently assume that we are using
9872 # Microsoft Visual C++.
9873 # hardcode_libdir_flag_spec is actually meaningless, as there is
9874 # no search path for DLLs.
9875 case $cc_basename in
9878 hardcode_libdir_flag_spec=' '
9879 allow_undefined_flag=unsupported
9880 always_export_symbols=yes
9882 # Tell ltmain to make .lib files, not .a files.
9884 # Tell ltmain to make .dll files, not .so files.
9886 # FIXME: Setting linknames here is a bad hack.
9887 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9888 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9889 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9891 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9893 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9895 # The linker will not automatically build a static lib if we build a DLL.
9896 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9897 enable_shared_with_static_runtimes=yes
9898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9900 old_postinstall_cmds='chmod 644 $oldlib'
9901 postlink_cmds='lt_outputfile="@OUTPUT@"~
9902 lt_tool_outputfile="@TOOL_OUTPUT@"~
9903 case $lt_outputfile in
9906 lt_outputfile="$lt_outputfile.exe"
9907 lt_tool_outputfile="$lt_tool_outputfile.exe"
9910 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9911 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9912 $RM "$lt_outputfile.manifest";
9916 # Assume MSVC wrapper
9917 hardcode_libdir_flag_spec=' '
9918 allow_undefined_flag=unsupported
9919 # Tell ltmain to make .lib files, not .a files.
9921 # Tell ltmain to make .dll files, not .so files.
9923 # FIXME: Setting linknames here is a bad hack.
9924 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9925 # The linker will automatically build a .lib file if we build a DLL.
9926 old_archive_from_new_cmds='true'
9927 # FIXME: Should let the user specify the lib program.
9928 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9929 enable_shared_with_static_runtimes=yes
9934 darwin* | rhapsody*)
9937 archive_cmds_need_lc=no
9939 hardcode_automatic=yes
9940 hardcode_shlibpath_var=unsupported
9941 if test "$lt_cv_ld_force_load" = "yes"; then
9942 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\"`'
9944 whole_archive_flag_spec=''
9946 link_all_deplibs=yes
9947 allow_undefined_flag="$_lt_dar_allow_undefined"
9948 case $cc_basename in
9949 ifort*) _lt_dar_can_shared=yes ;;
9950 *) _lt_dar_can_shared=$GCC ;;
9952 if test "$_lt_dar_can_shared" = "yes"; then
9953 output_verbose_link_cmd=func_echo_all
9954 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9955 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9956 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}"
9957 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}"
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_libdir_flag_spec='-L$libdir'
9968 hardcode_shlibpath_var=no
9975 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9976 # support. Future versions do this automatically, but an explicit c++rt0.o
9977 # does not break anything, and helps significantly (at the cost of a little
9980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9981 hardcode_libdir_flag_spec='-R$libdir'
9983 hardcode_shlibpath_var=no
9986 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9990 hardcode_minus_L=yes
9991 hardcode_shlibpath_var=no
9994 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9995 freebsd* | dragonfly*)
9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_shlibpath_var=no
10003 if test "$GCC" = yes; then
10004 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'
10006 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'
10008 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10009 hardcode_libdir_separator=:
10010 hardcode_direct=yes
10012 # hardcode_minus_L: Not really in the search PATH,
10013 # but as the default location of the library.
10014 hardcode_minus_L=yes
10015 export_dynamic_flag_spec='${wl}-E'
10019 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10020 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10024 if test "$with_gnu_ld" = no; then
10025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_flag_spec_ld='+b $libdir'
10027 hardcode_libdir_separator=:
10028 hardcode_direct=yes
10029 hardcode_direct_absolute=yes
10030 export_dynamic_flag_spec='${wl}-E'
10031 # hardcode_minus_L: Not really in the search PATH,
10032 # but as the default location of the library.
10033 hardcode_minus_L=yes
10038 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10041 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10047 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10060 # Older versions of the 11.00 compiler do not understand -b yet
10061 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10063 $as_echo_n "checking if $CC understands -b... " >&6; }
10064 if ${lt_cv_prog_compiler__b+:} false; then :
10065 $as_echo_n "(cached) " >&6
10067 lt_cv_prog_compiler__b=no
10068 save_LDFLAGS="$LDFLAGS"
10069 LDFLAGS="$LDFLAGS -b"
10070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072 # The linker can only warn and ignore the option if not recognized
10073 # So say no if there are warnings
10074 if test -s conftest.err; then
10075 # Append any errors to the config.log.
10076 cat conftest.err 1>&5
10077 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079 if diff conftest.exp conftest.er2 >/dev/null; then
10080 lt_cv_prog_compiler__b=yes
10083 lt_cv_prog_compiler__b=yes
10087 LDFLAGS="$save_LDFLAGS"
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10091 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10093 if test x"$lt_cv_prog_compiler__b" = xyes; then
10094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10102 if test "$with_gnu_ld" = no; then
10103 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10104 hardcode_libdir_separator=:
10109 hardcode_shlibpath_var=no
10112 hardcode_direct=yes
10113 hardcode_direct_absolute=yes
10114 export_dynamic_flag_spec='${wl}-E'
10116 # hardcode_minus_L: Not really in the search PATH,
10117 # but as the default location of the library.
10118 hardcode_minus_L=yes
10124 irix5* | irix6* | nonstopux*)
10125 if test "$GCC" = yes; then
10126 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'
10127 # Try to use the -exported_symbol ld option, if it does not
10128 # work, assume that -exports_file does not work either and
10129 # implicitly export all symbols.
10130 # This should be the same for all languages, so no per-tag cache variable.
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10132 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10133 if ${lt_cv_irix_exported_symbol+:} false; then :
10134 $as_echo_n "(cached) " >&6
10136 save_LDFLAGS="$LDFLAGS"
10137 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10140 int foo (void) { return 0; }
10142 if ac_fn_c_try_link "$LINENO"; then :
10143 lt_cv_irix_exported_symbol=yes
10145 lt_cv_irix_exported_symbol=no
10147 rm -f core conftest.err conftest.$ac_objext \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LDFLAGS="$save_LDFLAGS"
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10152 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10153 if test "$lt_cv_irix_exported_symbol" = yes; then
10154 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'
10157 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'
10158 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'
10160 archive_cmds_need_lc='no'
10161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10162 hardcode_libdir_separator=:
10164 link_all_deplibs=yes
10168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10173 hardcode_libdir_flag_spec='-R$libdir'
10174 hardcode_direct=yes
10175 hardcode_shlibpath_var=no
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=yes
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10183 hardcode_shlibpath_var=no
10190 if test -f /usr/libexec/ld.so; then
10191 hardcode_direct=yes
10192 hardcode_shlibpath_var=no
10193 hardcode_direct_absolute=yes
10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10198 export_dynamic_flag_spec='${wl}-E'
10201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_libdir_flag_spec='-R$libdir'
10206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10217 hardcode_libdir_flag_spec='-L$libdir'
10218 hardcode_minus_L=yes
10219 allow_undefined_flag=unsupported
10220 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'
10221 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10225 if test "$GCC" = yes; then
10226 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10227 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'
10229 allow_undefined_flag=' -expect_unresolved \*'
10230 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'
10232 archive_cmds_need_lc='no'
10233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234 hardcode_libdir_separator=:
10237 osf4* | osf5*) # as osf3* with the addition of -msym flag
10238 if test "$GCC" = yes; then
10239 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10240 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'
10241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10243 allow_undefined_flag=' -expect_unresolved \*'
10244 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'
10245 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~
10246 $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'
10248 # Both c and cxx compiler support -rpath directly
10249 hardcode_libdir_flag_spec='-rpath $libdir'
10251 archive_cmds_need_lc='no'
10252 hardcode_libdir_separator=:
10256 no_undefined_flag=' -z defs'
10257 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10261 $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'
10263 case `$CC -V 2>&1` in
10266 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10268 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10272 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10274 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10278 hardcode_libdir_flag_spec='-R$libdir'
10279 hardcode_shlibpath_var=no
10281 solaris2.[0-5] | solaris2.[0-5].*) ;;
10283 # The compiler driver will combine and reorder linker options,
10284 # but understands `-z linker_flag'. GCC discards it without `$wl',
10285 # but is careful enough not to reorder.
10286 # Supported since Solaris 2.6 (maybe 2.5.1?)
10287 if test "$GCC" = yes; then
10288 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10290 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10294 link_all_deplibs=yes
10298 if test "x$host_vendor" = xsequent; then
10299 # Use $CC to link under sequent, because it throws in some extra .o
10300 # files that make .init and .fini sections work.
10301 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10303 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_libdir_flag_spec='-L$libdir'
10306 hardcode_direct=yes
10307 hardcode_minus_L=yes
10308 hardcode_shlibpath_var=no
10312 case $host_vendor in
10314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10315 hardcode_direct=yes # is this really true???
10318 ## LD is ld it makes a PLAMLIB
10319 ## CC just makes a GrossModule.
10320 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10321 reload_cmds='$CC -r -o $output$reload_objs'
10325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10326 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10329 runpath_var='LD_RUN_PATH'
10330 hardcode_shlibpath_var=no
10334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10335 hardcode_shlibpath_var=no
10336 export_dynamic_flag_spec='-Bexport'
10340 if test -d /usr/nec; then
10341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10342 hardcode_shlibpath_var=no
10343 runpath_var=LD_RUN_PATH
10344 hardcode_runpath_var=yes
10349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10350 no_undefined_flag='${wl}-z,text'
10351 archive_cmds_need_lc=no
10352 hardcode_shlibpath_var=no
10353 runpath_var='LD_RUN_PATH'
10355 if test "$GCC" = yes; then
10356 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 sysv5* | sco3.2v5* | sco5v6*)
10365 # Note: We can NOT use -z defs as we might desire, because we do not
10366 # link with -lc, and that would cause any symbols used from libc to
10367 # always be unresolved, which means just about no library would
10368 # ever link correctly. If we're not using GNU ld we use -z text
10369 # though, which does catch some bad symbols but isn't as heavy-handed
10371 no_undefined_flag='${wl}-z,text'
10372 allow_undefined_flag='${wl}-z,nodefs'
10373 archive_cmds_need_lc=no
10374 hardcode_shlibpath_var=no
10375 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10376 hardcode_libdir_separator=':'
10377 link_all_deplibs=yes
10378 export_dynamic_flag_spec='${wl}-Bexport'
10379 runpath_var='LD_RUN_PATH'
10381 if test "$GCC" = yes; then
10382 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10383 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_libdir_flag_spec='-L$libdir'
10393 hardcode_shlibpath_var=no
10401 if test x$host_vendor = xsni; then
10403 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10404 export_dynamic_flag_spec='${wl}-Blargedynsym'
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10411 $as_echo "$ld_shlibs" >&6; }
10412 test "$ld_shlibs" = no && can_build_shared=no
10414 with_gnu_ld=$with_gnu_ld
10431 # Do we need to explicitly link libc?
10433 case "x$archive_cmds_need_lc" in
10435 # Assume -lc should be added
10436 archive_cmds_need_lc=yes
10438 if test "$enable_shared" = yes && test "$GCC" = yes; then
10439 case $archive_cmds in
10441 # FIXME: we may have to deal with multi-command sequences.
10444 # Test whether the compiler implicitly links with -lc since on some
10445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10446 # to ld, don't add -lc before -lgcc.
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10448 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10449 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10450 $as_echo_n "(cached) " >&6
10453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10456 (eval $ac_compile) 2>&5
10458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10459 test $ac_status = 0; } 2>conftest.err; then
10462 libobjs=conftest.$ac_objext
10464 wl=$lt_prog_compiler_wl
10465 pic_flag=$lt_prog_compiler_pic
10471 lt_save_allow_undefined_flag=$allow_undefined_flag
10472 allow_undefined_flag=
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10474 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; }
10479 lt_cv_archive_cmds_need_lc=no
10481 lt_cv_archive_cmds_need_lc=yes
10483 allow_undefined_flag=$lt_save_allow_undefined_flag
10485 cat conftest.err 1>&5
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10491 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10656 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10658 if test "$GCC" = yes; then
10660 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10661 *) lt_awk_arg="/^libraries:/" ;;
10664 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10665 *) lt_sed_strip_eq="s,=/,/,g" ;;
10667 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10668 case $lt_search_path_spec in
10670 # if the path contains ";" then we assume it to be the separator
10671 # otherwise default to the standard path separator (i.e. ":") - it is
10672 # assumed that no part of a normal pathname contains ";" but that should
10673 # okay in the real world where ";" in dirpaths is itself problematic.
10674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10677 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10680 # Ok, now we have the path, separated by spaces, we can step through it
10681 # and add multilib dir if necessary.
10682 lt_tmp_lt_search_path_spec=
10683 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10684 for lt_sys_path in $lt_search_path_spec; do
10685 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10688 test -d "$lt_sys_path" && \
10689 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10692 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10693 BEGIN {RS=" "; FS="/|\n";} {
10696 for (lt_i = NF; lt_i > 0; lt_i--) {
10697 if ($lt_i != "" && $lt_i != ".") {
10698 if ($lt_i == "..") {
10701 if (lt_count == 0) {
10702 lt_foo="/" $lt_i lt_foo;
10709 if (lt_foo != "") { lt_freq[lt_foo]++; }
10710 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10712 # AWK program above erroneously prepends '/' to C:/dos/paths
10715 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10716 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10718 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10720 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10722 library_names_spec=
10723 libname_spec='lib$name'
10727 postuninstall_cmds=
10731 shlibpath_overrides_runpath=unknown
10733 dynamic_linker="$host_os ld.so"
10734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746 shlibpath_var=LIBPATH
10748 # AIX 3 has no versioning support, so we append a major version to the name.
10749 soname_spec='${libname}${release}${shared_ext}$major'
10756 hardcode_into_libs=yes
10757 if test "$host_cpu" = ia64; then
10758 # AIX 5 supports IA64
10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10762 # With GCC up to 2.95.x, collect2 would create an import file
10763 # for dependence libraries. The import file would start with
10764 # the line `#! .'. This would cause the generated library to
10765 # depend on `.', always an invalid library. This was fixed in
10766 # development snapshots of GCC prior to 3.0.
10768 aix4 | aix4.[01] | aix4.[01].*)
10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10774 can_build_shared=no
10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779 # soname into executable. Probably we can add versioning support to
10780 # collect2, so additional links can be useful in future.
10781 if test "$aix_use_runtimelinking" = yes; then
10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783 # instead of lib<name>.a to let people know that these are not
10784 # typical AIX shared libraries.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 # We preserve .a as extension for shared libraries through AIX4.2
10788 # and later when we are not doing run time linking.
10789 library_names_spec='${libname}${release}.a $libname.a'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LIBPATH
10799 # Since July 2007 AmigaOS4 officially supports .so libraries.
10800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804 library_names_spec='$libname.ixlibrary $libname.a'
10805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10806 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'
10812 library_names_spec='${libname}${shared_ext}'
10813 dynamic_linker="$host_os ld.so"
10814 shlibpath_var=LIBRARY_PATH
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 soname_spec='${libname}${release}${shared_ext}$major'
10822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10826 # the default ld.so.conf also contains /usr/contrib/lib and
10827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10828 # libtool to hard-code these into programs
10831 cygwin* | mingw* | pw32* | cegcc*)
10832 version_type=windows
10837 case $GCC,$cc_basename in
10840 library_names_spec='$libname.dll.a'
10841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10842 postinstall_cmds='base_file=`basename \${file}`~
10843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10844 dldir=$destdir/`dirname \$dlpath`~
10845 test -d \$dldir || mkdir -p \$dldir~
10846 $install_prog $dir/$dlname \$dldir/$dlname~
10847 chmod a+x \$dldir/$dlname~
10848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10852 dlpath=$dir/\$dldll~
10854 shlibpath_overrides_runpath=yes
10858 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10861 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10864 # MinGW DLLs use traditional 'lib' prefix
10865 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10868 # pw32 DLLs use 'pw' prefix rather than 'lib'
10869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10872 dynamic_linker='Win32 ld.exe'
10877 libname_spec='$name'
10878 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10879 library_names_spec='${libname}.dll.lib'
10883 sys_lib_search_path_spec=
10886 for lt_path in $LIB
10889 # Let DOS variable expansion print the short 8.3 style file name.
10890 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10891 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10894 # Convert to MSYS style.
10895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10898 # Convert to unix form, then to dos form, then back to unix form
10899 # but this time dos style (no spaces!) so that the unix form looks
10900 # like /cygdrive/c/PROGRA~1:/cygdr...
10901 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10902 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10903 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10906 sys_lib_search_path_spec="$LIB"
10907 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10908 # It is most probably a Windows format PATH.
10909 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10913 # FIXME: find the short name or the path components, as spaces are
10914 # common. (e.g. "Program Files" -> "PROGRA~1")
10918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10919 postinstall_cmds='base_file=`basename \${file}`~
10920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10921 dldir=$destdir/`dirname \$dlpath`~
10922 test -d \$dldir || mkdir -p \$dldir~
10923 $install_prog $dir/$dlname \$dldir/$dlname'
10924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10925 dlpath=$dir/\$dldll~
10927 shlibpath_overrides_runpath=yes
10928 dynamic_linker='Win32 link.exe'
10932 # Assume MSVC wrapper
10933 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10934 dynamic_linker='Win32 ld.exe'
10937 # FIXME: first we should search . and the directory the executable is in
10941 darwin* | rhapsody*)
10942 dynamic_linker="$host_os dyld"
10943 version_type=darwin
10946 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10947 soname_spec='${libname}${release}${major}$shared_ext'
10948 shlibpath_overrides_runpath=yes
10949 shlibpath_var=DYLD_LIBRARY_PATH
10950 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10952 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10953 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10969 freebsd* | dragonfly*)
10970 # DragonFly does not have aout. When/if they implement a new
10971 # versioning mechanism, adjust this.
10972 if test -x /usr/bin/objformat; then
10973 objformat=`/usr/bin/objformat`
10976 freebsd[123]*) objformat=aout ;;
10977 *) objformat=elf ;;
10980 version_type=freebsd-$objformat
10981 case $version_type in
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10992 shlibpath_var=LD_LIBRARY_PATH
10995 shlibpath_overrides_runpath=yes
10997 freebsd3.[01]* | freebsdelf3.[01]*)
10998 shlibpath_overrides_runpath=yes
10999 hardcode_into_libs=yes
11001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11003 shlibpath_overrides_runpath=no
11004 hardcode_into_libs=yes
11006 *) # from 4.6 on, and DragonFly
11007 shlibpath_overrides_runpath=yes
11008 hardcode_into_libs=yes
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 hardcode_into_libs=yes
11027 dynamic_linker="$host_os runtime_loader"
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes
11032 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11033 hardcode_into_libs=yes
11036 hpux9* | hpux10* | hpux11*)
11037 # Give a soname corresponding to the major version so that dld.sl refuses to
11038 # link against other versions.
11045 hardcode_into_libs=yes
11046 dynamic_linker="$host_os dld.so"
11047 shlibpath_var=LD_LIBRARY_PATH
11048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 if test "X$HPUX_IA64_MODE" = X32; then
11052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11060 hardcode_into_libs=yes
11061 dynamic_linker="$host_os dld.sl"
11062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11071 dynamic_linker="$host_os dld.sl"
11072 shlibpath_var=SHLIB_PATH
11073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11078 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11079 postinstall_cmds='chmod 555 $lib'
11080 # or fails outright, so override atomically:
11081 install_override_mode=555
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=no
11093 hardcode_into_libs=yes
11096 irix5* | irix6* | nonstopux*)
11098 nonstopux*) version_type=nonstopux ;;
11100 if test "$lt_cv_prog_gnu_ld" = yes; then
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11111 irix5* | nonstopux*)
11112 libsuff= shlibsuff=
11115 case $LD in # libtool.m4 will add one of these switches to LD
11116 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11117 libsuff= shlibsuff= libmagic=32-bit;;
11118 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11119 libsuff=32 shlibsuff=N32 libmagic=N32;;
11120 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11121 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11122 *) libsuff= shlibsuff= libmagic=never-match;;
11126 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11127 shlibpath_overrides_runpath=no
11128 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11129 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11130 hardcode_into_libs=yes
11133 # No shared lib support for Linux oldld, aout, or coff.
11134 linux*oldld* | linux*aout* | linux*coff*)
11138 # This must be Linux ELF.
11139 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=no
11149 # Some binutils ld are patched to set DT_RUNPATH
11150 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11151 $as_echo_n "(cached) " >&6
11153 lt_cv_shlibpath_overrides_runpath=no
11154 save_LDFLAGS=$LDFLAGS
11155 save_libdir=$libdir
11156 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11157 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11169 if ac_fn_c_try_link "$LINENO"; then :
11170 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11171 lt_cv_shlibpath_overrides_runpath=yes
11174 rm -f core conftest.err conftest.$ac_objext \
11175 conftest$ac_exeext conftest.$ac_ext
11176 LDFLAGS=$save_LDFLAGS
11177 libdir=$save_libdir
11181 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11183 # This implies no fast_install, which is unacceptable.
11184 # Some rework will be needed to allow for fast_install
11185 # before this can be enabled.
11186 hardcode_into_libs=yes
11188 # Append ld.so.conf contents to the search path
11189 if test -f /etc/ld.so.conf; then
11190 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' ' '`
11191 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11194 # We used to test for /lib/ld.so.1 and disable shared libraries on
11195 # powerpc, because MkLinux only supported shared libraries with the
11196 # GNU dynamic linker. Since this was broken with cross compilers,
11197 # most powerpc-linux boxes support dynamic linking these days and
11198 # people can always --disable-shared, the test was removed, and we
11199 # assume the GNU/Linux dynamic linker is in use.
11200 dynamic_linker='GNU/Linux ld.so'
11207 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11210 dynamic_linker='NetBSD (a.out) ld.so'
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 dynamic_linker='NetBSD ld.elf_so'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=yes
11218 hardcode_into_libs=yes
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 shlibpath_var=LD_LIBRARY_PATH
11225 shlibpath_overrides_runpath=yes
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 shlibpath_overrides_runpath=no
11236 hardcode_into_libs=yes
11237 dynamic_linker='ldqnx.so'
11242 sys_lib_dlsearch_path_spec="/usr/lib"
11244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11247 *) need_version=no ;;
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11254 openbsd2.[89] | openbsd2.[89].*)
11255 shlibpath_overrides_runpath=no
11258 shlibpath_overrides_runpath=yes
11262 shlibpath_overrides_runpath=yes
11267 libname_spec='$name'
11270 library_names_spec='$libname${shared_ext} $libname.a'
11271 dynamic_linker='OS/2 ld.exe'
11272 shlibpath_var=LIBPATH
11275 osf3* | osf4* | osf5*)
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11295 soname_spec='${libname}${release}${shared_ext}$major'
11296 shlibpath_var=LD_LIBRARY_PATH
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11299 # ldd complains unless libraries are executable
11300 postinstall_cmds='chmod +x $lib'
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11306 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=yes
11309 if test "$with_gnu_ld" = yes; then
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 shlibpath_var=LD_LIBRARY_PATH
11320 case $host_vendor in
11322 shlibpath_overrides_runpath=no
11324 runpath_var=LD_RUN_PATH
11332 shlibpath_overrides_runpath=no
11333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11339 if test -d /usr/nec ;then
11341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11342 soname_spec='$libname${shared_ext}.$major'
11343 shlibpath_var=LD_LIBRARY_PATH
11347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11348 version_type=freebsd-elf
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=yes
11355 hardcode_into_libs=yes
11356 if test "$with_gnu_ld" = yes; then
11357 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11366 sys_lib_dlsearch_path_spec='/usr/lib'
11370 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=no
11377 hardcode_into_libs=yes
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 shlibpath_var=LD_LIBRARY_PATH
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11392 $as_echo "$dynamic_linker" >&6; }
11393 test "$dynamic_linker" = no && can_build_shared=no
11395 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11396 if test "$GCC" = yes; then
11397 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11400 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11401 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11403 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11404 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11501 if test -n "$hardcode_libdir_flag_spec" ||
11502 test -n "$runpath_var" ||
11503 test "X$hardcode_automatic" = "Xyes" ; then
11505 # We can hardcode non-existent directories.
11506 if test "$hardcode_direct" != no &&
11507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11508 # have to relink, otherwise we might link with an installed library
11509 # when we should be linking with a yet-to-be-installed one
11510 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11511 test "$hardcode_minus_L" != no; then
11512 # Linking always hardcodes the temporary library directory.
11513 hardcode_action=relink
11515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11516 hardcode_action=immediate
11519 # We cannot hardcode anything, or else we can only hardcode existing
11521 hardcode_action=unsupported
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11524 $as_echo "$hardcode_action" >&6; }
11526 if test "$hardcode_action" = relink ||
11527 test "$inherit_rpath" = yes; then
11528 # Fast installation is not supported
11529 enable_fast_install=no
11530 elif test "$shlibpath_overrides_runpath" = yes ||
11531 test "$enable_shared" = no; then
11532 # Fast installation is not necessary
11533 enable_fast_install=needless
11541 if test "x$enable_dlopen" != xyes; then
11542 enable_dlopen=unknown
11543 enable_dlopen_self=unknown
11544 enable_dlopen_self_static=unknown
11551 lt_cv_dlopen="load_add_on"
11553 lt_cv_dlopen_self=yes
11556 mingw* | pw32* | cegcc*)
11557 lt_cv_dlopen="LoadLibrary"
11562 lt_cv_dlopen="dlopen"
11567 # if libdl is installed we need to link against it
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11570 if ${ac_cv_lib_dl_dlopen+:} false; then :
11571 $as_echo_n "(cached) " >&6
11573 ac_check_lib_save_LIBS=$LIBS
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11593 if ac_fn_c_try_link "$LINENO"; then :
11594 ac_cv_lib_dl_dlopen=yes
11596 ac_cv_lib_dl_dlopen=no
11598 rm -f core conftest.err conftest.$ac_objext \
11599 conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11605 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11608 lt_cv_dlopen="dyld"
11610 lt_cv_dlopen_self=yes
11617 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11618 if test "x$ac_cv_func_shl_load" = xyes; then :
11619 lt_cv_dlopen="shl_load"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11622 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11623 if ${ac_cv_lib_dld_shl_load+:} false; then :
11624 $as_echo_n "(cached) " >&6
11626 ac_check_lib_save_LIBS=$LIBS
11628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11629 /* end confdefs.h. */
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11641 return shl_load ();
11646 if ac_fn_c_try_link "$LINENO"; then :
11647 ac_cv_lib_dld_shl_load=yes
11649 ac_cv_lib_dld_shl_load=no
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_lib_save_LIBS
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11656 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11657 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11658 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11660 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11661 if test "x$ac_cv_func_dlopen" = xyes; then :
11662 lt_cv_dlopen="dlopen"
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11666 if ${ac_cv_lib_dl_dlopen+:} false; then :
11667 $as_echo_n "(cached) " >&6
11669 ac_check_lib_save_LIBS=$LIBS
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h. */
11674 /* Override any GCC internal prototype to avoid an error.
11675 Use char because int might match the return type of a GCC
11676 builtin and then its argument prototype would still apply. */
11689 if ac_fn_c_try_link "$LINENO"; then :
11690 ac_cv_lib_dl_dlopen=yes
11692 ac_cv_lib_dl_dlopen=no
11694 rm -f core conftest.err conftest.$ac_objext \
11695 conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11700 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11704 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11705 if ${ac_cv_lib_svld_dlopen+:} false; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-lsvld $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11713 /* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
11728 if ac_fn_c_try_link "$LINENO"; then :
11729 ac_cv_lib_svld_dlopen=yes
11731 ac_cv_lib_svld_dlopen=no
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11738 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11739 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11743 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11744 if ${ac_cv_lib_dld_dld_link+:} false; then :
11745 $as_echo_n "(cached) " >&6
11747 ac_check_lib_save_LIBS=$LIBS
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11752 /* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
11762 return dld_link ();
11767 if ac_fn_c_try_link "$LINENO"; then :
11768 ac_cv_lib_dld_dld_link=yes
11770 ac_cv_lib_dld_dld_link=no
11772 rm -f core conftest.err conftest.$ac_objext \
11773 conftest$ac_exeext conftest.$ac_ext
11774 LIBS=$ac_check_lib_save_LIBS
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11777 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11778 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11779 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11800 if test "x$lt_cv_dlopen" != xno; then
11806 case $lt_cv_dlopen in
11808 save_CPPFLAGS="$CPPFLAGS"
11809 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11811 save_LDFLAGS="$LDFLAGS"
11812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11815 LIBS="$lt_cv_dlopen_libs $LIBS"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11818 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11819 if ${lt_cv_dlopen_self+:} false; then :
11820 $as_echo_n "(cached) " >&6
11822 if test "$cross_compiling" = yes; then :
11823 lt_cv_dlopen_self=cross
11825 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11826 lt_status=$lt_dlunknown
11827 cat > conftest.$ac_ext <<_LT_EOF
11828 #line $LINENO "configure"
11829 #include "confdefs.h"
11838 # define LT_DLGLOBAL RTLD_GLOBAL
11841 # define LT_DLGLOBAL DL_GLOBAL
11843 # define LT_DLGLOBAL 0
11847 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11848 find out it does not work in some platform. */
11849 #ifndef LT_DLLAZY_OR_NOW
11851 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11854 # define LT_DLLAZY_OR_NOW DL_LAZY
11857 # define LT_DLLAZY_OR_NOW RTLD_NOW
11860 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # define LT_DLLAZY_OR_NOW 0
11869 /* When -fvisbility=hidden is used, assume the code has been annotated
11870 correspondingly for the symbols needed. */
11871 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11872 int fnord () __attribute__((visibility("default")));
11875 int fnord () { return 42; }
11878 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11879 int status = $lt_dlunknown;
11883 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11886 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11887 else puts (dlerror ());
11889 /* dlclose (self); */
11897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11898 (eval $ac_link) 2>&5
11900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11901 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11902 (./conftest; exit; ) >&5 2>/dev/null
11904 case x$lt_status in
11905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11907 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11910 # compilation failed
11911 lt_cv_dlopen_self=no
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11919 $as_echo "$lt_cv_dlopen_self" >&6; }
11921 if test "x$lt_cv_dlopen_self" = xyes; then
11922 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11924 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11925 if ${lt_cv_dlopen_self_static+:} false; then :
11926 $as_echo_n "(cached) " >&6
11928 if test "$cross_compiling" = yes; then :
11929 lt_cv_dlopen_self_static=cross
11931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11932 lt_status=$lt_dlunknown
11933 cat > conftest.$ac_ext <<_LT_EOF
11934 #line $LINENO "configure"
11935 #include "confdefs.h"
11944 # define LT_DLGLOBAL RTLD_GLOBAL
11947 # define LT_DLGLOBAL DL_GLOBAL
11949 # define LT_DLGLOBAL 0
11953 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11954 find out it does not work in some platform. */
11955 #ifndef LT_DLLAZY_OR_NOW
11957 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11960 # define LT_DLLAZY_OR_NOW DL_LAZY
11963 # define LT_DLLAZY_OR_NOW RTLD_NOW
11966 # define LT_DLLAZY_OR_NOW DL_NOW
11968 # define LT_DLLAZY_OR_NOW 0
11975 /* When -fvisbility=hidden is used, assume the code has been annotated
11976 correspondingly for the symbols needed. */
11977 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11978 int fnord () __attribute__((visibility("default")));
11981 int fnord () { return 42; }
11984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11985 int status = $lt_dlunknown;
11989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11993 else puts (dlerror ());
11995 /* dlclose (self); */
12003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12004 (eval $ac_link) 2>&5
12006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12007 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12008 (./conftest; exit; ) >&5 2>/dev/null
12010 case x$lt_status in
12011 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12012 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12013 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12016 # compilation failed
12017 lt_cv_dlopen_self_static=no
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12025 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12028 CPPFLAGS="$save_CPPFLAGS"
12029 LDFLAGS="$save_LDFLAGS"
12034 case $lt_cv_dlopen_self in
12035 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12036 *) enable_dlopen_self=unknown ;;
12039 case $lt_cv_dlopen_self_static in
12040 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12041 *) enable_dlopen_self_static=unknown ;;
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12064 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12065 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12066 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12067 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12069 $as_echo "yes" >&6; }
12071 # FIXME - insert some real tests, host_os isn't really good enough
12074 if test -n "$STRIP" ; then
12075 striplib="$STRIP -x"
12076 old_striplib="$STRIP -S"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12078 $as_echo "yes" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12102 # Report which library types will actually be built
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12104 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12106 $as_echo "$can_build_shared" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12109 $as_echo_n "checking whether to build shared libraries... " >&6; }
12110 test "$can_build_shared" = "no" && enable_shared=no
12112 # On AIX, shared libraries and static libraries use the same namespace, and
12113 # are all built from PIC.
12116 test "$enable_shared" = yes && enable_static=no
12117 if test -n "$RANLIB"; then
12118 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12119 postinstall_cmds='$RANLIB $lib'
12124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12125 test "$enable_shared" = yes && enable_static=no
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12130 $as_echo "$enable_shared" >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12133 $as_echo_n "checking whether to build static libraries... " >&6; }
12134 # Make sure either enable_shared or enable_static is yes.
12135 test "$enable_shared" = yes || enable_static=yes
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12137 $as_echo "$enable_static" >&6; }
12144 ac_cpp='$CPP $CPPFLAGS'
12145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163 ac_config_commands="$ac_config_commands libtool"
12168 # Only expand once:
12174 if test "$enable_samples" = "yes"; then
12175 BUILD_SAMPLES_TRUE=
12176 BUILD_SAMPLES_FALSE='#'
12178 BUILD_SAMPLES_TRUE='#'
12179 BUILD_SAMPLES_FALSE=
12182 if test "$enable_libevent_regress" = "yes"; then
12183 BUILD_REGRESS_TRUE=
12184 BUILD_REGRESS_FALSE='#'
12186 BUILD_REGRESS_TRUE='#'
12187 BUILD_REGRESS_FALSE=
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12192 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12193 if ${ac_cv_search_inet_ntoa+:} false; then :
12194 $as_echo_n "(cached) " >&6
12196 ac_func_search_save_LIBS=$LIBS
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12210 return inet_ntoa ();
12215 for ac_lib in '' nsl; do
12216 if test -z "$ac_lib"; then
12217 ac_res="none required"
12220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_search_inet_ntoa=$ac_res
12225 rm -f core conftest.err conftest.$ac_objext \
12227 if ${ac_cv_search_inet_ntoa+:} false; then :
12231 if ${ac_cv_search_inet_ntoa+:} false; then :
12234 ac_cv_search_inet_ntoa=no
12236 rm conftest.$ac_ext
12237 LIBS=$ac_func_search_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12240 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12241 ac_res=$ac_cv_search_inet_ntoa
12242 if test "$ac_res" != no; then :
12243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12248 $as_echo_n "checking for library containing socket... " >&6; }
12249 if ${ac_cv_search_socket+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 ac_func_search_save_LIBS=$LIBS
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12271 for ac_lib in '' socket; do
12272 if test -z "$ac_lib"; then
12273 ac_res="none required"
12276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12278 if ac_fn_c_try_link "$LINENO"; then :
12279 ac_cv_search_socket=$ac_res
12281 rm -f core conftest.err conftest.$ac_objext \
12283 if ${ac_cv_search_socket+:} false; then :
12287 if ${ac_cv_search_socket+:} false; then :
12290 ac_cv_search_socket=no
12292 rm conftest.$ac_ext
12293 LIBS=$ac_func_search_save_LIBS
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12296 $as_echo "$ac_cv_search_socket" >&6; }
12297 ac_res=$ac_cv_search_socket
12298 if test "$ac_res" != no; then :
12299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12304 $as_echo_n "checking for library containing inet_aton... " >&6; }
12305 if ${ac_cv_search_inet_aton+:} false; then :
12306 $as_echo_n "(cached) " >&6
12308 ac_func_search_save_LIBS=$LIBS
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310 /* end confdefs.h. */
12312 /* Override any GCC internal prototype to avoid an error.
12313 Use char because int might match the return type of a GCC
12314 builtin and then its argument prototype would still apply. */
12322 return inet_aton ();
12327 for ac_lib in '' resolv; do
12328 if test -z "$ac_lib"; then
12329 ac_res="none required"
12332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12334 if ac_fn_c_try_link "$LINENO"; then :
12335 ac_cv_search_inet_aton=$ac_res
12337 rm -f core conftest.err conftest.$ac_objext \
12339 if ${ac_cv_search_inet_aton+:} false; then :
12343 if ${ac_cv_search_inet_aton+:} false; then :
12346 ac_cv_search_inet_aton=no
12348 rm conftest.$ac_ext
12349 LIBS=$ac_func_search_save_LIBS
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12352 $as_echo "$ac_cv_search_inet_aton" >&6; }
12353 ac_res=$ac_cv_search_inet_aton
12354 if test "$ac_res" != no; then :
12355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12360 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12361 if ${ac_cv_search_clock_gettime+:} false; then :
12362 $as_echo_n "(cached) " >&6
12364 ac_func_search_save_LIBS=$LIBS
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12368 /* Override any GCC internal prototype to avoid an error.
12369 Use char because int might match the return type of a GCC
12370 builtin and then its argument prototype would still apply. */
12374 char clock_gettime ();
12378 return clock_gettime ();
12383 for ac_lib in '' rt; do
12384 if test -z "$ac_lib"; then
12385 ac_res="none required"
12388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12390 if ac_fn_c_try_link "$LINENO"; then :
12391 ac_cv_search_clock_gettime=$ac_res
12393 rm -f core conftest.err conftest.$ac_objext \
12395 if ${ac_cv_search_clock_gettime+:} false; then :
12399 if ${ac_cv_search_clock_gettime+:} false; then :
12402 ac_cv_search_clock_gettime=no
12404 rm conftest.$ac_ext
12405 LIBS=$ac_func_search_save_LIBS
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12408 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12409 ac_res=$ac_cv_search_clock_gettime
12410 if test "$ac_res" != no; then :
12411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12416 $as_echo_n "checking for library containing sendfile... " >&6; }
12417 if ${ac_cv_search_sendfile+:} false; then :
12418 $as_echo_n "(cached) " >&6
12420 ac_func_search_save_LIBS=$LIBS
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12434 return sendfile ();
12439 for ac_lib in '' sendfile; do
12440 if test -z "$ac_lib"; then
12441 ac_res="none required"
12444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12446 if ac_fn_c_try_link "$LINENO"; then :
12447 ac_cv_search_sendfile=$ac_res
12449 rm -f core conftest.err conftest.$ac_objext \
12451 if ${ac_cv_search_sendfile+:} false; then :
12455 if ${ac_cv_search_sendfile+:} false; then :
12458 ac_cv_search_sendfile=no
12460 rm conftest.$ac_ext
12461 LIBS=$ac_func_search_save_LIBS
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12464 $as_echo "$ac_cv_search_sendfile" >&6; }
12465 ac_res=$ac_cv_search_sendfile
12466 if test "$ac_res" != no; then :
12467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12473 $as_echo_n "checking for WIN32... " >&6; }
12474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475 /* end confdefs.h. */
12489 if ac_fn_c_try_compile "$LINENO"; then :
12490 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12491 $as_echo "yes" >&6; }
12493 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494 $as_echo "no" >&6; }
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12499 $as_echo_n "checking for CYGWIN... " >&6; }
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12515 if ac_fn_c_try_compile "$LINENO"; then :
12516 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12517 $as_echo "yes" >&6; }
12519 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520 $as_echo "no" >&6; }
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 for ac_header in zlib.h
12526 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12527 if test "x$ac_cv_header_zlib_h" = xyes; then :
12528 cat >>confdefs.h <<_ACEOF
12529 #define HAVE_ZLIB_H 1
12537 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12543 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12544 if ${ac_cv_search_inflateEnd+:} false; then :
12545 $as_echo_n "(cached) " >&6
12547 ac_func_search_save_LIBS=$LIBS
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 /* Override any GCC internal prototype to avoid an error.
12552 Use char because int might match the return type of a GCC
12553 builtin and then its argument prototype would still apply. */
12557 char inflateEnd ();
12561 return inflateEnd ();
12566 for ac_lib in '' z; do
12567 if test -z "$ac_lib"; then
12568 ac_res="none required"
12571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_search_inflateEnd=$ac_res
12576 rm -f core conftest.err conftest.$ac_objext \
12578 if ${ac_cv_search_inflateEnd+:} false; then :
12582 if ${ac_cv_search_inflateEnd+:} false; then :
12585 ac_cv_search_inflateEnd=no
12587 rm conftest.$ac_ext
12588 LIBS=$ac_func_search_save_LIBS
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12591 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12592 ac_res=$ac_cv_search_inflateEnd
12593 if test "$ac_res" != no; then :
12594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12598 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12605 if test "$have_zlib" = "yes"; then
12607 ZLIB_REGRESS_FALSE='#'
12609 ZLIB_REGRESS_TRUE='#'
12610 ZLIB_REGRESS_FALSE=
12614 if test "$bwin32" = true; then
12615 EV_LIB_WS32=-lws2_32
12625 # Check whether --enable-largefile was given.
12626 if test "${enable_largefile+set}" = set; then :
12627 enableval=$enable_largefile;
12630 if test "$enable_largefile" != no; then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12633 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12634 if ${ac_cv_sys_largefile_CC+:} false; then :
12635 $as_echo_n "(cached) " >&6
12637 ac_cv_sys_largefile_CC=no
12638 if test "$GCC" != yes; then
12641 # IRIX 6.2 and later do not support large files by default,
12642 # so use the C compiler's -n32 option if that helps.
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <sys/types.h>
12646 /* Check that off_t can represent 2**63 - 1 correctly.
12647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12648 since some C++ compilers masquerading as C compilers
12649 incorrectly reject 9223372036854775807. */
12650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12652 && LARGE_OFF_T % 2147483647 == 1)
12662 if ac_fn_c_try_compile "$LINENO"; then :
12665 rm -f core conftest.err conftest.$ac_objext
12667 if ac_fn_c_try_compile "$LINENO"; then :
12668 ac_cv_sys_largefile_CC=' -n32'; break
12670 rm -f core conftest.err conftest.$ac_objext
12674 rm -f conftest.$ac_ext
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12678 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12679 if test "$ac_cv_sys_largefile_CC" != no; then
12680 CC=$CC$ac_cv_sys_largefile_CC
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12684 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12685 if ${ac_cv_sys_file_offset_bits+:} false; then :
12686 $as_echo_n "(cached) " >&6
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #include <sys/types.h>
12692 /* Check that off_t can represent 2**63 - 1 correctly.
12693 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12694 since some C++ compilers masquerading as C compilers
12695 incorrectly reject 9223372036854775807. */
12696 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12697 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12698 && LARGE_OFF_T % 2147483647 == 1)
12708 if ac_fn_c_try_compile "$LINENO"; then :
12709 ac_cv_sys_file_offset_bits=no; break
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #define _FILE_OFFSET_BITS 64
12715 #include <sys/types.h>
12716 /* Check that off_t can represent 2**63 - 1 correctly.
12717 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12718 since some C++ compilers masquerading as C compilers
12719 incorrectly reject 9223372036854775807. */
12720 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12721 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12722 && LARGE_OFF_T % 2147483647 == 1)
12732 if ac_fn_c_try_compile "$LINENO"; then :
12733 ac_cv_sys_file_offset_bits=64; break
12735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 ac_cv_sys_file_offset_bits=unknown
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12741 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12742 case $ac_cv_sys_file_offset_bits in #(
12745 cat >>confdefs.h <<_ACEOF
12746 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12751 if test $ac_cv_sys_file_offset_bits = unknown; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12753 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12754 if ${ac_cv_sys_large_files+:} false; then :
12755 $as_echo_n "(cached) " >&6
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 #include <sys/types.h>
12761 /* Check that off_t can represent 2**63 - 1 correctly.
12762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12763 since some C++ compilers masquerading as C compilers
12764 incorrectly reject 9223372036854775807. */
12765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12767 && LARGE_OFF_T % 2147483647 == 1)
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778 ac_cv_sys_large_files=no; break
12780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 #define _LARGE_FILES 1
12784 #include <sys/types.h>
12785 /* Check that off_t can represent 2**63 - 1 correctly.
12786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12787 since some C++ compilers masquerading as C compilers
12788 incorrectly reject 9223372036854775807. */
12789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12791 && LARGE_OFF_T % 2147483647 == 1)
12801 if ac_fn_c_try_compile "$LINENO"; then :
12802 ac_cv_sys_large_files=1; break
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 ac_cv_sys_large_files=unknown
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12810 $as_echo "$ac_cv_sys_large_files" >&6; }
12811 case $ac_cv_sys_large_files in #(
12814 cat >>confdefs.h <<_ACEOF
12815 #define _LARGE_FILES $ac_cv_sys_large_files
12828 ntp_pkgconfig_min_version='0.15.0'
12829 if test -n "$ac_tool_prefix"; then
12830 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12831 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12835 $as_echo_n "(cached) " >&6
12837 case $PKG_CONFIG in
12839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12861 if test -n "$PKG_CONFIG"; then
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12863 $as_echo "$PKG_CONFIG" >&6; }
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12871 if test -z "$ac_cv_path_PKG_CONFIG"; then
12872 ac_pt_PKG_CONFIG=$PKG_CONFIG
12873 # Extract the first word of "pkg-config", so it can be a program name with args.
12874 set dummy pkg-config; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12878 $as_echo_n "(cached) " >&6
12880 case $ac_pt_PKG_CONFIG in
12882 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12892 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12904 if test -n "$ac_pt_PKG_CONFIG"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12906 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12909 $as_echo "no" >&6; }
12912 if test "x$ac_pt_PKG_CONFIG" = x; then
12915 case $cross_compiling:$ac_tool_warned in
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12919 ac_tool_warned=yes ;;
12921 PKG_CONFIG=$ac_pt_PKG_CONFIG
12924 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12927 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
12928 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
12930 case "$PKG_CONFIG" in
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
12933 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
12934 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12936 $as_echo "yes" >&6; }
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12939 $as_echo "no" >&6; }
12948 case "$enable_openssl" in
12951 case "$PKG_CONFIG" in
12955 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
12956 case "$OPENSSL_LIBS" in
12958 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12962 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
12965 case "$have_openssl" in
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12972 $as_echo_n "checking for library containing SSL_new... " >&6; }
12973 if ${ac_cv_search_SSL_new+:} false; then :
12974 $as_echo_n "(cached) " >&6
12976 ac_func_search_save_LIBS=$LIBS
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12980 /* Override any GCC internal prototype to avoid an error.
12981 Use char because int might match the return type of a GCC
12982 builtin and then its argument prototype would still apply. */
12995 for ac_lib in '' ssl; do
12996 if test -z "$ac_lib"; then
12997 ac_res="none required"
13000 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13002 if ac_fn_c_try_link "$LINENO"; then :
13003 ac_cv_search_SSL_new=$ac_res
13005 rm -f core conftest.err conftest.$ac_objext \
13007 if ${ac_cv_search_SSL_new+:} false; then :
13011 if ${ac_cv_search_SSL_new+:} false; then :
13014 ac_cv_search_SSL_new=no
13016 rm conftest.$ac_ext
13017 LIBS=$ac_func_search_save_LIBS
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13020 $as_echo "$ac_cv_search_SSL_new" >&6; }
13021 ac_res=$ac_cv_search_SSL_new
13022 if test "$ac_res" != no; then :
13023 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13025 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13035 case "$have_openssl" in
13037 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13043 # check if we have and should use openssl
13044 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13088 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13098 for ac_header in sys/sysctl.h
13100 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13101 #ifdef HAVE_SYS_PARAM_H
13102 #include <sys/param.h>
13106 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13107 cat >>confdefs.h <<_ACEOF
13108 #define HAVE_SYS_SYSCTL_H 1
13115 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13117 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13121 #include <sys/queue.h>
13122 #ifdef TAILQ_FOREACH
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 $EGREP "yes" >/dev/null 2>&1; then :
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13130 $as_echo "yes" >&6; }
13132 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13136 $as_echo "no" >&6; }
13143 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13145 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13149 #include <sys/time.h>
13155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13156 $EGREP "yes" >/dev/null 2>&1; then :
13158 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13161 $as_echo "yes" >&6; }
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13164 $as_echo "no" >&6; }
13171 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13173 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 #include <sys/time.h>
13183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13184 $EGREP "yes" >/dev/null 2>&1; then :
13186 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13189 $as_echo "yes" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13192 $as_echo "no" >&6; }
13199 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13201 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13205 #include <sys/time.h>
13211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13212 $EGREP "yes" >/dev/null 2>&1; then :
13214 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13217 $as_echo "yes" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220 $as_echo "no" >&6; }
13227 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13229 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13233 #include <sys/time.h>
13239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13240 $EGREP "yes" >/dev/null 2>&1; then :
13242 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248 $as_echo "no" >&6; }
13255 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13256 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13257 #include <sys/sysctl.h>
13260 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13266 cat >>confdefs.h <<_ACEOF
13267 #define HAVE_DECL_CTL_KERN $ac_have_decl
13269 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13270 #include <sys/sysctl.h>
13273 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13279 cat >>confdefs.h <<_ACEOF
13280 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13282 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13283 #include <sys/sysctl.h>
13286 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13292 cat >>confdefs.h <<_ACEOF
13293 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13295 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13296 #include <sys/sysctl.h>
13299 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_DECL_KERN_ARND $ac_have_decl
13311 if test x$bwin32 = xtrue; then
13313 BUILD_WIN32_FALSE='#'
13315 BUILD_WIN32_TRUE='#'
13319 if test x$cygwin = xtrue; then
13321 BUILD_CYGWIN_FALSE='#'
13323 BUILD_CYGWIN_TRUE='#'
13324 BUILD_CYGWIN_FALSE=
13327 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13328 BUILD_WITH_NO_UNDEFINED_TRUE=
13329 BUILD_WITH_NO_UNDEFINED_FALSE='#'
13331 BUILD_WITH_NO_UNDEFINED_TRUE='#'
13332 BUILD_WITH_NO_UNDEFINED_FALSE=
13336 if test x$bwin32 = xtrue; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13338 $as_echo_n "checking for library containing getservbyname... " >&6; }
13339 if ${ac_cv_search_getservbyname+:} false; then :
13340 $as_echo_n "(cached) " >&6
13342 ac_func_search_save_LIBS=$LIBS
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13346 /* Override any GCC internal prototype to avoid an error.
13347 Use char because int might match the return type of a GCC
13348 builtin and then its argument prototype would still apply. */
13352 char getservbyname ();
13356 return getservbyname ();
13361 for ac_lib in '' ws2_32; do
13362 if test -z "$ac_lib"; then
13363 ac_res="none required"
13366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 ac_cv_search_getservbyname=$ac_res
13371 rm -f core conftest.err conftest.$ac_objext \
13373 if ${ac_cv_search_getservbyname+:} false; then :
13377 if ${ac_cv_search_getservbyname+:} false; then :
13380 ac_cv_search_getservbyname=no
13382 rm conftest.$ac_ext
13383 LIBS=$ac_func_search_save_LIBS
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13386 $as_echo "$ac_cv_search_getservbyname" >&6; }
13387 ac_res=$ac_cv_search_getservbyname
13388 if test "$ac_res" != no; then :
13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13396 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13397 if ${ac_cv_c_const+:} false; then :
13398 $as_echo_n "(cached) " >&6
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13407 #ifndef __cplusplus
13408 /* Ultrix mips cc rejects this sort of thing. */
13409 typedef int charset[2];
13410 const charset cs = { 0, 0 };
13411 /* SunOS 4.1.1 cc rejects this. */
13412 char const *const *pcpcc;
13414 /* NEC SVR4.0.2 mips cc rejects this. */
13415 struct point {int x, y;};
13416 static struct point const zero = {0,0};
13417 /* AIX XL C 1.02.0.0 rejects this.
13418 It does not let you subtract one const X* pointer from another in
13419 an arm of an if-expression whose if-part is not a constant
13421 const char *g = "string";
13422 pcpcc = &g + (g ? g-g : 0);
13423 /* HPUX 7.0 cc rejects these. */
13425 ppc = (char**) pcpcc;
13426 pcpcc = (char const *const *) ppc;
13427 { /* SCO 3.2v4 cc rejects this sort of thing. */
13430 char const *s = 0 ? (char *) 0 : (char const *) 0;
13435 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13436 int x[] = {25, 17};
13437 const int *foo = &x[0];
13440 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13441 typedef const int *iptr;
13445 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13446 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13447 struct s { int j; const int *ap[3]; } bx;
13448 struct s *b = &bx; b->j = 5;
13450 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13451 const int foo = 10;
13452 if (!foo) return 0;
13454 return !cs[0] && !zero.x;
13461 if ac_fn_c_try_compile "$LINENO"; then :
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13469 $as_echo "$ac_cv_c_const" >&6; }
13470 if test $ac_cv_c_const = no; then
13472 $as_echo "#define const /**/" >>confdefs.h
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13477 $as_echo_n "checking for inline... " >&6; }
13478 if ${ac_cv_c_inline+:} false; then :
13479 $as_echo_n "(cached) " >&6
13482 for ac_kw in inline __inline__ __inline; do
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #ifndef __cplusplus
13487 static $ac_kw foo_t static_foo () {return 0; }
13488 $ac_kw foo_t foo () {return 0; }
13492 if ac_fn_c_try_compile "$LINENO"; then :
13493 ac_cv_c_inline=$ac_kw
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 test "$ac_cv_c_inline" != no && break
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13501 $as_echo "$ac_cv_c_inline" >&6; }
13503 case $ac_cv_c_inline in
13506 case $ac_cv_c_inline in
13508 *) ac_val=$ac_cv_c_inline;;
13510 cat >>confdefs.h <<_ACEOF
13511 #ifndef __cplusplus
13512 #define inline $ac_val
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13519 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13520 if ${ac_cv_header_time+:} false; then :
13521 $as_echo_n "(cached) " >&6
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525 #include <sys/types.h>
13526 #include <sys/time.h>
13532 if ((struct tm *) 0)
13538 if ac_fn_c_try_compile "$LINENO"; then :
13539 ac_cv_header_time=yes
13541 ac_cv_header_time=no
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13546 $as_echo "$ac_cv_header_time" >&6; }
13547 if test $ac_cv_header_time = yes; then
13549 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13571 mach_absolute_time \
13595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13597 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13605 if test x"$ac_cv_func_strlcpy" = xno; then
13607 STRLCPY_IMPL_FALSE='#'
13609 STRLCPY_IMPL_TRUE='#'
13610 STRLCPY_IMPL_FALSE=
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13615 $as_echo_n "checking for getaddrinfo... " >&6; }
13616 if ${libevent_cv_getaddrinfo+:} false; then :
13617 $as_echo_n "(cached) " >&6
13619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13620 /* end confdefs.h. */
13622 #ifdef HAVE_NETDB_H
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 libevent_cv_getaddrinfo=yes
13640 libevent_cv_getaddrinfo=no
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13648 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13649 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13651 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13655 for ac_func in getservbyname
13657 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13658 if test "x$ac_cv_func_getservbyname" = xyes; then :
13659 cat >>confdefs.h <<_ACEOF
13660 #define HAVE_GETSERVBYNAME 1
13666 # Check for gethostbyname_r in all its glorious incompatible versions.
13667 # (This is cut-and-pasted from Tor, which based its logic on
13668 # Python's configure.in.)
13671 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13672 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13675 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13677 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13688 struct hostent *h1, *h2;
13690 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13696 if ac_fn_c_try_compile "$LINENO"; then :
13698 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13701 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13704 $as_echo "6" >&6; }
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13718 struct hostent *h1;
13720 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13726 if ac_fn_c_try_compile "$LINENO"; then :
13728 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13731 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13734 $as_echo "5" >&6; }
13738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739 /* end confdefs.h. */
13748 struct hostent *h1;
13749 struct hostent_data hd;
13750 (void) gethostbyname_r(cp1,h1,&hd);
13756 if ac_fn_c_try_compile "$LINENO"; then :
13758 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13761 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13764 $as_echo "3" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13769 $as_echo "0" >&6; }
13772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13787 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13791 #define _GNU_SOURCE
13798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13799 $EGREP "yes" >/dev/null 2>&1; then :
13801 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13804 $as_echo "yes" >&6; }
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13807 $as_echo "no" >&6; }
13814 if test x$bwin32 != xtrue; then
13815 for ac_func in select
13817 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13818 if test "x$ac_cv_func_select" = xyes; then :
13819 cat >>confdefs.h <<_ACEOF
13820 #define HAVE_SELECT 1
13826 if test "x$haveselect" = "xyes" ; then
13830 if test "x$haveselect" = "xyes"; then
13831 SELECT_BACKEND_TRUE=
13832 SELECT_BACKEND_FALSE='#'
13834 SELECT_BACKEND_TRUE='#'
13835 SELECT_BACKEND_FALSE=
13840 for ac_func in poll
13842 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13843 if test "x$ac_cv_func_poll" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_POLL 1
13851 if test "x$havepoll" = "xyes" ; then
13854 if test "x$havepoll" = "xyes"; then
13856 POLL_BACKEND_FALSE='#'
13858 POLL_BACKEND_TRUE='#'
13859 POLL_BACKEND_FALSE=
13864 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13866 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13869 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13870 DEVPOLL_BACKEND_TRUE=
13871 DEVPOLL_BACKEND_FALSE='#'
13873 DEVPOLL_BACKEND_TRUE='#'
13874 DEVPOLL_BACKEND_FALSE=
13879 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13880 for ac_func in kqueue
13882 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13883 if test "x$ac_cv_func_kqueue" = xyes; then :
13884 cat >>confdefs.h <<_ACEOF
13885 #define HAVE_KQUEUE 1
13891 if test "x$havekqueue" = "xyes" ; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13893 $as_echo_n "checking for working kqueue... " >&6; }
13894 if test "$cross_compiling" = yes; then :
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13896 $as_echo "no" >&6; }
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13900 #include <sys/types.h>
13901 #include <sys/time.h>
13902 #include <sys/event.h>
13904 #include <unistd.h>
13908 main(int argc, char **argv)
13914 struct timespec ts;
13917 if (pipe(fd) == -1)
13919 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13922 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13925 if ((kq = kqueue()) == -1)
13928 memset(&ev, 0, sizeof(ev));
13930 ev.filter = EVFILT_WRITE;
13931 ev.flags = EV_ADD | EV_ENABLE;
13932 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13936 read(fd[0], buf, sizeof(buf));
13940 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13941 if (n == -1 || n == 0)
13947 if ac_fn_c_try_run "$LINENO"; then :
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13949 $as_echo "yes" >&6; }
13951 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13957 $as_echo "no" >&6; }
13959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13960 conftest.$ac_objext conftest.beam conftest.$ac_ext
13965 if test "x$havekqueue" = "xyes"; then
13966 KQUEUE_BACKEND_TRUE=
13967 KQUEUE_BACKEND_FALSE='#'
13969 KQUEUE_BACKEND_TRUE='#'
13970 KQUEUE_BACKEND_FALSE=
13974 haveepollsyscall=no
13976 for ac_func in epoll_ctl
13978 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13979 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_EPOLL_CTL 1
13987 if test "x$haveepoll" = "xyes" ; then
13989 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13993 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13994 if test "x$haveepoll" = "xno" ; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13996 $as_echo_n "checking for epoll system call... " >&6; }
13997 if test "$cross_compiling" = yes; then :
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14003 #include <stdint.h>
14004 #include <sys/param.h>
14005 #include <sys/types.h>
14006 #include <sys/syscall.h>
14007 #include <sys/epoll.h>
14008 #include <unistd.h>
14011 epoll_create(int size)
14013 return (syscall(__NR_epoll_create, size));
14017 main(int argc, char **argv)
14021 epfd = epoll_create(256);
14022 exit (epfd == -1 ? 1 : 0);
14025 if ac_fn_c_try_run "$LINENO"; then :
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14027 $as_echo "yes" >&6; }
14029 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14033 case " $LIBOBJS " in
14034 *" epoll_sub.$ac_objext "* ) ;;
14035 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14042 $as_echo "no" >&6; }
14044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14045 conftest.$ac_objext conftest.beam conftest.$ac_ext
14050 if test "x$haveepoll" = "xyes"; then
14051 EPOLL_BACKEND_TRUE=
14052 EPOLL_BACKEND_FALSE='#'
14054 EPOLL_BACKEND_TRUE='#'
14055 EPOLL_BACKEND_FALSE=
14060 for ac_func in port_create
14062 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14063 if test "x$ac_cv_func_port_create" = xyes; then :
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_PORT_CREATE 1
14071 if test "x$haveeventports" = "xyes" ; then
14073 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14077 if test "x$haveeventports" = "xyes"; then
14078 EVPORT_BACKEND_TRUE=
14079 EVPORT_BACKEND_FALSE='#'
14081 EVPORT_BACKEND_TRUE='#'
14082 EVPORT_BACKEND_FALSE=
14086 if test "x$bwin32" = "xtrue"; then
14090 if test "x$needsignal" = "xyes"; then
14091 SIGNAL_SUPPORT_TRUE=
14092 SIGNAL_SUPPORT_FALSE='#'
14094 SIGNAL_SUPPORT_TRUE='#'
14095 SIGNAL_SUPPORT_FALSE=
14099 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14100 if test "x$ac_cv_type_pid_t" = xyes; then :
14104 cat >>confdefs.h <<_ACEOF
14110 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14111 if test "x$ac_cv_type_size_t" = xyes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define size_t unsigned int
14121 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14122 if test "x$ac_cv_type_ssize_t" = xyes; then :
14126 cat >>confdefs.h <<_ACEOF
14127 #define ssize_t int
14133 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14134 #include <stdint.h>
14135 #elif defined(HAVE_INTTYPES_H)
14136 #include <inttypes.h>
14138 #ifdef HAVE_SYS_TYPES_H
14139 #include <sys/types.h>
14142 if test "x$ac_cv_type_uint64_t" = xyes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_UINT64_T 1
14150 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14151 #include <stdint.h>
14152 #elif defined(HAVE_INTTYPES_H)
14153 #include <inttypes.h>
14155 #ifdef HAVE_SYS_TYPES_H
14156 #include <sys/types.h>
14159 if test "x$ac_cv_type_uint32_t" = xyes; then :
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE_UINT32_T 1
14167 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14168 #include <stdint.h>
14169 #elif defined(HAVE_INTTYPES_H)
14170 #include <inttypes.h>
14172 #ifdef HAVE_SYS_TYPES_H
14173 #include <sys/types.h>
14176 if test "x$ac_cv_type_uint16_t" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_UINT16_T 1
14184 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14185 #include <stdint.h>
14186 #elif defined(HAVE_INTTYPES_H)
14187 #include <inttypes.h>
14189 #ifdef HAVE_SYS_TYPES_H
14190 #include <sys/types.h>
14193 if test "x$ac_cv_type_uint8_t" = xyes; then :
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_UINT8_T 1
14201 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14202 #include <stdint.h>
14203 #elif defined(HAVE_INTTYPES_H)
14204 #include <inttypes.h>
14206 #ifdef HAVE_SYS_TYPES_H
14207 #include <sys/types.h>
14210 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_UINTPTR_T 1
14220 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14221 #include <sys/types.h>
14223 #ifdef HAVE_SYS_SELECT_H
14224 #include <sys/select.h>
14227 if test "x$ac_cv_type_fd_mask" = xyes; then :
14229 cat >>confdefs.h <<_ACEOF
14230 #define HAVE_FD_MASK 1
14237 # The cast to long int works around a bug in the HP C Compiler
14238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14240 # This bug is HP SR number 8606223364.
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14242 $as_echo_n "checking size of long long... " >&6; }
14243 if ${ac_cv_sizeof_long_long+:} false; then :
14244 $as_echo_n "(cached) " >&6
14246 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14249 if test "$ac_cv_type_long_long" = yes; then
14250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14252 as_fn_error 77 "cannot compute sizeof (long long)
14253 See \`config.log' for more details" "$LINENO" 5; }
14255 ac_cv_sizeof_long_long=0
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14261 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14265 cat >>confdefs.h <<_ACEOF
14266 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14270 # The cast to long int works around a bug in the HP C Compiler
14271 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14272 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14273 # This bug is HP SR number 8606223364.
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14275 $as_echo_n "checking size of long... " >&6; }
14276 if ${ac_cv_sizeof_long+:} false; then :
14277 $as_echo_n "(cached) " >&6
14279 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14282 if test "$ac_cv_type_long" = yes; then
14283 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14285 as_fn_error 77 "cannot compute sizeof (long)
14286 See \`config.log' for more details" "$LINENO" 5; }
14288 ac_cv_sizeof_long=0
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14294 $as_echo "$ac_cv_sizeof_long" >&6; }
14298 cat >>confdefs.h <<_ACEOF
14299 #define SIZEOF_LONG $ac_cv_sizeof_long
14303 # The cast to long int works around a bug in the HP C Compiler
14304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14306 # This bug is HP SR number 8606223364.
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14308 $as_echo_n "checking size of int... " >&6; }
14309 if ${ac_cv_sizeof_int+:} false; then :
14310 $as_echo_n "(cached) " >&6
14312 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14315 if test "$ac_cv_type_int" = yes; then
14316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14318 as_fn_error 77 "cannot compute sizeof (int)
14319 See \`config.log' for more details" "$LINENO" 5; }
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14327 $as_echo "$ac_cv_sizeof_int" >&6; }
14331 cat >>confdefs.h <<_ACEOF
14332 #define SIZEOF_INT $ac_cv_sizeof_int
14336 # The cast to long int works around a bug in the HP C Compiler
14337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14339 # This bug is HP SR number 8606223364.
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14341 $as_echo_n "checking size of short... " >&6; }
14342 if ${ac_cv_sizeof_short+:} false; then :
14343 $as_echo_n "(cached) " >&6
14345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14348 if test "$ac_cv_type_short" = yes; then
14349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14351 as_fn_error 77 "cannot compute sizeof (short)
14352 See \`config.log' for more details" "$LINENO" 5; }
14354 ac_cv_sizeof_short=0
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14360 $as_echo "$ac_cv_sizeof_short" >&6; }
14364 cat >>confdefs.h <<_ACEOF
14365 #define SIZEOF_SHORT $ac_cv_sizeof_short
14369 # The cast to long int works around a bug in the HP C Compiler
14370 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14371 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14372 # This bug is HP SR number 8606223364.
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14374 $as_echo_n "checking size of size_t... " >&6; }
14375 if ${ac_cv_sizeof_size_t+:} false; then :
14376 $as_echo_n "(cached) " >&6
14378 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14381 if test "$ac_cv_type_size_t" = yes; then
14382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14384 as_fn_error 77 "cannot compute sizeof (size_t)
14385 See \`config.log' for more details" "$LINENO" 5; }
14387 ac_cv_sizeof_size_t=0
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14393 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14397 cat >>confdefs.h <<_ACEOF
14398 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14402 # The cast to long int works around a bug in the HP C Compiler
14403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14405 # This bug is HP SR number 8606223364.
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14407 $as_echo_n "checking size of void *... " >&6; }
14408 if ${ac_cv_sizeof_void_p+:} false; then :
14409 $as_echo_n "(cached) " >&6
14411 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14414 if test "$ac_cv_type_void_p" = yes; then
14415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14417 as_fn_error 77 "cannot compute sizeof (void *)
14418 See \`config.log' for more details" "$LINENO" 5; }
14420 ac_cv_sizeof_void_p=0
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14426 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14430 cat >>confdefs.h <<_ACEOF
14431 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14435 # The cast to long int works around a bug in the HP C Compiler
14436 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14437 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14438 # This bug is HP SR number 8606223364.
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14440 $as_echo_n "checking size of off_t... " >&6; }
14441 if ${ac_cv_sizeof_off_t+:} false; then :
14442 $as_echo_n "(cached) " >&6
14444 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14447 if test "$ac_cv_type_off_t" = yes; then
14448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14450 as_fn_error 77 "cannot compute sizeof (off_t)
14451 See \`config.log' for more details" "$LINENO" 5; }
14453 ac_cv_sizeof_off_t=0
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14459 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14463 cat >>confdefs.h <<_ACEOF
14464 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14469 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14470 #include <sys/types.h>
14471 #ifdef HAVE_NETINET_IN_H
14472 #include <netinet/in.h>
14474 #ifdef HAVE_NETINET_IN6_H
14475 #include <netinet/in6.h>
14477 #ifdef HAVE_SYS_SOCKET_H
14478 #include <sys/socket.h>
14480 #ifdef HAVE_NETDB_H
14484 #define WIN32_WINNT 0x400
14485 #define _WIN32_WINNT 0x400
14486 #define WIN32_LEAN_AND_MEAN
14487 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14488 #include <winsock.h>
14490 #include <winsock2.h>
14491 #include <ws2tcpip.h>
14496 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14498 cat >>confdefs.h <<_ACEOF
14499 #define HAVE_STRUCT_IN6_ADDR 1
14504 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14505 #include <sys/types.h>
14506 #ifdef HAVE_NETINET_IN_H
14507 #include <netinet/in.h>
14509 #ifdef HAVE_NETINET_IN6_H
14510 #include <netinet/in6.h>
14512 #ifdef HAVE_SYS_SOCKET_H
14513 #include <sys/socket.h>
14515 #ifdef HAVE_NETDB_H
14519 #define WIN32_WINNT 0x400
14520 #define _WIN32_WINNT 0x400
14521 #define WIN32_LEAN_AND_MEAN
14522 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14523 #include <winsock.h>
14525 #include <winsock2.h>
14526 #include <ws2tcpip.h>
14531 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14533 cat >>confdefs.h <<_ACEOF
14534 #define HAVE_STRUCT_SOCKADDR_IN6 1
14539 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14540 #include <sys/types.h>
14541 #ifdef HAVE_NETINET_IN_H
14542 #include <netinet/in.h>
14544 #ifdef HAVE_NETINET_IN6_H
14545 #include <netinet/in6.h>
14547 #ifdef HAVE_SYS_SOCKET_H
14548 #include <sys/socket.h>
14550 #ifdef HAVE_NETDB_H
14554 #define WIN32_WINNT 0x400
14555 #define _WIN32_WINNT 0x400
14556 #define WIN32_LEAN_AND_MEAN
14557 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14558 #include <winsock.h>
14560 #include <winsock2.h>
14561 #include <ws2tcpip.h>
14566 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_SA_FAMILY_T 1
14574 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14575 #include <sys/types.h>
14576 #ifdef HAVE_NETINET_IN_H
14577 #include <netinet/in.h>
14579 #ifdef HAVE_NETINET_IN6_H
14580 #include <netinet/in6.h>
14582 #ifdef HAVE_SYS_SOCKET_H
14583 #include <sys/socket.h>
14585 #ifdef HAVE_NETDB_H
14589 #define WIN32_WINNT 0x400
14590 #define _WIN32_WINNT 0x400
14591 #define WIN32_LEAN_AND_MEAN
14592 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14593 #include <winsock.h>
14595 #include <winsock2.h>
14596 #include <ws2tcpip.h>
14601 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_STRUCT_ADDRINFO 1
14609 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14610 #include <sys/types.h>
14611 #ifdef HAVE_NETINET_IN_H
14612 #include <netinet/in.h>
14614 #ifdef HAVE_NETINET_IN6_H
14615 #include <netinet/in6.h>
14617 #ifdef HAVE_SYS_SOCKET_H
14618 #include <sys/socket.h>
14620 #ifdef HAVE_NETDB_H
14624 #define WIN32_WINNT 0x400
14625 #define _WIN32_WINNT 0x400
14626 #define WIN32_LEAN_AND_MEAN
14627 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14628 #include <winsock.h>
14630 #include <winsock2.h>
14631 #include <ws2tcpip.h>
14636 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14645 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14646 #ifdef HAVE_NETINET_IN_H
14647 #include <netinet/in.h>
14649 #ifdef HAVE_NETINET_IN6_H
14650 #include <netinet/in6.h>
14652 #ifdef HAVE_SYS_SOCKET_H
14653 #include <sys/socket.h>
14656 #define WIN32_WINNT 0x400
14657 #define _WIN32_WINNT 0x400
14658 #define WIN32_LEAN_AND_MEAN
14659 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14660 #include <winsock.h>
14662 #include <winsock2.h>
14663 #include <ws2tcpip.h>
14668 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14670 cat >>confdefs.h <<_ACEOF
14671 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14676 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14677 #ifdef HAVE_NETINET_IN_H
14678 #include <netinet/in.h>
14680 #ifdef HAVE_NETINET_IN6_H
14681 #include <netinet/in6.h>
14683 #ifdef HAVE_SYS_SOCKET_H
14684 #include <sys/socket.h>
14687 #define WIN32_WINNT 0x400
14688 #define _WIN32_WINNT 0x400
14689 #define WIN32_LEAN_AND_MEAN
14690 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14691 #include <winsock.h>
14693 #include <winsock2.h>
14694 #include <ws2tcpip.h>
14699 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14707 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14708 #ifdef HAVE_NETINET_IN_H
14709 #include <netinet/in.h>
14711 #ifdef HAVE_NETINET_IN6_H
14712 #include <netinet/in6.h>
14714 #ifdef HAVE_SYS_SOCKET_H
14715 #include <sys/socket.h>
14718 #define WIN32_WINNT 0x400
14719 #define _WIN32_WINNT 0x400
14720 #define WIN32_LEAN_AND_MEAN
14721 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14722 #include <winsock.h>
14724 #include <winsock2.h>
14725 #include <ws2tcpip.h>
14730 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14738 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14739 #ifdef HAVE_NETINET_IN_H
14740 #include <netinet/in.h>
14742 #ifdef HAVE_NETINET_IN6_H
14743 #include <netinet/in6.h>
14745 #ifdef HAVE_SYS_SOCKET_H
14746 #include <sys/socket.h>
14749 #define WIN32_WINNT 0x400
14750 #define _WIN32_WINNT 0x400
14751 #define WIN32_LEAN_AND_MEAN
14752 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14753 #include <winsock.h>
14755 #include <winsock2.h>
14756 #include <ws2tcpip.h>
14761 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14769 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14770 #ifdef HAVE_NETINET_IN_H
14771 #include <netinet/in.h>
14773 #ifdef HAVE_NETINET_IN6_H
14774 #include <netinet/in6.h>
14776 #ifdef HAVE_SYS_SOCKET_H
14777 #include <sys/socket.h>
14780 #define WIN32_WINNT 0x400
14781 #define _WIN32_WINNT 0x400
14782 #define WIN32_LEAN_AND_MEAN
14783 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14784 #include <winsock.h>
14786 #include <winsock2.h>
14787 #include <ws2tcpip.h>
14792 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14794 cat >>confdefs.h <<_ACEOF
14795 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14800 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14801 #ifdef HAVE_NETINET_IN_H
14802 #include <netinet/in.h>
14804 #ifdef HAVE_NETINET_IN6_H
14805 #include <netinet/in6.h>
14807 #ifdef HAVE_SYS_SOCKET_H
14808 #include <sys/socket.h>
14811 #define WIN32_WINNT 0x400
14812 #define _WIN32_WINNT 0x400
14813 #define WIN32_LEAN_AND_MEAN
14814 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14815 #include <winsock.h>
14817 #include <winsock2.h>
14818 #include <ws2tcpip.h>
14823 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14833 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
14834 #ifdef HAVE_SYS_SOCKET_H
14835 #include <sys/socket.h>
14839 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_STRUCT_SO_LINGER 1
14845 #define HAVE_SO_LINGER
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14850 $as_echo_n "checking for socklen_t... " >&6; }
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 #include <sys/types.h>
14855 #include <sys/socket.h>
14864 if ac_fn_c_try_compile "$LINENO"; then :
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866 $as_echo "yes" >&6; }
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14871 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14878 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14885 const char *cp = __func__;
14890 if ac_fn_c_try_compile "$LINENO"; then :
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14892 $as_echo "yes" >&6; }
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14895 $as_echo "no" >&6; }
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14897 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14904 const char *cp = __FUNCTION__;
14909 if ac_fn_c_try_compile "$LINENO"; then :
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14911 $as_echo "yes" >&6; }
14913 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14917 $as_echo "no" >&6; }
14919 $as_echo "#define __func__ __FILE__" >>confdefs.h
14922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927 # check if we can compile with pthreads
14929 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14941 # We used to check for pthread.h first, but this fails if pthread.h
14942 # requires special compiler flags (e.g. on True64 or Sequent).
14943 # It gets checked for in the link test anyway.
14945 # First of all, check if the user has set any of the PTHREAD_LIBS,
14946 # etcetera environment variables, and if threads linking works using
14948 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14949 save_CFLAGS="$CFLAGS"
14950 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14952 LIBS="$PTHREAD_LIBS $LIBS"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14954 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 /* Override any GCC internal prototype to avoid an error.
14959 Use char because int might match the return type of a GCC
14960 builtin and then its argument prototype would still apply. */
14964 char pthread_join ();
14968 return pthread_join ();
14973 if ac_fn_c_try_link "$LINENO"; then :
14976 rm -f core conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14979 $as_echo "$acx_pthread_ok" >&6; }
14980 if test x"$acx_pthread_ok" = xno; then
14985 CFLAGS="$save_CFLAGS"
14988 # We must check for the threads library under a number of different
14989 # names; the ordering is very important because some systems
14990 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14991 # libraries is broken (non-POSIX).
14993 # Create a list of thread flags to try. Items starting with a "-" are
14994 # C compiler flags, and other items are library names, except for "none"
14995 # which indicates that we try without any flags at all, and "pthread-config"
14996 # which is a program returning the flags for the Pth emulation library.
14998 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15000 # The ordering *is* (sometimes) important. Some notes on the
15001 # individual items follow:
15003 # pthreads: AIX (must check this before -lpthread)
15004 # none: in case threads are in libc; should be tried before -Kthread and
15005 # other compiler flags to prevent continual compiler warnings
15006 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15007 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15008 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15009 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15010 # -pthreads: Solaris/gcc
15011 # -mthreads: Mingw32/gcc, Lynx/gcc
15012 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15013 # doesn't hurt to check since this sometimes defines pthreads too;
15014 # also defines -D_REENTRANT)
15015 # ... -mt is also the pthreads flag for HP/aCC
15016 # pthread: Linux, etcetera
15017 # --thread-safe: KAI C++
15018 # pthread-config: use pthread-config program (for GNU Pth library)
15020 case "${host_cpu}-${host_os}" in
15023 # On Solaris (at least, for some versions), libc contains stubbed
15024 # (non-functional) versions of the pthreads routines, so link-based
15025 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15026 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15027 # a function called by this macro, so we could check for that, but
15028 # who knows whether they'll stub that too in a future libc.) So,
15029 # we'll just look for -pthreads and -lpthread first:
15031 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15035 if test x"$acx_pthread_ok" = xno; then
15036 for flag in $acx_pthread_flags; do
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15041 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15046 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15047 PTHREAD_CFLAGS="$flag"
15051 # Extract the first word of "pthread-config", so it can be a program name with args.
15052 set dummy pthread-config; ac_word=$2
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054 $as_echo_n "checking for $ac_word... " >&6; }
15055 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15056 $as_echo_n "(cached) " >&6
15058 if test -n "$acx_pthread_config"; then
15059 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15065 test -z "$as_dir" && as_dir=.
15066 for ac_exec_ext in '' $ac_executable_extensions; do
15067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15068 ac_cv_prog_acx_pthread_config="yes"
15069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15076 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15079 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15080 if test -n "$acx_pthread_config"; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15082 $as_echo "$acx_pthread_config" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15085 $as_echo "no" >&6; }
15089 if test x"$acx_pthread_config" = xno; then continue; fi
15090 PTHREAD_CFLAGS="`pthread-config --cflags`"
15091 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15096 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15097 PTHREAD_LIBS="-l$flag"
15102 save_CFLAGS="$CFLAGS"
15103 LIBS="$PTHREAD_LIBS $LIBS"
15104 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15106 # Check for various functions. We must include pthread.h,
15107 # since some functions may be macros. (On the Sequent, we
15108 # need a special flag -Kthread to make this header compile.)
15109 # We check for pthread_join because it is in -lpthread on IRIX
15110 # while pthread_create is in libc. We check for pthread_attr_init
15111 # due to DEC craziness with -lpthreads. We check for
15112 # pthread_cleanup_push because it is one of the few pthread
15113 # functions on Solaris that doesn't have a non-functional libc stub.
15114 # We try pthread_create on general principles.
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 #include <pthread.h>
15121 pthread_t th; pthread_join(th, 0);
15122 pthread_attr_init(0); pthread_cleanup_push(0, 0);
15123 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15128 if ac_fn_c_try_link "$LINENO"; then :
15131 rm -f core conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15135 CFLAGS="$save_CFLAGS"
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15138 $as_echo "$acx_pthread_ok" >&6; }
15139 if test "x$acx_pthread_ok" = xyes; then
15148 # Various other checks:
15149 if test "x$acx_pthread_ok" = xyes; then
15151 LIBS="$PTHREAD_LIBS $LIBS"
15152 save_CFLAGS="$CFLAGS"
15153 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15155 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15157 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15159 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161 /* end confdefs.h. */
15162 #include <pthread.h>
15166 int attr=$attr; return attr;
15171 if ac_fn_c_try_link "$LINENO"; then :
15172 attr_name=$attr; break
15174 rm -f core conftest.err conftest.$ac_objext \
15175 conftest$ac_exeext conftest.$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15178 $as_echo "$attr_name" >&6; }
15179 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15181 cat >>confdefs.h <<_ACEOF
15182 #define PTHREAD_CREATE_JOINABLE $attr_name
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15188 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15190 case "${host_cpu}-${host_os}" in
15191 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15192 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15195 $as_echo "${flag}" >&6; }
15196 if test "x$flag" != xno; then
15197 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15201 CFLAGS="$save_CFLAGS"
15203 # More AIX lossage: must compile with xlc_r or cc_r
15204 if test x"$GCC" != xyes; then
15205 for ac_prog in xlc_r cc_r
15207 # Extract the first word of "$ac_prog", so it can be a program name with args.
15208 set dummy $ac_prog; ac_word=$2
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15210 $as_echo_n "checking for $ac_word... " >&6; }
15211 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15212 $as_echo_n "(cached) " >&6
15214 if test -n "$PTHREAD_CC"; then
15215 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15218 for as_dir in $PATH
15221 test -z "$as_dir" && as_dir=.
15222 for ac_exec_ext in '' $ac_executable_extensions; do
15223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15224 ac_cv_prog_PTHREAD_CC="$ac_prog"
15225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15234 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15235 if test -n "$PTHREAD_CC"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15237 $as_echo "$PTHREAD_CC" >&6; }
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15240 $as_echo "no" >&6; }
15244 test -n "$PTHREAD_CC" && break
15246 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15259 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15260 if test x"$acx_pthread_ok" = xyes; then
15263 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
15272 ac_cpp='$CPP $CPPFLAGS'
15273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15279 # The cast to long int works around a bug in the HP C Compiler
15280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15282 # This bug is HP SR number 8606223364.
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15284 $as_echo_n "checking size of pthread_t... " >&6; }
15285 if ${ac_cv_sizeof_pthread_t+:} false; then :
15286 $as_echo_n "(cached) " >&6
15288 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
15289 #include <pthread.h>
15294 if test "$ac_cv_type_pthread_t" = yes; then
15295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15297 as_fn_error 77 "cannot compute sizeof (pthread_t)
15298 See \`config.log' for more details" "$LINENO" 5; }
15300 ac_cv_sizeof_pthread_t=0
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15306 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15310 cat >>confdefs.h <<_ACEOF
15311 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15316 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
15325 # check if we should compile locking into the library
15326 if test x$enable_thread_support = xno; then
15328 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
15332 # check if we should hard-code the mm functions.
15333 if test x$enable_malloc_replacement = xno; then
15335 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
15339 # check if we should hard-code debugging out
15340 if test x$enable_debug_mode = xno; then
15342 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
15346 # check if we should enable verbose debugging
15347 if test x$enable_verbose_debug = xyes; then
15348 CFLAGS="$CFLAGS -DUSE_DEBUG"
15351 # check if we have and should use openssl
15352 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15361 # Add some more warnings which we use in development but not in the
15362 # released versions. (Some relevant gcc versions can't handle these.)
15363 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366 /* end confdefs.h. */
15372 #if !defined(__GNUC__) || (__GNUC__ < 4)
15379 if ac_fn_c_try_compile "$LINENO"; then :
15384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15393 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15400 if ac_fn_c_try_compile "$LINENO"; then :
15405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15408 /* end confdefs.h. */
15414 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15421 if ac_fn_c_try_compile "$LINENO"; then :
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15435 #if !defined(__clang__)
15442 if ac_fn_c_try_compile "$LINENO"; then :
15447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449 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"
15450 if test x$enable_gcc_warnings = xyes; then
15451 CFLAGS="$CFLAGS -Werror"
15454 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15456 if test x$have_gcc4 = xyes ; then
15457 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15458 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15459 #CFLAGS="$CFLAGS -Wold-style-definition"
15462 if test x$have_gcc42 = xyes ; then
15463 # These warnings break gcc 4.0.2 and work on gcc 4.2
15464 CFLAGS="$CFLAGS -Waddress"
15467 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15468 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15469 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15472 if test x$have_gcc45 = xyes ; then
15473 # These warnings work on gcc 4.5
15474 CFLAGS="$CFLAGS -Wlogical-op"
15477 if test x$have_clang = xyes; then
15478 # Disable the unused-function warnings, because these trigger
15479 # for minheap-internal.h related code.
15480 CFLAGS="$CFLAGS -Wno-unused-function"
15482 # clang on macosx emits warnigns for each directory specified which
15483 # isn't "used" generating a lot of build noise (typically 3 warnings
15487 CFLAGS="$CFLAGS -Qunused-arguments"
15492 ##This will break the world on some 64-bit architectures
15493 # CFLAGS="$CFLAGS -Winline"
15497 LIBEVENT_GC_SECTIONS=
15498 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15500 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15501 if ${libevent_cv_gc_sections_runs+:} false; then :
15502 $as_echo_n "(cached) " >&6
15505 origCFLAGS="$CFLAGS"
15506 CFLAGS="$CFLAGS -Wl,--gc-sections"
15507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15508 /* end confdefs.h. */
15510 #include <stdlib.h>
15520 int read_success_once;
15522 fpC = fopen("conftest.c", "r");
15526 cch = fread(buf, sizeof(buf), 1, fpC);
15527 read_success_once |= (0 != cch);
15528 } while (0 != cch);
15529 if (!read_success_once)
15533 if (0 != fclose(fpC))
15536 exit(EXIT_SUCCESS);
15543 if ac_fn_c_try_link "$LINENO"; then :
15545 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15546 libevent_cv_gc_sections_runs=no
15548 libevent_cv_gc_sections_runs=no
15549 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15553 libevent_cv_gc_sections_runs=no
15556 rm -f core conftest.err conftest.$ac_objext \
15557 conftest$ac_exeext conftest.$ac_ext
15558 CFLAGS="$origCFLAGS"
15559 { origCFLAGS=; unset origCFLAGS;}
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15564 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15565 case "$libevent_cv_gc_sections_runs" in
15567 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15568 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15574 if test "$enable_libevent_install" = "yes"; then
15575 INSTALL_LIBEVENT_TRUE=
15576 INSTALL_LIBEVENT_FALSE='#'
15578 INSTALL_LIBEVENT_TRUE='#'
15579 INSTALL_LIBEVENT_FALSE=
15583 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15585 ac_config_files="$ac_config_files Makefile"
15587 cat >confcache <<\_ACEOF
15588 # This file is a shell script that caches the results of configure
15589 # tests run on this system so they can be shared between configure
15590 # scripts and configure runs, see configure's option --config-cache.
15591 # It is not useful on other systems. If it contains results you don't
15592 # want to keep, you may remove or edit it.
15594 # config.status only pays attention to the cache file if you give it
15595 # the --recheck option to rerun configure.
15597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15599 # following values.
15603 # The following way of writing the cache mishandles newlines in values,
15604 # but we know of no workaround that is simple, portable, and efficient.
15605 # So, we kill variables containing newlines.
15606 # Ultrix sh set writes to stderr and can't be redirected directly,
15607 # and sets the high bit in the cache file unless we assign to the vars.
15609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15610 eval ac_val=\$$ac_var
15614 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15618 _ | IFS | as_nl) ;; #(
15619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15620 *) { eval $ac_var=; unset $ac_var;} ;;
15626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15627 *${as_nl}ac_space=\ *)
15628 # `set' does not quote correctly, so add quotes: double-quote
15629 # substitution turns \\\\ into \\, and sed turns \\ into \.
15632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15635 # `set' quotes correctly as required by POSIX, so do not add quotes.
15636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15650 if test -w "$cache_file"; then
15651 if test "x$cache_file" != "x/dev/null"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15653 $as_echo "$as_me: updating cache $cache_file" >&6;}
15654 if test ! -f "$cache_file" || test -h "$cache_file"; then
15655 cat confcache >"$cache_file"
15657 case $cache_file in #(
15659 mv -f confcache "$cache_file"$$ &&
15660 mv -f "$cache_file"$$ "$cache_file" ;; #(
15662 mv -f confcache "$cache_file" ;;
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15668 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15674 # Let make expand exec_prefix.
15675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15677 DEFS=-DHAVE_CONFIG_H
15682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15683 # 1. Remove the extension, and $U if already installed.
15684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15687 # will be set to the directory where LIBOBJS objects are built.
15688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15691 LIBOBJS=$ac_libobjs
15693 LTLIBOBJS=$ac_ltlibobjs
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15697 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15698 if test -n "$am_sleep_pid"; then
15699 # Hide warnings about reused PIDs.
15700 wait $am_sleep_pid 2>/dev/null
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15703 $as_echo "done" >&6; }
15704 if test -n "$EXEEXT"; then
15706 am__EXEEXT_FALSE='#'
15708 am__EXEEXT_TRUE='#'
15712 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15713 as_fn_error $? "conditional \"AMDEP\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15716 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15717 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15720 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
15721 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15724 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15725 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15729 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15732 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15733 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15736 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15737 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15741 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15744 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15745 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15748 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
15749 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15752 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15753 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15756 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15757 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15760 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15761 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15764 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15765 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15768 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15769 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15772 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15773 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15776 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15777 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15780 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15781 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15784 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15785 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15788 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15789 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15793 : "${CONFIG_STATUS=./config.status}"
15795 ac_clean_files_save=$ac_clean_files
15796 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15798 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15800 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15802 # Generated by $as_me.
15803 # Run this file to recreate the current configuration.
15804 # Compiler output produced by configure, useful for debugging
15805 # configure, is in config.log if it exists.
15808 ac_cs_recheck=false
15811 SHELL=\${CONFIG_SHELL-$SHELL}
15814 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15815 ## -------------------- ##
15816 ## M4sh Initialization. ##
15817 ## -------------------- ##
15819 # Be more Bourne compatible
15820 DUALCASE=1; export DUALCASE # for MKS sh
15821 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15824 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15825 # is contrary to our usage. Disable this feature.
15826 alias -g '${1+"$@"}'='"$@"'
15827 setopt NO_GLOB_SUBST
15829 case `(set -o) 2>/dev/null` in #(
15841 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15842 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15845 # Prefer a ksh shell builtin over an external printf program on Solaris,
15846 # but without wasting forks for bash or zsh.
15847 if test -z "$BASH_VERSION$ZSH_VERSION" \
15848 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15849 as_echo='print -r --'
15850 as_echo_n='print -rn --'
15851 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15852 as_echo='printf %s\n'
15853 as_echo_n='printf %s'
15855 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15856 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15857 as_echo_n='/usr/ucb/echo -n'
15859 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15860 as_echo_n_body='eval
15864 expr "X$arg" : "X\\(.*\\)$as_nl";
15865 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15867 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15869 export as_echo_n_body
15870 as_echo_n='sh -c $as_echo_n_body as_echo'
15872 export as_echo_body
15873 as_echo='sh -c $as_echo_body as_echo'
15876 # The user is always right.
15877 if test "${PATH_SEPARATOR+set}" != set; then
15879 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15880 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15887 # We need space, tab and new line, in precisely that order. Quoting is
15888 # there to prevent editors from complaining about space-tab.
15889 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15890 # splitting by setting IFS to empty value.)
15893 # Find who we are. Look in the path if we contain no directory separator.
15896 *[\\/]* ) as_myself=$0 ;;
15897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15898 for as_dir in $PATH
15901 test -z "$as_dir" && as_dir=.
15902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15908 # We did not find ourselves, most probably we were run as `sh COMMAND'
15909 # in which case we are not to be found in the path.
15910 if test "x$as_myself" = x; then
15913 if test ! -f "$as_myself"; then
15914 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15918 # Unset variables that we do not need and which cause bugs (e.g. in
15919 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15920 # suppresses any "Segmentation fault" message there. '((' could
15921 # trigger a bug in pdksh 5.2.14.
15922 for as_var in BASH_ENV ENV MAIL MAILPATH
15923 do eval test x\${$as_var+set} = xset \
15924 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15937 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15940 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15941 # ----------------------------------------
15942 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15943 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15944 # script with STATUS, using 1 if that was 0.
15947 as_status=$1; test $as_status -eq 0 && as_status=1
15949 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15950 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15952 $as_echo "$as_me: error: $2" >&2
15953 as_fn_exit $as_status
15957 # as_fn_set_status STATUS
15958 # -----------------------
15959 # Set $? to STATUS, without forking.
15960 as_fn_set_status ()
15963 } # as_fn_set_status
15965 # as_fn_exit STATUS
15966 # -----------------
15967 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15971 as_fn_set_status $1
15977 # Portably unset VAR.
15980 { eval $1=; unset $1;}
15982 as_unset=as_fn_unset
15983 # as_fn_append VAR VALUE
15984 # ----------------------
15985 # Append the text in VALUE to the end of the definition contained in VAR. Take
15986 # advantage of any shell optimizations that allow amortized linear growth over
15987 # repeated appends, instead of the typical quadratic growth present in naive
15989 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15990 eval 'as_fn_append ()
16001 # as_fn_arith ARG...
16002 # ------------------
16003 # Perform arithmetic evaluation on the ARGs, and store the result in the
16004 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16005 # must be portable across $(()) and expr.
16006 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16007 eval 'as_fn_arith ()
16014 as_val=`expr "$@" || test $? -eq 1`
16019 if expr a : '\(a\)' >/dev/null 2>&1 &&
16020 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16026 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16027 as_basename=basename
16032 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16038 as_me=`$as_basename -- "$0" ||
16039 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16040 X"$0" : 'X\(//\)$' \| \
16041 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16043 sed '/^.*\/\([^/][^/]*\)\/*$/{
16057 # Avoid depending upon Character Ranges.
16058 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16059 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16060 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16061 as_cr_digits='0123456789'
16062 as_cr_alnum=$as_cr_Letters$as_cr_digits
16064 ECHO_C= ECHO_N= ECHO_T=
16065 case `echo -n x` in #(((((
16067 case `echo 'xy\c'` in
16068 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16070 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16077 rm -f conf$$ conf$$.exe conf$$.file
16078 if test -d conf$$.dir; then
16079 rm -f conf$$.dir/conf$$.file
16082 mkdir conf$$.dir 2>/dev/null
16084 if (echo >conf$$.file) 2>/dev/null; then
16085 if ln -s conf$$.file conf$$ 2>/dev/null; then
16087 # ... but there are two gotchas:
16088 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16089 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16090 # In both cases, we have to default to `cp -pR'.
16091 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16093 elif ln conf$$.file conf$$ 2>/dev/null; then
16101 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16102 rmdir conf$$.dir 2>/dev/null
16107 # Create "$as_dir" as a directory, including parents if necessary.
16112 -*) as_dir=./$as_dir;;
16114 test -d "$as_dir" || eval $as_mkdir_p || {
16118 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16119 *) as_qdir=$as_dir;;
16121 as_dirs="'$as_qdir' $as_dirs"
16122 as_dir=`$as_dirname -- "$as_dir" ||
16123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16124 X"$as_dir" : 'X\(//\)[^/]' \| \
16125 X"$as_dir" : 'X\(//\)$' \| \
16126 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16127 $as_echo X"$as_dir" |
16128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16132 /^X\(\/\/\)[^/].*/{
16145 test -d "$as_dir" && break
16147 test -z "$as_dirs" || eval "mkdir $as_dirs"
16148 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16152 if mkdir -p . 2>/dev/null; then
16153 as_mkdir_p='mkdir -p "$as_dir"'
16155 test -d ./-p && rmdir ./-p
16160 # as_fn_executable_p FILE
16161 # -----------------------
16162 # Test if FILE is an executable regular file.
16163 as_fn_executable_p ()
16165 test -f "$1" && test -x "$1"
16166 } # as_fn_executable_p
16167 as_test_x='test -x'
16168 as_executable_p=as_fn_executable_p
16170 # Sed expression to map a string onto a valid CPP name.
16171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16173 # Sed expression to map a string onto a valid variable name.
16174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16178 ## ----------------------------------- ##
16179 ## Main body of $CONFIG_STATUS script. ##
16180 ## ----------------------------------- ##
16182 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185 # Save the log message, to keep $0 and so on meaningful, and to
16186 # report actual input values of CONFIG_FILES etc. instead of their
16187 # values after options handling.
16189 This file was extended by libevent $as_me 2.1.5-beta, which was
16190 generated by GNU Autoconf 2.69. Invocation command line was
16192 CONFIG_FILES = $CONFIG_FILES
16193 CONFIG_HEADERS = $CONFIG_HEADERS
16194 CONFIG_LINKS = $CONFIG_LINKS
16195 CONFIG_COMMANDS = $CONFIG_COMMANDS
16198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16203 case $ac_config_files in *"
16204 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16207 case $ac_config_headers in *"
16208 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16213 # Files that config.status was made for.
16214 config_files="$ac_config_files"
16215 config_headers="$ac_config_headers"
16216 config_commands="$ac_config_commands"
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16222 \`$as_me' instantiates files and other configuration actions
16223 from templates according to the current configuration. Unless the files
16224 and actions are specified as TAGs, all are instantiated by default.
16226 Usage: $0 [OPTION]... [TAG]...
16228 -h, --help print this help, then exit
16229 -V, --version print version number and configuration settings, then exit
16230 --config print configuration, then exit
16231 -q, --quiet, --silent
16232 do not print progress messages
16233 -d, --debug don't remove temporary files
16234 --recheck update $as_me by reconfiguring in the same conditions
16235 --file=FILE[:TEMPLATE]
16236 instantiate the configuration file FILE
16237 --header=FILE[:TEMPLATE]
16238 instantiate the configuration header FILE
16240 Configuration files:
16243 Configuration headers:
16246 Configuration commands:
16249 Report bugs to the package provider."
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16255 libevent config.status 2.1.5-beta
16256 configured by $0, generated by GNU Autoconf 2.69,
16257 with options \\"\$ac_cs_config\\"
16259 Copyright (C) 2012 Free Software Foundation, Inc.
16260 This config.status script is free software; the Free Software Foundation
16261 gives unlimited permission to copy, distribute and modify it."
16268 test -n "\$AWK" || AWK=awk
16271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16272 # The default lists apply if the user does not specify any file.
16278 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16279 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16295 # Handling of the options.
16296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16299 $as_echo "$ac_cs_version"; exit ;;
16300 --config | --confi | --conf | --con | --co | --c )
16301 $as_echo "$ac_cs_config"; exit ;;
16302 --debug | --debu | --deb | --de | --d | -d )
16304 --file | --fil | --fi | --f )
16307 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16308 '') as_fn_error $? "missing file argument" ;;
16310 as_fn_append CONFIG_FILES " '$ac_optarg'"
16311 ac_need_defaults=false;;
16312 --header | --heade | --head | --hea )
16315 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16317 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16318 ac_need_defaults=false;;
16320 # Conflict between --help and --header
16321 as_fn_error $? "ambiguous option: \`$1'
16322 Try \`$0 --help' for more information.";;
16323 --help | --hel | -h )
16324 $as_echo "$ac_cs_usage"; exit ;;
16325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16326 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16329 # This is an error.
16330 -*) as_fn_error $? "unrecognized option: \`$1'
16331 Try \`$0 --help' for more information." ;;
16333 *) as_fn_append ac_config_targets " $1"
16334 ac_need_defaults=false ;;
16340 ac_configure_extra_args=
16342 if $ac_cs_silent; then
16344 ac_configure_extra_args="$ac_configure_extra_args --silent"
16348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16349 if \$ac_cs_recheck; then
16350 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16352 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16353 CONFIG_SHELL='$SHELL'
16354 export CONFIG_SHELL
16359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16364 ## Running $as_me. ##
16370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16374 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16377 # The HP-UX ksh and POSIX shell print the target directory to stdout
16378 # if CDPATH is set.
16379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16381 sed_quote_subst='$sed_quote_subst'
16382 double_quote_subst='$double_quote_subst'
16383 delay_variable_subst='$delay_variable_subst'
16384 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16385 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16386 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16387 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16388 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16389 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16390 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16391 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16392 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16393 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16394 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16395 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16396 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16397 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16398 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16399 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16400 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16401 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16402 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16403 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16404 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16405 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16406 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16407 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16408 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16409 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16410 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16411 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16412 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16413 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16414 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16415 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16416 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16417 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16418 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16419 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16420 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16421 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16422 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16423 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16424 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16425 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16426 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16427 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16428 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16429 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16430 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16431 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16432 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16433 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16434 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16435 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16436 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16437 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16438 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16439 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"`'
16440 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16441 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16442 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16443 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16444 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16445 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16446 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16447 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16448 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16449 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16450 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16451 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16452 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16453 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16454 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16455 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16456 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16457 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16458 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16459 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16460 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16461 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16462 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16463 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16464 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16465 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16466 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16467 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16468 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16469 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16470 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16471 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16472 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16473 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16474 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16475 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16476 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16477 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16478 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16479 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16480 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16481 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16482 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16483 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16484 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16485 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16486 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16487 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16488 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16489 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16490 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16491 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16492 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16493 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16494 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16495 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16496 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16497 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16498 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16499 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16500 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16501 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16502 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16503 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16504 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16505 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16506 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16507 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16508 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16509 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16510 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16511 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16512 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16513 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16516 LTCFLAGS='$LTCFLAGS'
16517 compiler='$compiler_DEFAULT'
16519 # A function that is used when there is no print builtin or printf.
16520 func_fallback_echo ()
16522 eval 'cat <<_LTECHO_EOF
16527 # Quote evaled strings.
16541 deplibs_check_method \
16546 sharedlib_from_linklib_cmd \
16549 archiver_list_spec \
16555 lt_cv_sys_global_symbol_pipe \
16556 lt_cv_sys_global_symbol_to_cdecl \
16557 lt_cv_sys_global_symbol_to_c_name_address \
16558 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16559 nm_file_list_spec \
16560 lt_prog_compiler_no_builtin_flag \
16561 lt_prog_compiler_pic \
16562 lt_prog_compiler_wl \
16563 lt_prog_compiler_static \
16564 lt_cv_prog_compiler_c_o \
16573 export_dynamic_flag_spec \
16574 whole_archive_flag_spec \
16575 compiler_needs_object \
16577 allow_undefined_flag \
16578 no_undefined_flag \
16579 hardcode_libdir_flag_spec \
16580 hardcode_libdir_flag_spec_ld \
16581 hardcode_libdir_separator \
16585 variables_saved_for_relink \
16587 library_names_spec \
16589 install_override_mode \
16593 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16594 *[\\\\\\\`\\"\\\$]*)
16595 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16598 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16603 # Double-quote double-evaled strings.
16604 for var in reload_cmds \
16605 old_postinstall_cmds \
16606 old_postuninstall_cmds \
16608 extract_expsyms_cmds \
16609 old_archive_from_new_cmds \
16610 old_archive_from_expsyms_cmds \
16612 archive_expsym_cmds \
16614 module_expsym_cmds \
16615 export_symbols_cmds \
16619 postuninstall_cmds \
16621 sys_lib_search_path_spec \
16622 sys_lib_dlsearch_path_spec; do
16623 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16624 *[\\\\\\\`\\"\\\$]*)
16625 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16628 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16633 ac_aux_dir='$ac_aux_dir'
16634 xsi_shell='$xsi_shell'
16635 lt_shell_append='$lt_shell_append'
16637 # See if we are running on zsh, and set the options which allow our
16638 # commands through without removal of \ escapes INIT.
16639 if test -n "\${ZSH_VERSION+set}" ; then
16640 setopt NO_GLOB_SUBST
16646 TIMESTAMP='$TIMESTAMP'
16655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16657 # Handling of arguments.
16658 for ac_config_target in $ac_config_targets
16660 case $ac_config_target in
16661 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16662 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
16663 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16664 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16665 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16666 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16667 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16668 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16670 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16675 # If the user did not use the arguments to specify the items to instantiate,
16676 # then the envvar interface is used. Set only those that are not.
16677 # We use the long form for the default assignment because of an extremely
16678 # bizarre bug on SunOS 4.1.3.
16679 if $ac_need_defaults; then
16680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16685 # Have a temporary directory for convenience. Make it in the build tree
16686 # simply because there is no reason against having it here, and in addition,
16687 # creating and moving files from /tmp can sometimes cause problems.
16688 # Hook for its removal unless debugging.
16689 # Note that there is a small window in which the directory will not be cleaned:
16690 # after its creation but before its name has been assigned to `$tmp'.
16694 trap 'exit_status=$?
16695 : "${ac_tmp:=$tmp}"
16696 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16698 trap 'as_fn_exit 1' 1 2 13 15
16700 # Create a (secure) tmp directory for tmp files.
16703 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16707 tmp=./conf$$-$RANDOM
16708 (umask 077 && mkdir "$tmp")
16709 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16712 # Set up the scripts for CONFIG_FILES section.
16713 # No need to generate them if there are no CONFIG_FILES.
16714 # This happens for instance with `./config.status config.h'.
16715 if test -n "$CONFIG_FILES"; then
16718 ac_cr=`echo X | tr X '\015'`
16719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16720 # But we know of no other shell where ac_cr would be empty at this
16721 # point, so we can use a bashism as a fallback.
16722 if test "x$ac_cr" = x; then
16723 eval ac_cr=\$\'\\r\'
16725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16729 ac_cs_awk_cr=$ac_cr
16732 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16737 echo "cat >conf$$subs.awk <<_ACEOF" &&
16738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16740 } >conf$$subs.sh ||
16741 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16744 for ac_last_try in false false false false false :; do
16745 . ./conf$$subs.sh ||
16746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16749 if test $ac_delim_n = $ac_delim_num; then
16751 elif $ac_last_try; then
16752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16757 rm -f conf$$subs.sh
16759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16760 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16764 s/^/S["/; s/!.*/"]=/
16774 s/\(.\{148\}\)..*/\1/
16776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16788 s/\(.\{148\}\)..*/\1/
16790 s/["\\]/\\&/g; s/^/"/; s/$/"/
16794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16799 ' <conf$$subs.awk | sed '
16804 ' >>$CONFIG_STATUS || ac_write_fail=1
16805 rm -f conf$$subs.awk
16806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16808 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16809 for (key in S) S_is_set[key] = 1
16815 nfields = split(line, field, "@")
16817 len = length(field[1])
16818 for (i = 2; i < nfields; i++) {
16820 keylen = length(key)
16821 if (S_is_set[key]) {
16823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16824 len += length(value) + length(field[++i])
16835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16840 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16841 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16844 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16845 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16846 # trailing colons and then remove the whole line if VPATH becomes empty
16847 # (actually we leave an empty line to preserve line numbers).
16848 if test "x$srcdir" = x.; then
16849 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16868 fi # test -n "$CONFIG_FILES"
16870 # Set up the scripts for CONFIG_HEADERS section.
16871 # No need to generate them if there are no CONFIG_HEADERS.
16872 # This happens for instance with `./config.status Makefile'.
16873 if test -n "$CONFIG_HEADERS"; then
16874 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16878 # Transform confdefs.h into an awk script `defines.awk', embedded as
16879 # here-document in config.status, that substitutes the proper values into
16880 # config.h.in to produce config.h.
16882 # Create a delimiter string that does not exist in confdefs.h, to ease
16883 # handling of long lines.
16885 for ac_last_try in false false :; do
16886 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16887 if test -z "$ac_tt"; then
16889 elif $ac_last_try; then
16890 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16896 # For the awk script, D is an array of macro values keyed by name,
16897 # likewise P contains macro parameters if any. Preserve backslash
16898 # newline sequences.
16900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16902 s/.\{148\}/&'"$ac_delim"'/g
16905 s/^[ ]*#[ ]*define[ ][ ]*/ /
16912 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16918 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16919 D["\1"]=" \3\\\\\\n"\\/p
16921 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16926 s/.\{148\}/&'"$ac_delim"'/g
16931 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16934 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16936 ' <confdefs.h | sed '
16937 s/'"$ac_delim"'/"\\\
16938 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941 for (key in D) D_is_set[key] = 1
16944 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16946 split(line, arg, " ")
16947 if (arg[1] == "#") {
16951 defundef = substr(arg[1], 2)
16954 split(mac1, mac2, "(") #)
16956 prefix = substr(line, 1, index(line, defundef) - 1)
16957 if (D_is_set[macro]) {
16958 # Preserve the white space surrounding the "#".
16959 print prefix "define", macro P[macro] D[macro]
16962 # Replace #undef with comments. This is necessary, for example,
16963 # in the case of _POSIX_SOURCE, which is predefined and required
16964 # on some systems where configure will not decide to define it.
16965 if (defundef == "undef") {
16966 print "/*", prefix defundef, macro, "*/"
16974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16975 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16976 fi # test -n "$CONFIG_HEADERS"
16979 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16984 :[FHLC]) ac_mode=$ac_tag; continue;;
16986 case $ac_mode$ac_tag in
16988 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16989 :[FH]-) ac_tag=-:-;;
16990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17007 -) ac_f="$ac_tmp/stdin";;
17008 *) # Look for the file first in the build tree, then in the source tree
17009 # (if the path is not absolute). The absolute path cannot be DOS-style,
17010 # because $ac_f cannot contain `:'.
17014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17016 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17018 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17019 as_fn_append ac_file_inputs " '$ac_f'"
17022 # Let's still pretend it is `configure' which instantiates (i.e., don't
17023 # use $as_me), people would be surprised to read:
17024 # /* config.h. Generated by config.status. */
17025 configure_input='Generated from '`
17026 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17028 if test x"$ac_file" != x-; then
17029 configure_input="$ac_file. $configure_input"
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17031 $as_echo "$as_me: creating $ac_file" >&6;}
17033 # Neutralize special characters interpreted by sed in replacement strings.
17034 case $configure_input in #(
17035 *\&* | *\|* | *\\* )
17036 ac_sed_conf_input=`$as_echo "$configure_input" |
17037 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17038 *) ac_sed_conf_input=$configure_input;;
17042 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17048 ac_dir=`$as_dirname -- "$ac_file" ||
17049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17050 X"$ac_file" : 'X\(//\)[^/]' \| \
17051 X"$ac_file" : 'X\(//\)$' \| \
17052 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17053 $as_echo X"$ac_file" |
17054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17058 /^X\(\/\/\)[^/].*/{
17071 as_dir="$ac_dir"; as_fn_mkdir_p
17075 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17077 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17078 # A ".." for each directory in $ac_dir_suffix.
17079 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17080 case $ac_top_builddir_sub in
17081 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17082 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17085 ac_abs_top_builddir=$ac_pwd
17086 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17087 # for backward compatibility:
17088 ac_top_builddir=$ac_top_build_prefix
17091 .) # We are building in place.
17093 ac_top_srcdir=$ac_top_builddir_sub
17094 ac_abs_top_srcdir=$ac_pwd ;;
17095 [\\/]* | ?:[\\/]* ) # Absolute name.
17096 ac_srcdir=$srcdir$ac_dir_suffix;
17097 ac_top_srcdir=$srcdir
17098 ac_abs_top_srcdir=$srcdir ;;
17099 *) # Relative name.
17100 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17101 ac_top_srcdir=$ac_top_build_prefix$srcdir
17102 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17104 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17114 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17115 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17117 ac_MKDIR_P=$MKDIR_P
17119 [\\/$]* | ?:[\\/]* ) ;;
17120 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17125 # If the template does not know about datarootdir, expand it.
17126 # FIXME: This hack should be removed a few years after 2.60.
17127 ac_datarootdir_hack=; ac_datarootdir_seen=
17138 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17139 *datarootdir*) ac_datarootdir_seen=yes;;
17140 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17142 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17145 ac_datarootdir_hack='
17146 s&@datadir@&$datadir&g
17147 s&@docdir@&$docdir&g
17148 s&@infodir@&$infodir&g
17149 s&@localedir@&$localedir&g
17150 s&@mandir@&$mandir&g
17151 s&\\\${datarootdir}&$datarootdir&g' ;;
17155 # Neutralize VPATH when `$srcdir' = `.'.
17156 # Shell code in configure.ac might set extrasub.
17157 # FIXME: do we really want to maintain this feature?
17158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17159 ac_sed_extra="$ac_vpsub
17162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17165 s|@configure_input@|$ac_sed_conf_input|;t t
17166 s&@top_builddir@&$ac_top_builddir_sub&;t t
17167 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17168 s&@srcdir@&$ac_srcdir&;t t
17169 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17170 s&@top_srcdir@&$ac_top_srcdir&;t t
17171 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17172 s&@builddir@&$ac_builddir&;t t
17173 s&@abs_builddir@&$ac_abs_builddir&;t t
17174 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17175 s&@INSTALL@&$ac_INSTALL&;t t
17176 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17177 $ac_datarootdir_hack
17179 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17182 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17185 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17187 which seems to be undefined. Please make sure it is defined" >&5
17188 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17189 which seems to be undefined. Please make sure it is defined" >&2;}
17191 rm -f "$ac_tmp/stdin"
17193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17202 if test x"$ac_file" != x-; then
17204 $as_echo "/* $configure_input */" \
17205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17206 } >"$ac_tmp/config.h" \
17207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17210 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17213 mv "$ac_tmp/config.h" "$ac_file" \
17214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17217 $as_echo "/* $configure_input */" \
17218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17219 || as_fn_error $? "could not create -" "$LINENO" 5
17221 # Compute "$ac_file"'s index in $config_headers.
17224 for _am_header in $config_headers :; do
17225 case $_am_header in
17226 $_am_arg | $_am_arg:* )
17229 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17232 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17233 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17234 X"$_am_arg" : 'X\(//\)[^/]' \| \
17235 X"$_am_arg" : 'X\(//\)$' \| \
17236 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17237 $as_echo X"$_am_arg" |
17238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17242 /^X\(\/\/\)[^/].*/{
17254 s/.*/./; q'`/stamp-h$_am_stamp_count
17257 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17258 $as_echo "$as_me: executing $ac_file commands" >&6;}
17263 case $ac_file$ac_mode in
17264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17265 # Older Autoconf quotes --file arguments for eval, but not when files
17266 # are listed without --file. Let's play safe and only enable the eval
17267 # if we detect the quoting.
17268 case $CONFIG_FILES in
17269 *\'*) eval set x "$CONFIG_FILES" ;;
17270 *) set x $CONFIG_FILES ;;
17275 # Strip MF so we end up with the name of the file.
17276 mf=`echo "$mf" | sed -e 's/:.*$//'`
17277 # Check whether this is an Automake generated Makefile or not.
17278 # We used to match only the files named 'Makefile.in', but
17279 # some people rename them; so instead we look at the file content.
17280 # Grep'ing the first line is not enough: some people post-process
17281 # each Makefile.in and add a new line on top of each file to say so.
17282 # Grep'ing the whole file is not good either: AIX grep has a line
17283 # limit of 2048, but all sed's we know have understand at least 4000.
17284 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17285 dirpart=`$as_dirname -- "$mf" ||
17286 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17287 X"$mf" : 'X\(//\)[^/]' \| \
17288 X"$mf" : 'X\(//\)$' \| \
17289 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17295 /^X\(\/\/\)[^/].*/{
17311 # Extract the definition of DEPDIR, am__include, and am__quote
17312 # from the Makefile without running 'make'.
17313 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17314 test -z "$DEPDIR" && continue
17315 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17316 test -z "$am__include" && continue
17317 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17318 # Find all dependency output files, they are included files with
17319 # $(DEPDIR) in their names. We invoke sed twice because it is the
17320 # simplest approach to changing $(DEPDIR) to its actual value in the
17322 for file in `sed -n "
17323 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17324 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17325 # Make sure the directory exists.
17326 test -f "$dirpart/$file" && continue
17327 fdir=`$as_dirname -- "$file" ||
17328 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17329 X"$file" : 'X\(//\)[^/]' \| \
17330 X"$file" : 'X\(//\)$' \| \
17331 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17332 $as_echo X"$file" |
17333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17337 /^X\(\/\/\)[^/].*/{
17350 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17351 # echo "creating $dirpart/$file"
17352 echo '# dummy' > "$dirpart/$file"
17359 # See if we are running on zsh, and set the options which allow our
17360 # commands through without removal of \ escapes.
17361 if test -n "${ZSH_VERSION+set}" ; then
17362 setopt NO_GLOB_SUBST
17365 cfgfile="${ofile}T"
17366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17369 cat <<_LT_EOF >> "$cfgfile"
17372 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17373 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17377 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17378 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17380 # Written by Gordon Matzigkeit, 1996
17382 # This file is part of GNU Libtool.
17384 # GNU Libtool is free software; you can redistribute it and/or
17385 # modify it under the terms of the GNU General Public License as
17386 # published by the Free Software Foundation; either version 2 of
17387 # the License, or (at your option) any later version.
17389 # As a special exception to the GNU General Public License,
17390 # if you distribute this file as part of a program or library that
17391 # is built using GNU Libtool, you may include this file under the
17392 # same distribution terms that you use for the rest of that program.
17394 # GNU Libtool is distributed in the hope that it will be useful,
17395 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17396 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17397 # GNU General Public License for more details.
17399 # You should have received a copy of the GNU General Public License
17400 # along with GNU Libtool; see the file COPYING. If not, a copy
17401 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17402 # obtained by writing to the Free Software Foundation, Inc.,
17403 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17406 # The names of the tagged configurations supported by this script.
17409 # ### BEGIN LIBTOOL CONFIG
17411 # Which release of libtool.m4 was used?
17412 macro_version=$macro_version
17413 macro_revision=$macro_revision
17415 # Whether or not to build shared libraries.
17416 build_libtool_libs=$enable_shared
17418 # Whether or not to build static libraries.
17419 build_old_libs=$enable_static
17421 # What type of objects to build.
17424 # Whether or not to optimize for fast installation.
17425 fast_install=$enable_fast_install
17427 # Shell to use when invoking shell scripts.
17430 # An echo program that protects backslashes.
17434 host_alias=$host_alias
17438 # The build system.
17439 build_alias=$build_alias
17443 # A sed program that does not truncate output.
17446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17447 Xsed="\$SED -e 1s/^X//"
17449 # A grep program that handles long lines.
17455 # A literal string matcher.
17458 # A BSD- or MS-compatible name lister.
17461 # Whether we need soft or hard links.
17464 # What is the maximum length of a command?
17465 max_cmd_len=$max_cmd_len
17467 # Object file suffix (normally "o").
17470 # Executable file suffix (normally "").
17473 # whether the shell understands "unset".
17476 # turn spaces into newlines.
17479 # turn newlines into spaces.
17482 # convert \$build file names to \$host format.
17483 to_host_file_cmd=$lt_cv_to_host_file_cmd
17485 # convert \$build files to toolchain format.
17486 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17488 # An object symbol dumper.
17489 OBJDUMP=$lt_OBJDUMP
17491 # Method to check whether dependent libraries are shared objects.
17492 deplibs_check_method=$lt_deplibs_check_method
17494 # Command to use when deplibs_check_method = "file_magic".
17495 file_magic_cmd=$lt_file_magic_cmd
17497 # How to find potential files when deplibs_check_method = "file_magic".
17498 file_magic_glob=$lt_file_magic_glob
17500 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17501 want_nocaseglob=$lt_want_nocaseglob
17503 # DLL creation program.
17504 DLLTOOL=$lt_DLLTOOL
17506 # Command to associate shared and link libraries.
17507 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17512 # Flags to create an archive.
17513 AR_FLAGS=$lt_AR_FLAGS
17515 # How to feed a file listing to the archiver.
17516 archiver_list_spec=$lt_archiver_list_spec
17518 # A symbol stripping program.
17521 # Commands used to install an old-style archive.
17523 old_postinstall_cmds=$lt_old_postinstall_cmds
17524 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17526 # Whether to use a lock for old archive extraction.
17527 lock_old_archive_extraction=$lock_old_archive_extraction
17532 # LTCC compiler flags.
17533 LTCFLAGS=$lt_CFLAGS
17535 # Take the output of nm and produce a listing of raw symbols and C names.
17536 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17538 # Transform the output of nm in a proper C declaration.
17539 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17541 # Transform the output of nm in a C name address pair.
17542 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17544 # Transform the output of nm in a C name address pair when lib prefix is needed.
17545 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17547 # Specify filename containing input files for \$NM.
17548 nm_file_list_spec=$lt_nm_file_list_spec
17550 # The root where to search for dependent libraries,and in which our libraries should be installed.
17551 lt_sysroot=$lt_sysroot
17553 # The name of the directory that contains temporary libtool files.
17556 # Used to examine libraries when file_magic_cmd begins with "file".
17557 MAGIC_CMD=$MAGIC_CMD
17559 # Must we lock files when doing compilation?
17560 need_locks=$lt_need_locks
17563 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17565 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17566 DSYMUTIL=$lt_DSYMUTIL
17568 # Tool to change global to local symbols on Mac OS X.
17571 # Tool to manipulate fat objects and archives on Mac OS X.
17574 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17577 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17578 OTOOL64=$lt_OTOOL64
17580 # Old archive suffix (normally "a").
17583 # Shared library suffix (normally ".so").
17584 shrext_cmds=$lt_shrext_cmds
17586 # The commands to extract the exported symbol list from a shared archive.
17587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17589 # Variables whose values should be saved in libtool wrapper scripts and
17590 # restored at link time.
17591 variables_saved_for_relink=$lt_variables_saved_for_relink
17593 # Do we need the "lib" prefix for modules?
17594 need_lib_prefix=$need_lib_prefix
17596 # Do we need a version for libraries?
17597 need_version=$need_version
17599 # Library versioning type.
17600 version_type=$version_type
17602 # Shared library runtime path variable.
17603 runpath_var=$runpath_var
17605 # Shared library path variable.
17606 shlibpath_var=$shlibpath_var
17608 # Is shlibpath searched before the hard-coded library search path?
17609 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17611 # Format of library name prefix.
17612 libname_spec=$lt_libname_spec
17614 # List of archive names. First name is the real one, the rest are links.
17615 # The last name is the one that the linker finds with -lNAME
17616 library_names_spec=$lt_library_names_spec
17618 # The coded name of the library, if different from the real name.
17619 soname_spec=$lt_soname_spec
17621 # Permission mode override for installation of shared libraries.
17622 install_override_mode=$lt_install_override_mode
17624 # Command to use after installation of a shared archive.
17625 postinstall_cmds=$lt_postinstall_cmds
17627 # Command to use after uninstallation of a shared archive.
17628 postuninstall_cmds=$lt_postuninstall_cmds
17630 # Commands used to finish a libtool library installation in a directory.
17631 finish_cmds=$lt_finish_cmds
17633 # As "finish_cmds", except a single script fragment to be evaled but
17635 finish_eval=$lt_finish_eval
17637 # Whether we should hardcode library paths into libraries.
17638 hardcode_into_libs=$hardcode_into_libs
17640 # Compile-time system search path for libraries.
17641 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17643 # Run-time system search path for libraries.
17644 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17646 # Whether dlopen is supported.
17647 dlopen_support=$enable_dlopen
17649 # Whether dlopen of programs is supported.
17650 dlopen_self=$enable_dlopen_self
17652 # Whether dlopen of statically linked programs is supported.
17653 dlopen_self_static=$enable_dlopen_self_static
17655 # Commands to strip libraries.
17656 old_striplib=$lt_old_striplib
17657 striplib=$lt_striplib
17660 # The linker used to build libraries.
17663 # How to create reloadable object files.
17664 reload_flag=$lt_reload_flag
17665 reload_cmds=$lt_reload_cmds
17667 # Commands used to build an old-style archive.
17668 old_archive_cmds=$lt_old_archive_cmds
17670 # A language specific compiler.
17673 # Is the compiler the GNU compiler?
17676 # Compiler flag to turn off builtin functions.
17677 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17679 # Additional compiler flags for building library objects.
17680 pic_flag=$lt_lt_prog_compiler_pic
17682 # How to pass a linker flag through the compiler.
17683 wl=$lt_lt_prog_compiler_wl
17685 # Compiler flag to prevent dynamic linking.
17686 link_static_flag=$lt_lt_prog_compiler_static
17688 # Does compiler simultaneously support -c and -o options?
17689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17691 # Whether or not to add -lc for building shared libraries.
17692 build_libtool_need_lc=$archive_cmds_need_lc
17694 # Whether or not to disallow shared libs when runtime libs are static.
17695 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17697 # Compiler flag to allow reflexive dlopens.
17698 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17700 # Compiler flag to generate shared objects directly from archives.
17701 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17703 # Whether the compiler copes with passing no objects directly.
17704 compiler_needs_object=$lt_compiler_needs_object
17706 # Create an old-style archive from a shared archive.
17707 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17709 # Create a temporary old-style archive to link instead of a shared archive.
17710 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17712 # Commands used to build a shared archive.
17713 archive_cmds=$lt_archive_cmds
17714 archive_expsym_cmds=$lt_archive_expsym_cmds
17716 # Commands used to build a loadable module if different from building
17717 # a shared archive.
17718 module_cmds=$lt_module_cmds
17719 module_expsym_cmds=$lt_module_expsym_cmds
17721 # Whether we are building with GNU ld or not.
17722 with_gnu_ld=$lt_with_gnu_ld
17724 # Flag that allows shared libraries with undefined symbols to be built.
17725 allow_undefined_flag=$lt_allow_undefined_flag
17727 # Flag that enforces no undefined symbols.
17728 no_undefined_flag=$lt_no_undefined_flag
17730 # Flag to hardcode \$libdir into a binary during linking.
17731 # This must work even if \$libdir does not exist
17732 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17734 # If ld is used when linking, flag to hardcode \$libdir into a binary
17735 # during linking. This must work even if \$libdir does not exist.
17736 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17738 # Whether we need a single "-rpath" flag with a separated argument.
17739 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17741 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17742 # DIR into the resulting binary.
17743 hardcode_direct=$hardcode_direct
17745 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17746 # DIR into the resulting binary and the resulting library dependency is
17747 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17748 # library is relocated.
17749 hardcode_direct_absolute=$hardcode_direct_absolute
17751 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17752 # into the resulting binary.
17753 hardcode_minus_L=$hardcode_minus_L
17755 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17756 # into the resulting binary.
17757 hardcode_shlibpath_var=$hardcode_shlibpath_var
17759 # Set to "yes" if building a shared library automatically hardcodes DIR
17760 # into the library and all subsequent libraries and executables linked
17762 hardcode_automatic=$hardcode_automatic
17764 # Set to yes if linker adds runtime paths of dependent libraries
17765 # to runtime path list.
17766 inherit_rpath=$inherit_rpath
17768 # Whether libtool must link a program against all its dependency libraries.
17769 link_all_deplibs=$link_all_deplibs
17771 # Set to "yes" if exported symbols are required.
17772 always_export_symbols=$always_export_symbols
17774 # The commands to list exported symbols.
17775 export_symbols_cmds=$lt_export_symbols_cmds
17777 # Symbols that should not be listed in the preloaded symbols.
17778 exclude_expsyms=$lt_exclude_expsyms
17780 # Symbols that must always be exported.
17781 include_expsyms=$lt_include_expsyms
17783 # Commands necessary for linking programs (against libraries) with templates.
17784 prelink_cmds=$lt_prelink_cmds
17786 # Commands necessary for finishing linking programs.
17787 postlink_cmds=$lt_postlink_cmds
17789 # Specify filename containing input files.
17790 file_list_spec=$lt_file_list_spec
17792 # How to hardcode a shared library path into an executable.
17793 hardcode_action=$hardcode_action
17795 # ### END LIBTOOL CONFIG
17801 cat <<\_LT_EOF >> "$cfgfile"
17802 # AIX sometimes has problems with the GCC collect2 program. For some
17803 # reason, if we set the COLLECT_NAMES environment variable, the problems
17804 # vanish in a puff of smoke.
17805 if test "X${COLLECT_NAMES+set}" != Xset; then
17807 export COLLECT_NAMES
17814 ltmain="$ac_aux_dir/ltmain.sh"
17817 # We use sed instead of cat because bash on DJGPP gets confused if
17818 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17819 # text mode, it properly converts lines to CR/LF. This bash problem
17820 # is reportedly fixed, but why not run on old versions too?
17821 sed '$q' "$ltmain" >> "$cfgfile" \
17822 || (rm -f "$cfgfile"; exit 1)
17824 if test x"$xsi_shell" = xyes; then
17825 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17829 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17830 \ * ) func_dirname_result="${3}" ;;\
17832 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17833 && mv -f "$cfgfile.tmp" "$cfgfile" \
17834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835 test 0 -eq $? || _lt_function_replace_fail=:
17838 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17841 \ func_basename_result="${1##*/}"\
17842 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17843 && mv -f "$cfgfile.tmp" "$cfgfile" \
17844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17845 test 0 -eq $? || _lt_function_replace_fail=:
17848 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17849 func_dirname_and_basename ()\
17852 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17853 \ * ) func_dirname_result="${3}" ;;\
17855 \ func_basename_result="${1##*/}"\
17856 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17857 && mv -f "$cfgfile.tmp" "$cfgfile" \
17858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17859 test 0 -eq $? || _lt_function_replace_fail=:
17862 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17865 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17866 \ # positional parameters, so assign one to ordinary parameter first.\
17867 \ func_stripname_result=${3}\
17868 \ func_stripname_result=${func_stripname_result#"${1}"}\
17869 \ func_stripname_result=${func_stripname_result%"${2}"}\
17870 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17871 && mv -f "$cfgfile.tmp" "$cfgfile" \
17872 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17873 test 0 -eq $? || _lt_function_replace_fail=:
17876 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17877 func_split_long_opt ()\
17879 \ func_split_long_opt_name=${1%%=*}\
17880 \ func_split_long_opt_arg=${1#*=}\
17881 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17882 && mv -f "$cfgfile.tmp" "$cfgfile" \
17883 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17884 test 0 -eq $? || _lt_function_replace_fail=:
17887 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17888 func_split_short_opt ()\
17890 \ func_split_short_opt_arg=${1#??}\
17891 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17892 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17893 && mv -f "$cfgfile.tmp" "$cfgfile" \
17894 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17895 test 0 -eq $? || _lt_function_replace_fail=:
17898 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17902 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17903 \ *) func_lo2o_result=${1} ;;\
17905 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17906 && mv -f "$cfgfile.tmp" "$cfgfile" \
17907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17908 test 0 -eq $? || _lt_function_replace_fail=:
17911 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17914 func_xform_result=${1%.*}.lo\
17915 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17916 && mv -f "$cfgfile.tmp" "$cfgfile" \
17917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17918 test 0 -eq $? || _lt_function_replace_fail=:
17921 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17924 func_arith_result=$(( $* ))\
17925 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17926 && mv -f "$cfgfile.tmp" "$cfgfile" \
17927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17928 test 0 -eq $? || _lt_function_replace_fail=:
17931 sed -e '/^func_len ()$/,/^} # func_len /c\
17934 func_len_result=${#1}\
17935 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17936 && mv -f "$cfgfile.tmp" "$cfgfile" \
17937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17938 test 0 -eq $? || _lt_function_replace_fail=:
17942 if test x"$lt_shell_append" = xyes; then
17943 sed -e '/^func_append ()$/,/^} # func_append /c\
17946 eval "${1}+=\\${2}"\
17947 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17948 && mv -f "$cfgfile.tmp" "$cfgfile" \
17949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17950 test 0 -eq $? || _lt_function_replace_fail=:
17953 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17954 func_append_quoted ()\
17956 \ func_quote_for_eval "${2}"\
17957 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17958 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17959 && mv -f "$cfgfile.tmp" "$cfgfile" \
17960 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17961 test 0 -eq $? || _lt_function_replace_fail=:
17964 # Save a `func_append' function call where possible by direct use of '+='
17965 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17966 && mv -f "$cfgfile.tmp" "$cfgfile" \
17967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17968 test 0 -eq $? || _lt_function_replace_fail=:
17970 # Save a `func_append' function call even when '+=' is not available
17971 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17972 && mv -f "$cfgfile.tmp" "$cfgfile" \
17973 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17974 test 0 -eq $? || _lt_function_replace_fail=:
17977 if test x"$_lt_function_replace_fail" = x":"; then
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17979 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17983 mv -f "$cfgfile" "$ofile" ||
17984 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17995 ac_clean_files=$ac_clean_files_save
17997 test $ac_write_fail = 0 ||
17998 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18001 # configure is writing to config.log, and then calls config.status.
18002 # config.status does its own redirection, appending to config.log.
18003 # Unfortunately, on DOS this fails, as config.log is still kept open
18004 # by configure, so config.status won't be able to write to it; its
18005 # output is simply discarded. So we exec the FD to /dev/null,
18006 # effectively closing config.log, so it can be properly (re)opened and
18007 # appended to by config.status. When coming back to configure, we
18008 # need to make the FD available again.
18009 if test "$no_create" != yes; then
18011 ac_config_status_args=
18012 test "$silent" = yes &&
18013 ac_config_status_args="$ac_config_status_args --quiet"
18015 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18017 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18018 # would make configure fail if this is the last instruction.
18019 $ac_cs_success || as_fn_exit 1
18021 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18023 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}