2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libevent 2.1.12-stable.
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.12-stable'
591 PACKAGE_STRING='libevent 2.1.12-stable'
595 ac_unique_file="event.c"
596 ac_default_prefix=/usr/local
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
633 ac_subst_vars='am__EXEEXT_FALSE
636 ENABLE_DOXYGEN_MAN_FALSE
637 ENABLE_DOXYGEN_MAN_TRUE
679 INSTALL_LIBEVENT_FALSE
680 INSTALL_LIBEVENT_TRUE
699 DEVPOLL_BACKEND_FALSE
707 BUILD_WITH_NO_UNDEFINED_FALSE
708 BUILD_WITH_NO_UNDEFINED_TRUE
790 INSTALL_STRIP_PROGRAM
832 program_transform_name
846 enable_option_checking
848 enable_dependency_tracking
851 enable_thread_support
852 enable_malloc_replacement
855 enable_libevent_install
856 enable_libevent_regress
858 enable_function_sections
881 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 ac_unrecognized_opts=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name=s,x,x,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959 # Accept the important Cygnus configure options, so we can diagnose typos.
961 case $ac_dashdash$ac_option in
965 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970 -build | --build | --buil | --bui | --bu)
971 ac_prev=build_alias ;;
972 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973 build_alias=$ac_optarg ;;
975 -cache-file | --cache-file | --cache-fil | --cache-fi \
976 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977 ac_prev=cache_file ;;
978 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980 cache_file=$ac_optarg ;;
983 cache_file=config.cache ;;
985 -datadir | --datadir | --datadi | --datad)
987 -datadir=* | --datadir=* | --datadi=* | --datad=*)
988 datadir=$ac_optarg ;;
990 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991 | --dataroo | --dataro | --datar)
992 ac_prev=datarootdir ;;
993 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995 datarootdir=$ac_optarg ;;
997 -disable-* | --disable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 as_fn_error $? "invalid feature name: $ac_useropt"
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=no ;;
1013 -docdir | --docdir | --docdi | --doc | --do)
1015 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016 docdir=$ac_optarg ;;
1018 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021 dvidir=$ac_optarg ;;
1023 -enable-* | --enable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
1151 -program-transform-name | --program-transform-name \
1152 | --program-transform-nam | --program-transform-na \
1153 | --program-transform-n | --program-transform- \
1154 | --program-transform | --program-transfor \
1155 | --program-transfo | --program-transf \
1156 | --program-trans | --program-tran \
1157 | --progr-tra | --program-tr | --program-t)
1158 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1201 -site=* | --site=* | --sit=*)
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1228 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=\$ac_optarg ;;
1243 -without-* | --without-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error $? "invalid package name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval with_$ac_useropt=no ;;
1260 # Obsolete; use --with-x.
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1277 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1278 Try \`$0 --help' for more information"
1282 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1283 # Reject names that are not valid shell variable names.
1284 case $ac_envvar in #(
1285 '' | [0-9]* | *[!_$as_cr_alnum]* )
1286 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1292 # FIXME: should be removed in autoconf 3.0.
1293 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 as_fn_error $? "missing argument to $ac_option"
1307 if test -n "$ac_unrecognized_opts"; then
1308 case $enable_option_checking in
1310 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1311 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1315 # Check all directory arguments for consistency.
1316 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317 datadir sysconfdir sharedstatedir localstatedir includedir \
1318 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319 libdir localedir mandir
1321 eval ac_val=\$$ac_var
1322 # Remove trailing slashes.
1325 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1326 eval $ac_var=\$ac_val;;
1328 # Be sure to have absolute directory names.
1330 [\\/$]* | ?:[\\/]* ) continue;;
1331 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x; then
1345 if test "x$build_alias" = x; then
1346 cross_compiling=maybe
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355 test "$silent" = yes && exec 6>/dev/null
1358 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di=`ls -di .` &&
1360 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1361 as_fn_error $? "working directory cannot be determined"
1362 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1363 as_fn_error $? "pwd does not report name of working directory"
1366 # Find the source files, if location was not specified.
1367 if test -z "$srcdir"; then
1368 ac_srcdir_defaulted=yes
1369 # Try the directory containing this script, then the parent directory.
1370 ac_confdir=`$as_dirname -- "$as_myself" ||
1371 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1372 X"$as_myself" : 'X\(//\)[^/]' \| \
1373 X"$as_myself" : 'X\(//\)$' \| \
1374 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1375 $as_echo X"$as_myself" |
1376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1398 ac_srcdir_defaulted=no
1400 if test ! -r "$srcdir/$ac_unique_file"; then
1401 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1402 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 for ac_var in $ac_precious_vars; do
1419 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_env_${ac_var}_value=\$${ac_var}
1421 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 # Report the --help message.
1428 if test "$ac_init_help" = "long"; then
1429 # Omit some internal or obsolete options to make the list less imposing.
1430 # This message is too long to be a string in the A/UX 3.1 sh.
1432 \`configure' configures libevent 2.1.12-stable to adapt to many kinds of systems.
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE. See below for descriptions of some of the useful variables.
1439 Defaults for the options are specified in brackets.
1442 -h, --help display this help and exit
1443 --help=short display options specific to this package
1444 --help=recursive display the short help of all the included packages
1445 -V, --version display version information and exit
1446 -q, --quiet, --silent do not print \`checking ...' messages
1447 --cache-file=FILE cache test results in FILE [disabled]
1448 -C, --config-cache alias for \`--cache-file=config.cache'
1449 -n, --no-create do not create output files
1450 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1452 Installation directories:
1453 --prefix=PREFIX install architecture-independent files in PREFIX
1454 [$ac_default_prefix]
1455 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1463 For better control, use the options below.
1465 Fine tuning of the installation directories:
1466 --bindir=DIR user executables [EPREFIX/bin]
1467 --sbindir=DIR system admin executables [EPREFIX/sbin]
1468 --libexecdir=DIR program executables [EPREFIX/libexec]
1469 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1470 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1471 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of libevent 2.1.12-stable:";;
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-silent-rules less verbose build output (undo: "make V=1")
1511 --disable-silent-rules verbose build output (undo: "make V=0")
1512 --enable-dependency-tracking
1513 do not reject slow dependency extractors
1514 --disable-dependency-tracking
1515 speeds up one-time build
1516 --disable-gcc-warnings disable verbose warnings with GCC
1517 --enable-gcc-hardening enable compiler security checks
1518 --disable-thread-support
1519 disable support for threading
1520 --disable-malloc-replacement
1521 disable support for replacing the memory mgt
1523 --disable-openssl disable support for openssl encryption
1524 --disable-debug-mode disable support for running in debug mode
1525 --disable-libevent-install, disable installation of libevent
1527 --disable-libevent-regress, skip regress in make check
1529 --disable-samples, skip building of sample programs
1531 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1533 --enable-verbose-debug, verbose debug logging
1535 --disable-clock-gettime do not use clock_gettime even if it is available
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --disable-libtool-lock avoid locking (might break parallel builds)
1541 --disable-largefile omit support for large files
1542 --enable-doxygen-doc generate any doxygen documentation
1543 --enable-doxygen-dot generate graphics for doxygen documentation
1544 --enable-doxygen-man generate doxygen manual pages
1545 --enable-doxygen-rtf generate doxygen RTF documentation
1546 --enable-doxygen-xml generate doxygen XML documentation
1547 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1548 --enable-doxygen-chi generate doxygen separate compressed HTML help index
1550 --disable-doxygen-html don't generate doxygen plain HTML documentation
1551 --enable-doxygen-ps generate doxygen PostScript documentation
1552 --enable-doxygen-pdf generate doxygen PDF documentation
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1557 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 --with-aix-soname=aix|svr4|both
1560 shared library versioning (aka "SONAME") variant to
1561 provide on AIX, [default=aix].
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1564 compiler's sysroot if not specified).
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1576 User-defined run-time library search path.
1578 a4wide (default), a4, letter, legal or executive
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1583 Report bugs to the package provider.
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1613 .) # We are building in place.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1646 libevent configure 2.1.12-stable
1647 generated by GNU Autoconf 2.69
1649 Copyright (C) 2012 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_compile
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1735 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738 # the include files in INCLUDES and setting the cache variable VAR
1740 ac_fn_c_check_header_mongrel ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if eval \${$3+:} false; then :
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \${$3+:} false; then :
1747 $as_echo_n "(cached) " >&6
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1753 # Is the header compilable?
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755 $as_echo_n "checking $2 usability... " >&6; }
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762 ac_header_compiler=yes
1764 ac_header_compiler=no
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768 $as_echo "$ac_header_compiler" >&6; }
1770 # Is the header present?
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772 $as_echo_n "checking $2 presence... " >&6; }
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1777 if ac_fn_c_try_cpp "$LINENO"; then :
1778 ac_header_preproc=yes
1780 ac_header_preproc=no
1782 rm -f conftest.err conftest.i conftest.$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784 $as_echo "$ac_header_preproc" >&6; }
1786 # So? What about this header?
1787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1798 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1802 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810 $as_echo_n "(cached) " >&6
1812 eval "$3=\$ac_header_compiler"
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 if { { ac_try="$ac_link"
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile "$LINENO"; then :
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_try_link LINENO
1896 # -----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 rm -f conftest.$ac_objext conftest$ac_exeext
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_c_try_link
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1964 # include <limits.h>
1966 # include <assert.h>
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1993 if ac_fn_c_try_link "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2009 # ---------------------------------------------
2010 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2012 ac_fn_c_check_decl ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 as_decl_name=`echo $2|sed 's/ *(.*//'`
2016 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2018 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2028 #ifndef $as_decl_name
2030 (void) $as_decl_use;
2032 (void) $as_decl_name;
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_decl
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_type
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) < 0)];
2170 return test_array [0];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2251 FILE *f = fopen ("conftest.val", "w");
2256 long int i = longval ();
2259 fprintf (f, "%ld", i);
2263 unsigned long int i = ulongval ();
2266 fprintf (f, "%lu", i);
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2289 } # ac_fn_c_compute_int
2291 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2292 # ----------------------------------------------------
2293 # Tries to find if the field MEMBER exists in type AGGR, after including
2294 # INCLUDES, setting cache variable VAR accordingly.
2295 ac_fn_c_check_member ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2299 $as_echo_n "checking for $2.$3... " >&6; }
2300 if eval \${$4+:} false; then :
2301 $as_echo_n "(cached) " >&6
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2326 if (sizeof ac_aggr.$3)
2332 if ac_fn_c_try_compile "$LINENO"; then :
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 } # ac_fn_c_check_member
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2351 It was created by libevent $as_me 2.1.12-stable, which was
2352 generated by GNU Autoconf 2.69. Invocation command line was
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_must_keep_next=false
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 -* ) ac_must_keep_next=true ;;
2444 as_fn_append ac_configure_args " '$ac_arg'"
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log. We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2466 # The following way of writing the cache mishandles newlines in values,
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2502 for ac_var in $ac_subst_vars
2504 eval ac_val=\$$ac_var
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 $as_echo "$ac_var='\''$ac_val'\''"
2512 if test -n "$ac_subst_files"; then
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2517 for ac_var in $ac_subst_files
2519 eval ac_val=\$$ac_var
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -s confdefs.h; then
2529 $as_echo "## ----------- ##
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2552 $as_echo "/* confdefs.h */" > confdefs.h
2554 # Predefined preprocessor variables.
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2585 if test -n "$CONFIG_SITE"; then
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 # Check that the precious variables saved in the cache have kept the same
2633 ac_cache_corrupted=false
2634 for ac_var in $ac_precious_vars; do
2635 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2636 eval ac_new_set=\$ac_env_${ac_var}_set
2637 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2638 eval ac_new_val=\$ac_env_${ac_var}_value
2639 case $ac_old_set,$ac_new_set in
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2646 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2647 ac_cache_corrupted=: ;;
2650 if test "x$ac_old_val" != "x$ac_new_val"; then
2651 # differences in whitespace do not lead to failure.
2652 ac_old_val_w=`echo x $ac_old_val`
2653 ac_new_val_w=`echo x $ac_new_val`
2654 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2656 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2657 ac_cache_corrupted=:
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2660 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2661 eval $ac_var=\$ac_old_val
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2664 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2666 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 # Pass precious variables to config.status.
2670 if test "$ac_new_set" = set; then
2672 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2673 *) ac_arg=$ac_var=$ac_new_val ;;
2675 case " $ac_configure_args " in
2676 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2677 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2681 if $ac_cache_corrupted; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2685 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2686 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2688 ## -------------------- ##
2689 ## Main body of script. ##
2690 ## -------------------- ##
2693 ac_cpp='$CPP $CPPFLAGS'
2694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 for ac_dir in build-aux "$srcdir"/build-aux; do
2705 if test -f "$ac_dir/install-sh"; then
2707 ac_install_sh="$ac_aux_dir/install-sh -c"
2709 elif test -f "$ac_dir/install.sh"; then
2711 ac_install_sh="$ac_aux_dir/install.sh -c"
2713 elif test -f "$ac_dir/shtool"; then
2715 ac_install_sh="$ac_aux_dir/shtool install -c"
2719 if test -z "$ac_aux_dir"; then
2720 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2723 # These three variables are undocumented and unsupported,
2724 # and are intended to be withdrawn in a future Autoconf release.
2725 # They can cause serious problems if a builder's source tree is in a directory
2726 # whose full name contains unusual characters.
2727 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2728 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2729 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2732 am__api_version='1.16'
2734 # Find a good install program. We prefer a C program (faster),
2735 # so one script is as good as another. But avoid the broken or
2736 # incompatible versions:
2737 # SysV /etc/install, /usr/sbin/install
2738 # SunOS /usr/etc/install
2739 # IRIX /sbin/install
2741 # AmigaOS /C/install, which installs bootblocks on floppy discs
2742 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2743 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2744 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2745 # OS/2's system install, which has a completely different semantic
2746 # ./install, which can be erroneously created by make from ./install.sh.
2747 # Reject install programs that cannot install multiple files.
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2749 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2750 if test -z "$INSTALL"; then
2751 if ${ac_cv_path_install+:} false; then :
2752 $as_echo_n "(cached) " >&6
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 # Account for people who put trailing slashes in PATH elements.
2760 case $as_dir/ in #((
2761 ./ | .// | /[cC]/* | \
2762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2763 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2766 # OSF1 and SCO ODT 3.0 have their own names for install.
2767 # Don't use installbsd from OSF since it installs stuff as root
2769 for ac_prog in ginstall scoinst install; do
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2772 if test $ac_prog = install &&
2773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774 # AIX install. It has an incompatible calling convention.
2776 elif test $ac_prog = install &&
2777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # program-specific install script used by HP pwplus--don't use.
2781 rm -rf conftest.one conftest.two conftest.dir
2782 echo one > conftest.one
2783 echo two > conftest.two
2785 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2786 test -s conftest.one && test -s conftest.two &&
2787 test -s conftest.dir/conftest.one &&
2788 test -s conftest.dir/conftest.two
2790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2803 rm -rf conftest.one conftest.two conftest.dir
2806 if test "${ac_cv_path_install+set}" = set; then
2807 INSTALL=$ac_cv_path_install
2809 # As a last resort, use the slow shell script. Don't cache a
2810 # value for INSTALL within a source directory, because that will
2811 # break other packages using the cache if that directory is
2812 # removed, or if the value is a relative name.
2813 INSTALL=$ac_install_sh
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2817 $as_echo "$INSTALL" >&6; }
2819 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2820 # It thinks the first close brace ends the variable substitution.
2821 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2823 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2828 $as_echo_n "checking whether build environment is sane... " >&6; }
2829 # Reject unsafe characters in $srcdir or the absolute working directory
2830 # name. Accept space and tab only in the latter.
2834 *[\\\"\#\$\&\'\`$am_lf]*)
2835 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2838 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2839 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2842 # Do 'set' in a subshell so we don't clobber the current shell's
2843 # arguments. Must try -L first in case configure is actually a
2844 # symlink; some systems play weird games with the mod time of symlinks
2845 # (eg FreeBSD returns the mod time of the symlink's containing
2849 for am_try in 1 2; do
2850 echo "timestamp, slept: $am_has_slept" > conftest.file
2851 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2852 if test "$*" = "X"; then
2854 set X `ls -t "$srcdir/configure" conftest.file`
2856 if test "$*" != "X $srcdir/configure conftest.file" \
2857 && test "$*" != "X conftest.file $srcdir/configure"; then
2859 # If neither matched, then we have a broken ls. This can happen
2860 # if, for instance, CONFIG_SHELL is bash and it inherits a
2861 # broken ls alias from the environment. This has actually
2862 # happened. Such a system could not be considered "sane".
2863 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2864 alias in your environment" "$LINENO" 5
2866 if test "$2" = conftest.file || test $am_try -eq 2; then
2873 test "$2" = conftest.file
2879 as_fn_error $? "newly created file is older than distributed files!
2880 Check your system clock" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2884 # If we didn't sleep, we still need to ensure time stamps of config.status and
2885 # generated files are strictly newer.
2887 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2894 test "$program_prefix" != NONE &&
2895 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2896 # Use a double $ so make ignores it.
2897 test "$program_suffix" != NONE &&
2898 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2899 # Double any \ or $.
2900 # By default was `s,x,x', remove it if useless.
2901 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2902 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2904 # Expand $ac_aux_dir to an absolute path.
2905 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2907 if test x"${MISSING+set}" != xset; then
2910 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2912 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2915 # Use eval to expand $SHELL
2916 if eval "$MISSING --is-lightweight"; then
2917 am_missing_run="$MISSING "
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2921 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2924 if test x"${install_sh+set}" != xset; then
2927 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2929 install_sh="\${SHELL} $am_aux_dir/install-sh"
2933 # Installed binaries are usually stripped using 'strip' when the user
2934 # run "make install-strip". However 'strip' might not be the right
2935 # tool to use in cross-compilation environments, therefore Automake
2936 # will honor the 'STRIP' environment variable to overrule this program.
2937 if test "$cross_compiling" != no; then
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}strip; ac_word=$2
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if ${ac_cv_prog_STRIP+:} false; then :
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$STRIP"; then
2947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 STRIP=$ac_cv_prog_STRIP
2967 if test -n "$STRIP"; then
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2969 $as_echo "$STRIP" >&6; }
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2977 if test -z "$ac_cv_prog_STRIP"; then
2979 # Extract the first word of "strip", so it can be a program name with args.
2980 set dummy strip; ac_word=$2
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$ac_ct_STRIP"; then
2987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2996 ac_cv_prog_ac_ct_STRIP="strip"
2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3007 if test -n "$ac_ct_STRIP"; then
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3009 $as_echo "$ac_ct_STRIP" >&6; }
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 $as_echo "no" >&6; }
3015 if test "x$ac_ct_STRIP" = x; then
3018 case $cross_compiling:$ac_tool_warned in
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3027 STRIP="$ac_cv_prog_STRIP"
3031 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3034 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3035 if test -z "$MKDIR_P"; then
3036 if ${ac_cv_path_mkdir+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3043 test -z "$as_dir" && as_dir=.
3044 for ac_prog in mkdir gmkdir; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3047 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3048 'mkdir (GNU coreutils) '* | \
3049 'mkdir (coreutils) '* | \
3050 'mkdir (fileutils) '4.1*)
3051 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3061 test -d ./--version && rmdir ./--version
3062 if test "${ac_cv_path_mkdir+set}" = set; then
3063 MKDIR_P="$ac_cv_path_mkdir -p"
3065 # As a last resort, use the slow shell script. Don't cache a
3066 # value for MKDIR_P within a source directory, because that will
3067 # break other packages using the cache if that directory is
3068 # removed, or if the value is a relative name.
3069 MKDIR_P="$ac_install_sh -d"
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3073 $as_echo "$MKDIR_P" >&6; }
3075 for ac_prog in gawk mawk nawk awk
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_AWK+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$AWK"; then
3085 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_AWK="$ac_prog"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$AWK"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3107 $as_echo "$AWK" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3114 test -n "$AWK" && break
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3118 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3121 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 cat >conftest.make <<\_ACEOF
3127 @echo '@@@%%%=$(MAKE)=@@@%%%'
3129 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3130 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132 eval ac_cv_prog_make_${ac_make}_set=yes;;
3134 eval ac_cv_prog_make_${ac_make}_set=no;;
3138 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 $as_echo "yes" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 SET_MAKE="MAKE=${MAKE-make}"
3148 rm -rf .tst 2>/dev/null
3149 mkdir .tst 2>/dev/null
3150 if test -d .tst; then
3155 rmdir .tst 2>/dev/null
3157 # Check whether --enable-silent-rules was given.
3158 if test "${enable_silent_rules+set}" = set; then :
3159 enableval=$enable_silent_rules;
3162 case $enable_silent_rules in # (((
3163 yes) AM_DEFAULT_VERBOSITY=0;;
3164 no) AM_DEFAULT_VERBOSITY=1;;
3165 *) AM_DEFAULT_VERBOSITY=1;;
3167 am_make=${MAKE-make}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3169 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3170 if ${am_cv_make_support_nested_variables+:} false; then :
3171 $as_echo_n "(cached) " >&6
3173 if $as_echo 'TRUE=$(BAR$(V))
3179 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3180 am_cv_make_support_nested_variables=yes
3182 am_cv_make_support_nested_variables=no
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3186 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3187 if test $am_cv_make_support_nested_variables = yes; then
3189 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3191 AM_V=$AM_DEFAULT_VERBOSITY
3192 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3196 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3197 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3198 # is not polluted with repeated "-I."
3199 am__isrc=' -I$(srcdir)'
3200 # test to see if srcdir already configured
3201 if test -f $srcdir/config.status; then
3202 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3206 # test whether we have cygpath
3207 if test -z "$CYGPATH_W"; then
3208 if (cygpath --version) >/dev/null 2>/dev/null; then
3209 CYGPATH_W='cygpath -w'
3216 # Define the identity of the package.
3218 VERSION='2.1.12-stable'
3221 cat >>confdefs.h <<_ACEOF
3222 #define PACKAGE "$PACKAGE"
3226 cat >>confdefs.h <<_ACEOF
3227 #define VERSION "$VERSION"
3230 # Some tools Automake needs.
3232 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3235 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3238 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3241 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3244 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3246 # For better backward compatibility. To be removed once Automake 1.9.x
3247 # dies out for good. For more background, see:
3248 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3249 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3250 mkdir_p='$(MKDIR_P)'
3252 # We need awk for the "check" target (and possibly the TAP driver). The
3253 # system "awk" is bad on some platforms.
3254 # Always define AMTAR for backward compatibility. Yes, it's still used
3255 # in the wild :-( We should find a proper way to deprecate it ...
3259 # We'll loop over all known methods to create a tar archive until one works.
3260 _am_tools='gnutar pax cpio none'
3262 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3269 # POSIX will say in a future version that running "rm -f" with no argument
3270 # is OK; and we want to be able to make that assumption in our Makefile
3271 # recipes. So use an aggressive probe to check that the usage we want is
3272 # actually supported "in the wild" to an acceptable degree.
3273 # See automake bug#10828.
3274 # To make any issue more visible, cause the running configure to be aborted
3275 # by default if the 'rm' program in use doesn't match our expectations; the
3276 # user can still override this though.
3277 if rm -f && rm -fr && rm -rf; then : OK; else
3281 Your 'rm' program seems unable to run without file operands specified
3282 on the command line, even when the '-f' option is present. This is contrary
3283 to the behaviour of most rm programs out there, and not conforming with
3284 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3286 Please tell bug-automake@gnu.org about your system, including the value
3287 of your $PATH and any error possibly output before this message. This
3288 can help us improve future automake versions.
3291 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3292 echo 'Configuration will proceed anyway, since you have set the' >&2
3293 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3297 Aborting the configuration process, to ensure you take notice of the issue.
3299 You can download and install GNU coreutils to get an 'rm' implementation
3300 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3302 If you want to complete the configuration process using your problematic
3303 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3304 to "yes", and re-run configure.
3307 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3311 # Check whether --enable-silent-rules was given.
3312 if test "${enable_silent_rules+set}" = set; then :
3313 enableval=$enable_silent_rules;
3316 case $enable_silent_rules in # (((
3317 yes) AM_DEFAULT_VERBOSITY=0;;
3318 no) AM_DEFAULT_VERBOSITY=1;;
3319 *) AM_DEFAULT_VERBOSITY=0;;
3321 am_make=${MAKE-make}
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3323 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3324 if ${am_cv_make_support_nested_variables+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 if $as_echo 'TRUE=$(BAR$(V))
3333 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3334 am_cv_make_support_nested_variables=yes
3336 am_cv_make_support_nested_variables=no
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3340 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3341 if test $am_cv_make_support_nested_variables = yes; then
3343 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3345 AM_V=$AM_DEFAULT_VERBOSITY
3346 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3350 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3353 $as_echo "#define NUMERIC_VERSION 0x02010c00" >>confdefs.h
3358 DEPDIR="${am__leading_dot}deps"
3360 ac_config_commands="$ac_config_commands depfiles"
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3363 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3364 cat > confinc.mk << 'END'
3366 @echo this is the am__doit target >confinc.out
3371 # BSD make does it like this.
3372 echo '.include "confinc.mk" # ignored' > confmf.BSD
3373 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3374 echo 'include confinc.mk # ignored' > confmf.GNU
3376 for s in GNU BSD; do
3377 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3378 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382 case $?:`cat confinc.out 2>/dev/null` in #(
3383 '0:this is the am__doit target') :
3386 am__include='.include' am__quote='"' ;; #(
3388 am__include='include' am__quote='' ;;
3393 if test "$am__include" != "#"; then
3394 _am_result="yes ($s style)"
3398 rm -f confinc.* confmf.*
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3400 $as_echo "${_am_result}" >&6; }
3402 # Check whether --enable-dependency-tracking was given.
3403 if test "${enable_dependency_tracking+set}" = set; then :
3404 enableval=$enable_dependency_tracking;
3407 if test "x$enable_dependency_tracking" != xno; then
3408 am_depcomp="$ac_aux_dir/depcomp"
3412 if test "x$enable_dependency_tracking" != xno; then
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 if test -n "$ac_tool_prefix"; then
3427 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3428 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if ${ac_cv_prog_CC+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 if test -n "$CC"; then
3435 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 if test -n "$CC"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3457 $as_echo "$CC" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3465 if test -z "$ac_cv_prog_CC"; then
3467 # Extract the first word of "gcc", so it can be a program name with args.
3468 set dummy gcc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$ac_ct_CC"; then
3475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_ac_ct_CC="gcc"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3495 if test -n "$ac_ct_CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3497 $as_echo "$ac_ct_CC" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3503 if test "x$ac_ct_CC" = x; then
3506 case $cross_compiling:$ac_tool_warned in
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510 ac_tool_warned=yes ;;
3518 if test -z "$CC"; then
3519 if test -n "$ac_tool_prefix"; then
3520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3521 set dummy ${ac_tool_prefix}cc; ac_word=$2
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3523 $as_echo_n "checking for $ac_word... " >&6; }
3524 if ${ac_cv_prog_CC+:} false; then :
3525 $as_echo_n "(cached) " >&6
3527 if test -n "$CC"; then
3528 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir=.
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3537 ac_cv_prog_CC="${ac_tool_prefix}cc"
3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3559 if test -z "$CC"; then
3560 # Extract the first word of "cc", so it can be a program name with args.
3561 set dummy cc; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565 $as_echo_n "(cached) " >&6
3567 if test -n "$CC"; then
3568 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3579 ac_prog_rejected=yes
3583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 if test $ac_prog_rejected = yes; then
3591 # We found a bogon in the path, so make sure we never use it.
3592 set dummy $ac_cv_prog_CC
3594 if test $# != 0; then
3595 # We chose a different compiler from the bogus one.
3596 # However, it has the same basename, so the bogon will be chosen
3597 # first if we set CC to just the basename; use the full file name.
3599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3605 if test -n "$CC"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3607 $as_echo "$CC" >&6; }
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610 $as_echo "no" >&6; }
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 for ac_prog in cl.exe
3619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 $as_echo_n "checking for $ac_word... " >&6; }
3623 if ${ac_cv_prog_CC+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 if test -n "$CC"; then
3627 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 test -z "$as_dir" && as_dir=.
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 if test -n "$CC"; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 $as_echo "$CC" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 $as_echo "no" >&6; }
3656 test -n "$CC" && break
3659 if test -z "$CC"; then
3661 for ac_prog in cl.exe
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3666 $as_echo_n "checking for $ac_word... " >&6; }
3667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3668 $as_echo_n "(cached) " >&6
3670 if test -n "$ac_ct_CC"; then
3671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 test -z "$as_dir" && as_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680 ac_cv_prog_ac_ct_CC="$ac_prog"
3681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3691 if test -n "$ac_ct_CC"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3693 $as_echo "$ac_ct_CC" >&6; }
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3696 $as_echo "no" >&6; }
3700 test -n "$ac_ct_CC" && break
3703 if test "x$ac_ct_CC" = x; then
3706 case $cross_compiling:$ac_tool_warned in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3710 ac_tool_warned=yes ;;
3719 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3721 as_fn_error $? "no acceptable C compiler found in \$PATH
3722 See \`config.log' for more details" "$LINENO" 5; }
3724 # Provide some information about the compiler.
3725 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3728 for ac_option in --version -v -V -qversion; do
3729 { { ac_try="$ac_compiler $ac_option >&5"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3738 if test -s conftest.err; then
3740 ... rest of stderr output deleted ...
3741 10q' conftest.err >conftest.er1
3742 cat conftest.er1 >&5
3744 rm -f conftest.er1 conftest.err
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 ac_clean_files_save=$ac_clean_files
3761 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3762 # Try to create an executable without -o first, disregard a.out.
3763 # It will help us diagnose broken compilers, and finding out an intuition
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3766 $as_echo_n "checking whether the C compiler works... " >&6; }
3767 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3769 # The possible output files:
3770 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3773 for ac_file in $ac_files
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3782 if { { ac_try="$ac_link_default"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789 (eval "$ac_link_default") 2>&5
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; then :
3793 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3794 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3795 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3796 # so that the user can short-circuit this test for compilers unknown to
3798 for ac_file in $ac_files ''
3800 test -f "$ac_file" || continue
3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3805 # We found the default executable, but exeext='' is most
3809 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813 # We set ac_cv_exeext here because the later test for it is not
3814 # safe: cross compilers may not add the suffix if given an `-o'
3815 # argument, so we may need to know it at that point already.
3816 # Even if this section looks crufty: it has the advantage of
3823 test "$ac_cv_exeext" = no && ac_cv_exeext=
3828 if test -z "$ac_file"; then :
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3831 $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error 77 "C compiler cannot create executables
3837 See \`config.log' for more details" "$LINENO" 5; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840 $as_echo "yes" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3843 $as_echo_n "checking for C compiler default output file name... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845 $as_echo "$ac_file" >&6; }
3846 ac_exeext=$ac_cv_exeext
3848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3849 ac_clean_files=$ac_clean_files_save
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3851 $as_echo_n "checking for suffix of executables... " >&6; }
3852 if { { ac_try="$ac_link"
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3858 $as_echo "$ac_try_echo"; } >&5
3859 (eval "$ac_link") 2>&5
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then :
3863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3865 # work properly (i.e., refer to `conftest.exe'), while it won't with
3867 for ac_file in conftest.exe conftest conftest.*; do
3868 test -f "$ac_file" || continue
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3880 See \`config.log' for more details" "$LINENO" 5; }
3882 rm -f conftest conftest$ac_cv_exeext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3884 $as_echo "$ac_cv_exeext" >&6; }
3886 rm -f conftest.$ac_ext
3887 EXEEXT=$ac_cv_exeext
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3895 FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3902 ac_clean_files="$ac_clean_files conftest.out"
3903 # Check that the compiler produces executables we can run. If not, either
3904 # the compiler is broken, or we cross compile.
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906 $as_echo_n "checking whether we are cross compiling... " >&6; }
3907 if test "$cross_compiling" != yes; then
3908 { { ac_try="$ac_link"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 $as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3932 if test "$cross_compiling" = maybe; then
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error $? "cannot run C compiled programs.
3938 If you meant to cross compile, use \`--host'.
3939 See \`config.log' for more details" "$LINENO" 5; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947 ac_clean_files=$ac_clean_files_save
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if ${ac_cv_objext+:} false; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details" "$LINENO" 5; }
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if ${ac_cv_c_compiler_gnu+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4018 if ac_fn_c_try_compile "$LINENO"; then :
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if ${ac_cv_prog_cc_g+:} false; then :
4039 $as_echo_n "(cached) " >&6
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4087 if ac_fn_c_try_compile "$LINENO"; then :
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4108 if test "$GCC" = yes; then
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if ${ac_cv_prog_cc_c89+:} false; then :
4117 $as_echo_n "(cached) " >&6
4119 ac_cv_prog_cc_c89=no
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4127 struct buf { int x; };
4128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4129 static char *e (p, i)
4135 static char *f (char * (*g) (char **, int), char **p, ...)
4140 s = g (p, va_arg (v,int));
4145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4146 function prototypes and stuff, but not '\xHH' hex character constants.
4147 These don't provoke an error unfortunately, instead are silently treated
4148 as 'x'. The following induces an error, until -std is added to get
4149 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4150 array size at least. It's necessary to write '\x00'==0 to get something
4151 that's true only with -std. */
4152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4155 inside strings and character constants. */
4157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4159 int test (int i, double x);
4160 struct s1 {int (*f) (int a);};
4161 struct s2 {int (*f) (double a);};
4162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4168 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4174 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_prog_cc_c89=$ac_arg
4180 rm -f core conftest.err conftest.$ac_objext
4181 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 rm -f conftest.$ac_ext
4188 case "x$ac_cv_prog_cc_c89" in
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4191 $as_echo "none needed" >&6; } ;;
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4194 $as_echo "unsupported" >&6; } ;;
4196 CC="$CC $ac_cv_prog_cc_c89"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 if test "x$ac_cv_prog_cc_c89" != xno; then :
4205 ac_cpp='$CPP $CPPFLAGS'
4206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4216 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4217 if ${am_cv_prog_cc_c_o+:} false; then :
4218 $as_echo_n "(cached) " >&6
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4231 # Make sure it works both with $CC and with simple cc.
4232 # Following AC_PROG_CC_C_O, we do the test twice because some
4233 # compilers refuse to overwrite an existing .o file with -o,
4234 # though they will create one.
4235 am_cv_prog_cc_c_o=yes
4237 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4238 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } \
4242 && test -f conftest2.$ac_objext; then
4245 am_cv_prog_cc_c_o=no
4249 rm -f core conftest*
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4253 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4254 if test "$am_cv_prog_cc_c_o" != yes; then
4255 # Losing compiler, so override with the script.
4256 # FIXME: It is wrong to rewrite CC.
4257 # But if we don't then we get into trouble of one sort or another.
4258 # A longer-term fix would be to have automake use am__CC in this case,
4259 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4260 CC="$am_aux_dir/compile $CC"
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 depcc="$CC" am_compiler_list=
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4272 $as_echo_n "checking dependency style of $depcc... " >&6; }
4273 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4277 # We make a subdir and do the tests there. Otherwise we can end up
4278 # making bogus files that we don't know about and never remove. For
4279 # instance it was reported that on HP-UX the gcc test will end up
4280 # making a dummy file named 'D' -- because '-MD' means "put the output
4284 # Copy depcomp to subdir because otherwise we won't find it if we're
4285 # using a relative directory.
4286 cp "$am_depcomp" conftest.dir
4288 # We will build objects and dependencies in a subdirectory because
4289 # it helps to detect inapplicable dependency modes. For instance
4290 # both Tru64's cc and ICC support -MD to output dependencies as a
4291 # side effect of compilation, but ICC will put the dependencies in
4292 # the current directory while Tru64 will put them in the object
4296 am_cv_CC_dependencies_compiler_type=none
4297 if test "$am_compiler_list" = ""; then
4298 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4301 case " $depcc " in #(
4302 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4305 for depmode in $am_compiler_list; do
4306 # Setup a source with many dependencies, because some compilers
4307 # like to wrap large dependency lists on column 80 (with \), and
4308 # we should not choose a depcomp mode which is confused by this.
4310 # We need to recreate these files for each test, as the compiler may
4311 # overwrite some of them when testing with obscure command lines.
4312 # This happens at least with the AIX C compiler.
4314 for i in 1 2 3 4 5 6; do
4315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4316 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4317 # Solaris 10 /bin/sh.
4318 echo '/* dummy */' > sub/conftst$i.h
4320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4322 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4323 # mode. It turns out that the SunPro C++ compiler does not properly
4324 # handle '-M -o', and we need to detect this. Also, some Intel
4325 # versions had trouble with output in subdirs.
4326 am__obj=sub/conftest.${OBJEXT-o}
4327 am__minus_obj="-o $am__obj"
4330 # This depmode causes a compiler race in universal mode.
4331 test "$am__universal" = false || continue
4334 # After this tag, mechanisms are not by side-effect, so they'll
4335 # only be used when explicitly requested.
4336 if test "x$enable_dependency_tracking" = xyes; then
4342 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4343 # This compiler won't grok '-c -o', but also, the minuso test has
4344 # not run yet. These depmodes are late enough in the game, and
4345 # so weak that their functioning should not be impacted.
4346 am__obj=conftest.${OBJEXT-o}
4351 if depmode=$depmode \
4352 source=sub/conftest.c object=$am__obj \
4353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4355 >/dev/null 2>conftest.err &&
4356 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4357 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4358 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4359 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4360 # icc doesn't choke on unknown options, it will just issue warnings
4361 # or remarks (even with -Werror). So we grep stderr for any message
4362 # that says an option was ignored or not supported.
4363 # When given -MP, icc 7.0 and 7.1 complain thusly:
4364 # icc: Command line warning: ignoring option '-M'; no argument required
4365 # The diagnosis changed in icc 8.0:
4366 # icc: Command line remark: option '-MP' not supported
4367 if (grep 'ignoring option' conftest.err ||
4368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369 am_cv_CC_dependencies_compiler_type=$depmode
4378 am_cv_CC_dependencies_compiler_type=none
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4383 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4384 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4387 test "x$enable_dependency_tracking" != xno \
4388 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4390 am__fastdepCC_FALSE='#'
4392 am__fastdepCC_TRUE='#'
4393 am__fastdepCC_FALSE=
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4404 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4405 # On Suns, sometimes $CPP names a directory.
4406 if test -n "$CPP" && test -d "$CPP"; then
4409 if test -z "$CPP"; then
4410 if ${ac_cv_prog_CPP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4413 # Double quotes because CPP needs to be expanded
4414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4417 for ac_c_preproc_warn_flag in '' yes
4419 # Use a header file that comes with gcc, so configuring glibc
4420 # with a fresh cross-compiler works.
4421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4422 # <limits.h> exists even on freestanding compilers.
4423 # On the NeXT, cc -E runs the code through the compiler's parser,
4424 # not just through cpp. "Syntax error" is here to catch this case.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4428 # include <limits.h>
4430 # include <assert.h>
4434 if ac_fn_c_try_cpp "$LINENO"; then :
4437 # Broken: fails on valid input.
4440 rm -f conftest.err conftest.i conftest.$ac_ext
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <ac_nonexistent.h>
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: success on invalid input.
4452 # Passes both tests.
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4460 rm -f conftest.i conftest.err conftest.$ac_ext
4461 if $ac_preproc_ok; then :
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4474 $as_echo "$CPP" >&6; }
4476 for ac_c_preproc_warn_flag in '' yes
4478 # Use a header file that comes with gcc, so configuring glibc
4479 # with a fresh cross-compiler works.
4480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 # <limits.h> exists even on freestanding compilers.
4482 # On the NeXT, cc -E runs the code through the compiler's parser,
4483 # not just through cpp. "Syntax error" is here to catch this case.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4487 # include <limits.h>
4489 # include <assert.h>
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4496 # Broken: fails on valid input.
4499 rm -f conftest.err conftest.i conftest.$ac_ext
4501 # OK, works on sane cases. Now check whether nonexistent headers
4502 # can be detected and how.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #include <ac_nonexistent.h>
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4508 # Broken: success on invalid input.
4511 # Passes both tests.
4515 rm -f conftest.err conftest.i conftest.$ac_ext
4518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4519 rm -f conftest.i conftest.err conftest.$ac_ext
4520 if $ac_preproc_ok; then :
4523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4525 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4526 See \`config.log' for more details" "$LINENO" 5; }
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if ${ac_cv_path_GREP+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 as_fn_executable_p "$ac_path_GREP" || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4560 $as_echo_n 0123456789 >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4581 $ac_path_GREP_found && break 3
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if ${ac_cv_path_EGREP+:} false; then :
4602 $as_echo_n "(cached) " >&6
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 as_fn_executable_p "$ac_path_EGREP" || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4626 $as_echo_n 0123456789 >"conftest.in"
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 $ac_path_EGREP_found && break 3
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4667 $as_echo_n "checking for ANSI C header files... " >&6; }
4668 if ${ac_cv_header_stdc+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4686 if ac_fn_c_try_compile "$LINENO"; then :
4687 ac_cv_header_stdc=yes
4689 ac_cv_header_stdc=no
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test $ac_cv_header_stdc = yes; then
4694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "memchr" >/dev/null 2>&1; then :
4704 ac_cv_header_stdc=no
4710 if test $ac_cv_header_stdc = yes; then
4711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4718 $EGREP "free" >/dev/null 2>&1; then :
4721 ac_cv_header_stdc=no
4727 if test $ac_cv_header_stdc = yes; then
4728 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4729 if test "$cross_compiling" = yes; then :
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4736 #if ((' ' & 0x0FF) == 0x020)
4737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4740 # define ISLOWER(c) \
4741 (('a' <= (c) && (c) <= 'i') \
4742 || ('j' <= (c) && (c) <= 'r') \
4743 || ('s' <= (c) && (c) <= 'z'))
4744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4752 for (i = 0; i < 256; i++)
4753 if (XOR (islower (i), ISLOWER (i))
4754 || toupper (i) != TOUPPER (i))
4759 if ac_fn_c_try_run "$LINENO"; then :
4762 ac_cv_header_stdc=no
4764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4765 conftest.$ac_objext conftest.beam conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4771 $as_echo "$ac_cv_header_stdc" >&6; }
4772 if test $ac_cv_header_stdc = yes; then
4774 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4778 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4779 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4780 inttypes.h stdint.h unistd.h
4782 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4783 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4786 cat >>confdefs.h <<_ACEOF
4787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4796 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4797 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4804 if test "$MINIX" = yes; then
4806 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4809 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4812 $as_echo "#define _MINIX 1" >>confdefs.h
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4818 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4819 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4825 # define __EXTENSIONS__ 1
4826 $ac_includes_default
4835 if ac_fn_c_try_compile "$LINENO"; then :
4836 ac_cv_safe_to_define___extensions__=yes
4838 ac_cv_safe_to_define___extensions__=no
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4843 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4844 test $ac_cv_safe_to_define___extensions__ = yes &&
4845 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4847 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4849 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4851 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4853 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4857 # Make sure we can run config.sub.
4858 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4859 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4862 $as_echo_n "checking build system type... " >&6; }
4863 if ${ac_cv_build+:} false; then :
4864 $as_echo_n "(cached) " >&6
4866 ac_build_alias=$build_alias
4867 test "x$ac_build_alias" = x &&
4868 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4869 test "x$ac_build_alias" = x &&
4870 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4871 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4876 $as_echo "$ac_cv_build" >&6; }
4877 case $ac_cv_build in
4879 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4882 ac_save_IFS=$IFS; IFS='-'
4888 # Remember, the first character of IFS is used to create $*,
4889 # except with old shells:
4892 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4896 $as_echo_n "checking host system type... " >&6; }
4897 if ${ac_cv_host+:} false; then :
4898 $as_echo_n "(cached) " >&6
4900 if test "x$host_alias" = x; then
4901 ac_cv_host=$ac_cv_build
4903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4904 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4909 $as_echo "$ac_cv_host" >&6; }
4912 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4915 ac_save_IFS=$IFS; IFS='-'
4921 # Remember, the first character of IFS is used to create $*,
4922 # except with old shells:
4925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4932 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4939 $as_echo_n "checking whether ln -s works... " >&6; }
4941 if test "$LN_S" = "ln -s"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4943 $as_echo "yes" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4946 $as_echo "no, using $LN_S" >&6; }
4949 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4953 if ${ac_cv_path_SED+:} false; then :
4954 $as_echo_n "(cached) " >&6
4956 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4957 for ac_i in 1 2 3 4 5 6 7; do
4958 ac_script="$ac_script$as_nl$ac_script"
4960 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4961 { ac_script=; unset ac_script;}
4962 if test -z "$SED"; then
4963 ac_path_SED_found=false
4964 # Loop through the user's path and test for each of PROGNAME-LIST
4965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 test -z "$as_dir" && as_dir=.
4970 for ac_prog in sed gsed; do
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4973 as_fn_executable_p "$ac_path_SED" || continue
4974 # Check for GNU ac_path_SED and select it if it is found.
4975 # Check for GNU $ac_path_SED
4976 case `"$ac_path_SED" --version 2>&1` in
4978 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4981 $as_echo_n 0123456789 >"conftest.in"
4984 cat "conftest.in" "conftest.in" >"conftest.tmp"
4985 mv "conftest.tmp" "conftest.in"
4986 cp "conftest.in" "conftest.nl"
4987 $as_echo '' >> "conftest.nl"
4988 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990 as_fn_arith $ac_count + 1 && ac_count=$as_val
4991 if test $ac_count -gt ${ac_path_SED_max-0}; then
4992 # Best one so far, save it but keep looking for a better one
4993 ac_cv_path_SED="$ac_path_SED"
4994 ac_path_SED_max=$ac_count
4996 # 10*(2^10) chars as input seems more than enough
4997 test $ac_count -gt 10 && break
4999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5002 $ac_path_SED_found && break 3
5007 if test -z "$ac_cv_path_SED"; then
5008 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5016 $as_echo "$ac_cv_path_SED" >&6; }
5017 SED="$ac_cv_path_SED"
5021 if test $ac_cv_c_compiler_gnu = yes; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5023 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5024 if ${ac_cv_prog_gcc_traditional+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 ac_pattern="Autoconf.*'x'"
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5035 ac_cv_prog_gcc_traditional=yes
5037 ac_cv_prog_gcc_traditional=no
5042 if test $ac_cv_prog_gcc_traditional = no; then
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5049 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5050 ac_cv_prog_gcc_traditional=yes
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5057 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5058 if test $ac_cv_prog_gcc_traditional = yes; then
5059 CC="$CC -traditional"
5064 # We need to test for at least gcc 2.95 here, because older versions don't
5065 # have -fno-strict-aliasing
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5073 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5080 if ac_fn_c_try_compile "$LINENO"; then :
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 if test "$GCC" = "yes" ; then
5088 # Enable many gcc warnings by default...
5089 CFLAGS="$CFLAGS -Wall"
5090 # And disable the strict-aliasing optimization, since it breaks
5091 # our sockaddr-handling code in strange ways.
5092 if test x$have_gcc295 = xyes; then
5093 CFLAGS="$CFLAGS -fno-strict-aliasing"
5097 # OS X Lion started deprecating the system openssl. Let's just disable
5098 # all deprecation warnings on OS X; but do so only for gcc...
5099 if test "$GCC" = "yes" ; then
5102 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5107 # Check whether --enable-gcc-warnings was given.
5108 if test "${enable_gcc_warnings+set}" = set; then :
5109 enableval=$enable_gcc_warnings;
5113 # Check whether --enable-gcc-hardening was given.
5114 if test "${enable_gcc_hardening+set}" = set; then :
5115 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5116 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5117 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5118 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5123 # Check whether --enable-thread-support was given.
5124 if test "${enable_thread_support+set}" = set; then :
5125 enableval=$enable_thread_support;
5127 enable_thread_support=yes
5130 # Check whether --enable-malloc-replacement was given.
5131 if test "${enable_malloc_replacement+set}" = set; then :
5132 enableval=$enable_malloc_replacement;
5134 enable_malloc_replacement=yes
5137 # Check whether --enable-openssl was given.
5138 if test "${enable_openssl+set}" = set; then :
5139 enableval=$enable_openssl;
5144 # Check whether --enable-debug-mode was given.
5145 if test "${enable_debug_mode+set}" = set; then :
5146 enableval=$enable_debug_mode;
5148 enable_debug_mode=yes
5151 # Check whether --enable-libevent-install was given.
5152 if test "${enable_libevent_install+set}" = set; then :
5153 enableval=$enable_libevent_install;
5155 enable_libevent_install=yes
5158 # Check whether --enable-libevent-regress was given.
5159 if test "${enable_libevent_regress+set}" = set; then :
5160 enableval=$enable_libevent_regress;
5162 enable_libevent_regress=yes
5165 # Check whether --enable-samples was given.
5166 if test "${enable_samples+set}" = set; then :
5167 enableval=$enable_samples;
5172 # Check whether --enable-function-sections was given.
5173 if test "${enable_function_sections+set}" = set; then :
5174 enableval=$enable_function_sections;
5176 enable_function_sections=no
5179 # Check whether --enable-verbose-debug was given.
5180 if test "${enable_verbose_debug+set}" = set; then :
5181 enableval=$enable_verbose_debug;
5183 enable_verbose_debug=no
5186 # Check whether --enable-clock-gettime was given.
5187 if test "${enable_clock_gettime+set}" = set; then :
5188 enableval=$enable_clock_gettime;
5190 enable_clock_gettime=yes
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5199 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5204 macro_version='2.4.6.42-b88ce-dirty'
5205 macro_revision='2.4.6.42'
5219 ltmain=$ac_aux_dir/ltmain.sh
5221 # Backslashify metacharacters that are still active within
5222 # double-quoted strings.
5223 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5225 # Same as above, but do not quote variable references.
5226 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5228 # Sed substitution to delay expansion of an escaped shell variable in a
5229 # double_quote_subst'ed string.
5230 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5232 # Sed substitution to delay expansion of an escaped single quote.
5233 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5235 # Sed substitution to avoid accidental globbing in evaled expressions
5236 no_glob_subst='s/\*/\\\*/g'
5238 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5239 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5240 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5243 $as_echo_n "checking how to print strings... " >&6; }
5244 # Test print first, because it will be a builtin if present.
5245 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5246 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5248 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5251 # Use this function as a fallback that always works.
5252 func_fallback_echo ()
5254 eval 'cat <<_LTECHO_EOF
5258 ECHO='func_fallback_echo'
5261 # func_echo_all arg...
5262 # Invoke $ECHO with all args, space-separated.
5269 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5270 $as_echo "printf" >&6; } ;;
5271 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5272 $as_echo "print -r" >&6; } ;;
5273 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5274 $as_echo "cat" >&6; } ;;
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5291 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5292 if ${ac_cv_path_SED+:} false; then :
5293 $as_echo_n "(cached) " >&6
5295 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5296 for ac_i in 1 2 3 4 5 6 7; do
5297 ac_script="$ac_script$as_nl$ac_script"
5299 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5300 { ac_script=; unset ac_script;}
5301 if test -z "$SED"; then
5302 ac_path_SED_found=false
5303 # Loop through the user's path and test for each of PROGNAME-LIST
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_prog in sed gsed; do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5312 as_fn_executable_p "$ac_path_SED" || continue
5313 # Check for GNU ac_path_SED and select it if it is found.
5314 # Check for GNU $ac_path_SED
5315 case `"$ac_path_SED" --version 2>&1` in
5317 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5320 $as_echo_n 0123456789 >"conftest.in"
5323 cat "conftest.in" "conftest.in" >"conftest.tmp"
5324 mv "conftest.tmp" "conftest.in"
5325 cp "conftest.in" "conftest.nl"
5326 $as_echo '' >> "conftest.nl"
5327 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5329 as_fn_arith $ac_count + 1 && ac_count=$as_val
5330 if test $ac_count -gt ${ac_path_SED_max-0}; then
5331 # Best one so far, save it but keep looking for a better one
5332 ac_cv_path_SED="$ac_path_SED"
5333 ac_path_SED_max=$ac_count
5335 # 10*(2^10) chars as input seems more than enough
5336 test $ac_count -gt 10 && break
5338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5341 $ac_path_SED_found && break 3
5346 if test -z "$ac_cv_path_SED"; then
5347 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5355 $as_echo "$ac_cv_path_SED" >&6; }
5356 SED="$ac_cv_path_SED"
5359 test -z "$SED" && SED=sed
5360 Xsed="$SED -e 1s/^X//"
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5373 $as_echo_n "checking for fgrep... " >&6; }
5374 if ${ac_cv_path_FGREP+:} false; then :
5375 $as_echo_n "(cached) " >&6
5377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5378 then ac_cv_path_FGREP="$GREP -F"
5380 if test -z "$FGREP"; then
5381 ac_path_FGREP_found=false
5382 # Loop through the user's path and test for each of PROGNAME-LIST
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5387 test -z "$as_dir" && as_dir=.
5388 for ac_prog in fgrep; do
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5391 as_fn_executable_p "$ac_path_FGREP" || continue
5392 # Check for GNU ac_path_FGREP and select it if it is found.
5393 # Check for GNU $ac_path_FGREP
5394 case `"$ac_path_FGREP" --version 2>&1` in
5396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5399 $as_echo_n 0123456789 >"conftest.in"
5402 cat "conftest.in" "conftest.in" >"conftest.tmp"
5403 mv "conftest.tmp" "conftest.in"
5404 cp "conftest.in" "conftest.nl"
5405 $as_echo 'FGREP' >> "conftest.nl"
5406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5408 as_fn_arith $ac_count + 1 && ac_count=$as_val
5409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5410 # Best one so far, save it but keep looking for a better one
5411 ac_cv_path_FGREP="$ac_path_FGREP"
5412 ac_path_FGREP_max=$ac_count
5414 # 10*(2^10) chars as input seems more than enough
5415 test $ac_count -gt 10 && break
5417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5420 $ac_path_FGREP_found && break 3
5425 if test -z "$ac_cv_path_FGREP"; then
5426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5429 ac_cv_path_FGREP=$FGREP
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5435 $as_echo "$ac_cv_path_FGREP" >&6; }
5436 FGREP="$ac_cv_path_FGREP"
5439 test -z "$GREP" && GREP=grep
5459 # Check whether --with-gnu-ld was given.
5460 if test "${with_gnu_ld+set}" = set; then :
5461 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5467 if test yes = "$GCC"; then
5468 # Check if gcc -print-prog-name=ld gives a path.
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5470 $as_echo_n "checking for ld used by $CC... " >&6; }
5473 # gcc leaves a trailing carriage return, which upsets mingw
5474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5479 # Accept absolute paths.
5481 re_direlt='/[^/][^/]*/\.\./'
5482 # Canonicalize the pathname of ld
5483 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5484 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5485 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5487 test -z "$LD" && LD=$ac_prog
5490 # If it fails, then pretend we aren't using GCC.
5494 # If it is relative, then search for the first ld in PATH.
5498 elif test yes = "$with_gnu_ld"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5500 $as_echo_n "checking for GNU ld... " >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5503 $as_echo_n "checking for non-GNU ld... " >&6; }
5505 if ${lt_cv_path_LD+:} false; then :
5506 $as_echo_n "(cached) " >&6
5508 if test -z "$LD"; then
5509 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5510 for ac_dir in $PATH; do
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5514 lt_cv_path_LD=$ac_dir/$ac_prog
5515 # Check to see if the program is GNU ld. I'd rather use --version,
5516 # but apparently some variants of GNU ld only accept -v.
5517 # Break only if it was the GNU/non-GNU ld that we prefer.
5518 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5519 *GNU* | *'with BFD'*)
5520 test no != "$with_gnu_ld" && break
5523 test yes != "$with_gnu_ld" && break
5530 lt_cv_path_LD=$LD # Let the user override the test with a path.
5535 if test -n "$LD"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5537 $as_echo "$LD" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5542 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5544 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5545 if ${lt_cv_prog_gnu_ld+:} false; then :
5546 $as_echo_n "(cached) " >&6
5548 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5549 case `$LD -v 2>&1 </dev/null` in
5550 *GNU* | *'with BFD'*)
5551 lt_cv_prog_gnu_ld=yes
5554 lt_cv_prog_gnu_ld=no
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5560 with_gnu_ld=$lt_cv_prog_gnu_ld
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5571 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5572 if ${lt_cv_path_NM+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$NM"; then
5576 # Let the user override the test.
5579 lt_nm_to_check=${ac_tool_prefix}nm
5580 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5581 lt_nm_to_check="$lt_nm_to_check nm"
5583 for lt_tmp_nm in $lt_nm_to_check; do
5584 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5585 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5587 test -z "$ac_dir" && ac_dir=.
5588 tmp_nm=$ac_dir/$lt_tmp_nm
5589 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5590 # Check to see if the nm accepts a BSD-compat flag.
5591 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5592 # nm: unknown option "B" ignored
5593 # Tru64's nm complains that /dev/null is an invalid object file
5594 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5596 mingw*) lt_bad_file=conftest.nm/nofile ;;
5597 *) lt_bad_file=/dev/null ;;
5599 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5600 *$lt_bad_file* | *'Invalid file or object type'*)
5601 lt_cv_path_NM="$tmp_nm -B"
5605 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5607 lt_cv_path_NM="$tmp_nm -p"
5611 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5612 continue # so that we can try to find one that supports BSD flags
5621 : ${lt_cv_path_NM=no}
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5625 $as_echo "$lt_cv_path_NM" >&6; }
5626 if test no != "$lt_cv_path_NM"; then
5629 # Didn't find any BSD compatible name lister, look for dumpbin.
5630 if test -n "$DUMPBIN"; then :
5631 # Let the user override the test.
5633 if test -n "$ac_tool_prefix"; then
5634 for ac_prog in dumpbin "link -dump"
5636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_prog_DUMPBIN+:} false; then :
5641 $as_echo_n "(cached) " >&6
5643 if test -n "$DUMPBIN"; then
5644 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 test -z "$as_dir" && as_dir=.
5651 for ac_exec_ext in '' $ac_executable_extensions; do
5652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 DUMPBIN=$ac_cv_prog_DUMPBIN
5664 if test -n "$DUMPBIN"; then
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5666 $as_echo "$DUMPBIN" >&6; }
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 $as_echo "no" >&6; }
5673 test -n "$DUMPBIN" && break
5676 if test -z "$DUMPBIN"; then
5677 ac_ct_DUMPBIN=$DUMPBIN
5678 for ac_prog in dumpbin "link -dump"
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 if test -n "$ac_ct_DUMPBIN"; then
5688 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5708 if test -n "$ac_ct_DUMPBIN"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5710 $as_echo "$ac_ct_DUMPBIN" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5717 test -n "$ac_ct_DUMPBIN" && break
5720 if test "x$ac_ct_DUMPBIN" = x; then
5723 case $cross_compiling:$ac_tool_warned in
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5729 DUMPBIN=$ac_ct_DUMPBIN
5733 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5735 DUMPBIN="$DUMPBIN -symbols -headers"
5743 if test : != "$DUMPBIN"; then
5747 test -z "$NM" && NM=nm
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5755 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5756 if ${lt_cv_nm_interface+:} false; then :
5757 $as_echo_n "(cached) " >&6
5759 lt_cv_nm_interface="BSD nm"
5760 echo "int some_variable = 0;" > conftest.$ac_ext
5761 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5762 (eval "$ac_compile" 2>conftest.err)
5763 cat conftest.err >&5
5764 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5765 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5766 cat conftest.err >&5
5767 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5768 cat conftest.out >&5
5769 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5770 lt_cv_nm_interface="MS dumpbin"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5775 $as_echo "$lt_cv_nm_interface" >&6; }
5777 # find the maximum length of command line arguments
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5779 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5780 if ${lt_cv_sys_max_cmd_len+:} false; then :
5781 $as_echo_n "(cached) " >&6
5788 # On DJGPP, this test can blow up pretty badly due to problems in libc
5789 # (any single argument exceeding 2000 bytes causes a buffer overrun
5790 # during glob expansion). Even if it were fixed, the result of this
5791 # check would be larger than it should be.
5792 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5796 # Under GNU Hurd, this test is not required because there is
5797 # no limit to the length of command line arguments.
5798 # Libtool will interpret -1 as no limit whatsoever
5799 lt_cv_sys_max_cmd_len=-1;
5802 cygwin* | mingw* | cegcc*)
5803 # On Win9x/ME, this test blows up -- it succeeds, but takes
5804 # about 5 minutes as the teststring grows exponentially.
5805 # Worse, since 9x/ME are not pre-emptively multitasking,
5806 # you end up with a "frozen" computer, even though with patience
5807 # the test eventually succeeds (with a max line length of 256k).
5808 # Instead, let's just punt: use the minimum linelength reported by
5809 # all of the supported platforms: 8192 (on NT/2K/XP).
5810 lt_cv_sys_max_cmd_len=8192;
5814 # On MiNT this can take a long time and run out of memory.
5815 lt_cv_sys_max_cmd_len=8192;
5819 # On AmigaOS with pdksh, this test takes hours, literally.
5820 # So we just punt and use a minimum line length of 8192.
5821 lt_cv_sys_max_cmd_len=8192;
5824 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5825 # This has been around since 386BSD, at least. Likely further.
5826 if test -x /sbin/sysctl; then
5827 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5828 elif test -x /usr/sbin/sysctl; then
5829 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5831 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5833 # And add a safety zone
5834 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5835 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5840 lt_cv_sys_max_cmd_len=196608
5844 # The test takes a long time on OS/2.
5845 lt_cv_sys_max_cmd_len=8192
5849 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5850 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5851 # nice to cause kernel panics so lets avoid the loop below.
5852 # First set a reasonable default.
5853 lt_cv_sys_max_cmd_len=16384
5855 if test -x /sbin/sysconfig; then
5856 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5857 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5862 lt_cv_sys_max_cmd_len=102400
5864 sysv5* | sco5v6* | sysv4.2uw2*)
5865 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5866 if test -n "$kargmax"; then
5867 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5869 lt_cv_sys_max_cmd_len=32768
5873 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5874 if test -n "$lt_cv_sys_max_cmd_len" && \
5875 test undefined != "$lt_cv_sys_max_cmd_len"; then
5876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5877 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5879 # Make teststring a little bigger before we do anything with it.
5880 # a 1K string should be a reasonable start.
5881 for i in 1 2 3 4 5 6 7 8; do
5882 teststring=$teststring$teststring
5884 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5885 # If test is not a shell built-in, we'll probably end up computing a
5886 # maximum length that is only half of the actual maximum length, but
5888 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5889 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5890 test 17 != "$i" # 1/2 MB should be enough
5893 teststring=$teststring$teststring
5895 # Only check the string length outside the loop.
5896 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5898 # Add a significant safety factor because C++ compilers can tack on
5899 # massive amounts of additional arguments before passing them to the
5900 # linker. It appears as though 1/2 is a usable value.
5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5908 if test -n "$lt_cv_sys_max_cmd_len"; then
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5910 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5913 $as_echo "none" >&6; }
5915 max_cmd_len=$lt_cv_sys_max_cmd_len
5926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5936 # test EBCDIC or ASCII
5937 case `echo X|tr X '\101'` in
5938 A) # ASCII based system
5939 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5940 lt_SP2NL='tr \040 \012'
5941 lt_NL2SP='tr \015\012 \040\040'
5943 *) # EBCDIC based system
5944 lt_SP2NL='tr \100 \n'
5945 lt_NL2SP='tr \r\n \100\100'
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5958 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5959 if ${lt_cv_to_host_file_cmd+:} false; then :
5960 $as_echo_n "(cached) " >&6
5965 *-*-mingw* ) # actually msys
5966 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5969 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5971 * ) # otherwise, assume *nix
5972 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5978 *-*-mingw* ) # actually msys
5979 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5982 lt_cv_to_host_file_cmd=func_convert_file_noop
5984 * ) # otherwise, assume *nix
5985 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5989 * ) # unhandled hosts (and "normal" native builds)
5990 lt_cv_to_host_file_cmd=func_convert_file_noop
5996 to_host_file_cmd=$lt_cv_to_host_file_cmd
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5998 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6005 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6006 if ${lt_cv_to_tool_file_cmd+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 #assume ordinary cross tools, or native build.
6010 lt_cv_to_tool_file_cmd=func_convert_file_noop
6014 *-*-mingw* ) # actually msys
6015 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6023 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6025 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6032 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6033 if ${lt_cv_ld_reload_flag+:} false; then :
6034 $as_echo_n "(cached) " >&6
6036 lt_cv_ld_reload_flag='-r'
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6039 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6040 reload_flag=$lt_cv_ld_reload_flag
6041 case $reload_flag in
6043 *) reload_flag=" $reload_flag" ;;
6045 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6047 cygwin* | mingw* | pw32* | cegcc*)
6048 if test yes != "$GCC"; then
6053 if test yes = "$GCC"; then
6054 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6056 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6069 if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6071 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_OBJDUMP+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$OBJDUMP"; then
6078 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 OBJDUMP=$ac_cv_prog_OBJDUMP
6098 if test -n "$OBJDUMP"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6100 $as_echo "$OBJDUMP" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6108 if test -z "$ac_cv_prog_OBJDUMP"; then
6109 ac_ct_OBJDUMP=$OBJDUMP
6110 # Extract the first word of "objdump", so it can be a program name with args.
6111 set dummy objdump; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6115 $as_echo_n "(cached) " >&6
6117 if test -n "$ac_ct_OBJDUMP"; then
6118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6138 if test -n "$ac_ct_OBJDUMP"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6140 $as_echo "$ac_ct_OBJDUMP" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6146 if test "x$ac_ct_OBJDUMP" = x; then
6149 case $cross_compiling:$ac_tool_warned in
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6155 OBJDUMP=$ac_ct_OBJDUMP
6158 OBJDUMP="$ac_cv_prog_OBJDUMP"
6161 test -z "$OBJDUMP" && OBJDUMP=objdump
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6172 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6173 if ${lt_cv_deplibs_check_method+:} false; then :
6174 $as_echo_n "(cached) " >&6
6176 lt_cv_file_magic_cmd='$MAGIC_CMD'
6177 lt_cv_file_magic_test_file=
6178 lt_cv_deplibs_check_method='unknown'
6179 # Need to set the preceding variable on all platforms that support
6180 # interlibrary dependencies.
6181 # 'none' -- dependencies not supported.
6182 # 'unknown' -- same as none, but documents that we really don't know.
6183 # 'pass_all' -- all dependencies passed with no checks.
6184 # 'test_compile' -- check by making test program.
6185 # 'file_magic [[regex]]' -- check by looking for files in library path
6186 # that responds to the $file_magic_cmd with a given extended regex.
6187 # If you have 'file' or equivalent on your system and you're not sure
6188 # whether 'pass_all' will *always* work, you probably want this one.
6192 lt_cv_deplibs_check_method=pass_all
6196 lt_cv_deplibs_check_method=pass_all
6200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6201 lt_cv_file_magic_cmd='/usr/bin/file -L'
6202 lt_cv_file_magic_test_file=/shlib/libc.so
6206 # func_win32_libid is a shell function defined in ltmain.sh
6207 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6208 lt_cv_file_magic_cmd='func_win32_libid'
6212 # Base MSYS/MinGW do not provide the 'file' command needed by
6213 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6214 # unless we find 'file', for example because we are cross-compiling.
6215 if ( file / ) >/dev/null 2>&1; then
6216 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6217 lt_cv_file_magic_cmd='func_win32_libid'
6219 # Keep this pattern in sync with the one in func_win32_libid.
6220 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6221 lt_cv_file_magic_cmd='$OBJDUMP -f'
6226 # use the weaker test based on 'objdump'. See mingw*.
6227 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6228 lt_cv_file_magic_cmd='$OBJDUMP -f'
6231 darwin* | rhapsody*)
6232 lt_cv_deplibs_check_method=pass_all
6235 freebsd* | dragonfly*)
6236 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6239 # Not sure whether the presence of OpenBSD here was a mistake.
6240 # Let's accept both of them until this is cleared up.
6241 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6242 lt_cv_file_magic_cmd=/usr/bin/file
6243 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6247 lt_cv_deplibs_check_method=pass_all
6252 lt_cv_deplibs_check_method=pass_all
6255 hpux10.20* | hpux11*)
6256 lt_cv_file_magic_cmd=/usr/bin/file
6259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6263 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]'
6264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6268 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6274 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6278 irix5* | irix6* | nonstopux*)
6280 *-32|*"-32 ") libmagic=32-bit;;
6281 *-n32|*"-n32 ") libmagic=N32;;
6282 *-64|*"-64 ") libmagic=64-bit;;
6283 *) libmagic=never-match;;
6285 lt_cv_deplibs_check_method=pass_all
6288 # This must be glibc/ELF.
6289 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6290 lt_cv_deplibs_check_method=pass_all
6294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6303 lt_cv_file_magic_cmd=/usr/bin/file
6304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6308 lt_cv_deplibs_check_method=pass_all
6312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6319 osf3* | osf4* | osf5*)
6320 lt_cv_deplibs_check_method=pass_all
6324 lt_cv_deplibs_check_method=pass_all
6328 lt_cv_deplibs_check_method=pass_all
6331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6332 lt_cv_deplibs_check_method=pass_all
6336 case $host_vendor in
6338 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]'
6339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6342 lt_cv_deplibs_check_method=pass_all
6345 lt_cv_file_magic_cmd='/bin/file'
6346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6349 lt_cv_file_magic_cmd='/bin/file'
6350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6351 lt_cv_file_magic_test_file=/lib/libc.so
6354 lt_cv_deplibs_check_method=pass_all
6357 lt_cv_deplibs_check_method=pass_all
6363 lt_cv_deplibs_check_method=pass_all
6366 lt_cv_deplibs_check_method=pass_all
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6372 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6376 if test "$build" = "$host"; then
6379 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6382 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6388 file_magic_cmd=$lt_cv_file_magic_cmd
6389 deplibs_check_method=$lt_cv_deplibs_check_method
6390 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6415 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_DLLTOOL+:} false; then :
6419 $as_echo_n "(cached) " >&6
6421 if test -n "$DLLTOOL"; then
6422 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 DLLTOOL=$ac_cv_prog_DLLTOOL
6442 if test -n "$DLLTOOL"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6444 $as_echo "$DLLTOOL" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 if test -z "$ac_cv_prog_DLLTOOL"; then
6453 ac_ct_DLLTOOL=$DLLTOOL
6454 # Extract the first word of "dlltool", so it can be a program name with args.
6455 set dummy dlltool; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 if test -n "$ac_ct_DLLTOOL"; then
6462 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 test -z "$as_dir" && as_dir=.
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6482 if test -n "$ac_ct_DLLTOOL"; then
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6484 $as_echo "$ac_ct_DLLTOOL" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6490 if test "x$ac_ct_DLLTOOL" = x; then
6493 case $cross_compiling:$ac_tool_warned in
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497 ac_tool_warned=yes ;;
6499 DLLTOOL=$ac_ct_DLLTOOL
6502 DLLTOOL="$ac_cv_prog_DLLTOOL"
6505 test -z "$DLLTOOL" && DLLTOOL=dlltool
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6517 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6518 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 lt_cv_sharedlib_from_linklib_cmd='unknown'
6524 cygwin* | mingw* | pw32* | cegcc*)
6525 # two different shell functions defined in ltmain.sh;
6526 # decide which one to use based on capabilities of $DLLTOOL
6527 case `$DLLTOOL --help 2>&1` in
6528 *--identify-strict*)
6529 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6532 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6537 # fallback: assume linklib IS sharedlib
6538 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6544 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6545 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6546 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6554 if test -n "$ac_tool_prefix"; then
6557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6558 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if ${ac_cv_prog_AR+:} false; then :
6562 $as_echo_n "(cached) " >&6
6564 if test -n "$AR"; then
6565 ac_cv_prog_AR="$AR" # Let the user override the test.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
6573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 if test -n "$AR"; then
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6587 $as_echo "$AR" >&6; }
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6594 test -n "$AR" && break
6597 if test -z "$AR"; then
6601 # Extract the first word of "$ac_prog", so it can be a program name with args.
6602 set dummy $ac_prog; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6606 $as_echo_n "(cached) " >&6
6608 if test -n "$ac_ct_AR"; then
6609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_AR="$ac_prog"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6629 if test -n "$ac_ct_AR"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6631 $as_echo "$ac_ct_AR" >&6; }
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6638 test -n "$ac_ct_AR" && break
6641 if test "x$ac_ct_AR" = x; then
6644 case $cross_compiling:$ac_tool_warned in
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6648 ac_tool_warned=yes ;;
6661 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6662 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6663 # higher priority because thats what people were doing historically (setting
6664 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6665 # variable obsoleted/removed.
6667 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6668 lt_ar_flags=$AR_FLAGS
6675 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6676 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6684 $as_echo_n "checking for archiver @FILE support... " >&6; }
6685 if ${lt_cv_ar_at_file+:} false; then :
6686 $as_echo_n "(cached) " >&6
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6700 if ac_fn_c_try_compile "$LINENO"; then :
6701 echo conftest.$ac_objext > conftest.lst
6702 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6704 (eval $lt_ar_try) 2>&5
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }
6708 if test 0 -eq "$ac_status"; then
6709 # Ensure the archiver fails upon bogus file names.
6710 rm -f conftest.$ac_objext libconftest.a
6711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6712 (eval $lt_ar_try) 2>&5
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; }
6716 if test 0 -ne "$ac_status"; then
6720 rm -f conftest.* libconftest.a
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6727 $as_echo "$lt_cv_ar_at_file" >&6; }
6729 if test no = "$lt_cv_ar_at_file"; then
6732 archiver_list_spec=$lt_cv_ar_at_file
6741 if test -n "$ac_tool_prefix"; then
6742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}strip; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_STRIP+:} false; then :
6747 $as_echo_n "(cached) " >&6
6749 if test -n "$STRIP"; then
6750 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769 STRIP=$ac_cv_prog_STRIP
6770 if test -n "$STRIP"; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6772 $as_echo "$STRIP" >&6; }
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6780 if test -z "$ac_cv_prog_STRIP"; then
6782 # Extract the first word of "strip", so it can be a program name with args.
6783 set dummy strip; ac_word=$2
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 $as_echo_n "checking for $ac_word... " >&6; }
6786 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6787 $as_echo_n "(cached) " >&6
6789 if test -n "$ac_ct_STRIP"; then
6790 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 test -z "$as_dir" && as_dir=.
6797 for ac_exec_ext in '' $ac_executable_extensions; do
6798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6799 ac_cv_prog_ac_ct_STRIP="strip"
6800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6810 if test -n "$ac_ct_STRIP"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6812 $as_echo "$ac_ct_STRIP" >&6; }
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6815 $as_echo "no" >&6; }
6818 if test "x$ac_ct_STRIP" = x; then
6821 case $cross_compiling:$ac_tool_warned in
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6825 ac_tool_warned=yes ;;
6830 STRIP="$ac_cv_prog_STRIP"
6833 test -z "$STRIP" && STRIP=:
6840 if test -n "$ac_tool_prefix"; then
6841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6844 $as_echo_n "checking for $ac_word... " >&6; }
6845 if ${ac_cv_prog_RANLIB+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 if test -n "$RANLIB"; then
6849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 RANLIB=$ac_cv_prog_RANLIB
6869 if test -n "$RANLIB"; then
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6871 $as_echo "$RANLIB" >&6; }
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6874 $as_echo "no" >&6; }
6879 if test -z "$ac_cv_prog_RANLIB"; then
6880 ac_ct_RANLIB=$RANLIB
6881 # Extract the first word of "ranlib", so it can be a program name with args.
6882 set dummy ranlib; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$ac_ct_RANLIB"; then
6889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_ac_ct_RANLIB="ranlib"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6909 if test -n "$ac_ct_RANLIB"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6911 $as_echo "$ac_ct_RANLIB" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6917 if test "x$ac_ct_RANLIB" = x; then
6920 case $cross_compiling:$ac_tool_warned in
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6924 ac_tool_warned=yes ;;
6926 RANLIB=$ac_ct_RANLIB
6929 RANLIB="$ac_cv_prog_RANLIB"
6932 test -z "$RANLIB" && RANLIB=:
6939 # Determine commands to create old-style static archives.
6940 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6941 old_postinstall_cmds='chmod 644 $oldlib'
6942 old_postuninstall_cmds=
6944 if test -n "$RANLIB"; then
6947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6953 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6958 lock_old_archive_extraction=yes ;;
6960 lock_old_archive_extraction=no ;;
7001 # If no C compiler was specified, use CC.
7004 # If no C compiler flags were specified, use CFLAGS.
7005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7007 # Allow CC to be a program name with arguments.
7011 # Check for command to grab the raw symbol name followed by C symbol from nm.
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7013 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7014 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7015 $as_echo_n "(cached) " >&6
7018 # These are sane defaults that work on at least a few old systems.
7019 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7021 # Character class describing NM global symbol codes.
7022 symcode='[BCDEGRST]'
7024 # Regexp to match symbols that can be accessed directly from C.
7025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7027 # Define system-specific variables.
7032 cygwin* | mingw* | pw32* | cegcc*)
7033 symcode='[ABCDGISTW]'
7036 if test ia64 = "$host_cpu"; then
7037 symcode='[ABCDEGRST]'
7041 symcode='[BCDEGRST]'
7044 symcode='[BCDEGQRST]'
7055 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7063 # If we're using GNU nm, then use its standard symbol codes.
7064 case `$NM -V 2>&1` in
7065 *GNU* | *'with BFD'*)
7066 symcode='[ABCDGIRSTW]' ;;
7069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7070 # Gets list of data symbols to import.
7071 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7072 # Adjust the below global symbol transforms to fixup imported variables.
7073 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7074 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7075 lt_c_name_lib_hook="\
7076 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7077 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7079 # Disable hooks by default.
7080 lt_cv_sys_global_symbol_to_import=
7086 # Transform an extracted symbol line into a proper C declaration.
7087 # Some systems (esp. on ia64) link data and code symbols differently,
7088 # so use this general approach.
7089 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7091 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7092 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7094 # Transform an extracted symbol line into symbol name and symbol address
7095 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7097 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7098 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7100 # Transform an extracted symbol line into symbol name with lib prefix and
7102 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7103 $lt_c_name_lib_hook\
7104 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7105 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7106 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7108 # Handle CRLF in mingw tool chain
7112 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7116 # Try without a prefix underscore, then with it.
7117 for ac_symprfx in "" "_"; do
7119 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7120 symxfrm="\\1 $ac_symprfx\\2 \\2"
7122 # Write the raw and C identifiers.
7123 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7124 # Fake it for dumpbin and say T for any non-static function,
7125 # D for any global variable and I for any imported variable.
7126 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7127 # which start with @ or ?.
7128 lt_cv_sys_global_symbol_pipe="$AWK '"\
7129 " {last_section=section; section=\$ 3};"\
7130 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7131 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7132 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7133 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7134 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7135 " \$ 0!~/External *\|/{next};"\
7136 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7137 " {if(hide[section]) next};"\
7138 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7139 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7140 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7141 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7142 " ' prfx=^$ac_symprfx"
7144 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7146 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7148 # Check to see that the pipe works correctly.
7152 cat > conftest.$ac_ext <<_LT_EOF
7157 void nm_test_func(void);
7158 void nm_test_func(void){}
7162 int main(){nm_test_var='a';nm_test_func();return(0);}
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166 (eval $ac_compile) 2>&5
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; }; then
7170 # Now try to grab the symbols.
7172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7173 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7176 test $ac_status = 0; } && test -s "$nlist"; then
7177 # Try sorting and uniquifying the output.
7178 if sort "$nlist" | uniq > "$nlist"T; then
7179 mv -f "$nlist"T "$nlist"
7184 # Make sure that we snagged all the symbols we need.
7185 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7186 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7187 cat <<_LT_EOF > conftest.$ac_ext
7188 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7189 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7190 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7191 relocations are performed -- see ld's documentation on pseudo-relocs. */
7192 # define LT_DLSYM_CONST
7193 #elif defined __osf__
7194 /* This system does not cope well with relocations in const data. */
7195 # define LT_DLSYM_CONST
7197 # define LT_DLSYM_CONST const
7205 # Now generate the symbol file.
7206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7208 cat <<_LT_EOF >> conftest.$ac_ext
7210 /* The mapping between symbol names and symbols. */
7211 LT_DLSYM_CONST struct {
7215 lt__PROGRAM__LTX_preloaded_symbols[] =
7217 { "@PROGRAM@", (void *) 0 },
7219 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7220 cat <<\_LT_EOF >> conftest.$ac_ext
7224 /* This works around a problem in FreeBSD linker */
7225 #ifdef FREEBSD_WORKAROUND
7226 static const void *lt_preloaded_setup() {
7227 return lt__PROGRAM__LTX_preloaded_symbols;
7235 # Now try linking the two files.
7236 mv conftest.$ac_objext conftstm.$ac_objext
7237 lt_globsym_save_LIBS=$LIBS
7238 lt_globsym_save_CFLAGS=$CFLAGS
7239 LIBS=conftstm.$ac_objext
7240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7242 (eval $ac_link) 2>&5
7244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7248 LIBS=$lt_globsym_save_LIBS
7249 CFLAGS=$lt_globsym_save_CFLAGS
7251 echo "cannot find nm_test_func in $nlist" >&5
7254 echo "cannot find nm_test_var in $nlist" >&5
7257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7260 echo "$progname: failed program was:" >&5
7261 cat conftest.$ac_ext >&5
7263 rm -rf conftest* conftst*
7265 # Do not use the global_symbol_pipe unless it works.
7266 if test yes = "$pipe_works"; then
7269 lt_cv_sys_global_symbol_pipe=
7275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7276 lt_cv_sys_global_symbol_to_cdecl=
7278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7280 $as_echo "failed" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7283 $as_echo "ok" >&6; }
7286 # Response file support.
7287 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7288 nm_file_list_spec='@'
7289 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7290 nm_file_list_spec='@'
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7330 $as_echo_n "checking for sysroot... " >&6; }
7332 # Check whether --with-sysroot was given.
7333 if test "${with_sysroot+set}" = set; then :
7334 withval=$with_sysroot;
7341 case $with_sysroot in #(
7343 if test yes = "$GCC"; then
7344 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7348 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7354 $as_echo "$with_sysroot" >&6; }
7355 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7360 $as_echo "${lt_sysroot:-no}" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7367 $as_echo_n "checking for a working dd... " >&6; }
7368 if ${ac_cv_path_lt_DD+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 printf 0123456789abcdef0123456789abcdef >conftest.i
7372 cat conftest.i conftest.i >conftest2.i
7374 if test -z "$lt_DD"; then
7375 ac_path_lt_DD_found=false
7376 # Loop through the user's path and test for each of PROGNAME-LIST
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_prog in dd; do
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7385 as_fn_executable_p "$ac_path_lt_DD" || continue
7386 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7387 cmp -s conftest.i conftest.out \
7388 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7390 $ac_path_lt_DD_found && break 3
7395 if test -z "$ac_cv_path_lt_DD"; then
7399 ac_cv_path_lt_DD=$lt_DD
7402 rm -f conftest.i conftest2.i conftest.out
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7405 $as_echo "$ac_cv_path_lt_DD" >&6; }
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7409 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7410 if ${lt_cv_truncate_bin+:} false; then :
7411 $as_echo_n "(cached) " >&6
7413 printf 0123456789abcdef0123456789abcdef >conftest.i
7414 cat conftest.i conftest.i >conftest2.i
7416 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7417 cmp -s conftest.i conftest.out \
7418 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7420 rm -f conftest.i conftest2.i conftest.out
7421 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7424 $as_echo "$lt_cv_truncate_bin" >&6; }
7432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7435 for cc_temp in $*""; do
7437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7446 # Check whether --enable-libtool-lock was given.
7447 if test "${enable_libtool_lock+set}" = set; then :
7448 enableval=$enable_libtool_lock;
7451 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7453 # Some flags need to be propagated to the compiler or linker for good
7457 # Find out what ABI is being produced by ac_compile, and set mode
7458 # options accordingly.
7459 echo 'int i;' > conftest.$ac_ext
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 case `/usr/bin/file conftest.$ac_objext` in
7477 # Find out what ABI is being produced by ac_compile, and set linker
7478 # options accordingly.
7479 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7481 (eval $ac_compile) 2>&5
7483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7484 test $ac_status = 0; }; then
7485 if test yes = "$lt_cv_prog_gnu_ld"; then
7486 case `/usr/bin/file conftest.$ac_objext` in
7488 LD="${LD-ld} -melf32bsmip"
7491 LD="${LD-ld} -melf32bmipn32"
7494 LD="${LD-ld} -melf64bmip"
7498 case `/usr/bin/file conftest.$ac_objext` in
7515 # Find out what ABI is being produced by ac_compile, and set linker
7516 # options accordingly.
7517 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519 (eval $ac_compile) 2>&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7524 case `/usr/bin/file conftest.$ac_objext` in
7532 case `/usr/bin/file conftest.$ac_objext` in
7534 emul="${emul}btsmip"
7537 emul="${emul}ltsmip"
7540 case `/usr/bin/file conftest.$ac_objext` in
7545 LD="${LD-ld} -m $emul"
7550 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7551 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7552 # Find out what ABI is being produced by ac_compile, and set linker
7553 # options accordingly. Note that the listed cases only cover the
7554 # situations where additional linker options are needed (such as when
7555 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7556 # vice versa); the common cases where no linker options are needed do
7557 # not appear in the list.
7558 echo 'int i;' > conftest.$ac_ext
7559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7560 (eval $ac_compile) 2>&5
7562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563 test $ac_status = 0; }; then
7564 case `/usr/bin/file conftest.o` in
7567 x86_64-*kfreebsd*-gnu)
7568 LD="${LD-ld} -m elf_i386_fbsd"
7571 case `/usr/bin/file conftest.o` in
7573 LD="${LD-ld} -m elf32_x86_64"
7576 LD="${LD-ld} -m elf_i386"
7580 powerpc64le-*linux*)
7581 LD="${LD-ld} -m elf32lppclinux"
7584 LD="${LD-ld} -m elf32ppclinux"
7587 LD="${LD-ld} -m elf_s390"
7590 LD="${LD-ld} -m elf32_sparc"
7596 x86_64-*kfreebsd*-gnu)
7597 LD="${LD-ld} -m elf_x86_64_fbsd"
7600 LD="${LD-ld} -m elf_x86_64"
7603 LD="${LD-ld} -m elf64lppc"
7606 LD="${LD-ld} -m elf64ppc"
7608 s390*-*linux*|s390*-*tpf*)
7609 LD="${LD-ld} -m elf64_s390"
7612 LD="${LD-ld} -m elf64_sparc"
7622 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7624 CFLAGS="$CFLAGS -belf"
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7626 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7627 if ${lt_cv_cc_needs_belf+:} false; then :
7628 $as_echo_n "(cached) " >&6
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7647 if ac_fn_c_try_link "$LINENO"; then :
7648 lt_cv_cc_needs_belf=yes
7650 lt_cv_cc_needs_belf=no
7652 rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7662 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7663 if test yes != "$lt_cv_cc_needs_belf"; then
7664 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7669 # Find out what ABI is being produced by ac_compile, and set linker
7670 # options accordingly.
7671 echo 'int i;' > conftest.$ac_ext
7672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7673 (eval $ac_compile) 2>&5
7675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7676 test $ac_status = 0; }; then
7677 case `/usr/bin/file conftest.o` in
7679 case $lt_cv_prog_gnu_ld in
7682 i?86-*-solaris*|x86_64-*-solaris*)
7683 LD="${LD-ld} -m elf_x86_64"
7686 LD="${LD-ld} -m elf64_sparc"
7689 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7690 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7707 need_locks=$enable_libtool_lock
7709 if test -n "$ac_tool_prefix"; then
7710 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7711 set dummy ${ac_tool_prefix}mt; ac_word=$2
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713 $as_echo_n "checking for $ac_word... " >&6; }
7714 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7715 $as_echo_n "(cached) " >&6
7717 if test -n "$MANIFEST_TOOL"; then
7718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 test -z "$as_dir" && as_dir=.
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7738 if test -n "$MANIFEST_TOOL"; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7740 $as_echo "$MANIFEST_TOOL" >&6; }
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743 $as_echo "no" >&6; }
7748 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7749 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7750 # Extract the first word of "mt", so it can be a program name with args.
7751 set dummy mt; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$ac_ct_MANIFEST_TOOL"; then
7758 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7778 if test -n "$ac_ct_MANIFEST_TOOL"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7780 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7786 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7789 case $cross_compiling:$ac_tool_warned in
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793 ac_tool_warned=yes ;;
7795 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7798 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7801 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7803 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7804 if ${lt_cv_path_mainfest_tool+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 lt_cv_path_mainfest_tool=no
7808 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7809 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7810 cat conftest.err >&5
7811 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7812 lt_cv_path_mainfest_tool=yes
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7817 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7818 if test yes != "$lt_cv_path_mainfest_tool"; then
7828 rhapsody* | darwin*)
7829 if test -n "$ac_tool_prefix"; then
7830 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7831 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7835 $as_echo_n "(cached) " >&6
7837 if test -n "$DSYMUTIL"; then
7838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7858 if test -n "$DSYMUTIL"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7860 $as_echo "$DSYMUTIL" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 if test -z "$ac_cv_prog_DSYMUTIL"; then
7869 ac_ct_DSYMUTIL=$DSYMUTIL
7870 # Extract the first word of "dsymutil", so it can be a program name with args.
7871 set dummy dsymutil; ac_word=$2
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7873 $as_echo_n "checking for $ac_word... " >&6; }
7874 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7875 $as_echo_n "(cached) " >&6
7877 if test -n "$ac_ct_DSYMUTIL"; then
7878 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 test -z "$as_dir" && as_dir=.
7885 for ac_exec_ext in '' $ac_executable_extensions; do
7886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7898 if test -n "$ac_ct_DSYMUTIL"; then
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7900 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7903 $as_echo "no" >&6; }
7906 if test "x$ac_ct_DSYMUTIL" = x; then
7909 case $cross_compiling:$ac_tool_warned in
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7913 ac_tool_warned=yes ;;
7915 DSYMUTIL=$ac_ct_DSYMUTIL
7918 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_NMEDIT+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 if test -n "$NMEDIT"; then
7930 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 NMEDIT=$ac_cv_prog_NMEDIT
7950 if test -n "$NMEDIT"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7952 $as_echo "$NMEDIT" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_NMEDIT"; then
7961 ac_ct_NMEDIT=$NMEDIT
7962 # Extract the first word of "nmedit", so it can be a program name with args.
7963 set dummy nmedit; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7967 $as_echo_n "(cached) " >&6
7969 if test -n "$ac_ct_NMEDIT"; then
7970 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7990 if test -n "$ac_ct_NMEDIT"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7992 $as_echo "$ac_ct_NMEDIT" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_NMEDIT" = x; then
8001 case $cross_compiling:$ac_tool_warned in
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned=yes ;;
8007 NMEDIT=$ac_ct_NMEDIT
8010 NMEDIT="$ac_cv_prog_NMEDIT"
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 $as_echo_n "checking for $ac_word... " >&6; }
8018 if ${ac_cv_prog_LIPO+:} false; then :
8019 $as_echo_n "(cached) " >&6
8021 if test -n "$LIPO"; then
8022 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 LIPO=$ac_cv_prog_LIPO
8042 if test -n "$LIPO"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8044 $as_echo "$LIPO" >&6; }
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8052 if test -z "$ac_cv_prog_LIPO"; then
8054 # Extract the first word of "lipo", so it can be a program name with args.
8055 set dummy lipo; ac_word=$2
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 $as_echo_n "checking for $ac_word... " >&6; }
8058 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8059 $as_echo_n "(cached) " >&6
8061 if test -n "$ac_ct_LIPO"; then
8062 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_prog_ac_ct_LIPO="lipo"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8082 if test -n "$ac_ct_LIPO"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8084 $as_echo "$ac_ct_LIPO" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8090 if test "x$ac_ct_LIPO" = x; then
8093 case $cross_compiling:$ac_tool_warned in
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097 ac_tool_warned=yes ;;
8102 LIPO="$ac_cv_prog_LIPO"
8105 if test -n "$ac_tool_prefix"; then
8106 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8107 set dummy ${ac_tool_prefix}otool; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if ${ac_cv_prog_OTOOL+:} false; then :
8111 $as_echo_n "(cached) " >&6
8113 if test -n "$OTOOL"; then
8114 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 test -z "$as_dir" && as_dir=.
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8123 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 OTOOL=$ac_cv_prog_OTOOL
8134 if test -n "$OTOOL"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8136 $as_echo "$OTOOL" >&6; }
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 if test -z "$ac_cv_prog_OTOOL"; then
8146 # Extract the first word of "otool", so it can be a program name with args.
8147 set dummy otool; ac_word=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8151 $as_echo_n "(cached) " >&6
8153 if test -n "$ac_ct_OTOOL"; then
8154 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir=.
8161 for ac_exec_ext in '' $ac_executable_extensions; do
8162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163 ac_cv_prog_ac_ct_OTOOL="otool"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8174 if test -n "$ac_ct_OTOOL"; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8176 $as_echo "$ac_ct_OTOOL" >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 $as_echo "no" >&6; }
8182 if test "x$ac_ct_OTOOL" = x; then
8185 case $cross_compiling:$ac_tool_warned in
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8194 OTOOL="$ac_cv_prog_OTOOL"
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if ${ac_cv_prog_OTOOL64+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 if test -n "$OTOOL64"; then
8206 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 OTOOL64=$ac_cv_prog_OTOOL64
8226 if test -n "$OTOOL64"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8228 $as_echo "$OTOOL64" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8236 if test -z "$ac_cv_prog_OTOOL64"; then
8237 ac_ct_OTOOL64=$OTOOL64
8238 # Extract the first word of "otool64", so it can be a program name with args.
8239 set dummy otool64; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8243 $as_echo_n "(cached) " >&6
8245 if test -n "$ac_ct_OTOOL64"; then
8246 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8252 test -z "$as_dir" && as_dir=.
8253 for ac_exec_ext in '' $ac_executable_extensions; do
8254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8255 ac_cv_prog_ac_ct_OTOOL64="otool64"
8256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8266 if test -n "$ac_ct_OTOOL64"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8268 $as_echo "$ac_ct_OTOOL64" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8274 if test "x$ac_ct_OTOOL64" = x; then
8277 case $cross_compiling:$ac_tool_warned in
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281 ac_tool_warned=yes ;;
8283 OTOOL64=$ac_ct_OTOOL64
8286 OTOOL64="$ac_cv_prog_OTOOL64"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8316 $as_echo_n "checking for -single_module linker flag... " >&6; }
8317 if ${lt_cv_apple_cc_single_mod+:} false; then :
8318 $as_echo_n "(cached) " >&6
8320 lt_cv_apple_cc_single_mod=no
8321 if test -z "$LT_MULTI_MODULE"; then
8322 # By default we will add the -single_module flag. You can override
8323 # by either setting the environment variable LT_MULTI_MODULE
8324 # non-empty at configure time, or by adding -multi_module to the
8326 rm -rf libconftest.dylib*
8327 echo "int foo(void){return 1;}" > conftest.c
8328 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8329 -dynamiclib -Wl,-single_module conftest.c" >&5
8330 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8331 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8333 # If there is a non-empty error log, and "single_module"
8334 # appears in it, assume the flag caused a linker warning
8335 if test -s conftest.err && $GREP single_module conftest.err; then
8336 cat conftest.err >&5
8337 # Otherwise, if the output was created with a 0 exit code from
8338 # the compiler, it worked.
8339 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8340 lt_cv_apple_cc_single_mod=yes
8342 cat conftest.err >&5
8344 rm -rf libconftest.dylib*
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8349 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8352 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8353 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8354 $as_echo_n "(cached) " >&6
8356 lt_cv_ld_exported_symbols_list=no
8357 save_LDFLAGS=$LDFLAGS
8358 echo "_main" > conftest.sym
8359 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8371 if ac_fn_c_try_link "$LINENO"; then :
8372 lt_cv_ld_exported_symbols_list=yes
8374 lt_cv_ld_exported_symbols_list=no
8376 rm -f core conftest.err conftest.$ac_objext \
8377 conftest$ac_exeext conftest.$ac_ext
8378 LDFLAGS=$save_LDFLAGS
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8382 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8385 $as_echo_n "checking for -force_load linker flag... " >&6; }
8386 if ${lt_cv_ld_force_load+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 lt_cv_ld_force_load=no
8390 cat > conftest.c << _LT_EOF
8391 int forced_loaded() { return 2;}
8393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8395 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8396 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8397 echo "$RANLIB libconftest.a" >&5
8398 $RANLIB libconftest.a 2>&5
8399 cat > conftest.c << _LT_EOF
8400 int main() { return 0;}
8402 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8403 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8405 if test -s conftest.err && $GREP force_load conftest.err; then
8406 cat conftest.err >&5
8407 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8408 lt_cv_ld_force_load=yes
8410 cat conftest.err >&5
8412 rm -f conftest.err libconftest.a conftest conftest.c
8413 rm -rf conftest.dSYM
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8417 $as_echo "$lt_cv_ld_force_load" >&6; }
8419 rhapsody* | darwin1.[012])
8420 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8422 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8423 darwin*) # darwin 5.x on
8424 # if running on 10.5 or later, the deployment target defaults
8425 # to the OS version, if on x86, and 10.4, the deployment
8426 # target defaults to 10.4. Don't you love it?
8427 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8428 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8429 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8431 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8433 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8437 if test yes = "$lt_cv_apple_cc_single_mod"; then
8438 _lt_dar_single_mod='$single_module'
8440 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8441 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8443 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8445 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8446 _lt_dsymutil='~$DSYMUTIL $lib || :'
8453 # func_munge_path_list VARIABLE PATH
8454 # -----------------------------------
8455 # VARIABLE is name of variable containing _space_ separated list of
8456 # directories to be munged by the contents of PATH, which is string
8459 # string "DIR[ DIR]" will be prepended to VARIABLE
8461 # string "DIR[ DIR]" will be appended to VARIABLE
8462 # "DIRP[:DIRP]::[DIRA:]DIRA"
8463 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8464 # "DIRA[ DIRA]" will be appended to VARIABLE
8466 # VARIABLE will be replaced by "DIR[ DIR]"
8467 func_munge_path_list ()
8473 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8476 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8479 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8480 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8483 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8488 for ac_header in dlfcn.h
8490 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8492 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8493 cat >>confdefs.h <<_ACEOF
8494 #define HAVE_DLFCN_H 1
8515 # Check whether --enable-shared was given.
8516 if test "${enable_shared+set}" = set; then :
8517 enableval=$enable_shared; p=${PACKAGE-default}
8519 yes) enable_shared=yes ;;
8520 no) enable_shared=no ;;
8523 # Look at the argument we got. We use all the common list separators.
8524 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8525 for pkg in $enableval; do
8527 if test "X$pkg" = "X$p"; then
8546 # Check whether --enable-static was given.
8547 if test "${enable_static+set}" = set; then :
8548 enableval=$enable_static; p=${PACKAGE-default}
8550 yes) enable_static=yes ;;
8551 no) enable_static=no ;;
8554 # Look at the argument we got. We use all the common list separators.
8555 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8556 for pkg in $enableval; do
8558 if test "X$pkg" = "X$p"; then
8578 # Check whether --with-pic was given.
8579 if test "${with_pic+set}" = set; then :
8580 withval=$with_pic; lt_p=${PACKAGE-default}
8582 yes|no) pic_mode=$withval ;;
8585 # Look at the argument we got. We use all the common list separators.
8586 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8587 for lt_pkg in $withval; do
8589 if test "X$lt_pkg" = "X$lt_p"; then
8607 # Check whether --enable-fast-install was given.
8608 if test "${enable_fast_install+set}" = set; then :
8609 enableval=$enable_fast_install; p=${PACKAGE-default}
8611 yes) enable_fast_install=yes ;;
8612 no) enable_fast_install=no ;;
8614 enable_fast_install=no
8615 # Look at the argument we got. We use all the common list separators.
8616 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8617 for pkg in $enableval; do
8619 if test "X$pkg" = "X$p"; then
8620 enable_fast_install=yes
8627 enable_fast_install=yes
8637 shared_archive_member_spec=
8638 case $host,$enable_shared in
8639 power*-*-aix[5-9]*,yes)
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8641 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8643 # Check whether --with-aix-soname was given.
8644 if test "${with_aix_soname+set}" = set; then :
8645 withval=$with_aix_soname; case $withval in
8649 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8652 lt_cv_with_aix_soname=$with_aix_soname
8654 if ${lt_cv_with_aix_soname+:} false; then :
8655 $as_echo_n "(cached) " >&6
8657 lt_cv_with_aix_soname=aix
8660 with_aix_soname=$lt_cv_with_aix_soname
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8664 $as_echo "$with_aix_soname" >&6; }
8665 if test aix != "$with_aix_soname"; then
8666 # For the AIX way of multilib, we name the shared archive member
8667 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8668 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8669 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8670 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8671 if test 64 = "${OBJECT_MODE-32}"; then
8672 shared_archive_member_spec=shr_64
8674 shared_archive_member_spec=shr
8692 # This can be used to rebuild libtool when needed
8693 LIBTOOL_DEPS=$ltmain
8695 # Always use our own libtool.
8696 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8727 test -z "$LN_S" && LN_S="ln -s"
8742 if test -n "${ZSH_VERSION+set}"; then
8743 setopt NO_GLOB_SUBST
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8747 $as_echo_n "checking for objdir... " >&6; }
8748 if ${lt_cv_objdir+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 rm -f .libs 2>/dev/null
8752 mkdir .libs 2>/dev/null
8753 if test -d .libs; then
8756 # MS-DOS does not allow filenames that begin with a dot.
8759 rmdir .libs 2>/dev/null
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8762 $as_echo "$lt_cv_objdir" >&6; }
8763 objdir=$lt_cv_objdir
8769 cat >>confdefs.h <<_ACEOF
8770 #define LT_OBJDIR "$lt_cv_objdir/"
8778 # AIX sometimes has problems with the GCC collect2 program. For some
8779 # reason, if we set the COLLECT_NAMES environment variable, the problems
8780 # vanish in a puff of smoke.
8781 if test set != "${COLLECT_NAMES+set}"; then
8783 export COLLECT_NAMES
8790 can_build_shared=yes
8792 # All known linkers require a '.a' archive for static linking (except MSVC and
8793 # ICC, which need '.lib').
8796 with_gnu_ld=$lt_cv_prog_gnu_ld
8801 # Set sane defaults for various variables
8802 test -z "$CC" && CC=cc
8803 test -z "$LTCC" && LTCC=$CC
8804 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8805 test -z "$LD" && LD=ld
8806 test -z "$ac_objext" && ac_objext=o
8808 func_cc_basename $compiler
8809 cc_basename=$func_cc_basename_result
8812 # Only perform the check for file, if the check method requires it
8813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8814 case $deplibs_check_method in
8816 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8818 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8819 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8820 $as_echo_n "(cached) " >&6
8824 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8827 lt_save_MAGIC_CMD=$MAGIC_CMD
8828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8829 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8830 for ac_dir in $ac_dummy; do
8832 test -z "$ac_dir" && ac_dir=.
8833 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8834 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8835 if test -n "$file_magic_test_file"; then
8836 case $deplibs_check_method in
8838 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8839 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8840 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8841 $EGREP "$file_magic_regex" > /dev/null; then
8846 *** Warning: the command libtool uses to detect shared libraries,
8847 *** $file_magic_cmd, produces output that libtool cannot recognize.
8848 *** The result is that libtool may fail to recognize shared libraries
8849 *** as such. This will affect the creation of libtool libraries that
8850 *** depend on shared libraries, but programs linked with such libtool
8851 *** libraries will work regardless of this problem. Nevertheless, you
8852 *** may want to report the problem to your system manager and/or to
8853 *** bug-libtool@gnu.org
8863 MAGIC_CMD=$lt_save_MAGIC_CMD
8868 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8869 if test -n "$MAGIC_CMD"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8871 $as_echo "$MAGIC_CMD" >&6; }
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8881 if test -z "$lt_cv_path_MAGIC_CMD"; then
8882 if test -n "$ac_tool_prefix"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8884 $as_echo_n "checking for file... " >&6; }
8885 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8886 $as_echo_n "(cached) " >&6
8890 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8893 lt_save_MAGIC_CMD=$MAGIC_CMD
8894 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8895 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8896 for ac_dir in $ac_dummy; do
8898 test -z "$ac_dir" && ac_dir=.
8899 if test -f "$ac_dir/file"; then
8900 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8901 if test -n "$file_magic_test_file"; then
8902 case $deplibs_check_method in
8904 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8905 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8906 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8907 $EGREP "$file_magic_regex" > /dev/null; then
8912 *** Warning: the command libtool uses to detect shared libraries,
8913 *** $file_magic_cmd, produces output that libtool cannot recognize.
8914 *** The result is that libtool may fail to recognize shared libraries
8915 *** as such. This will affect the creation of libtool libraries that
8916 *** depend on shared libraries, but programs linked with such libtool
8917 *** libraries will work regardless of this problem. Nevertheless, you
8918 *** may want to report the problem to your system manager and/or to
8919 *** bug-libtool@gnu.org
8929 MAGIC_CMD=$lt_save_MAGIC_CMD
8934 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8935 if test -n "$MAGIC_CMD"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8937 $as_echo "$MAGIC_CMD" >&6; }
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8953 # Use C for the default configuration in the libtool script
8957 ac_cpp='$CPP $CPPFLAGS'
8958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8963 # Source file extension for C test sources.
8966 # Object file extension for compiled C test sources.
8970 # Code to be used in simple compile tests
8971 lt_simple_compile_test_code="int some_variable = 0;"
8973 # Code to be used in simple link tests
8974 lt_simple_link_test_code='int main(){return(0);}'
8982 # If no C compiler was specified, use CC.
8985 # If no C compiler flags were specified, use CFLAGS.
8986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8988 # Allow CC to be a program name with arguments.
8991 # Save the default compiler, since it gets overwritten when the other
8992 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8993 compiler_DEFAULT=$CC
8995 # save warnings/boilerplate of simple test code
8996 ac_outfile=conftest.$ac_objext
8997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8999 _lt_compiler_boilerplate=`cat conftest.err`
9002 ac_outfile=conftest.$ac_objext
9003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9005 _lt_linker_boilerplate=`cat conftest.err`
9010 ## There is no encapsulation within the following macros, do not change
9011 ## the running order or otherwise move them around unless you know exactly
9012 ## what you are doing...
9013 if test -n "$compiler"; then
9015 lt_prog_compiler_no_builtin_flag=
9017 if test yes = "$GCC"; then
9018 case $cc_basename in
9020 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9022 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9026 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9027 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9028 $as_echo_n "(cached) " >&6
9030 lt_cv_prog_compiler_rtti_exceptions=no
9031 ac_outfile=conftest.$ac_objext
9032 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9033 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9034 # Insert the option either (1) after the last *FLAGS variable, or
9035 # (2) before a word containing "conftest.", or (3) at the end.
9036 # Note that $ac_compile itself does not contain backslashes and begins
9037 # with a dollar sign (not a hyphen), so the echo should work correctly.
9038 # The option is referenced via a variable to avoid confusing sed.
9039 lt_compile=`echo "$ac_compile" | $SED \
9040 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9041 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9042 -e 's:$: $lt_compiler_flag:'`
9043 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9044 (eval "$lt_compile" 2>conftest.err)
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 if (exit $ac_status) && test -s "$ac_outfile"; then
9049 # The compiler can only warn and ignore the option if not recognized
9050 # So say no if there are warnings other than the usual output.
9051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9053 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9054 lt_cv_prog_compiler_rtti_exceptions=yes
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9061 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9063 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9064 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9076 lt_prog_compiler_wl=
9077 lt_prog_compiler_pic=
9078 lt_prog_compiler_static=
9081 if test yes = "$GCC"; then
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_static='-static'
9087 # All AIX code is PIC.
9088 if test ia64 = "$host_cpu"; then
9089 # AIX 5 now supports IA64 processor
9090 lt_prog_compiler_static='-Bstatic'
9092 lt_prog_compiler_pic='-fPIC'
9098 # see comment about AmigaOS4 .so support
9099 lt_prog_compiler_pic='-fPIC'
9102 # FIXME: we need at least 68020 code to build shared libraries, but
9103 # adding the '-m68020' flag to GCC prevents building anything better,
9105 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9110 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9111 # PIC is the default for these OSes.
9114 mingw* | cygwin* | pw32* | os2* | cegcc*)
9115 # This hack is so that the source file can tell whether it is being
9116 # built for inclusion in a dll (and should export symbols for example).
9117 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9118 # (--disable-auto-import) libraries
9119 lt_prog_compiler_pic='-DDLL_EXPORT'
9122 lt_prog_compiler_static='$wl-static'
9127 darwin* | rhapsody*)
9128 # PIC is the default on this platform
9129 # Common symbols not allowed in MH_DYLIB files
9130 lt_prog_compiler_pic='-fno-common'
9134 # PIC is the default for Haiku.
9135 # The "-static" flag exists, but is broken.
9136 lt_prog_compiler_static=
9140 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9141 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9142 # sets the default TLS model and affects inlining.
9148 lt_prog_compiler_pic='-fPIC'
9154 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9155 # Instead, we relocate shared libraries at runtime.
9159 # Just because we use GCC doesn't mean we suddenly get shared libraries
9160 # on systems that don't support them.
9161 lt_prog_compiler_can_build_shared=no
9166 # QNX uses GNU C++, but need to define -shared option too, otherwise
9168 lt_prog_compiler_pic='-fPIC -shared'
9172 if test -d /usr/nec; then
9173 lt_prog_compiler_pic=-Kconform_pic
9178 lt_prog_compiler_pic='-fPIC'
9182 case $cc_basename in
9183 nvcc*) # Cuda Compiler Driver 2.2
9184 lt_prog_compiler_wl='-Xlinker '
9185 if test -n "$lt_prog_compiler_pic"; then
9186 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9191 # PORTME Check for flag to pass linker flags through the system compiler.
9194 lt_prog_compiler_wl='-Wl,'
9195 if test ia64 = "$host_cpu"; then
9196 # AIX 5 now supports IA64 processor
9197 lt_prog_compiler_static='-Bstatic'
9199 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9203 darwin* | rhapsody*)
9204 # PIC is the default on this platform
9205 # Common symbols not allowed in MH_DYLIB files
9206 lt_prog_compiler_pic='-fno-common'
9207 case $cc_basename in
9209 # NAG Fortran compiler
9210 lt_prog_compiler_wl='-Wl,-Wl,,'
9211 lt_prog_compiler_pic='-PIC'
9212 lt_prog_compiler_static='-Bstatic'
9217 mingw* | cygwin* | pw32* | os2* | cegcc*)
9218 # This hack is so that the source file can tell whether it is being
9219 # built for inclusion in a dll (and should export symbols for example).
9220 lt_prog_compiler_pic='-DDLL_EXPORT'
9223 lt_prog_compiler_static='$wl-static'
9228 hpux9* | hpux10* | hpux11*)
9229 lt_prog_compiler_wl='-Wl,'
9230 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9237 lt_prog_compiler_pic='+Z'
9240 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9241 lt_prog_compiler_static='$wl-a ${wl}archive'
9244 irix5* | irix6* | nonstopux*)
9245 lt_prog_compiler_wl='-Wl,'
9246 # PIC (with -KPIC) is the default.
9247 lt_prog_compiler_static='-non_shared'
9250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9251 case $cc_basename in
9252 # old Intel for x86_64, which still supported -KPIC.
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='-KPIC'
9256 lt_prog_compiler_static='-static'
9258 # icc used to be incompatible with GCC.
9259 # ICC 10 doesn't accept -KPIC any more.
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-fPIC'
9263 lt_prog_compiler_static='-static'
9265 # Lahey Fortran 8.1.
9267 lt_prog_compiler_wl='-Wl,'
9268 lt_prog_compiler_pic='--shared'
9269 lt_prog_compiler_static='--static'
9272 # NAG Fortran compiler
9273 lt_prog_compiler_wl='-Wl,-Wl,,'
9274 lt_prog_compiler_pic='-PIC'
9275 lt_prog_compiler_static='-Bstatic'
9278 # Fabrice Bellard et al's Tiny C Compiler
9279 lt_prog_compiler_wl='-Wl,'
9280 lt_prog_compiler_pic='-fPIC'
9281 lt_prog_compiler_static='-static'
9283 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9284 # Portland Group compilers (*not* the Pentium gcc compiler,
9285 # which looks to be a dead project)
9286 lt_prog_compiler_wl='-Wl,'
9287 lt_prog_compiler_pic='-fpic'
9288 lt_prog_compiler_static='-Bstatic'
9291 lt_prog_compiler_wl='-Wl,'
9292 # All Alpha code is PIC.
9293 lt_prog_compiler_static='-non_shared'
9295 xl* | bgxl* | bgf* | mpixl*)
9296 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_pic='-qpic'
9299 lt_prog_compiler_static='-qstaticlink'
9302 case `$CC -V 2>&1 | sed 5q` in
9303 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9304 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9305 lt_prog_compiler_pic='-KPIC'
9306 lt_prog_compiler_static='-Bstatic'
9307 lt_prog_compiler_wl=''
9309 *Sun\ F* | *Sun*Fortran*)
9310 lt_prog_compiler_pic='-KPIC'
9311 lt_prog_compiler_static='-Bstatic'
9312 lt_prog_compiler_wl='-Qoption ld '
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9318 lt_prog_compiler_wl='-Wl,'
9320 *Intel*\ [CF]*Compiler*)
9321 lt_prog_compiler_wl='-Wl,'
9322 lt_prog_compiler_pic='-fPIC'
9323 lt_prog_compiler_static='-static'
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='-fpic'
9328 lt_prog_compiler_static='-Bstatic'
9336 lt_prog_compiler_pic='-KPIC'
9337 lt_prog_compiler_static='-Bstatic'
9341 # QNX uses GNU C++, but need to define -shared option too, otherwise
9343 lt_prog_compiler_pic='-fPIC -shared'
9346 osf3* | osf4* | osf5*)
9347 lt_prog_compiler_wl='-Wl,'
9348 # All OSF/1 code is PIC.
9349 lt_prog_compiler_static='-non_shared'
9353 lt_prog_compiler_static='-non_shared'
9357 lt_prog_compiler_pic='-KPIC'
9358 lt_prog_compiler_static='-Bstatic'
9359 case $cc_basename in
9360 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9361 lt_prog_compiler_wl='-Qoption ld ';;
9363 lt_prog_compiler_wl='-Wl,';;
9368 lt_prog_compiler_wl='-Qoption ld '
9369 lt_prog_compiler_pic='-PIC'
9370 lt_prog_compiler_static='-Bstatic'
9373 sysv4 | sysv4.2uw2* | sysv4.3*)
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9380 if test -d /usr/nec; then
9381 lt_prog_compiler_pic='-Kconform_pic'
9382 lt_prog_compiler_static='-Bstatic'
9386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9387 lt_prog_compiler_wl='-Wl,'
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9393 lt_prog_compiler_wl='-Wl,'
9394 lt_prog_compiler_can_build_shared=no
9398 lt_prog_compiler_pic='-pic'
9399 lt_prog_compiler_static='-Bstatic'
9403 lt_prog_compiler_can_build_shared=no
9409 # For platforms that do not support PIC, -DPIC is meaningless:
9411 lt_prog_compiler_pic=
9414 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9419 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9420 if ${lt_cv_prog_compiler_pic+:} false; then :
9421 $as_echo_n "(cached) " >&6
9423 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9426 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9427 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9430 # Check to make sure the PIC flag actually works.
9432 if test -n "$lt_prog_compiler_pic"; then
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9434 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9435 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9436 $as_echo_n "(cached) " >&6
9438 lt_cv_prog_compiler_pic_works=no
9439 ac_outfile=conftest.$ac_objext
9440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9441 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9442 # Insert the option either (1) after the last *FLAGS variable, or
9443 # (2) before a word containing "conftest.", or (3) at the end.
9444 # Note that $ac_compile itself does not contain backslashes and begins
9445 # with a dollar sign (not a hyphen), so the echo should work correctly.
9446 # The option is referenced via a variable to avoid confusing sed.
9447 lt_compile=`echo "$ac_compile" | $SED \
9448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9450 -e 's:$: $lt_compiler_flag:'`
9451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9452 (eval "$lt_compile" 2>conftest.err)
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 if (exit $ac_status) && test -s "$ac_outfile"; then
9457 # The compiler can only warn and ignore the option if not recognized
9458 # So say no if there are warnings other than the usual output.
9459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9462 lt_cv_prog_compiler_pic_works=yes
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9469 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9471 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9472 case $lt_prog_compiler_pic in
9474 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9477 lt_prog_compiler_pic=
9478 lt_prog_compiler_can_build_shared=no
9494 # Check to make sure the static flag actually works.
9496 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9498 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9499 if ${lt_cv_prog_compiler_static_works+:} false; then :
9500 $as_echo_n "(cached) " >&6
9502 lt_cv_prog_compiler_static_works=no
9503 save_LDFLAGS=$LDFLAGS
9504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9505 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9507 # The linker can only warn and ignore the option if not recognized
9508 # So say no if there are warnings
9509 if test -s conftest.err; then
9510 # Append any errors to the config.log.
9511 cat conftest.err 1>&5
9512 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9514 if diff conftest.exp conftest.er2 >/dev/null; then
9515 lt_cv_prog_compiler_static_works=yes
9518 lt_cv_prog_compiler_static_works=yes
9522 LDFLAGS=$save_LDFLAGS
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9526 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9528 if test yes = "$lt_cv_prog_compiler_static_works"; then
9531 lt_prog_compiler_static=
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9541 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9542 if ${lt_cv_prog_compiler_c_o+:} false; then :
9543 $as_echo_n "(cached) " >&6
9545 lt_cv_prog_compiler_c_o=no
9546 $RM -r conftest 2>/dev/null
9550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9552 lt_compiler_flag="-o out/conftest2.$ac_objext"
9553 # Insert the option either (1) after the last *FLAGS variable, or
9554 # (2) before a word containing "conftest.", or (3) at the end.
9555 # Note that $ac_compile itself does not contain backslashes and begins
9556 # with a dollar sign (not a hyphen), so the echo should work correctly.
9557 lt_compile=`echo "$ac_compile" | $SED \
9558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9560 -e 's:$: $lt_compiler_flag:'`
9561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9562 (eval "$lt_compile" 2>out/conftest.err)
9564 cat out/conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9568 # The compiler can only warn and ignore the option if not recognized
9569 # So say no if there are warnings
9570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9571 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9572 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9573 lt_cv_prog_compiler_c_o=yes
9578 # SGI C++ compiler will create directory out/ii_files/ for
9579 # template instantiation
9580 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9581 $RM out/* && rmdir out
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9588 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9596 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9597 if ${lt_cv_prog_compiler_c_o+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 lt_cv_prog_compiler_c_o=no
9601 $RM -r conftest 2>/dev/null
9605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9607 lt_compiler_flag="-o out/conftest2.$ac_objext"
9608 # Insert the option either (1) after the last *FLAGS variable, or
9609 # (2) before a word containing "conftest.", or (3) at the end.
9610 # Note that $ac_compile itself does not contain backslashes and begins
9611 # with a dollar sign (not a hyphen), so the echo should work correctly.
9612 lt_compile=`echo "$ac_compile" | $SED \
9613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9615 -e 's:$: $lt_compiler_flag:'`
9616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9617 (eval "$lt_compile" 2>out/conftest.err)
9619 cat out/conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9623 # The compiler can only warn and ignore the option if not recognized
9624 # So say no if there are warnings
9625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9628 lt_cv_prog_compiler_c_o=yes
9633 # SGI C++ compiler will create directory out/ii_files/ for
9634 # template instantiation
9635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9636 $RM out/* && rmdir out
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9643 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9648 hard_links=nottested
9649 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9650 # do not overwrite the value of need_locks provided by the user
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9652 $as_echo_n "checking if we can lock with hard links... " >&6; }
9655 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657 ln conftest.a conftest.b 2>&5 || hard_links=no
9658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9660 $as_echo "$hard_links" >&6; }
9661 if test no = "$hard_links"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9663 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9676 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9679 allow_undefined_flag=
9680 always_export_symbols=no
9682 archive_expsym_cmds=
9683 compiler_needs_object=no
9684 enable_shared_with_static_runtimes=no
9685 export_dynamic_flag_spec=
9686 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9687 hardcode_automatic=no
9689 hardcode_direct_absolute=no
9690 hardcode_libdir_flag_spec=
9691 hardcode_libdir_separator=
9693 hardcode_shlibpath_var=unsupported
9695 link_all_deplibs=unknown
9698 old_archive_from_new_cmds=
9699 old_archive_from_expsyms_cmds=
9700 thread_safe_flag_spec=
9701 whole_archive_flag_spec=
9702 # include_expsyms should be a list of space-separated symbols to be *always*
9703 # included in the symbol list
9705 # exclude_expsyms can be an extended regexp of symbols to exclude
9706 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9707 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9708 # as well as any symbol that contains 'd'.
9709 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9711 # platforms (ab)use it in PIC code, but their linkers get confused if
9712 # the symbol is explicitly referenced. Since portable code cannot
9713 # rely on this symbol name, it's probably fine to never include it in
9714 # preloaded symbol tables.
9715 # Exclude shared library initialization/finalization symbols.
9716 extract_expsyms_cmds=
9719 cygwin* | mingw* | pw32* | cegcc*)
9720 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9721 # When not using gcc, we currently assume that we are using
9722 # Microsoft Visual C++ or Intel C++ Compiler.
9723 if test yes != "$GCC"; then
9728 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9738 # On some targets, GNU ld is compatible enough with the native linker
9739 # that we're better off using the native interface for both.
9740 lt_use_gnu_ld_interface=no
9741 if test yes = "$with_gnu_ld"; then
9744 # The AIX port of GNU ld has always aspired to compatibility
9745 # with the native linker. However, as the warning in the GNU ld
9746 # block says, versions before 2.19.5* couldn't really create working
9747 # shared libraries, regardless of the interface used.
9748 case `$LD -v 2>&1` in
9749 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9750 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9751 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9753 lt_use_gnu_ld_interface=yes
9758 lt_use_gnu_ld_interface=yes
9763 if test yes = "$lt_use_gnu_ld_interface"; then
9764 # If archive_cmds runs LD, not CC, wlarc should be empty
9767 # Set some defaults for GNU ld with shared library support. These
9768 # are reset later if shared libraries are not supported. Putting them
9769 # here allows them to be overridden if necessary.
9770 runpath_var=LD_RUN_PATH
9771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9772 export_dynamic_flag_spec='$wl--export-dynamic'
9773 # ancient GNU ld didn't support --whole-archive et. al.
9774 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9775 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9777 whole_archive_flag_spec=
9779 supports_anon_versioning=no
9780 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9781 *GNU\ gold*) supports_anon_versioning=yes ;;
9782 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9783 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9784 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9785 *\ 2.11.*) ;; # other 2.11 versions
9786 *) supports_anon_versioning=yes ;;
9789 # See if GNU ld supports shared libraries.
9792 # On AIX/PPC, the GNU linker is very broken
9793 if test ia64 != "$host_cpu"; then
9797 *** Warning: the GNU linker, at least up to release 2.19, is reported
9798 *** to be unable to reliably create shared libraries on AIX.
9799 *** Therefore, libtool is disabling shared libraries support. If you
9800 *** really care for shared libraries, you may want to install binutils
9801 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9802 *** You will then need to restart the configuration process.
9811 # see comment about AmigaOS4 .so support
9812 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9813 archive_expsym_cmds=''
9816 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)'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_minus_L=yes
9824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825 allow_undefined_flag=unsupported
9826 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9827 # support --undefined. This deserves some investigation. FIXME
9828 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9834 cygwin* | mingw* | pw32* | cegcc*)
9835 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9836 # as there is no search path for DLLs.
9837 hardcode_libdir_flag_spec='-L$libdir'
9838 export_dynamic_flag_spec='$wl--export-all-symbols'
9839 allow_undefined_flag=unsupported
9840 always_export_symbols=no
9841 enable_shared_with_static_runtimes=yes
9842 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'
9843 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9845 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9846 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9847 # If the export-symbols file already is a .def file, use it as
9848 # is; otherwise, prepend EXPORTS...
9849 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9850 cp $export_symbols $output_objdir/$soname.def;
9852 echo EXPORTS > $output_objdir/$soname.def;
9853 cat $export_symbols >> $output_objdir/$soname.def;
9855 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9863 link_all_deplibs=yes
9867 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_minus_L=yes
9869 allow_undefined_flag=unsupported
9871 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9874 $ECHO EXPORTS >> $output_objdir/$libname.def~
9875 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9876 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9877 emximp -o $lib $output_objdir/$libname.def'
9878 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9879 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9880 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9881 $ECHO EXPORTS >> $output_objdir/$libname.def~
9883 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9884 prefix_cmds="$prefix_cmds -e 1d";
9886 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9887 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9888 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9889 emximp -o $lib $output_objdir/$libname.def'
9890 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9891 enable_shared_with_static_runtimes=yes
9897 hardcode_shlibpath_var=no
9898 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9899 export_dynamic_flag_spec='$wl-E'
9900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9901 # Instead, shared libraries are loaded at an image base (0x10000000 by
9902 # default) and relocated if they conflict, which is a slow very memory
9903 # consuming and fragmenting process. To avoid this, we pick a random,
9904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9907 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'
9910 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9912 if test linux-dietlibc = "$host_os"; then
9913 case $cc_basename in
9914 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9917 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9918 && test no = "$tmp_diet"
9920 tmp_addflag=' $pic_flag'
9921 tmp_sharedflag='-shared'
9922 case $cc_basename,$host_cpu in
9923 pgcc*) # Portland Group C compiler
9924 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'
9925 tmp_addflag=' $pic_flag'
9927 pgf77* | pgf90* | pgf95* | pgfortran*)
9928 # Portland Group f77 and f90 compilers
9929 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'
9930 tmp_addflag=' $pic_flag -Mnomain' ;;
9931 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9932 tmp_addflag=' -i_dynamic' ;;
9933 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9934 tmp_addflag=' -i_dynamic -nofor_main' ;;
9935 ifc* | ifort*) # Intel Fortran compiler
9936 tmp_addflag=' -nofor_main' ;;
9937 lf95*) # Lahey Fortran 8.1
9938 whole_archive_flag_spec=
9939 tmp_sharedflag='--shared' ;;
9940 nagfor*) # NAGFOR 5.3
9941 tmp_sharedflag='-Wl,-shared' ;;
9942 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9943 tmp_sharedflag='-qmkshrobj'
9945 nvcc*) # Cuda Compiler Driver 2.2
9946 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'
9947 compiler_needs_object=yes
9950 case `$CC -V 2>&1 | sed 5q` in
9951 *Sun\ C*) # Sun C 5.9
9952 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'
9953 compiler_needs_object=yes
9954 tmp_sharedflag='-G' ;;
9955 *Sun\ F*) # Sun Fortran 8.3
9956 tmp_sharedflag='-G' ;;
9958 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9960 if test yes = "$supports_anon_versioning"; then
9961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9963 echo "local: *; };" >> $output_objdir/$libname.ver~
9964 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9967 case $cc_basename in
9969 export_dynamic_flag_spec='-rdynamic'
9971 xlf* | bgf* | bgxlf* | mpixlf*)
9972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9975 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9976 if test yes = "$supports_anon_versioning"; then
9977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9979 echo "local: *; };" >> $output_objdir/$libname.ver~
9980 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9991 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10000 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10005 *** create shared libraries on Solaris systems. Therefore, libtool
10006 *** is disabling shared libraries support. We urge you to upgrade GNU
10007 *** binutils to release 2.9.1 or newer. Another option is to modify
10008 *** your PATH or compiler configuration so that the native linker is
10009 *** used, and then restart.
10012 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10014 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10021 case `$LD -v 2>&1` in
10022 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10026 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10027 *** reliably create shared libraries on SCO systems. Therefore, libtool
10028 *** is disabling shared libraries support. We urge you to upgrade GNU
10029 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10030 *** your PATH or compiler configuration so that the native linker is
10031 *** used, and then restart.
10036 # For security reasons, it is highly recommended that you always
10037 # use absolute paths for naming shared libraries, and exclude the
10038 # DT_RUNPATH tag from executables and libraries. But doing so
10039 # requires that you compile everything twice, which is a pain.
10040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10041 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10052 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10061 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10068 if test no = "$ld_shlibs"; then
10070 hardcode_libdir_flag_spec=
10071 export_dynamic_flag_spec=
10072 whole_archive_flag_spec=
10075 # PORTME fill in a description of your system's linker (not GNU ld)
10078 allow_undefined_flag=unsupported
10079 always_export_symbols=yes
10080 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'
10081 # Note: this linker hardcodes the directories in LIBPATH if there
10082 # are no directories specified by -L.
10083 hardcode_minus_L=yes
10084 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10085 # Neither direct hardcoding nor static linking is supported with a
10087 hardcode_direct=unsupported
10092 if test ia64 = "$host_cpu"; then
10093 # On IA64, the linker does run time linking by default, so we don't
10094 # have to do anything special.
10095 aix_use_runtimelinking=no
10096 exp_sym_flag='-Bexport'
10099 # If we're using GNU nm, then we don't want the "-C" option.
10100 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10101 # Without the "-l" option, or with the "-B" option, AIX nm treats
10102 # weak defined symbols like other global defined symbols, whereas
10103 # GNU nm marks them as "W".
10104 # While the 'weak' keyword is ignored in the Export File, we need
10105 # it in the Import File for the 'aix-soname' feature, so we have
10106 # to replace the "-B" option with "-P" for AIX nm.
10107 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10108 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10110 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10112 aix_use_runtimelinking=no
10114 # Test if we are trying to use run time linking or normal
10115 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10116 # have runtime linking enabled, and use it for executables.
10117 # For shared libraries, we enable/disable runtime linking
10118 # depending on the kind of the shared library created -
10119 # when "with_aix_soname,aix_use_runtimelinking" is:
10120 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10121 # "aix,yes" lib.so shared, rtl:yes, for executables
10122 # lib.a static archive
10123 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10124 # lib.a(lib.so.V) shared, rtl:no, for executables
10125 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10126 # lib.a(lib.so.V) shared, rtl:no
10127 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10128 # lib.a static archive
10129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10130 for ld_flag in $LDFLAGS; do
10131 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10132 aix_use_runtimelinking=yes
10136 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10137 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10138 # so we don't have lib.a shared libs to link our executables.
10139 # We have to force runtime linking in this case.
10140 aix_use_runtimelinking=yes
10141 LDFLAGS="$LDFLAGS -Wl,-brtl"
10146 exp_sym_flag='-bexport'
10147 no_entry_flag='-bnoentry'
10150 # When large executables or shared objects are built, AIX ld can
10151 # have problems creating the table of contents. If linking a library
10152 # or program results in "error TOC overflow" add -mminimal-toc to
10153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10157 hardcode_direct=yes
10158 hardcode_direct_absolute=yes
10159 hardcode_libdir_separator=':'
10160 link_all_deplibs=yes
10161 file_list_spec='$wl-f,'
10162 case $with_aix_soname,$aix_use_runtimelinking in
10163 aix,*) ;; # traditional, no import file
10164 svr4,* | *,yes) # use import file
10165 # The Import File defines what to hardcode.
10167 hardcode_direct_absolute=no
10171 if test yes = "$GCC"; then
10172 case $host_os in aix4.[012]|aix4.[012].*)
10173 # We only want to do this on AIX 4.2 and lower, the check
10174 # below for broken collect2 doesn't work under 4.3+
10175 collect2name=`$CC -print-prog-name=collect2`
10176 if test -f "$collect2name" &&
10177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10179 # We have reworked collect2
10182 # We have old collect2
10183 hardcode_direct=unsupported
10184 # It fails to find uninstalled libraries when the uninstalled
10185 # path is not listed in the libpath. Setting hardcode_minus_L
10186 # to unsupported forces relinking
10187 hardcode_minus_L=yes
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_libdir_separator=
10193 shared_flag='-shared'
10194 if test yes = "$aix_use_runtimelinking"; then
10195 shared_flag="$shared_flag "'$wl-G'
10197 # Need to ensure runtime linking is disabled for the traditional
10198 # shared library, or the linker may eventually find shared libraries
10199 # /with/ Import File - we do not want to mix them.
10200 shared_flag_aix='-shared'
10201 shared_flag_svr4='-shared $wl-G'
10204 if test ia64 = "$host_cpu"; then
10205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10206 # chokes on -Wl,-G. The following line is correct:
10209 if test yes = "$aix_use_runtimelinking"; then
10210 shared_flag='$wl-G'
10212 shared_flag='$wl-bM:SRE'
10214 shared_flag_aix='$wl-bM:SRE'
10215 shared_flag_svr4='$wl-G'
10219 export_dynamic_flag_spec='$wl-bexpall'
10220 # It seems that -bexpall does not export symbols beginning with
10221 # underscore (_), so it is better to generate a list of symbols to export.
10222 always_export_symbols=yes
10223 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10224 # Warning - without using the other runtime loading flags (-brtl),
10225 # -berok will link without error, but may produce a broken library.
10226 allow_undefined_flag='-berok'
10227 # Determine the default libpath from the value encoded in an
10228 # empty executable.
10229 if test set = "${lt_cv_aix_libpath+set}"; then
10230 aix_libpath=$lt_cv_aix_libpath
10232 if ${lt_cv_aix_libpath_+:} false; then :
10233 $as_echo_n "(cached) " >&6
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236 /* end confdefs.h. */
10246 if ac_fn_c_try_link "$LINENO"; then :
10248 lt_aix_libpath_sed='
10249 /Import File Strings/,/^$/ {
10251 s/^0 *\([^ ]*\) *$/\1/
10255 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10256 # Check for a 64-bit object if we didn't find anything.
10257 if test -z "$lt_cv_aix_libpath_"; then
10258 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10261 rm -f core conftest.err conftest.$ac_objext \
10262 conftest$ac_exeext conftest.$ac_ext
10263 if test -z "$lt_cv_aix_libpath_"; then
10264 lt_cv_aix_libpath_=/usr/lib:/lib
10269 aix_libpath=$lt_cv_aix_libpath_
10272 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10273 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10275 if test ia64 = "$host_cpu"; then
10276 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10277 allow_undefined_flag="-z nodefs"
10278 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"
10280 # Determine the default libpath from the value encoded in an
10281 # empty executable.
10282 if test set = "${lt_cv_aix_libpath+set}"; then
10283 aix_libpath=$lt_cv_aix_libpath
10285 if ${lt_cv_aix_libpath_+:} false; then :
10286 $as_echo_n "(cached) " >&6
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10299 if ac_fn_c_try_link "$LINENO"; then :
10301 lt_aix_libpath_sed='
10302 /Import File Strings/,/^$/ {
10304 s/^0 *\([^ ]*\) *$/\1/
10308 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10309 # Check for a 64-bit object if we didn't find anything.
10310 if test -z "$lt_cv_aix_libpath_"; then
10311 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 if test -z "$lt_cv_aix_libpath_"; then
10317 lt_cv_aix_libpath_=/usr/lib:/lib
10322 aix_libpath=$lt_cv_aix_libpath_
10325 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10326 # Warning - without using the other run time loading flags,
10327 # -berok will link without error, but may produce a broken library.
10328 no_undefined_flag=' $wl-bernotok'
10329 allow_undefined_flag=' $wl-berok'
10330 if test yes = "$with_gnu_ld"; then
10331 # We only use this code for GNU lds that support --whole-archive.
10332 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10334 # Exported symbols can be pulled into shared objects from archives
10335 whole_archive_flag_spec='$convenience'
10337 archive_cmds_need_lc=yes
10338 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10339 # -brtl affects multiple linker settings, -berok does not and is overridden later
10340 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10341 if test svr4 != "$with_aix_soname"; then
10342 # This is similar to how AIX traditionally builds its shared libraries.
10343 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10345 if test aix != "$with_aix_soname"; then
10346 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10348 # used by -dlpreopen to get the symbols
10349 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10351 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10359 # see comment about AmigaOS4 .so support
10360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10361 archive_expsym_cmds=''
10364 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)'
10365 hardcode_libdir_flag_spec='-L$libdir'
10366 hardcode_minus_L=yes
10372 export_dynamic_flag_spec=-rdynamic
10375 cygwin* | mingw* | pw32* | cegcc*)
10376 # When not using gcc, we currently assume that we are using
10377 # Microsoft Visual C++ or Intel C++ Compiler.
10378 # hardcode_libdir_flag_spec is actually meaningless, as there is
10379 # no search path for DLLs.
10380 case $cc_basename in
10382 # Native MSVC or ICC
10383 hardcode_libdir_flag_spec=' '
10384 allow_undefined_flag=unsupported
10385 always_export_symbols=yes
10387 # Tell ltmain to make .lib files, not .a files.
10389 # Tell ltmain to make .dll files, not .so files.
10391 # FIXME: Setting linknames here is a bad hack.
10392 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10393 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10394 cp "$export_symbols" "$output_objdir/$soname.def";
10395 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10397 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10401 # The linker will not automatically build a static lib if we build a DLL.
10402 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10403 enable_shared_with_static_runtimes=yes
10404 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10407 old_postinstall_cmds='chmod 644 $oldlib'
10408 postlink_cmds='lt_outputfile="@OUTPUT@"~
10409 lt_tool_outputfile="@TOOL_OUTPUT@"~
10410 case $lt_outputfile in
10413 lt_outputfile=$lt_outputfile.exe
10414 lt_tool_outputfile=$lt_tool_outputfile.exe
10417 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10419 $RM "$lt_outputfile.manifest";
10423 # Assume MSVC and ICC wrapper
10424 hardcode_libdir_flag_spec=' '
10425 allow_undefined_flag=unsupported
10426 # Tell ltmain to make .lib files, not .a files.
10428 # Tell ltmain to make .dll files, not .so files.
10430 # FIXME: Setting linknames here is a bad hack.
10431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10432 # The linker will automatically build a .lib file if we build a DLL.
10433 old_archive_from_new_cmds='true'
10434 # FIXME: Should let the user specify the lib program.
10435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10436 enable_shared_with_static_runtimes=yes
10441 darwin* | rhapsody*)
10444 archive_cmds_need_lc=no
10446 hardcode_automatic=yes
10447 hardcode_shlibpath_var=unsupported
10448 if test yes = "$lt_cv_ld_force_load"; then
10449 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\"`'
10452 whole_archive_flag_spec=''
10454 link_all_deplibs=yes
10455 allow_undefined_flag=$_lt_dar_allow_undefined
10456 case $cc_basename in
10457 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10458 *) _lt_dar_can_shared=$GCC ;;
10460 if test yes = "$_lt_dar_can_shared"; then
10461 output_verbose_link_cmd=func_echo_all
10462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10464 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"
10465 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"
10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10475 hardcode_libdir_flag_spec='-L$libdir'
10476 hardcode_shlibpath_var=no
10479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10480 # support. Future versions do this automatically, but an explicit c++rt0.o
10481 # does not break anything, and helps significantly (at the cost of a little
10484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10485 hardcode_libdir_flag_spec='-R$libdir'
10486 hardcode_direct=yes
10487 hardcode_shlibpath_var=no
10490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493 hardcode_direct=yes
10494 hardcode_minus_L=yes
10495 hardcode_shlibpath_var=no
10498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10499 freebsd* | dragonfly*)
10500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10501 hardcode_libdir_flag_spec='-R$libdir'
10502 hardcode_direct=yes
10503 hardcode_shlibpath_var=no
10507 if test yes = "$GCC"; then
10508 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10510 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10512 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10513 hardcode_libdir_separator=:
10514 hardcode_direct=yes
10516 # hardcode_minus_L: Not really in the search PATH,
10517 # but as the default location of the library.
10518 hardcode_minus_L=yes
10519 export_dynamic_flag_spec='$wl-E'
10523 if test yes,no = "$GCC,$with_gnu_ld"; then
10524 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10528 if test no = "$with_gnu_ld"; then
10529 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10530 hardcode_libdir_separator=:
10531 hardcode_direct=yes
10532 hardcode_direct_absolute=yes
10533 export_dynamic_flag_spec='$wl-E'
10534 # hardcode_minus_L: Not really in the search PATH,
10535 # but as the default location of the library.
10536 hardcode_minus_L=yes
10541 if test yes,no = "$GCC,$with_gnu_ld"; then
10544 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10547 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10563 # Older versions of the 11.00 compiler do not understand -b yet
10564 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10566 $as_echo_n "checking if $CC understands -b... " >&6; }
10567 if ${lt_cv_prog_compiler__b+:} false; then :
10568 $as_echo_n "(cached) " >&6
10570 lt_cv_prog_compiler__b=no
10571 save_LDFLAGS=$LDFLAGS
10572 LDFLAGS="$LDFLAGS -b"
10573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10575 # The linker can only warn and ignore the option if not recognized
10576 # So say no if there are warnings
10577 if test -s conftest.err; then
10578 # Append any errors to the config.log.
10579 cat conftest.err 1>&5
10580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10582 if diff conftest.exp conftest.er2 >/dev/null; then
10583 lt_cv_prog_compiler__b=yes
10586 lt_cv_prog_compiler__b=yes
10590 LDFLAGS=$save_LDFLAGS
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10596 if test yes = "$lt_cv_prog_compiler__b"; then
10597 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10605 if test no = "$with_gnu_ld"; then
10606 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10607 hardcode_libdir_separator=:
10612 hardcode_shlibpath_var=no
10615 hardcode_direct=yes
10616 hardcode_direct_absolute=yes
10617 export_dynamic_flag_spec='$wl-E'
10619 # hardcode_minus_L: Not really in the search PATH,
10620 # but as the default location of the library.
10621 hardcode_minus_L=yes
10627 irix5* | irix6* | nonstopux*)
10628 if test yes = "$GCC"; then
10629 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'
10630 # Try to use the -exported_symbol ld option, if it does not
10631 # work, assume that -exports_file does not work either and
10632 # implicitly export all symbols.
10633 # This should be the same for all languages, so no per-tag cache variable.
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10636 if ${lt_cv_irix_exported_symbol+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 save_LDFLAGS=$LDFLAGS
10640 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 int foo (void) { return 0; }
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 lt_cv_irix_exported_symbol=yes
10648 lt_cv_irix_exported_symbol=no
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LDFLAGS=$save_LDFLAGS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10656 if test yes = "$lt_cv_irix_exported_symbol"; then
10657 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'
10660 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'
10661 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'
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10665 hardcode_libdir_separator=:
10667 link_all_deplibs=yes
10671 case $cc_basename in
10673 # Fabrice Bellard et al's Tiny C Compiler
10675 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10682 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10684 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10686 hardcode_libdir_flag_spec='-R$libdir'
10687 hardcode_direct=yes
10688 hardcode_shlibpath_var=no
10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 hardcode_direct=yes
10694 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10695 hardcode_libdir_separator=:
10696 hardcode_shlibpath_var=no
10702 openbsd* | bitrig*)
10703 if test -f /usr/libexec/ld.so; then
10704 hardcode_direct=yes
10705 hardcode_shlibpath_var=no
10706 hardcode_direct_absolute=yes
10707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10708 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10710 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10711 export_dynamic_flag_spec='$wl-E'
10713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10714 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10722 hardcode_libdir_flag_spec='-L$libdir'
10723 hardcode_minus_L=yes
10724 allow_undefined_flag=unsupported
10726 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10727 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10728 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10729 $ECHO EXPORTS >> $output_objdir/$libname.def~
10730 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10731 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10732 emximp -o $lib $output_objdir/$libname.def'
10733 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10734 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10735 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10736 $ECHO EXPORTS >> $output_objdir/$libname.def~
10737 prefix_cmds="$SED"~
10738 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10739 prefix_cmds="$prefix_cmds -e 1d";
10741 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10742 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744 emximp -o $lib $output_objdir/$libname.def'
10745 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10746 enable_shared_with_static_runtimes=yes
10751 if test yes = "$GCC"; then
10752 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10753 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'
10755 allow_undefined_flag=' -expect_unresolved \*'
10756 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'
10758 archive_cmds_need_lc='no'
10759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10760 hardcode_libdir_separator=:
10763 osf4* | osf5*) # as osf3* with the addition of -msym flag
10764 if test yes = "$GCC"; then
10765 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10766 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'
10767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10769 allow_undefined_flag=' -expect_unresolved \*'
10770 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'
10771 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~
10772 $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'
10774 # Both c and cxx compiler support -rpath directly
10775 hardcode_libdir_flag_spec='-rpath $libdir'
10777 archive_cmds_need_lc='no'
10778 hardcode_libdir_separator=:
10782 no_undefined_flag=' -z defs'
10783 if test yes = "$GCC"; then
10785 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10787 $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'
10789 case `$CC -V 2>&1` in
10792 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10794 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10798 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10800 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10804 hardcode_libdir_flag_spec='-R$libdir'
10805 hardcode_shlibpath_var=no
10807 solaris2.[0-5] | solaris2.[0-5].*) ;;
10809 # The compiler driver will combine and reorder linker options,
10810 # but understands '-z linker_flag'. GCC discards it without '$wl',
10811 # but is careful enough not to reorder.
10812 # Supported since Solaris 2.6 (maybe 2.5.1?)
10813 if test yes = "$GCC"; then
10814 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10816 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10820 link_all_deplibs=yes
10824 if test sequent = "$host_vendor"; then
10825 # Use $CC to link under sequent, because it throws in some extra .o
10826 # files that make .init and .fini sections work.
10827 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10829 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10831 hardcode_libdir_flag_spec='-L$libdir'
10832 hardcode_direct=yes
10833 hardcode_minus_L=yes
10834 hardcode_shlibpath_var=no
10838 case $host_vendor in
10840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_direct=yes # is this really true???
10844 ## LD is ld it makes a PLAMLIB
10845 ## CC just makes a GrossModule.
10846 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10847 reload_cmds='$CC -r -o $output$reload_objs'
10851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10852 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10855 runpath_var='LD_RUN_PATH'
10856 hardcode_shlibpath_var=no
10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861 hardcode_shlibpath_var=no
10862 export_dynamic_flag_spec='-Bexport'
10866 if test -d /usr/nec; then
10867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10868 hardcode_shlibpath_var=no
10869 runpath_var=LD_RUN_PATH
10870 hardcode_runpath_var=yes
10875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10876 no_undefined_flag='$wl-z,text'
10877 archive_cmds_need_lc=no
10878 hardcode_shlibpath_var=no
10879 runpath_var='LD_RUN_PATH'
10881 if test yes = "$GCC"; then
10882 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10883 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10886 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10890 sysv5* | sco3.2v5* | sco5v6*)
10891 # Note: We CANNOT use -z defs as we might desire, because we do not
10892 # link with -lc, and that would cause any symbols used from libc to
10893 # always be unresolved, which means just about no library would
10894 # ever link correctly. If we're not using GNU ld we use -z text
10895 # though, which does catch some bad symbols but isn't as heavy-handed
10897 no_undefined_flag='$wl-z,text'
10898 allow_undefined_flag='$wl-z,nodefs'
10899 archive_cmds_need_lc=no
10900 hardcode_shlibpath_var=no
10901 hardcode_libdir_flag_spec='$wl-R,$libdir'
10902 hardcode_libdir_separator=':'
10903 link_all_deplibs=yes
10904 export_dynamic_flag_spec='$wl-Bexport'
10905 runpath_var='LD_RUN_PATH'
10907 if test yes = "$GCC"; then
10908 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10912 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_libdir_flag_spec='-L$libdir'
10919 hardcode_shlibpath_var=no
10927 if test sni = "$host_vendor"; then
10929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10930 export_dynamic_flag_spec='$wl-Blargedynsym'
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10937 $as_echo "$ld_shlibs" >&6; }
10938 test no = "$ld_shlibs" && can_build_shared=no
10940 with_gnu_ld=$with_gnu_ld
10957 # Do we need to explicitly link libc?
10959 case "x$archive_cmds_need_lc" in
10961 # Assume -lc should be added
10962 archive_cmds_need_lc=yes
10964 if test yes,yes = "$GCC,$enable_shared"; then
10965 case $archive_cmds in
10967 # FIXME: we may have to deal with multi-command sequences.
10970 # Test whether the compiler implicitly links with -lc since on some
10971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10972 # to ld, don't add -lc before -lgcc.
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10974 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10975 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10976 $as_echo_n "(cached) " >&6
10979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10982 (eval $ac_compile) 2>&5
10984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10985 test $ac_status = 0; } 2>conftest.err; then
10988 libobjs=conftest.$ac_objext
10990 wl=$lt_prog_compiler_wl
10991 pic_flag=$lt_prog_compiler_pic
10997 lt_save_allow_undefined_flag=$allow_undefined_flag
10998 allow_undefined_flag=
10999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003 test $ac_status = 0; }
11005 lt_cv_archive_cmds_need_lc=no
11007 lt_cv_archive_cmds_need_lc=yes
11009 allow_undefined_flag=$lt_save_allow_undefined_flag
11011 cat conftest.err 1>&5
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11017 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11018 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11177 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11179 if test yes = "$GCC"; then
11181 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11182 *) lt_awk_arg='/^libraries:/' ;;
11185 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11186 *) lt_sed_strip_eq='s|=/|/|g' ;;
11188 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11189 case $lt_search_path_spec in
11191 # if the path contains ";" then we assume it to be the separator
11192 # otherwise default to the standard path separator (i.e. ":") - it is
11193 # assumed that no part of a normal pathname contains ";" but that should
11194 # okay in the real world where ";" in dirpaths is itself problematic.
11195 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11201 # Ok, now we have the path, separated by spaces, we can step through it
11202 # and add multilib dir if necessary...
11203 lt_tmp_lt_search_path_spec=
11204 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11205 # ...but if some path component already ends with the multilib dir we assume
11206 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11207 case "$lt_multi_os_dir; $lt_search_path_spec " in
11208 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11212 for lt_sys_path in $lt_search_path_spec; do
11213 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11215 elif test -n "$lt_multi_os_dir"; then
11216 test -d "$lt_sys_path" && \
11217 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11220 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11221 BEGIN {RS = " "; FS = "/|\n";} {
11224 for (lt_i = NF; lt_i > 0; lt_i--) {
11225 if ($lt_i != "" && $lt_i != ".") {
11226 if ($lt_i == "..") {
11229 if (lt_count == 0) {
11230 lt_foo = "/" $lt_i lt_foo;
11237 if (lt_foo != "") { lt_freq[lt_foo]++; }
11238 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11240 # AWK program above erroneously prepends '/' to C:/dos/paths
11243 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11244 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11246 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11250 library_names_spec=
11251 libname_spec='lib$name'
11255 postuninstall_cmds=
11259 shlibpath_overrides_runpath=unknown
11261 dynamic_linker="$host_os ld.so"
11262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11263 need_lib_prefix=unknown
11264 hardcode_into_libs=no
11266 # when you set need_version to no, make sure it does not cause -set_version
11267 # flags to be left without arguments
11268 need_version=unknown
11274 version_type=linux # correct to gnu/linux during the next big refactor
11275 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11276 shlibpath_var=LIBPATH
11278 # AIX 3 has no versioning support, so we append a major version to the name.
11279 soname_spec='$libname$release$shared_ext$major'
11283 version_type=linux # correct to gnu/linux during the next big refactor
11286 hardcode_into_libs=yes
11287 if test ia64 = "$host_cpu"; then
11288 # AIX 5 supports IA64
11289 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11290 shlibpath_var=LD_LIBRARY_PATH
11292 # With GCC up to 2.95.x, collect2 would create an import file
11293 # for dependence libraries. The import file would start with
11294 # the line '#! .'. This would cause the generated library to
11295 # depend on '.', always an invalid library. This was fixed in
11296 # development snapshots of GCC prior to 3.0.
11298 aix4 | aix4.[01] | aix4.[01].*)
11299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11301 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11304 can_build_shared=no
11308 # Using Import Files as archive members, it is possible to support
11309 # filename-based versioning of shared library archives on AIX. While
11310 # this would work for both with and without runtime linking, it will
11311 # prevent static linking of such archives. So we do filename-based
11312 # shared library versioning with .so extension only, which is used
11313 # when both runtime linking and shared linking is enabled.
11314 # Unfortunately, runtime linking may impact performance, so we do
11315 # not want this to be the default eventually. Also, we use the
11316 # versioned .so libs for executables only if there is the -brtl
11317 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11318 # To allow for filename-based versioning support, we need to create
11319 # libNAME.so.V as an archive file, containing:
11320 # *) an Import File, referring to the versioned filename of the
11321 # archive as well as the shared archive member, telling the
11322 # bitwidth (32 or 64) of that shared object, and providing the
11323 # list of exported symbols of that shared object, eventually
11324 # decorated with the 'weak' keyword
11325 # *) the shared object with the F_LOADONLY flag set, to really avoid
11326 # it being seen by the linker.
11327 # At run time we better use the real file rather than another symlink,
11328 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11330 case $with_aix_soname,$aix_use_runtimelinking in
11331 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11332 # soname into executable. Probably we can add versioning support to
11333 # collect2, so additional links can be useful in future.
11334 aix,yes) # traditional libtool
11335 dynamic_linker='AIX unversionable lib.so'
11336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11337 # instead of lib<name>.a to let people know that these are not
11338 # typical AIX shared libraries.
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11341 aix,no) # traditional AIX only
11342 dynamic_linker='AIX lib.a(lib.so.V)'
11343 # We preserve .a as extension for shared libraries through AIX4.2
11344 # and later when we are not doing run time linking.
11345 library_names_spec='$libname$release.a $libname.a'
11346 soname_spec='$libname$release$shared_ext$major'
11348 svr4,*) # full svr4 only
11349 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11350 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11351 # We do not specify a path in Import Files, so LIBPATH fires.
11352 shlibpath_overrides_runpath=yes
11354 *,yes) # both, prefer svr4
11355 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11356 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11357 # unpreferred sharedlib libNAME.a needs extra handling
11358 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11359 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11360 # We do not specify a path in Import Files, so LIBPATH fires.
11361 shlibpath_overrides_runpath=yes
11363 *,no) # both, prefer aix
11364 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11365 library_names_spec='$libname$release.a $libname.a'
11366 soname_spec='$libname$release$shared_ext$major'
11367 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11368 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11369 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11372 shlibpath_var=LIBPATH
11379 # Since July 2007 AmigaOS4 officially supports .so libraries.
11380 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 library_names_spec='$libname.ixlibrary $libname.a'
11385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11386 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11392 library_names_spec='$libname$shared_ext'
11393 dynamic_linker="$host_os ld.so"
11394 shlibpath_var=LIBRARY_PATH
11398 version_type=linux # correct to gnu/linux during the next big refactor
11400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401 soname_spec='$libname$release$shared_ext$major'
11402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11403 shlibpath_var=LD_LIBRARY_PATH
11404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11406 # the default ld.so.conf also contains /usr/contrib/lib and
11407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11408 # libtool to hard-code these into programs
11411 cygwin* | mingw* | pw32* | cegcc*)
11412 version_type=windows
11417 case $GCC,$cc_basename in
11420 library_names_spec='$libname.dll.a'
11421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11422 postinstall_cmds='base_file=`basename \$file`~
11423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11424 dldir=$destdir/`dirname \$dlpath`~
11425 test -d \$dldir || mkdir -p \$dldir~
11426 $install_prog $dir/$dlname \$dldir/$dlname~
11427 chmod a+x \$dldir/$dlname~
11428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432 dlpath=$dir/\$dldll~
11434 shlibpath_overrides_runpath=yes
11438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11439 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11444 # MinGW DLLs use traditional 'lib' prefix
11445 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11448 # pw32 DLLs use 'pw' prefix rather than 'lib'
11449 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11452 dynamic_linker='Win32 ld.exe'
11456 # Native MSVC or ICC
11457 libname_spec='$name'
11458 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11459 library_names_spec='$libname.dll.lib'
11463 sys_lib_search_path_spec=
11466 for lt_path in $LIB
11469 # Let DOS variable expansion print the short 8.3 style file name.
11470 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11471 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11474 # Convert to MSYS style.
11475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11478 # Convert to unix form, then to dos form, then back to unix form
11479 # but this time dos style (no spaces!) so that the unix form looks
11480 # like /cygdrive/c/PROGRA~1:/cygdr...
11481 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11482 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11483 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11486 sys_lib_search_path_spec=$LIB
11487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11488 # It is most probably a Windows format PATH.
11489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11493 # FIXME: find the short name or the path components, as spaces are
11494 # common. (e.g. "Program Files" -> "PROGRA~1")
11498 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11499 postinstall_cmds='base_file=`basename \$file`~
11500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11501 dldir=$destdir/`dirname \$dlpath`~
11502 test -d \$dldir || mkdir -p \$dldir~
11503 $install_prog $dir/$dlname \$dldir/$dlname'
11504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11505 dlpath=$dir/\$dldll~
11507 shlibpath_overrides_runpath=yes
11508 dynamic_linker='Win32 link.exe'
11512 # Assume MSVC and ICC wrapper
11513 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11514 dynamic_linker='Win32 ld.exe'
11517 # FIXME: first we should search . and the directory the executable is in
11521 darwin* | rhapsody*)
11522 dynamic_linker="$host_os dyld"
11523 version_type=darwin
11526 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11527 soname_spec='$libname$release$major$shared_ext'
11528 shlibpath_overrides_runpath=yes
11529 shlibpath_var=DYLD_LIBRARY_PATH
11530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11537 version_type=linux # correct to gnu/linux during the next big refactor
11540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541 soname_spec='$libname$release$shared_ext$major'
11542 shlibpath_var=LD_LIBRARY_PATH
11545 freebsd* | dragonfly*)
11546 # DragonFly does not have aout. When/if they implement a new
11547 # versioning mechanism, adjust this.
11548 if test -x /usr/bin/objformat; then
11549 objformat=`/usr/bin/objformat`
11552 freebsd[23].*) objformat=aout ;;
11553 *) objformat=elf ;;
11556 version_type=freebsd-$objformat
11557 case $version_type in
11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11560 soname_spec='$libname$release$shared_ext$major'
11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11569 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11574 freebsd3.[01]* | freebsdelf3.[01]*)
11575 shlibpath_overrides_runpath=yes
11576 hardcode_into_libs=yes
11578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11580 shlibpath_overrides_runpath=no
11581 hardcode_into_libs=yes
11583 *) # from 4.6 on, and DragonFly
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11591 version_type=linux # correct to gnu/linux during the next big refactor
11594 dynamic_linker="$host_os runtime_loader"
11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11596 soname_spec='$libname$release$shared_ext$major'
11597 shlibpath_var=LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11600 hardcode_into_libs=yes
11603 hpux9* | hpux10* | hpux11*)
11604 # Give a soname corresponding to the major version so that dld.sl refuses to
11605 # link against other versions.
11612 hardcode_into_libs=yes
11613 dynamic_linker="$host_os dld.so"
11614 shlibpath_var=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11617 soname_spec='$libname$release$shared_ext$major'
11618 if test 32 = "$HPUX_IA64_MODE"; then
11619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11623 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11628 hardcode_into_libs=yes
11629 dynamic_linker="$host_os dld.sl"
11630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11633 soname_spec='$libname$release$shared_ext$major'
11634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639 dynamic_linker="$host_os dld.sl"
11640 shlibpath_var=SHLIB_PATH
11641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11643 soname_spec='$libname$release$shared_ext$major'
11646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11647 postinstall_cmds='chmod 555 $lib'
11648 # or fails outright, so override atomically:
11649 install_override_mode=555
11653 version_type=linux # correct to gnu/linux during the next big refactor
11656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11657 soname_spec='$libname$release$shared_ext$major'
11658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11664 irix5* | irix6* | nonstopux*)
11666 nonstopux*) version_type=nonstopux ;;
11668 if test yes = "$lt_cv_prog_gnu_ld"; then
11669 version_type=linux # correct to gnu/linux during the next big refactor
11676 soname_spec='$libname$release$shared_ext$major'
11677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11679 irix5* | nonstopux*)
11680 libsuff= shlibsuff=
11683 case $LD in # libtool.m4 will add one of these switches to LD
11684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685 libsuff= shlibsuff= libmagic=32-bit;;
11686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687 libsuff=32 shlibsuff=N32 libmagic=N32;;
11688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690 *) libsuff= shlibsuff= libmagic=never-match;;
11694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695 shlibpath_overrides_runpath=no
11696 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11697 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11698 hardcode_into_libs=yes
11701 # No shared lib support for Linux oldld, aout, or coff.
11702 linux*oldld* | linux*aout* | linux*coff*)
11707 version_type=none # Android doesn't support versioned libraries.
11710 library_names_spec='$libname$release$shared_ext'
11711 soname_spec='$libname$release$shared_ext'
11713 shlibpath_var=LD_LIBRARY_PATH
11714 shlibpath_overrides_runpath=yes
11716 # This implies no fast_install, which is unacceptable.
11717 # Some rework will be needed to allow for fast_install
11718 # before this can be enabled.
11719 hardcode_into_libs=yes
11721 dynamic_linker='Android linker'
11722 # Don't embed -rpath directories since the linker doesn't support them.
11723 hardcode_libdir_flag_spec='-L$libdir'
11726 # This must be glibc/ELF.
11727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11728 version_type=linux # correct to gnu/linux during the next big refactor
11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11732 soname_spec='$libname$release$shared_ext$major'
11733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11734 shlibpath_var=LD_LIBRARY_PATH
11735 shlibpath_overrides_runpath=no
11737 # Some binutils ld are patched to set DT_RUNPATH
11738 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11739 $as_echo_n "(cached) " >&6
11741 lt_cv_shlibpath_overrides_runpath=no
11742 save_LDFLAGS=$LDFLAGS
11743 save_libdir=$libdir
11744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11757 if ac_fn_c_try_link "$LINENO"; then :
11758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11759 lt_cv_shlibpath_overrides_runpath=yes
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS=$save_LDFLAGS
11765 libdir=$save_libdir
11769 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11771 # This implies no fast_install, which is unacceptable.
11772 # Some rework will be needed to allow for fast_install
11773 # before this can be enabled.
11774 hardcode_into_libs=yes
11776 # Ideally, we could use ldconfig to report *all* directores which are
11777 # searched for libraries, however this is still not possible. Aside from not
11778 # being certain /sbin/ldconfig is available, command
11779 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11780 # even though it is searched at run-time. Try to do the best guess by
11781 # appending ld.so.conf contents (and includes) to the search path.
11782 if test -f /etc/ld.so.conf; then
11783 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' ' '`
11784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11787 # We used to test for /lib/ld.so.1 and disable shared libraries on
11788 # powerpc, because MkLinux only supported shared libraries with the
11789 # GNU dynamic linker. Since this was broken with cross compilers,
11790 # most powerpc-linux boxes support dynamic linking these days and
11791 # people can always --disable-shared, the test was removed, and we
11792 # assume the GNU/Linux dynamic linker is in use.
11793 dynamic_linker='GNU/Linux ld.so'
11800 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11803 dynamic_linker='NetBSD (a.out) ld.so'
11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806 soname_spec='$libname$release$shared_ext$major'
11807 dynamic_linker='NetBSD ld.elf_so'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=yes
11811 hardcode_into_libs=yes
11815 version_type=linux # correct to gnu/linux during the next big refactor
11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11826 soname_spec='$libname$release$shared_ext$major'
11827 shlibpath_var=LD_LIBRARY_PATH
11828 shlibpath_overrides_runpath=no
11829 hardcode_into_libs=yes
11830 dynamic_linker='ldqnx.so'
11833 openbsd* | bitrig*)
11835 sys_lib_dlsearch_path_spec=/usr/lib
11837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11842 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11843 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=yes
11849 libname_spec='$name'
11850 version_type=windows
11854 # OS/2 can only load a DLL with a base name of 8 characters or less.
11855 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11856 v=$($ECHO $release$versuffix | tr -d .-);
11857 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11858 $ECHO $n$v`$shared_ext'
11859 library_names_spec='${libname}_dll.$libext'
11860 dynamic_linker='OS/2 ld.exe'
11861 shlibpath_var=BEGINLIBPATH
11862 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11864 postinstall_cmds='base_file=`basename \$file`~
11865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11866 dldir=$destdir/`dirname \$dlpath`~
11867 test -d \$dldir || mkdir -p \$dldir~
11868 $install_prog $dir/$dlname \$dldir/$dlname~
11869 chmod a+x \$dldir/$dlname~
11870 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11871 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11873 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11874 dlpath=$dir/\$dldll~
11878 osf3* | osf4* | osf5*)
11882 soname_spec='$libname$release$shared_ext$major'
11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11894 version_type=linux # correct to gnu/linux during the next big refactor
11897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898 soname_spec='$libname$release$shared_ext$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 shlibpath_overrides_runpath=yes
11901 hardcode_into_libs=yes
11902 # ldd complains unless libraries are executable
11903 postinstall_cmds='chmod +x $lib'
11908 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 if test yes = "$with_gnu_ld"; then
11919 version_type=linux # correct to gnu/linux during the next big refactor
11920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11921 soname_spec='$libname$release$shared_ext$major'
11922 shlibpath_var=LD_LIBRARY_PATH
11923 case $host_vendor in
11925 shlibpath_overrides_runpath=no
11927 runpath_var=LD_RUN_PATH
11935 shlibpath_overrides_runpath=no
11936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11942 if test -d /usr/nec; then
11943 version_type=linux # correct to gnu/linux during the next big refactor
11944 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11945 soname_spec='$libname$shared_ext.$major'
11946 shlibpath_var=LD_LIBRARY_PATH
11950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11955 soname_spec='$libname$release$shared_ext$major'
11956 shlibpath_var=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath=yes
11958 hardcode_into_libs=yes
11959 if test yes = "$with_gnu_ld"; then
11960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11969 sys_lib_dlsearch_path_spec='/usr/lib'
11973 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11974 version_type=linux # correct to gnu/linux during the next big refactor
11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=no
11980 hardcode_into_libs=yes
11984 version_type=linux # correct to gnu/linux during the next big refactor
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
11987 shlibpath_var=LD_LIBRARY_PATH
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11995 $as_echo "$dynamic_linker" >&6; }
11996 test no = "$dynamic_linker" && can_build_shared=no
11998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11999 if test yes = "$GCC"; then
12000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12003 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12004 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12007 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12008 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12011 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12012 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12014 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12015 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12017 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12018 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12117 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12119 if test -n "$hardcode_libdir_flag_spec" ||
12120 test -n "$runpath_var" ||
12121 test yes = "$hardcode_automatic"; then
12123 # We can hardcode non-existent directories.
12124 if test no != "$hardcode_direct" &&
12125 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12126 # have to relink, otherwise we might link with an installed library
12127 # when we should be linking with a yet-to-be-installed one
12128 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12129 test no != "$hardcode_minus_L"; then
12130 # Linking always hardcodes the temporary library directory.
12131 hardcode_action=relink
12133 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12134 hardcode_action=immediate
12137 # We cannot hardcode anything, or else we can only hardcode existing
12139 hardcode_action=unsupported
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12142 $as_echo "$hardcode_action" >&6; }
12144 if test relink = "$hardcode_action" ||
12145 test yes = "$inherit_rpath"; then
12146 # Fast installation is not supported
12147 enable_fast_install=no
12148 elif test yes = "$shlibpath_overrides_runpath" ||
12149 test no = "$enable_shared"; then
12150 # Fast installation is not necessary
12151 enable_fast_install=needless
12159 if test yes != "$enable_dlopen"; then
12160 enable_dlopen=unknown
12161 enable_dlopen_self=unknown
12162 enable_dlopen_self_static=unknown
12169 lt_cv_dlopen=load_add_on
12171 lt_cv_dlopen_self=yes
12174 mingw* | pw32* | cegcc*)
12175 lt_cv_dlopen=LoadLibrary
12180 lt_cv_dlopen=dlopen
12185 # if libdl is installed we need to link against it
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12187 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12188 if ${ac_cv_lib_dl_dlopen+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 ac_check_lib_save_LIBS=$LIBS
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12211 if ac_fn_c_try_link "$LINENO"; then :
12212 ac_cv_lib_dl_dlopen=yes
12214 ac_cv_lib_dl_dlopen=no
12216 rm -f core conftest.err conftest.$ac_objext \
12217 conftest$ac_exeext conftest.$ac_ext
12218 LIBS=$ac_check_lib_save_LIBS
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12221 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12222 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12223 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12228 lt_cv_dlopen_self=yes
12235 # Don't try to run any link tests for TPF. We know it's impossible
12236 # because TPF is a cross-compiler, and we know how we open DSOs.
12237 lt_cv_dlopen=dlopen
12239 lt_cv_dlopen_self=no
12243 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12244 if test "x$ac_cv_func_shl_load" = xyes; then :
12245 lt_cv_dlopen=shl_load
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12248 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12249 if ${ac_cv_lib_dld_shl_load+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 ac_check_lib_save_LIBS=$LIBS
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12267 return shl_load ();
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_dld_shl_load=yes
12275 ac_cv_lib_dld_shl_load=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12282 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12283 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12284 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12286 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12287 if test "x$ac_cv_func_dlopen" = xyes; then :
12288 lt_cv_dlopen=dlopen
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12291 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12292 if ${ac_cv_lib_dl_dlopen+:} false; then :
12293 $as_echo_n "(cached) " >&6
12295 ac_check_lib_save_LIBS=$LIBS
12297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 ac_cv_lib_dl_dlopen=yes
12318 ac_cv_lib_dl_dlopen=no
12320 rm -f core conftest.err conftest.$ac_objext \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12325 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12326 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12327 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12330 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12331 if ${ac_cv_lib_svld_dlopen+:} false; then :
12332 $as_echo_n "(cached) " >&6
12334 ac_check_lib_save_LIBS=$LIBS
12335 LIBS="-lsvld $LIBS"
12336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12354 if ac_fn_c_try_link "$LINENO"; then :
12355 ac_cv_lib_svld_dlopen=yes
12357 ac_cv_lib_svld_dlopen=no
12359 rm -f core conftest.err conftest.$ac_objext \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12364 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12365 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12366 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12369 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12370 if ${ac_cv_lib_dld_dld_link+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_check_lib_save_LIBS=$LIBS
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12378 /* Override any GCC internal prototype to avoid an error.
12379 Use char because int might match the return type of a GCC
12380 builtin and then its argument prototype would still apply. */
12388 return dld_link ();
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_lib_dld_dld_link=yes
12396 ac_cv_lib_dld_dld_link=no
12398 rm -f core conftest.err conftest.$ac_objext \
12399 conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12403 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12404 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12405 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12426 if test no = "$lt_cv_dlopen"; then
12432 case $lt_cv_dlopen in
12434 save_CPPFLAGS=$CPPFLAGS
12435 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12437 save_LDFLAGS=$LDFLAGS
12438 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12441 LIBS="$lt_cv_dlopen_libs $LIBS"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12444 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12445 if ${lt_cv_dlopen_self+:} false; then :
12446 $as_echo_n "(cached) " >&6
12448 if test yes = "$cross_compiling"; then :
12449 lt_cv_dlopen_self=cross
12451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12452 lt_status=$lt_dlunknown
12453 cat > conftest.$ac_ext <<_LT_EOF
12454 #line $LINENO "configure"
12455 #include "confdefs.h"
12464 # define LT_DLGLOBAL RTLD_GLOBAL
12467 # define LT_DLGLOBAL DL_GLOBAL
12469 # define LT_DLGLOBAL 0
12473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12474 find out it does not work in some platform. */
12475 #ifndef LT_DLLAZY_OR_NOW
12477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12480 # define LT_DLLAZY_OR_NOW DL_LAZY
12483 # define LT_DLLAZY_OR_NOW RTLD_NOW
12486 # define LT_DLLAZY_OR_NOW DL_NOW
12488 # define LT_DLLAZY_OR_NOW 0
12495 /* When -fvisibility=hidden is used, assume the code has been annotated
12496 correspondingly for the symbols needed. */
12497 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12498 int fnord () __attribute__((visibility("default")));
12501 int fnord () { return 42; }
12504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12505 int status = $lt_dlunknown;
12509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12512 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12513 else puts (dlerror ());
12515 /* dlclose (self); */
12523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12524 (eval $ac_link) 2>&5
12526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12528 (./conftest; exit; ) >&5 2>/dev/null
12530 case x$lt_status in
12531 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12532 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12533 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12536 # compilation failed
12537 lt_cv_dlopen_self=no
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12545 $as_echo "$lt_cv_dlopen_self" >&6; }
12547 if test yes = "$lt_cv_dlopen_self"; then
12548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12550 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12551 if ${lt_cv_dlopen_self_static+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 if test yes = "$cross_compiling"; then :
12555 lt_cv_dlopen_self_static=cross
12557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558 lt_status=$lt_dlunknown
12559 cat > conftest.$ac_ext <<_LT_EOF
12560 #line $LINENO "configure"
12561 #include "confdefs.h"
12570 # define LT_DLGLOBAL RTLD_GLOBAL
12573 # define LT_DLGLOBAL DL_GLOBAL
12575 # define LT_DLGLOBAL 0
12579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580 find out it does not work in some platform. */
12581 #ifndef LT_DLLAZY_OR_NOW
12583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12586 # define LT_DLLAZY_OR_NOW DL_LAZY
12589 # define LT_DLLAZY_OR_NOW RTLD_NOW
12592 # define LT_DLLAZY_OR_NOW DL_NOW
12594 # define LT_DLLAZY_OR_NOW 0
12601 /* When -fvisibility=hidden is used, assume the code has been annotated
12602 correspondingly for the symbols needed. */
12603 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12604 int fnord () __attribute__((visibility("default")));
12607 int fnord () { return 42; }
12610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611 int status = $lt_dlunknown;
12615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12619 else puts (dlerror ());
12621 /* dlclose (self); */
12629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12630 (eval $ac_link) 2>&5
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12634 (./conftest; exit; ) >&5 2>/dev/null
12636 case x$lt_status in
12637 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12638 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12639 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12642 # compilation failed
12643 lt_cv_dlopen_self_static=no
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12651 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12654 CPPFLAGS=$save_CPPFLAGS
12655 LDFLAGS=$save_LDFLAGS
12660 case $lt_cv_dlopen_self in
12661 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12662 *) enable_dlopen_self=unknown ;;
12665 case $lt_cv_dlopen_self_static in
12666 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12667 *) enable_dlopen_self_static=unknown ;;
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12690 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12691 if test -z "$STRIP"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12695 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12696 old_striplib="$STRIP --strip-debug"
12697 striplib="$STRIP --strip-unneeded"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12699 $as_echo "yes" >&6; }
12703 # FIXME - insert some real tests, host_os isn't really good enough
12704 striplib="$STRIP -x"
12705 old_striplib="$STRIP -S"
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12707 $as_echo "yes" >&6; }
12710 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12711 old_striplib="$STRIP --strip-debug"
12712 striplib="$STRIP --strip-unneeded"
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12714 $as_echo "yes" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; }
12739 # Report what library types will actually be built
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12741 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12743 $as_echo "$can_build_shared" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12746 $as_echo_n "checking whether to build shared libraries... " >&6; }
12747 test no = "$can_build_shared" && enable_shared=no
12749 # On AIX, shared libraries and static libraries use the same namespace, and
12750 # are all built from PIC.
12753 test yes = "$enable_shared" && enable_static=no
12754 if test -n "$RANLIB"; then
12755 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12756 postinstall_cmds='$RANLIB $lib'
12761 if test ia64 != "$host_cpu"; then
12762 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12763 yes,aix,yes) ;; # shared object as lib.so file only
12764 yes,svr4,*) ;; # shared object as lib.so archive member only
12765 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12771 $as_echo "$enable_shared" >&6; }
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12774 $as_echo_n "checking whether to build static libraries... " >&6; }
12775 # Make sure either enable_shared or enable_static is yes.
12776 test yes = "$enable_shared" || enable_static=yes
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12778 $as_echo "$enable_static" >&6; }
12785 ac_cpp='$CPP $CPPFLAGS'
12786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806 ac_config_commands="$ac_config_commands libtool"
12811 # Only expand once:
12817 if test "$enable_samples" = "yes"; then
12818 BUILD_SAMPLES_TRUE=
12819 BUILD_SAMPLES_FALSE='#'
12821 BUILD_SAMPLES_TRUE='#'
12822 BUILD_SAMPLES_FALSE=
12825 if test "$enable_libevent_regress" = "yes"; then
12826 BUILD_REGRESS_TRUE=
12827 BUILD_REGRESS_FALSE='#'
12829 BUILD_REGRESS_TRUE='#'
12830 BUILD_REGRESS_FALSE=
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12835 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12836 if ${ac_cv_search_inet_ntoa+:} false; then :
12837 $as_echo_n "(cached) " >&6
12839 ac_func_search_save_LIBS=$LIBS
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12843 /* Override any GCC internal prototype to avoid an error.
12844 Use char because int might match the return type of a GCC
12845 builtin and then its argument prototype would still apply. */
12853 return inet_ntoa ();
12858 for ac_lib in '' nsl; do
12859 if test -z "$ac_lib"; then
12860 ac_res="none required"
12863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 ac_cv_search_inet_ntoa=$ac_res
12868 rm -f core conftest.err conftest.$ac_objext \
12870 if ${ac_cv_search_inet_ntoa+:} false; then :
12874 if ${ac_cv_search_inet_ntoa+:} false; then :
12877 ac_cv_search_inet_ntoa=no
12879 rm conftest.$ac_ext
12880 LIBS=$ac_func_search_save_LIBS
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12883 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12884 ac_res=$ac_cv_search_inet_ntoa
12885 if test "$ac_res" != no; then :
12886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12891 $as_echo_n "checking for library containing socket... " >&6; }
12892 if ${ac_cv_search_socket+:} false; then :
12893 $as_echo_n "(cached) " >&6
12895 ac_func_search_save_LIBS=$LIBS
12896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12897 /* end confdefs.h. */
12899 /* Override any GCC internal prototype to avoid an error.
12900 Use char because int might match the return type of a GCC
12901 builtin and then its argument prototype would still apply. */
12914 for ac_lib in '' socket; do
12915 if test -z "$ac_lib"; then
12916 ac_res="none required"
12919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 ac_cv_search_socket=$ac_res
12924 rm -f core conftest.err conftest.$ac_objext \
12926 if ${ac_cv_search_socket+:} false; then :
12930 if ${ac_cv_search_socket+:} false; then :
12933 ac_cv_search_socket=no
12935 rm conftest.$ac_ext
12936 LIBS=$ac_func_search_save_LIBS
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12939 $as_echo "$ac_cv_search_socket" >&6; }
12940 ac_res=$ac_cv_search_socket
12941 if test "$ac_res" != no; then :
12942 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12947 $as_echo_n "checking for library containing inet_aton... " >&6; }
12948 if ${ac_cv_search_inet_aton+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 ac_func_search_save_LIBS=$LIBS
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h. */
12955 /* Override any GCC internal prototype to avoid an error.
12956 Use char because int might match the return type of a GCC
12957 builtin and then its argument prototype would still apply. */
12965 return inet_aton ();
12970 for ac_lib in '' resolv; do
12971 if test -z "$ac_lib"; then
12972 ac_res="none required"
12975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12977 if ac_fn_c_try_link "$LINENO"; then :
12978 ac_cv_search_inet_aton=$ac_res
12980 rm -f core conftest.err conftest.$ac_objext \
12982 if ${ac_cv_search_inet_aton+:} false; then :
12986 if ${ac_cv_search_inet_aton+:} false; then :
12989 ac_cv_search_inet_aton=no
12991 rm conftest.$ac_ext
12992 LIBS=$ac_func_search_save_LIBS
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12995 $as_echo "$ac_cv_search_inet_aton" >&6; }
12996 ac_res=$ac_cv_search_inet_aton
12997 if test "$ac_res" != no; then :
12998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13002 if test "x$enable_clock_gettime" = "xyes"; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13004 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13005 if ${ac_cv_search_clock_gettime+:} false; then :
13006 $as_echo_n "(cached) " >&6
13008 ac_func_search_save_LIBS=$LIBS
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13012 /* Override any GCC internal prototype to avoid an error.
13013 Use char because int might match the return type of a GCC
13014 builtin and then its argument prototype would still apply. */
13018 char clock_gettime ();
13022 return clock_gettime ();
13027 for ac_lib in '' rt; do
13028 if test -z "$ac_lib"; then
13029 ac_res="none required"
13032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13034 if ac_fn_c_try_link "$LINENO"; then :
13035 ac_cv_search_clock_gettime=$ac_res
13037 rm -f core conftest.err conftest.$ac_objext \
13039 if ${ac_cv_search_clock_gettime+:} false; then :
13043 if ${ac_cv_search_clock_gettime+:} false; then :
13046 ac_cv_search_clock_gettime=no
13048 rm conftest.$ac_ext
13049 LIBS=$ac_func_search_save_LIBS
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13052 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13053 ac_res=$ac_cv_search_clock_gettime
13054 if test "$ac_res" != no; then :
13055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13059 for ac_func in clock_gettime
13061 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13062 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_CLOCK_GETTIME 1
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
13072 $as_echo_n "checking for library containing sendfile... " >&6; }
13073 if ${ac_cv_search_sendfile+:} false; then :
13074 $as_echo_n "(cached) " >&6
13076 ac_func_search_save_LIBS=$LIBS
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13090 return sendfile ();
13095 for ac_lib in '' sendfile; do
13096 if test -z "$ac_lib"; then
13097 ac_res="none required"
13100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_search_sendfile=$ac_res
13105 rm -f core conftest.err conftest.$ac_objext \
13107 if ${ac_cv_search_sendfile+:} false; then :
13111 if ${ac_cv_search_sendfile+:} false; then :
13114 ac_cv_search_sendfile=no
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13120 $as_echo "$ac_cv_search_sendfile" >&6; }
13121 ac_res=$ac_cv_search_sendfile
13122 if test "$ac_res" != no; then :
13123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13129 $as_echo_n "checking for WIN32... " >&6; }
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13146 if ac_fn_c_try_compile "$LINENO"; then :
13147 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 $as_echo "yes" >&6; }
13150 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 $as_echo "no" >&6; }
13154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5
13157 $as_echo_n "checking for MIDIPIX... " >&6; }
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13165 #ifndef __midipix__
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 midipix=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13176 $as_echo "yes" >&6; }
13178 midipix=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179 $as_echo "no" >&6; }
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13185 $as_echo_n "checking for CYGWIN... " >&6; }
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13202 if ac_fn_c_try_compile "$LINENO"; then :
13203 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13204 $as_echo "yes" >&6; }
13206 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13207 $as_echo "no" >&6; }
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 for ac_header in zlib.h
13214 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13215 if test "x$ac_cv_header_zlib_h" = xyes; then :
13216 cat >>confdefs.h <<_ACEOF
13217 #define HAVE_ZLIB_H 1
13225 if test "x$ac_cv_header_zlib_h" = "xyes"; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13231 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13232 if ${ac_cv_search_inflateEnd+:} false; then :
13233 $as_echo_n "(cached) " >&6
13235 ac_func_search_save_LIBS=$LIBS
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13245 char inflateEnd ();
13249 return inflateEnd ();
13254 for ac_lib in '' z; do
13255 if test -z "$ac_lib"; then
13256 ac_res="none required"
13259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 ac_cv_search_inflateEnd=$ac_res
13264 rm -f core conftest.err conftest.$ac_objext \
13266 if ${ac_cv_search_inflateEnd+:} false; then :
13270 if ${ac_cv_search_inflateEnd+:} false; then :
13273 ac_cv_search_inflateEnd=no
13275 rm conftest.$ac_ext
13276 LIBS=$ac_func_search_save_LIBS
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13279 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13280 ac_res=$ac_cv_search_inflateEnd
13281 if test "$ac_res" != no; then :
13282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13286 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13293 if test "$have_zlib" = "yes"; then
13295 ZLIB_REGRESS_FALSE='#'
13297 ZLIB_REGRESS_TRUE='#'
13298 ZLIB_REGRESS_FALSE=
13302 if test "$bwin32" = true; then
13303 EV_LIB_WS32=-lws2_32
13313 # Check whether --enable-largefile was given.
13314 if test "${enable_largefile+set}" = set; then :
13315 enableval=$enable_largefile;
13318 if test "$enable_largefile" != no; then
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13321 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13322 if ${ac_cv_sys_largefile_CC+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 ac_cv_sys_largefile_CC=no
13326 if test "$GCC" != yes; then
13329 # IRIX 6.2 and later do not support large files by default,
13330 # so use the C compiler's -n32 option if that helps.
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <sys/types.h>
13334 /* Check that off_t can represent 2**63 - 1 correctly.
13335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336 since some C++ compilers masquerading as C compilers
13337 incorrectly reject 9223372036854775807. */
13338 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340 && LARGE_OFF_T % 2147483647 == 1)
13350 if ac_fn_c_try_compile "$LINENO"; then :
13353 rm -f core conftest.err conftest.$ac_objext
13355 if ac_fn_c_try_compile "$LINENO"; then :
13356 ac_cv_sys_largefile_CC=' -n32'; break
13358 rm -f core conftest.err conftest.$ac_objext
13362 rm -f conftest.$ac_ext
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13366 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13367 if test "$ac_cv_sys_largefile_CC" != no; then
13368 CC=$CC$ac_cv_sys_largefile_CC
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13372 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13373 if ${ac_cv_sys_file_offset_bits+:} false; then :
13374 $as_echo_n "(cached) " >&6
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379 #include <sys/types.h>
13380 /* Check that off_t can represent 2**63 - 1 correctly.
13381 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13382 since some C++ compilers masquerading as C compilers
13383 incorrectly reject 9223372036854775807. */
13384 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13385 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13386 && LARGE_OFF_T % 2147483647 == 1)
13396 if ac_fn_c_try_compile "$LINENO"; then :
13397 ac_cv_sys_file_offset_bits=no; break
13399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 #define _FILE_OFFSET_BITS 64
13403 #include <sys/types.h>
13404 /* Check that off_t can represent 2**63 - 1 correctly.
13405 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13406 since some C++ compilers masquerading as C compilers
13407 incorrectly reject 9223372036854775807. */
13408 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13409 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13410 && LARGE_OFF_T % 2147483647 == 1)
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 ac_cv_sys_file_offset_bits=64; break
13423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13424 ac_cv_sys_file_offset_bits=unknown
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13429 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13430 case $ac_cv_sys_file_offset_bits in #(
13433 cat >>confdefs.h <<_ACEOF
13434 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13439 if test $ac_cv_sys_file_offset_bits = unknown; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13441 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13442 if ${ac_cv_sys_large_files+:} false; then :
13443 $as_echo_n "(cached) " >&6
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #include <sys/types.h>
13449 /* Check that off_t can represent 2**63 - 1 correctly.
13450 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13451 since some C++ compilers masquerading as C compilers
13452 incorrectly reject 9223372036854775807. */
13453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13454 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13455 && LARGE_OFF_T % 2147483647 == 1)
13465 if ac_fn_c_try_compile "$LINENO"; then :
13466 ac_cv_sys_large_files=no; break
13468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #define _LARGE_FILES 1
13472 #include <sys/types.h>
13473 /* Check that off_t can represent 2**63 - 1 correctly.
13474 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13475 since some C++ compilers masquerading as C compilers
13476 incorrectly reject 9223372036854775807. */
13477 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13478 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13479 && LARGE_OFF_T % 2147483647 == 1)
13489 if ac_fn_c_try_compile "$LINENO"; then :
13490 ac_cv_sys_large_files=1; break
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 ac_cv_sys_large_files=unknown
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13498 $as_echo "$ac_cv_sys_large_files" >&6; }
13499 case $ac_cv_sys_large_files in #(
13502 cat >>confdefs.h <<_ACEOF
13503 #define _LARGE_FILES $ac_cv_sys_large_files
13516 ntp_pkgconfig_min_version='0.15.0'
13517 if test -n "$ac_tool_prefix"; then
13518 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13519 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521 $as_echo_n "checking for $ac_word... " >&6; }
13522 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13523 $as_echo_n "(cached) " >&6
13525 case $PKG_CONFIG in
13527 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13537 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13549 if test -n "$PKG_CONFIG"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13551 $as_echo "$PKG_CONFIG" >&6; }
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554 $as_echo "no" >&6; }
13559 if test -z "$ac_cv_path_PKG_CONFIG"; then
13560 ac_pt_PKG_CONFIG=$PKG_CONFIG
13561 # Extract the first word of "pkg-config", so it can be a program name with args.
13562 set dummy pkg-config; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13566 $as_echo_n "(cached) " >&6
13568 case $ac_pt_PKG_CONFIG in
13570 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13577 test -z "$as_dir" && as_dir=.
13578 for ac_exec_ext in '' $ac_executable_extensions; do
13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13580 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13592 if test -n "$ac_pt_PKG_CONFIG"; then
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13594 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597 $as_echo "no" >&6; }
13600 if test "x$ac_pt_PKG_CONFIG" = x; then
13603 case $cross_compiling:$ac_tool_warned in
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13607 ac_tool_warned=yes ;;
13609 PKG_CONFIG=$ac_pt_PKG_CONFIG
13612 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13615 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
13616 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
13618 case "$PKG_CONFIG" in
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
13621 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
13622 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13624 $as_echo "yes" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13627 $as_echo "no" >&6; }
13636 case "$enable_openssl" in
13639 case "$PKG_CONFIG" in
13643 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
13644 case "$OPENSSL_LIBS" in
13646 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13650 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
13653 case "$have_openssl" in
13659 for lib in crypto eay32; do
13661 unset ac_cv_search_SSL_new
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13663 $as_echo_n "checking for library containing SSL_new... " >&6; }
13664 if ${ac_cv_search_SSL_new+:} false; then :
13665 $as_echo_n "(cached) " >&6
13667 ac_func_search_save_LIBS=$LIBS
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13671 /* Override any GCC internal prototype to avoid an error.
13672 Use char because int might match the return type of a GCC
13673 builtin and then its argument prototype would still apply. */
13686 for ac_lib in '' ssl ssl32; do
13687 if test -z "$ac_lib"; then
13688 ac_res="none required"
13691 LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13693 if ac_fn_c_try_link "$LINENO"; then :
13694 ac_cv_search_SSL_new=$ac_res
13696 rm -f core conftest.err conftest.$ac_objext \
13698 if ${ac_cv_search_SSL_new+:} false; then :
13702 if ${ac_cv_search_SSL_new+:} false; then :
13705 ac_cv_search_SSL_new=no
13707 rm conftest.$ac_ext
13708 LIBS=$ac_func_search_save_LIBS
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13711 $as_echo "$ac_cv_search_SSL_new" >&6; }
13712 ac_res=$ac_cv_search_SSL_new
13713 if test "$ac_res" != no; then :
13714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13716 OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13722 test "$have_openssl" = "yes" && break
13726 CPPFLAGS_SAVE=$CPPFLAGS
13727 CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
13728 for ac_header in openssl/ssl.h
13730 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
13731 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_OPENSSL_SSL_H 1
13742 CPPFLAGS=$CPPFLAGS_SAVE
13745 case "$have_openssl" in
13747 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13749 *) as_fn_error $? "openssl is a must but can not be found. You should add the \
13750 directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \
13751 or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \
13752 to disable support for openssl encryption" "$LINENO" 5
13758 # check if we have and should use openssl
13759 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13807 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13809 cat >>confdefs.h <<_ACEOF
13810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13818 case "${host_os}" in
13821 for ac_header in sys/sysctl.h
13823 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13824 #ifdef HAVE_SYS_PARAM_H
13825 #include <sys/param.h>
13829 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_SYS_SYSCTL_H 1
13840 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13842 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 #include <sys/queue.h>
13847 #ifdef TAILQ_FOREACH
13852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13853 $EGREP "yes" >/dev/null 2>&1; then :
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855 $as_echo "yes" >&6; }
13857 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13868 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13870 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13874 #include <sys/time.h>
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "yes" >/dev/null 2>&1; then :
13883 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13886 $as_echo "yes" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889 $as_echo "no" >&6; }
13896 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13898 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13900 /* end confdefs.h. */
13902 #include <sys/time.h>
13908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13909 $EGREP "yes" >/dev/null 2>&1; then :
13911 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13914 $as_echo "yes" >&6; }
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13924 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13926 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 #include <sys/time.h>
13936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13937 $EGREP "yes" >/dev/null 2>&1; then :
13939 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13942 $as_echo "yes" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13952 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13954 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956 /* end confdefs.h. */
13958 #include <sys/time.h>
13964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13965 $EGREP "yes" >/dev/null 2>&1; then :
13967 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13970 $as_echo "yes" >&6; }
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13980 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13981 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13982 #include <sys/sysctl.h>
13985 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13991 cat >>confdefs.h <<_ACEOF
13992 #define HAVE_DECL_CTL_KERN $ac_have_decl
13994 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13995 #include <sys/sysctl.h>
13998 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
14004 cat >>confdefs.h <<_ACEOF
14005 #define HAVE_DECL_KERN_ARND $ac_have_decl
14010 if test x$bwin32 = xtrue; then
14012 BUILD_WIN32_FALSE='#'
14014 BUILD_WIN32_TRUE='#'
14018 if test x$cygwin = xtrue; then
14020 BUILD_CYGWIN_FALSE='#'
14022 BUILD_CYGWIN_TRUE='#'
14023 BUILD_CYGWIN_FALSE=
14026 if test x$midipix = xtrue; then
14027 BUILD_MIDIPIX_TRUE=
14028 BUILD_MIDIPIX_FALSE='#'
14030 BUILD_MIDIPIX_TRUE='#'
14031 BUILD_MIDIPIX_FALSE=
14034 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then
14035 BUILD_WITH_NO_UNDEFINED_TRUE=
14036 BUILD_WITH_NO_UNDEFINED_FALSE='#'
14038 BUILD_WITH_NO_UNDEFINED_TRUE='#'
14039 BUILD_WITH_NO_UNDEFINED_FALSE=
14043 if test x$bwin32 = xtrue; then
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
14045 $as_echo_n "checking for main in -lws2_32... " >&6; }
14046 if ${ac_cv_lib_ws2_32_main+:} false; then :
14047 $as_echo_n "(cached) " >&6
14049 ac_check_lib_save_LIBS=$LIBS
14050 LIBS="-lws2_32 $LIBS"
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14063 if ac_fn_c_try_link "$LINENO"; then :
14064 ac_cv_lib_ws2_32_main=yes
14066 ac_cv_lib_ws2_32_main=no
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
14073 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
14074 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
14075 cat >>confdefs.h <<_ACEOF
14076 #define HAVE_LIBWS2_32 1
14079 LIBS="-lws2_32 $LIBS"
14082 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14087 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14088 if ${ac_cv_c_const+:} false; then :
14089 $as_echo_n "(cached) " >&6
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14098 #ifndef __cplusplus
14099 /* Ultrix mips cc rejects this sort of thing. */
14100 typedef int charset[2];
14101 const charset cs = { 0, 0 };
14102 /* SunOS 4.1.1 cc rejects this. */
14103 char const *const *pcpcc;
14105 /* NEC SVR4.0.2 mips cc rejects this. */
14106 struct point {int x, y;};
14107 static struct point const zero = {0,0};
14108 /* AIX XL C 1.02.0.0 rejects this.
14109 It does not let you subtract one const X* pointer from another in
14110 an arm of an if-expression whose if-part is not a constant
14112 const char *g = "string";
14113 pcpcc = &g + (g ? g-g : 0);
14114 /* HPUX 7.0 cc rejects these. */
14116 ppc = (char**) pcpcc;
14117 pcpcc = (char const *const *) ppc;
14118 { /* SCO 3.2v4 cc rejects this sort of thing. */
14121 char const *s = 0 ? (char *) 0 : (char const *) 0;
14126 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14127 int x[] = {25, 17};
14128 const int *foo = &x[0];
14131 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14132 typedef const int *iptr;
14136 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14137 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14138 struct s { int j; const int *ap[3]; } bx;
14139 struct s *b = &bx; b->j = 5;
14141 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14142 const int foo = 10;
14143 if (!foo) return 0;
14145 return !cs[0] && !zero.x;
14152 if ac_fn_c_try_compile "$LINENO"; then :
14157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14160 $as_echo "$ac_cv_c_const" >&6; }
14161 if test $ac_cv_c_const = no; then
14163 $as_echo "#define const /**/" >>confdefs.h
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14168 $as_echo_n "checking for inline... " >&6; }
14169 if ${ac_cv_c_inline+:} false; then :
14170 $as_echo_n "(cached) " >&6
14173 for ac_kw in inline __inline__ __inline; do
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176 #ifndef __cplusplus
14178 static $ac_kw foo_t static_foo () {return 0; }
14179 $ac_kw foo_t foo () {return 0; }
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184 ac_cv_c_inline=$ac_kw
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 test "$ac_cv_c_inline" != no && break
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14192 $as_echo "$ac_cv_c_inline" >&6; }
14194 case $ac_cv_c_inline in
14197 case $ac_cv_c_inline in
14199 *) ac_val=$ac_cv_c_inline;;
14201 cat >>confdefs.h <<_ACEOF
14202 #ifndef __cplusplus
14203 #define inline $ac_val
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14210 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14211 if ${ac_cv_header_time+:} false; then :
14212 $as_echo_n "(cached) " >&6
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216 #include <sys/types.h>
14217 #include <sys/time.h>
14223 if ((struct tm *) 0)
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 ac_cv_header_time=yes
14232 ac_cv_header_time=no
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14237 $as_echo "$ac_cv_header_time" >&6; }
14238 if test $ac_cv_header_time = yes; then
14240 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14249 arc4random_addrandom \
14258 mach_absolute_time \
14283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14285 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14286 cat >>confdefs.h <<_ACEOF
14287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14294 if test x$bwin32 = xtrue; then :
14295 for ac_func in _gmtime64_s
14297 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
14298 if test "x$ac_cv_func__gmtime64_s" = xyes; then :
14299 cat >>confdefs.h <<_ACEOF
14300 #define HAVE__GMTIME64_S 1
14304 for ac_func in _gmtime64
14306 ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64"
14307 if test "x$ac_cv_func__gmtime64" = xyes; then :
14308 cat >>confdefs.h <<_ACEOF
14309 #define HAVE__GMTIME64 1
14321 if test x"$ac_cv_func_strlcpy" = xno; then
14323 STRLCPY_IMPL_FALSE='#'
14325 STRLCPY_IMPL_TRUE='#'
14326 STRLCPY_IMPL_FALSE=
14332 if test x$bwin32 = xtrue; then :
14333 if test "x#ifdef _WIN32
14334 #include <winsock2.h>
14335 #include <ws2tcpip.h>
14336 #endif" = "x"; then :
14337 as_fn_error $? "header not privided" "$LINENO" 5
14339 if test "x#ifdef _WIN32
14340 #include <winsock2.h>
14341 #include <ws2tcpip.h>
14342 #endif" = "x"; then :
14343 as_fn_error $? "header not privided" "$LINENO" 5
14346 ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32
14347 #include <winsock2.h>
14348 #include <ws2tcpip.h>
14351 if test "x$ac_cv_have_decl_decl" = xyes; then :
14353 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
14357 if test "x#ifdef _WIN32
14358 #include <winsock2.h>
14359 #include <ws2tcpip.h>
14360 #endif" = "x"; then :
14361 as_fn_error $? "header not privided" "$LINENO" 5
14364 ac_fn_c_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" " #ifdef _WIN32
14365 #include <winsock2.h>
14366 #include <ws2tcpip.h>
14369 if test "x$ac_cv_have_decl_decl" = xyes; then :
14371 $as_echo "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
14375 if test "x#ifdef _WIN32
14376 #include <winsock2.h>
14377 #include <ws2tcpip.h>
14378 #endif" = "x"; then :
14379 as_fn_error $? "header not privided" "$LINENO" 5
14382 ac_fn_c_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" " #ifdef _WIN32
14383 #include <winsock2.h>
14384 #include <ws2tcpip.h>
14387 if test "x$ac_cv_have_decl_decl" = xyes; then :
14389 $as_echo "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
14393 if test "x#ifdef _WIN32
14394 #include <winsock2.h>
14395 #include <ws2tcpip.h>
14396 #endif" = "x"; then :
14397 as_fn_error $? "header not privided" "$LINENO" 5
14400 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" " #ifdef _WIN32
14401 #include <winsock2.h>
14402 #include <ws2tcpip.h>
14405 if test "x$ac_cv_have_decl_decl" = xyes; then :
14407 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
14411 if test "x#ifdef _WIN32
14412 #include <winsock2.h>
14413 #include <ws2tcpip.h>
14414 #endif" = "x"; then :
14415 as_fn_error $? "header not privided" "$LINENO" 5
14418 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" " #ifdef _WIN32
14419 #include <winsock2.h>
14420 #include <ws2tcpip.h>
14423 if test "x$ac_cv_have_decl_decl" = xyes; then :
14425 $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
14429 if test "x#ifdef _WIN32
14430 #include <winsock2.h>
14431 #include <ws2tcpip.h>
14432 #endif" = "x"; then :
14433 as_fn_error $? "header not privided" "$LINENO" 5
14436 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32
14437 #include <winsock2.h>
14438 #include <ws2tcpip.h>
14441 if test "x$ac_cv_have_decl_decl" = xyes; then :
14443 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14450 for ac_func in getnameinfo getprotobynumber getservbyname inet_ntop inet_pton
14452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14454 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14455 cat >>confdefs.h <<_ACEOF
14456 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14467 if test x$bwin32 = xfalse; then :
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
14470 $as_echo_n "checking for getaddrinfo... " >&6; }
14471 if ${libevent_cv_getaddrinfo+:} false; then :
14472 $as_echo_n "(cached) " >&6
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14477 #ifdef HAVE_NETDB_H
14492 if ac_fn_c_try_link "$LINENO"; then :
14493 libevent_cv_getaddrinfo=yes
14495 libevent_cv_getaddrinfo=no
14498 rm -f core conftest.err conftest.$ac_objext \
14499 conftest$ac_exeext conftest.$ac_ext
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
14503 $as_echo "$libevent_cv_getaddrinfo" >&6; }
14504 if test "$libevent_cv_getaddrinfo" = "yes" ; then
14506 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14510 # Check for gethostbyname_r in all its glorious incompatible versions.
14511 # (This is cut-and-pasted from Tor, which based its logic on
14512 # Python's configure.in.)
14515 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14516 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
14519 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
14521 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14532 struct hostent *h1, *h2;
14534 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
14540 if ac_fn_c_try_compile "$LINENO"; then :
14542 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14545 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
14548 $as_echo "6" >&6; }
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14562 struct hostent *h1;
14564 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
14570 if ac_fn_c_try_compile "$LINENO"; then :
14572 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14575 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
14578 $as_echo "5" >&6; }
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14592 struct hostent *h1;
14593 struct hostent_data hd;
14594 (void) gethostbyname_r(cp1,h1,&hd);
14600 if ac_fn_c_try_compile "$LINENO"; then :
14602 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14605 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
14608 $as_echo "3" >&6; }
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
14613 $as_echo "0" >&6; }
14616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
14632 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 #define _GNU_SOURCE 1
14643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14644 $EGREP "yes" >/dev/null 2>&1; then :
14646 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14649 $as_echo "yes" >&6; }
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14652 $as_echo "no" >&6; }
14659 if test x$bwin32 != xtrue; then
14660 for ac_func in select
14662 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14663 if test "x$ac_cv_func_select" = xyes; then :
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_SELECT 1
14671 if test "x$haveselect" = "xyes" ; then
14675 if test "x$haveselect" = "xyes"; then
14676 SELECT_BACKEND_TRUE=
14677 SELECT_BACKEND_FALSE='#'
14679 SELECT_BACKEND_TRUE='#'
14680 SELECT_BACKEND_FALSE=
14685 for ac_func in poll
14687 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14688 if test "x$ac_cv_func_poll" = xyes; then :
14689 cat >>confdefs.h <<_ACEOF
14690 #define HAVE_POLL 1
14696 if test "x$havepoll" = "xyes" ; then
14699 if test "x$havepoll" = "xyes"; then
14701 POLL_BACKEND_FALSE='#'
14703 POLL_BACKEND_TRUE='#'
14704 POLL_BACKEND_FALSE=
14709 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14711 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14714 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14715 DEVPOLL_BACKEND_TRUE=
14716 DEVPOLL_BACKEND_FALSE='#'
14718 DEVPOLL_BACKEND_TRUE='#'
14719 DEVPOLL_BACKEND_FALSE=
14724 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
14725 for ac_func in kqueue
14727 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14728 if test "x$ac_cv_func_kqueue" = xyes; then :
14729 cat >>confdefs.h <<_ACEOF
14730 #define HAVE_KQUEUE 1
14736 if test "x$havekqueue" = "xyes" ; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
14738 $as_echo_n "checking for working kqueue... " >&6; }
14739 if test "$cross_compiling" = yes; then :
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741 $as_echo "no" >&6; }
14744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14745 /* end confdefs.h. */
14747 #ifdef HAVE_STDLIB_H
14748 #include <stdlib.h>
14750 #ifdef HAVE_STRING_H
14751 #include <string.h>
14753 #include <sys/types.h>
14754 #include <sys/time.h>
14755 #include <sys/event.h>
14757 #include <unistd.h>
14768 struct timespec ts;
14771 if (pipe(fd) == -1)
14773 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
14776 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
14779 if ((kq = kqueue()) == -1)
14782 memset(&ev, 0, sizeof(ev));
14784 ev.filter = EVFILT_WRITE;
14785 ev.flags = EV_ADD | EV_ENABLE;
14786 n = kevent(kq, &ev, 1, NULL, 0, NULL);
14790 read(fd[0], buf, sizeof(buf));
14794 n = kevent(kq, NULL, 0, &ev, 1, &ts);
14795 if (n == -1 || n == 0)
14805 if ac_fn_c_try_run "$LINENO"; then :
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807 $as_echo "yes" >&6; }
14809 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14815 $as_echo "no" >&6; }
14817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14818 conftest.$ac_objext conftest.beam conftest.$ac_ext
14823 if test "x$havekqueue" = "xyes"; then
14824 KQUEUE_BACKEND_TRUE=
14825 KQUEUE_BACKEND_FALSE='#'
14827 KQUEUE_BACKEND_TRUE='#'
14828 KQUEUE_BACKEND_FALSE=
14832 haveepollsyscall=no
14834 for ac_func in epoll_ctl
14836 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14837 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_EPOLL_CTL 1
14845 if test "x$haveepoll" = "xyes" ; then
14847 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14851 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
14852 if test "x$haveepoll" = "xno" ; then
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14854 $as_echo_n "checking for epoll system call... " >&6; }
14855 if test "$cross_compiling" = yes; then :
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857 $as_echo "no" >&6; }
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14863 #include <stdint.h>
14864 #include <sys/param.h>
14865 #include <sys/types.h>
14866 #include <sys/syscall.h>
14867 #include <sys/epoll.h>
14868 #include <unistd.h>
14871 epoll_create(int size)
14873 return (syscall(__NR_epoll_create, size));
14882 epfd = epoll_create(256);
14883 return (epfd == -1 ? 1 : 0);
14890 if ac_fn_c_try_run "$LINENO"; then :
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14892 $as_echo "yes" >&6; }
14894 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14898 case " $LIBOBJS " in
14899 *" epoll_sub.$ac_objext "* ) ;;
14900 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14907 $as_echo "no" >&6; }
14909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14910 conftest.$ac_objext conftest.beam conftest.$ac_ext
14915 if test "x$haveepoll" = "xyes"; then
14916 EPOLL_BACKEND_TRUE=
14917 EPOLL_BACKEND_FALSE='#'
14919 EPOLL_BACKEND_TRUE='#'
14920 EPOLL_BACKEND_FALSE=
14925 for ac_func in port_create
14927 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14928 if test "x$ac_cv_func_port_create" = xyes; then :
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_PORT_CREATE 1
14936 if test "x$haveeventports" = "xyes" ; then
14938 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14942 if test "x$haveeventports" = "xyes"; then
14943 EVPORT_BACKEND_TRUE=
14944 EVPORT_BACKEND_FALSE='#'
14946 EVPORT_BACKEND_TRUE='#'
14947 EVPORT_BACKEND_FALSE=
14951 if test "x$bwin32" = "xtrue"; then
14955 if test "x$needsignal" = "xyes"; then
14956 SIGNAL_SUPPORT_TRUE=
14957 SIGNAL_SUPPORT_FALSE='#'
14959 SIGNAL_SUPPORT_TRUE='#'
14960 SIGNAL_SUPPORT_FALSE=
14964 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14965 if test "x$ac_cv_type_pid_t" = xyes; then :
14969 cat >>confdefs.h <<_ACEOF
14975 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14976 if test "x$ac_cv_type_size_t" = xyes; then :
14980 cat >>confdefs.h <<_ACEOF
14981 #define size_t unsigned int
14986 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14987 if test "x$ac_cv_type_ssize_t" = xyes; then :
14991 cat >>confdefs.h <<_ACEOF
14992 #define ssize_t int
14998 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14999 #include <stdint.h>
15000 #elif defined(HAVE_INTTYPES_H)
15001 #include <inttypes.h>
15003 #ifdef HAVE_SYS_TYPES_H
15004 #include <sys/types.h>
15007 if test "x$ac_cv_type_uint64_t" = xyes; then :
15009 cat >>confdefs.h <<_ACEOF
15010 #define HAVE_UINT64_T 1
15015 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
15016 #include <stdint.h>
15017 #elif defined(HAVE_INTTYPES_H)
15018 #include <inttypes.h>
15020 #ifdef HAVE_SYS_TYPES_H
15021 #include <sys/types.h>
15024 if test "x$ac_cv_type_uint32_t" = xyes; then :
15026 cat >>confdefs.h <<_ACEOF
15027 #define HAVE_UINT32_T 1
15032 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
15033 #include <stdint.h>
15034 #elif defined(HAVE_INTTYPES_H)
15035 #include <inttypes.h>
15037 #ifdef HAVE_SYS_TYPES_H
15038 #include <sys/types.h>
15041 if test "x$ac_cv_type_uint16_t" = xyes; then :
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_UINT16_T 1
15049 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
15050 #include <stdint.h>
15051 #elif defined(HAVE_INTTYPES_H)
15052 #include <inttypes.h>
15054 #ifdef HAVE_SYS_TYPES_H
15055 #include <sys/types.h>
15058 if test "x$ac_cv_type_uint8_t" = xyes; then :
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_UINT8_T 1
15066 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
15067 #include <stdint.h>
15068 #elif defined(HAVE_INTTYPES_H)
15069 #include <inttypes.h>
15071 #ifdef HAVE_SYS_TYPES_H
15072 #include <sys/types.h>
15075 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15077 cat >>confdefs.h <<_ACEOF
15078 #define HAVE_UINTPTR_T 1
15085 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
15086 #include <sys/types.h>
15088 #ifdef HAVE_SYS_SELECT_H
15089 #include <sys/select.h>
15092 if test "x$ac_cv_type_fd_mask" = xyes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_FD_MASK 1
15102 # The cast to long int works around a bug in the HP C Compiler
15103 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15104 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15105 # This bug is HP SR number 8606223364.
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
15107 $as_echo_n "checking size of long long... " >&6; }
15108 if ${ac_cv_sizeof_long_long+:} false; then :
15109 $as_echo_n "(cached) " >&6
15111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
15114 if test "$ac_cv_type_long_long" = yes; then
15115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15117 as_fn_error 77 "cannot compute sizeof (long long)
15118 See \`config.log' for more details" "$LINENO" 5; }
15120 ac_cv_sizeof_long_long=0
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
15126 $as_echo "$ac_cv_sizeof_long_long" >&6; }
15130 cat >>confdefs.h <<_ACEOF
15131 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15135 # The cast to long int works around a bug in the HP C Compiler
15136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15138 # This bug is HP SR number 8606223364.
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15140 $as_echo_n "checking size of long... " >&6; }
15141 if ${ac_cv_sizeof_long+:} false; then :
15142 $as_echo_n "(cached) " >&6
15144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15147 if test "$ac_cv_type_long" = yes; then
15148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15150 as_fn_error 77 "cannot compute sizeof (long)
15151 See \`config.log' for more details" "$LINENO" 5; }
15153 ac_cv_sizeof_long=0
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15159 $as_echo "$ac_cv_sizeof_long" >&6; }
15163 cat >>confdefs.h <<_ACEOF
15164 #define SIZEOF_LONG $ac_cv_sizeof_long
15168 # The cast to long int works around a bug in the HP C Compiler
15169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15171 # This bug is HP SR number 8606223364.
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15173 $as_echo_n "checking size of int... " >&6; }
15174 if ${ac_cv_sizeof_int+:} false; then :
15175 $as_echo_n "(cached) " >&6
15177 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15180 if test "$ac_cv_type_int" = yes; then
15181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15183 as_fn_error 77 "cannot compute sizeof (int)
15184 See \`config.log' for more details" "$LINENO" 5; }
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15192 $as_echo "$ac_cv_sizeof_int" >&6; }
15196 cat >>confdefs.h <<_ACEOF
15197 #define SIZEOF_INT $ac_cv_sizeof_int
15201 # The cast to long int works around a bug in the HP C Compiler
15202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15204 # This bug is HP SR number 8606223364.
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15206 $as_echo_n "checking size of short... " >&6; }
15207 if ${ac_cv_sizeof_short+:} false; then :
15208 $as_echo_n "(cached) " >&6
15210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15213 if test "$ac_cv_type_short" = yes; then
15214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15216 as_fn_error 77 "cannot compute sizeof (short)
15217 See \`config.log' for more details" "$LINENO" 5; }
15219 ac_cv_sizeof_short=0
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15225 $as_echo "$ac_cv_sizeof_short" >&6; }
15229 cat >>confdefs.h <<_ACEOF
15230 #define SIZEOF_SHORT $ac_cv_sizeof_short
15234 # The cast to long int works around a bug in the HP C Compiler
15235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15237 # This bug is HP SR number 8606223364.
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
15239 $as_echo_n "checking size of size_t... " >&6; }
15240 if ${ac_cv_sizeof_size_t+:} false; then :
15241 $as_echo_n "(cached) " >&6
15243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
15246 if test "$ac_cv_type_size_t" = yes; then
15247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15249 as_fn_error 77 "cannot compute sizeof (size_t)
15250 See \`config.log' for more details" "$LINENO" 5; }
15252 ac_cv_sizeof_size_t=0
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
15258 $as_echo "$ac_cv_sizeof_size_t" >&6; }
15262 cat >>confdefs.h <<_ACEOF
15263 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
15267 # The cast to long int works around a bug in the HP C Compiler
15268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15270 # This bug is HP SR number 8606223364.
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15272 $as_echo_n "checking size of void *... " >&6; }
15273 if ${ac_cv_sizeof_void_p+:} false; then :
15274 $as_echo_n "(cached) " >&6
15276 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15279 if test "$ac_cv_type_void_p" = yes; then
15280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15282 as_fn_error 77 "cannot compute sizeof (void *)
15283 See \`config.log' for more details" "$LINENO" 5; }
15285 ac_cv_sizeof_void_p=0
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15291 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15295 cat >>confdefs.h <<_ACEOF
15296 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15300 # The cast to long int works around a bug in the HP C Compiler
15301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15303 # This bug is HP SR number 8606223364.
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15305 $as_echo_n "checking size of off_t... " >&6; }
15306 if ${ac_cv_sizeof_off_t+:} false; then :
15307 $as_echo_n "(cached) " >&6
15309 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15312 if test "$ac_cv_type_off_t" = yes; then
15313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15315 as_fn_error 77 "cannot compute sizeof (off_t)
15316 See \`config.log' for more details" "$LINENO" 5; }
15318 ac_cv_sizeof_off_t=0
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15324 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15328 cat >>confdefs.h <<_ACEOF
15329 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15333 # The cast to long int works around a bug in the HP C Compiler
15334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15336 # This bug is HP SR number 8606223364.
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
15338 $as_echo_n "checking size of time_t... " >&6; }
15339 if ${ac_cv_sizeof_time_t+:} false; then :
15340 $as_echo_n "(cached) " >&6
15342 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
15345 if test "$ac_cv_type_time_t" = yes; then
15346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15348 as_fn_error 77 "cannot compute sizeof (time_t)
15349 See \`config.log' for more details" "$LINENO" 5; }
15351 ac_cv_sizeof_time_t=0
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
15357 $as_echo "$ac_cv_sizeof_time_t" >&6; }
15361 cat >>confdefs.h <<_ACEOF
15362 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
15367 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1
15368 #include <sys/types.h>
15369 #ifdef HAVE_NETINET_IN_H
15370 #include <netinet/in.h>
15372 #ifdef HAVE_NETINET_IN6_H
15373 #include <netinet/in6.h>
15375 #ifdef HAVE_SYS_UN_H
15376 #include <sys/un.h>
15378 #ifdef HAVE_SYS_SOCKET_H
15379 #include <sys/socket.h>
15381 #ifdef HAVE_NETDB_H
15385 #define WIN32_WINNT 0x400
15386 #define _WIN32_WINNT 0x400
15387 #define WIN32_LEAN_AND_MEAN
15388 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15389 #include <winsock.h>
15391 #include <winsock2.h>
15392 #include <ws2tcpip.h>
15397 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15399 cat >>confdefs.h <<_ACEOF
15400 #define HAVE_STRUCT_IN6_ADDR 1
15405 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1
15406 #include <sys/types.h>
15407 #ifdef HAVE_NETINET_IN_H
15408 #include <netinet/in.h>
15410 #ifdef HAVE_NETINET_IN6_H
15411 #include <netinet/in6.h>
15413 #ifdef HAVE_SYS_UN_H
15414 #include <sys/un.h>
15416 #ifdef HAVE_SYS_SOCKET_H
15417 #include <sys/socket.h>
15419 #ifdef HAVE_NETDB_H
15423 #define WIN32_WINNT 0x400
15424 #define _WIN32_WINNT 0x400
15425 #define WIN32_LEAN_AND_MEAN
15426 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15427 #include <winsock.h>
15429 #include <winsock2.h>
15430 #include <ws2tcpip.h>
15435 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15437 cat >>confdefs.h <<_ACEOF
15438 #define HAVE_STRUCT_SOCKADDR_IN6 1
15443 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1
15444 #include <sys/types.h>
15445 #ifdef HAVE_NETINET_IN_H
15446 #include <netinet/in.h>
15448 #ifdef HAVE_NETINET_IN6_H
15449 #include <netinet/in6.h>
15451 #ifdef HAVE_SYS_UN_H
15452 #include <sys/un.h>
15454 #ifdef HAVE_SYS_SOCKET_H
15455 #include <sys/socket.h>
15457 #ifdef HAVE_NETDB_H
15461 #define WIN32_WINNT 0x400
15462 #define _WIN32_WINNT 0x400
15463 #define WIN32_LEAN_AND_MEAN
15464 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15465 #include <winsock.h>
15467 #include <winsock2.h>
15468 #include <ws2tcpip.h>
15473 if test "x$ac_cv_type_struct_sockaddr_un" = xyes; then :
15475 cat >>confdefs.h <<_ACEOF
15476 #define HAVE_STRUCT_SOCKADDR_UN 1
15481 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1
15482 #include <sys/types.h>
15483 #ifdef HAVE_NETINET_IN_H
15484 #include <netinet/in.h>
15486 #ifdef HAVE_NETINET_IN6_H
15487 #include <netinet/in6.h>
15489 #ifdef HAVE_SYS_UN_H
15490 #include <sys/un.h>
15492 #ifdef HAVE_SYS_SOCKET_H
15493 #include <sys/socket.h>
15495 #ifdef HAVE_NETDB_H
15499 #define WIN32_WINNT 0x400
15500 #define _WIN32_WINNT 0x400
15501 #define WIN32_LEAN_AND_MEAN
15502 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15503 #include <winsock.h>
15505 #include <winsock2.h>
15506 #include <ws2tcpip.h>
15511 if test "x$ac_cv_type_sa_family_t" = xyes; then :
15513 cat >>confdefs.h <<_ACEOF
15514 #define HAVE_SA_FAMILY_T 1
15519 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1
15520 #include <sys/types.h>
15521 #ifdef HAVE_NETINET_IN_H
15522 #include <netinet/in.h>
15524 #ifdef HAVE_NETINET_IN6_H
15525 #include <netinet/in6.h>
15527 #ifdef HAVE_SYS_UN_H
15528 #include <sys/un.h>
15530 #ifdef HAVE_SYS_SOCKET_H
15531 #include <sys/socket.h>
15533 #ifdef HAVE_NETDB_H
15537 #define WIN32_WINNT 0x400
15538 #define _WIN32_WINNT 0x400
15539 #define WIN32_LEAN_AND_MEAN
15540 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15541 #include <winsock.h>
15543 #include <winsock2.h>
15544 #include <ws2tcpip.h>
15549 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
15551 cat >>confdefs.h <<_ACEOF
15552 #define HAVE_STRUCT_ADDRINFO 1
15557 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1
15558 #include <sys/types.h>
15559 #ifdef HAVE_NETINET_IN_H
15560 #include <netinet/in.h>
15562 #ifdef HAVE_NETINET_IN6_H
15563 #include <netinet/in6.h>
15565 #ifdef HAVE_SYS_UN_H
15566 #include <sys/un.h>
15568 #ifdef HAVE_SYS_SOCKET_H
15569 #include <sys/socket.h>
15571 #ifdef HAVE_NETDB_H
15575 #define WIN32_WINNT 0x400
15576 #define _WIN32_WINNT 0x400
15577 #define WIN32_LEAN_AND_MEAN
15578 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15579 #include <winsock.h>
15581 #include <winsock2.h>
15582 #include <ws2tcpip.h>
15587 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
15589 cat >>confdefs.h <<_ACEOF
15590 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15596 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
15597 #ifdef HAVE_NETINET_IN_H
15598 #include <netinet/in.h>
15600 #ifdef HAVE_NETINET_IN6_H
15601 #include <netinet/in6.h>
15603 #ifdef HAVE_SYS_SOCKET_H
15604 #include <sys/socket.h>
15607 #define WIN32_WINNT 0x400
15608 #define _WIN32_WINNT 0x400
15609 #define WIN32_LEAN_AND_MEAN
15610 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15611 #include <winsock.h>
15613 #include <winsock2.h>
15614 #include <ws2tcpip.h>
15619 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
15621 cat >>confdefs.h <<_ACEOF
15622 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
15627 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
15628 #ifdef HAVE_NETINET_IN_H
15629 #include <netinet/in.h>
15631 #ifdef HAVE_NETINET_IN6_H
15632 #include <netinet/in6.h>
15634 #ifdef HAVE_SYS_SOCKET_H
15635 #include <sys/socket.h>
15638 #define WIN32_WINNT 0x400
15639 #define _WIN32_WINNT 0x400
15640 #define WIN32_LEAN_AND_MEAN
15641 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15642 #include <winsock.h>
15644 #include <winsock2.h>
15645 #include <ws2tcpip.h>
15650 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
15658 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
15659 #ifdef HAVE_NETINET_IN_H
15660 #include <netinet/in.h>
15662 #ifdef HAVE_NETINET_IN6_H
15663 #include <netinet/in6.h>
15665 #ifdef HAVE_SYS_SOCKET_H
15666 #include <sys/socket.h>
15669 #define WIN32_WINNT 0x400
15670 #define _WIN32_WINNT 0x400
15671 #define WIN32_LEAN_AND_MEAN
15672 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15673 #include <winsock.h>
15675 #include <winsock2.h>
15676 #include <ws2tcpip.h>
15681 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
15689 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
15690 #ifdef HAVE_NETINET_IN_H
15691 #include <netinet/in.h>
15693 #ifdef HAVE_NETINET_IN6_H
15694 #include <netinet/in6.h>
15696 #ifdef HAVE_SYS_SOCKET_H
15697 #include <sys/socket.h>
15700 #define WIN32_WINNT 0x400
15701 #define _WIN32_WINNT 0x400
15702 #define WIN32_LEAN_AND_MEAN
15703 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15704 #include <winsock.h>
15706 #include <winsock2.h>
15707 #include <ws2tcpip.h>
15712 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
15714 cat >>confdefs.h <<_ACEOF
15715 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
15720 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15721 #ifdef HAVE_NETINET_IN_H
15722 #include <netinet/in.h>
15724 #ifdef HAVE_NETINET_IN6_H
15725 #include <netinet/in6.h>
15727 #ifdef HAVE_SYS_SOCKET_H
15728 #include <sys/socket.h>
15731 #define WIN32_WINNT 0x400
15732 #define _WIN32_WINNT 0x400
15733 #define WIN32_LEAN_AND_MEAN
15734 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15735 #include <winsock.h>
15737 #include <winsock2.h>
15738 #include <ws2tcpip.h>
15743 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15751 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15752 #ifdef HAVE_NETINET_IN_H
15753 #include <netinet/in.h>
15755 #ifdef HAVE_NETINET_IN6_H
15756 #include <netinet/in6.h>
15758 #ifdef HAVE_SYS_SOCKET_H
15759 #include <sys/socket.h>
15762 #define WIN32_WINNT 0x400
15763 #define _WIN32_WINNT 0x400
15764 #define WIN32_LEAN_AND_MEAN
15765 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15766 #include <winsock.h>
15768 #include <winsock2.h>
15769 #include <ws2tcpip.h>
15774 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15776 cat >>confdefs.h <<_ACEOF
15777 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15784 ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" "
15785 #ifdef HAVE_SYS_SOCKET_H
15786 #include <sys/socket.h>
15789 #include <winsock2.h>
15793 if test "x$ac_cv_type_struct_linger" = xyes; then :
15795 cat >>confdefs.h <<_ACEOF
15796 #define HAVE_STRUCT_LINGER 1
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15804 $as_echo_n "checking for socklen_t... " >&6; }
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15808 #include <sys/types.h>
15810 #include <ws2tcpip.h>
15812 #include <sys/socket.h>
15824 if ac_fn_c_try_compile "$LINENO"; then :
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15826 $as_echo "yes" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829 $as_echo "no" >&6; }
15831 $as_echo "#define socklen_t unsigned int" >>confdefs.h
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15837 # __func__/__FUNCTION__ is not a macros in general
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
15839 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15846 const char *cp = __func__;
15852 if ac_fn_c_try_compile "$LINENO"; then :
15854 $as_echo "#define HAVE___func__ 1" >>confdefs.h
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15857 $as_echo "yes" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
15866 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15873 const char *cp = __FUNCTION__;
15879 if ac_fn_c_try_compile "$LINENO"; then :
15881 $as_echo "#define HAVE___FUNCTION__ 1" >>confdefs.h
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15884 $as_echo "yes" >&6; }
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15888 $as_echo "no" >&6; }
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15893 # check if we can compile with pthreads
15895 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
15900 ac_cpp='$CPP $CPPFLAGS'
15901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15907 # We used to check for pthread.h first, but this fails if pthread.h
15908 # requires special compiler flags (e.g. on True64 or Sequent).
15909 # It gets checked for in the link test anyway.
15911 # First of all, check if the user has set any of the PTHREAD_LIBS,
15912 # etcetera environment variables, and if threads linking works using
15914 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15915 save_CFLAGS="$CFLAGS"
15916 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15918 LIBS="$PTHREAD_LIBS $LIBS"
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15920 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15930 char pthread_join ();
15934 return pthread_join ();
15939 if ac_fn_c_try_link "$LINENO"; then :
15942 rm -f core conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15945 $as_echo "$acx_pthread_ok" >&6; }
15946 if test x"$acx_pthread_ok" = xno; then
15951 CFLAGS="$save_CFLAGS"
15954 # We must check for the threads library under a number of different
15955 # names; the ordering is very important because some systems
15956 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15957 # libraries is broken (non-POSIX).
15959 # Create a list of thread flags to try. Items starting with a "-" are
15960 # C compiler flags, and other items are library names, except for "none"
15961 # which indicates that we try without any flags at all, and "pthread-config"
15962 # which is a program returning the flags for the Pth emulation library.
15964 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15966 # The ordering *is* (sometimes) important. Some notes on the
15967 # individual items follow:
15969 # pthreads: AIX (must check this before -lpthread)
15970 # none: in case threads are in libc; should be tried before -Kthread and
15971 # other compiler flags to prevent continual compiler warnings
15972 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15973 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15974 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15975 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15976 # -pthreads: Solaris/gcc
15977 # -mthreads: Mingw32/gcc, Lynx/gcc
15978 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15979 # doesn't hurt to check since this sometimes defines pthreads too;
15980 # also defines -D_REENTRANT)
15981 # ... -mt is also the pthreads flag for HP/aCC
15982 # pthread: Linux, etcetera
15983 # --thread-safe: KAI C++
15984 # pthread-config: use pthread-config program (for GNU Pth library)
15986 case "${host_cpu}-${host_os}" in
15989 # On Solaris (at least, for some versions), libc contains stubbed
15990 # (non-functional) versions of the pthreads routines, so link-based
15991 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15992 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15993 # a function called by this macro, so we could check for that, but
15994 # who knows whether they'll stub that too in a future libc.) So,
15995 # we'll just look for -pthreads and -lpthread first:
15997 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16001 if test x"$acx_pthread_ok" = xno; then
16002 for flag in $acx_pthread_flags; do
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16007 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16012 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16013 PTHREAD_CFLAGS="$flag"
16017 # Extract the first word of "pthread-config", so it can be a program name with args.
16018 set dummy pthread-config; ac_word=$2
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16020 $as_echo_n "checking for $ac_word... " >&6; }
16021 if ${ac_cv_prog_acx_pthread_config+:} false; then :
16022 $as_echo_n "(cached) " >&6
16024 if test -n "$acx_pthread_config"; then
16025 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028 for as_dir in $PATH
16031 test -z "$as_dir" && as_dir=.
16032 for ac_exec_ext in '' $ac_executable_extensions; do
16033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16034 ac_cv_prog_acx_pthread_config="yes"
16035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16042 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16045 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16046 if test -n "$acx_pthread_config"; then
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16048 $as_echo "$acx_pthread_config" >&6; }
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051 $as_echo "no" >&6; }
16055 if test x"$acx_pthread_config" = xno; then continue; fi
16056 PTHREAD_CFLAGS="`pthread-config --cflags`"
16057 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16062 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16063 PTHREAD_LIBS="-l$flag"
16068 save_CFLAGS="$CFLAGS"
16069 LIBS="$PTHREAD_LIBS $LIBS"
16070 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16072 # Check for various functions. We must include pthread.h,
16073 # since some functions may be macros. (On the Sequent, we
16074 # need a special flag -Kthread to make this header compile.)
16075 # We check for pthread_join because it is in -lpthread on IRIX
16076 # while pthread_create is in libc. We check for pthread_attr_init
16077 # due to DEC craziness with -lpthreads. We check for
16078 # pthread_cleanup_push because it is one of the few pthread
16079 # functions on Solaris that doesn't have a non-functional libc stub.
16080 # We try pthread_create on general principles.
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <pthread.h>
16087 pthread_t th; pthread_join(th, 0);
16088 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16089 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16094 if ac_fn_c_try_link "$LINENO"; then :
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16101 CFLAGS="$save_CFLAGS"
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16104 $as_echo "$acx_pthread_ok" >&6; }
16105 if test "x$acx_pthread_ok" = xyes; then
16114 # Various other checks:
16115 if test "x$acx_pthread_ok" = xyes; then
16117 LIBS="$PTHREAD_LIBS $LIBS"
16118 save_CFLAGS="$CFLAGS"
16119 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16121 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16123 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16125 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h. */
16128 #include <pthread.h>
16132 int attr=$attr; return attr;
16137 if ac_fn_c_try_link "$LINENO"; then :
16138 attr_name=$attr; break
16140 rm -f core conftest.err conftest.$ac_objext \
16141 conftest$ac_exeext conftest.$ac_ext
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16144 $as_echo "$attr_name" >&6; }
16145 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16147 cat >>confdefs.h <<_ACEOF
16148 #define PTHREAD_CREATE_JOINABLE $attr_name
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16154 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16156 case "${host_cpu}-${host_os}" in
16157 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16158 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16161 $as_echo "${flag}" >&6; }
16162 if test "x$flag" != xno; then
16163 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16167 CFLAGS="$save_CFLAGS"
16169 # More AIX lossage: must compile with xlc_r or cc_r
16170 if test x"$GCC" != xyes; then
16171 for ac_prog in xlc_r cc_r
16173 # Extract the first word of "$ac_prog", so it can be a program name with args.
16174 set dummy $ac_prog; ac_word=$2
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16176 $as_echo_n "checking for $ac_word... " >&6; }
16177 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16178 $as_echo_n "(cached) " >&6
16180 if test -n "$PTHREAD_CC"; then
16181 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16184 for as_dir in $PATH
16187 test -z "$as_dir" && as_dir=.
16188 for ac_exec_ext in '' $ac_executable_extensions; do
16189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16190 ac_cv_prog_PTHREAD_CC="$ac_prog"
16191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16201 if test -n "$PTHREAD_CC"; then
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16203 $as_echo "$PTHREAD_CC" >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16210 test -n "$PTHREAD_CC" && break
16212 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16225 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16226 if test x"$acx_pthread_ok" = xyes; then
16229 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
16238 ac_cpp='$CPP $CPPFLAGS'
16239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16244 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16245 # The cast to long int works around a bug in the HP C Compiler
16246 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16247 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16248 # This bug is HP SR number 8606223364.
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
16250 $as_echo_n "checking size of pthread_t... " >&6; }
16251 if ${ac_cv_sizeof_pthread_t+:} false; then :
16252 $as_echo_n "(cached) " >&6
16254 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
16255 #include <pthread.h>
16260 if test "$ac_cv_type_pthread_t" = yes; then
16261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16263 as_fn_error 77 "cannot compute sizeof (pthread_t)
16264 See \`config.log' for more details" "$LINENO" 5; }
16266 ac_cv_sizeof_pthread_t=0
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
16272 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
16276 cat >>confdefs.h <<_ACEOF
16277 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
16282 if test "$enable_thread_support" != "no"; then
16290 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
16299 # check if we should compile locking into the library
16300 if test x$enable_thread_support = xno; then
16302 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
16306 # check if we should hard-code the mm functions.
16307 if test x$enable_malloc_replacement = xno; then
16309 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
16313 # check if we should hard-code debugging out
16314 if test x$enable_debug_mode = xno; then
16316 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
16320 # check if we should enable verbose debugging
16321 if test x$enable_verbose_debug = xyes; then
16322 CFLAGS="$CFLAGS -DUSE_DEBUG"
16325 # check if we have and should use openssl
16326 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
16335 # Add some more warnings which we use in development but not in the
16336 # released versions. (Some relevant gcc versions can't handle these.)
16337 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16346 #if !defined(__GNUC__) || (__GNUC__ < 4)
16353 if ac_fn_c_try_compile "$LINENO"; then :
16358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16367 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
16374 if ac_fn_c_try_compile "$LINENO"; then :
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16388 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
16395 if ac_fn_c_try_compile "$LINENO"; then :
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16409 #if !defined(__clang__)
16416 if ac_fn_c_try_compile "$LINENO"; then :
16421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 # -W is the same as -Wextra
16424 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
16425 if test x$enable_gcc_warnings = xyes; then
16426 CFLAGS="$CFLAGS -Werror"
16429 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
16431 if test x$have_gcc4 = xyes ; then
16432 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
16433 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
16434 #CFLAGS="$CFLAGS -Wold-style-definition"
16437 if test x$have_gcc42 = xyes ; then
16438 # These warnings break gcc 4.0.2 and work on gcc 4.2
16439 CFLAGS="$CFLAGS -Waddress"
16442 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
16443 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
16444 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
16447 if test x$have_gcc45 = xyes ; then
16448 # These warnings work on gcc 4.5
16449 CFLAGS="$CFLAGS -Wlogical-op"
16452 if test x$have_clang = xyes; then
16453 # Disable the unused-function warnings, because these trigger
16454 # for minheap-internal.h related code.
16455 CFLAGS="$CFLAGS -Wno-unused-function"
16457 # clang on macosx emits warnings for each directory specified which
16458 # isn't "used" generating a lot of build noise (typically 3 warnings
16462 CFLAGS="$CFLAGS -Qunused-arguments"
16467 ##This will break the world on some 64-bit architectures
16468 # CFLAGS="$CFLAGS -Winline"
16472 LIBEVENT_GC_SECTIONS=
16473 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
16475 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
16476 if ${libevent_cv_gc_sections_runs+:} false; then :
16477 $as_echo_n "(cached) " >&6
16480 origCFLAGS="$CFLAGS"
16481 CFLAGS="$CFLAGS -Wl,--gc-sections"
16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16485 #include <stdlib.h>
16495 int read_success_once;
16497 fpC = fopen("conftest.c", "r");
16501 cch = fread(buf, sizeof(buf), 1, fpC);
16502 read_success_once |= (0 != cch);
16503 } while (0 != cch);
16504 if (!read_success_once)
16508 if (0 != fclose(fpC))
16511 exit(EXIT_SUCCESS);
16518 if ac_fn_c_try_link "$LINENO"; then :
16520 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
16521 libevent_cv_gc_sections_runs=no
16523 libevent_cv_gc_sections_runs=no
16524 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
16528 libevent_cv_gc_sections_runs=no
16531 rm -f core conftest.err conftest.$ac_objext \
16532 conftest$ac_exeext conftest.$ac_ext
16533 CFLAGS="$origCFLAGS"
16534 { origCFLAGS=; unset origCFLAGS;}
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
16539 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
16540 case "$libevent_cv_gc_sections_runs" in
16542 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
16543 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
16549 if test "$enable_libevent_install" = "yes"; then
16550 INSTALL_LIBEVENT_TRUE=
16551 INSTALL_LIBEVENT_FALSE='#'
16553 INSTALL_LIBEVENT_TRUE='#'
16554 INSTALL_LIBEVENT_FALSE=
16570 DX_PROJECT=libevent
16572 DX_CONFIG='${top_srcdir}/Doxyfile'
16574 DX_DOCDIR='doxygen'
16577 # Environment variables used inside doxygen.cfg:
16578 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
16581 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
16582 PROJECT=$DX_PROJECT
16584 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
16591 # Check whether --enable-doxygen-doc was given.
16592 if test "${enable_doxygen_doc+set}" = set; then :
16593 enableval=$enable_doxygen_doc;
16594 case "$enableval" in
16606 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
16618 if test "$DX_FLAG_doc" = 1; then
16620 if test -n "$ac_tool_prefix"; then
16621 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
16622 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16624 $as_echo_n "checking for $ac_word... " >&6; }
16625 if ${ac_cv_path_DX_DOXYGEN+:} false; then :
16626 $as_echo_n "(cached) " >&6
16628 case $DX_DOXYGEN in
16630 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16651 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
16652 if test -n "$DX_DOXYGEN"; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
16654 $as_echo "$DX_DOXYGEN" >&6; }
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16657 $as_echo "no" >&6; }
16662 if test -z "$ac_cv_path_DX_DOXYGEN"; then
16663 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
16664 # Extract the first word of "doxygen", so it can be a program name with args.
16665 set dummy doxygen; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then :
16669 $as_echo_n "(cached) " >&6
16671 case $ac_pt_DX_DOXYGEN in
16673 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
16676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16677 for as_dir in $PATH
16680 test -z "$as_dir" && as_dir=.
16681 for ac_exec_ext in '' $ac_executable_extensions; do
16682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16683 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
16684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16694 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
16695 if test -n "$ac_pt_DX_DOXYGEN"; then
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
16697 $as_echo "$ac_pt_DX_DOXYGEN" >&6; }
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16700 $as_echo "no" >&6; }
16703 if test "x$ac_pt_DX_DOXYGEN" = x; then
16706 case $cross_compiling:$ac_tool_warned in
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16710 ac_tool_warned=yes ;;
16712 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
16715 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
16718 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
16719 if test "xdoxygen" = "xdoxygen"; then
16720 as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
16723 $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
16730 if test -n "$ac_tool_prefix"; then
16731 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
16732 set dummy ${ac_tool_prefix}perl; ac_word=$2
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16734 $as_echo_n "checking for $ac_word... " >&6; }
16735 if ${ac_cv_path_DX_PERL+:} false; then :
16736 $as_echo_n "(cached) " >&6
16740 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
16743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16744 for as_dir in $PATH
16747 test -z "$as_dir" && as_dir=.
16748 for ac_exec_ext in '' $ac_executable_extensions; do
16749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16750 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16761 DX_PERL=$ac_cv_path_DX_PERL
16762 if test -n "$DX_PERL"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
16764 $as_echo "$DX_PERL" >&6; }
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16767 $as_echo "no" >&6; }
16772 if test -z "$ac_cv_path_DX_PERL"; then
16773 ac_pt_DX_PERL=$DX_PERL
16774 # Extract the first word of "perl", so it can be a program name with args.
16775 set dummy perl; ac_word=$2
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16777 $as_echo_n "checking for $ac_word... " >&6; }
16778 if ${ac_cv_path_ac_pt_DX_PERL+:} false; then :
16779 $as_echo_n "(cached) " >&6
16781 case $ac_pt_DX_PERL in
16783 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
16786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16787 for as_dir in $PATH
16790 test -z "$as_dir" && as_dir=.
16791 for ac_exec_ext in '' $ac_executable_extensions; do
16792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16793 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
16794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16804 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
16805 if test -n "$ac_pt_DX_PERL"; then
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
16807 $as_echo "$ac_pt_DX_PERL" >&6; }
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 $as_echo "no" >&6; }
16813 if test "x$ac_pt_DX_PERL" = x; then
16816 case $cross_compiling:$ac_tool_warned in
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16820 ac_tool_warned=yes ;;
16822 DX_PERL=$ac_pt_DX_PERL
16825 DX_PERL="$ac_cv_path_DX_PERL"
16828 if test "$DX_FLAG_doc$DX_PERL" = 1; then
16829 if test "xperl" = "xdoxygen"; then
16830 as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
16833 $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
16841 if test "$DX_FLAG_doc" = 1; then
16842 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
16852 # Dot for graphics:
16856 # Check whether --enable-doxygen-dot was given.
16857 if test "${enable_doxygen_dot+set}" = set; then :
16858 enableval=$enable_doxygen_dot;
16859 case "$enableval" in
16865 test "$DX_FLAG_doc" = "1" \
16866 || as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
16874 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
16883 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
16889 if test "$DX_FLAG_dot" = 1; then
16891 if test -n "$ac_tool_prefix"; then
16892 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
16893 set dummy ${ac_tool_prefix}dot; ac_word=$2
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16895 $as_echo_n "checking for $ac_word... " >&6; }
16896 if ${ac_cv_path_DX_DOT+:} false; then :
16897 $as_echo_n "(cached) " >&6
16901 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
16904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16905 for as_dir in $PATH
16908 test -z "$as_dir" && as_dir=.
16909 for ac_exec_ext in '' $ac_executable_extensions; do
16910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16911 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16922 DX_DOT=$ac_cv_path_DX_DOT
16923 if test -n "$DX_DOT"; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
16925 $as_echo "$DX_DOT" >&6; }
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928 $as_echo "no" >&6; }
16933 if test -z "$ac_cv_path_DX_DOT"; then
16934 ac_pt_DX_DOT=$DX_DOT
16935 # Extract the first word of "dot", so it can be a program name with args.
16936 set dummy dot; ac_word=$2
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16938 $as_echo_n "checking for $ac_word... " >&6; }
16939 if ${ac_cv_path_ac_pt_DX_DOT+:} false; then :
16940 $as_echo_n "(cached) " >&6
16942 case $ac_pt_DX_DOT in
16944 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
16947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16951 test -z "$as_dir" && as_dir=.
16952 for ac_exec_ext in '' $ac_executable_extensions; do
16953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16954 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
16955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16965 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
16966 if test -n "$ac_pt_DX_DOT"; then
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
16968 $as_echo "$ac_pt_DX_DOT" >&6; }
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16971 $as_echo "no" >&6; }
16974 if test "x$ac_pt_DX_DOT" = x; then
16977 case $cross_compiling:$ac_tool_warned in
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16981 ac_tool_warned=yes ;;
16983 DX_DOT=$ac_pt_DX_DOT
16986 DX_DOT="$ac_cv_path_DX_DOT"
16989 if test "$DX_FLAG_dot$DX_DOT" = 1; then
16990 if test "xdot" = "xdoxygen"; then
16991 as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
16994 $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
17002 if test "$DX_FLAG_dot" = 1; then
17003 DX_ENV="$DX_ENV HAVE_DOT='YES'"
17006 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
17007 DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
17011 DX_ENV="$DX_ENV HAVE_DOT='NO'"
17018 # Man pages generation:
17022 # Check whether --enable-doxygen-man was given.
17023 if test "${enable_doxygen_man+set}" = set; then :
17024 enableval=$enable_doxygen_man;
17025 case "$enableval" in
17031 test "$DX_FLAG_doc" = "1" \
17032 || as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
17040 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
17049 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
17055 if test "$DX_FLAG_man" = 1; then
17059 if test "$DX_FLAG_man" = 1; then
17060 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
17065 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
17072 # RTF file generation:
17076 # Check whether --enable-doxygen-rtf was given.
17077 if test "${enable_doxygen_rtf+set}" = set; then :
17078 enableval=$enable_doxygen_rtf;
17079 case "$enableval" in
17085 test "$DX_FLAG_doc" = "1" \
17086 || as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
17094 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
17103 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
17109 if test "$DX_FLAG_rtf" = 1; then
17113 if test "$DX_FLAG_rtf" = 1; then
17114 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
17119 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
17126 # XML file generation:
17130 # Check whether --enable-doxygen-xml was given.
17131 if test "${enable_doxygen_xml+set}" = set; then :
17132 enableval=$enable_doxygen_xml;
17133 case "$enableval" in
17139 test "$DX_FLAG_doc" = "1" \
17140 || as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
17148 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
17157 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
17163 if test "$DX_FLAG_xml" = 1; then
17167 if test "$DX_FLAG_xml" = 1; then
17168 DX_ENV="$DX_ENV GENERATE_XML='YES'"
17173 DX_ENV="$DX_ENV GENERATE_XML='NO'"
17180 # (Compressed) HTML help generation:
17184 # Check whether --enable-doxygen-chm was given.
17185 if test "${enable_doxygen_chm+set}" = set; then :
17186 enableval=$enable_doxygen_chm;
17187 case "$enableval" in
17193 test "$DX_FLAG_doc" = "1" \
17194 || as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
17202 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
17211 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
17217 if test "$DX_FLAG_chm" = 1; then
17219 if test -n "$ac_tool_prefix"; then
17220 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
17221 set dummy ${ac_tool_prefix}hhc; ac_word=$2
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17223 $as_echo_n "checking for $ac_word... " >&6; }
17224 if ${ac_cv_path_DX_HHC+:} false; then :
17225 $as_echo_n "(cached) " >&6
17229 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
17232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17233 for as_dir in $PATH
17236 test -z "$as_dir" && as_dir=.
17237 for ac_exec_ext in '' $ac_executable_extensions; do
17238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17239 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17250 DX_HHC=$ac_cv_path_DX_HHC
17251 if test -n "$DX_HHC"; then
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
17253 $as_echo "$DX_HHC" >&6; }
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17256 $as_echo "no" >&6; }
17261 if test -z "$ac_cv_path_DX_HHC"; then
17262 ac_pt_DX_HHC=$DX_HHC
17263 # Extract the first word of "hhc", so it can be a program name with args.
17264 set dummy hhc; ac_word=$2
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17266 $as_echo_n "checking for $ac_word... " >&6; }
17267 if ${ac_cv_path_ac_pt_DX_HHC+:} false; then :
17268 $as_echo_n "(cached) " >&6
17270 case $ac_pt_DX_HHC in
17272 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
17275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17276 for as_dir in $PATH
17279 test -z "$as_dir" && as_dir=.
17280 for ac_exec_ext in '' $ac_executable_extensions; do
17281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17282 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
17283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17293 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
17294 if test -n "$ac_pt_DX_HHC"; then
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
17296 $as_echo "$ac_pt_DX_HHC" >&6; }
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299 $as_echo "no" >&6; }
17302 if test "x$ac_pt_DX_HHC" = x; then
17305 case $cross_compiling:$ac_tool_warned in
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17309 ac_tool_warned=yes ;;
17311 DX_HHC=$ac_pt_DX_HHC
17314 DX_HHC="$ac_cv_path_DX_HHC"
17317 if test "$DX_FLAG_chm$DX_HHC" = 1; then
17318 if test "xhhc" = "xdoxygen"; then
17319 as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
17322 $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
17330 if test "$DX_FLAG_chm" = 1; then
17331 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
17334 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17337 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
17338 GENERATE_HTMLHELP=YES
17342 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
17343 GENERATE_HTMLHELP=NO
17349 # Separate CHI file generation.
17353 # Check whether --enable-doxygen-chi was given.
17354 if test "${enable_doxygen_chi+set}" = set; then :
17355 enableval=$enable_doxygen_chi;
17356 case "$enableval" in
17362 test "$DX_FLAG_chm" = "1" \
17363 || as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
17371 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
17380 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
17386 if test "$DX_FLAG_chi" = 1; then
17390 if test "$DX_FLAG_chi" = 1; then
17391 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
17396 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
17403 # Plain HTML pages generation:
17407 # Check whether --enable-doxygen-html was given.
17408 if test "${enable_doxygen_html+set}" = set; then :
17409 enableval=$enable_doxygen_html;
17410 case "$enableval" in
17416 test "$DX_FLAG_doc" = "1" \
17417 || as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
17419 test "$DX_FLAG_chm" = "0" \
17420 || as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
17428 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
17437 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
17440 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
17446 if test "$DX_FLAG_html" = 1; then
17450 if test "$DX_FLAG_html" = 1; then
17451 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
17456 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
17463 # PostScript file generation:
17467 # Check whether --enable-doxygen-ps was given.
17468 if test "${enable_doxygen_ps+set}" = set; then :
17469 enableval=$enable_doxygen_ps;
17470 case "$enableval" in
17476 test "$DX_FLAG_doc" = "1" \
17477 || as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
17485 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
17494 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
17500 if test "$DX_FLAG_ps" = 1; then
17502 if test -n "$ac_tool_prefix"; then
17503 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
17504 set dummy ${ac_tool_prefix}latex; ac_word=$2
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17506 $as_echo_n "checking for $ac_word... " >&6; }
17507 if ${ac_cv_path_DX_LATEX+:} false; then :
17508 $as_echo_n "(cached) " >&6
17512 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
17515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17516 for as_dir in $PATH
17519 test -z "$as_dir" && as_dir=.
17520 for ac_exec_ext in '' $ac_executable_extensions; do
17521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17522 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17533 DX_LATEX=$ac_cv_path_DX_LATEX
17534 if test -n "$DX_LATEX"; then
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
17536 $as_echo "$DX_LATEX" >&6; }
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17539 $as_echo "no" >&6; }
17544 if test -z "$ac_cv_path_DX_LATEX"; then
17545 ac_pt_DX_LATEX=$DX_LATEX
17546 # Extract the first word of "latex", so it can be a program name with args.
17547 set dummy latex; ac_word=$2
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17549 $as_echo_n "checking for $ac_word... " >&6; }
17550 if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then :
17551 $as_echo_n "(cached) " >&6
17553 case $ac_pt_DX_LATEX in
17555 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
17558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17559 for as_dir in $PATH
17562 test -z "$as_dir" && as_dir=.
17563 for ac_exec_ext in '' $ac_executable_extensions; do
17564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17565 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
17566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17576 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
17577 if test -n "$ac_pt_DX_LATEX"; then
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
17579 $as_echo "$ac_pt_DX_LATEX" >&6; }
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582 $as_echo "no" >&6; }
17585 if test "x$ac_pt_DX_LATEX" = x; then
17588 case $cross_compiling:$ac_tool_warned in
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17592 ac_tool_warned=yes ;;
17594 DX_LATEX=$ac_pt_DX_LATEX
17597 DX_LATEX="$ac_cv_path_DX_LATEX"
17600 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
17601 if test "xlatex" = "xdoxygen"; then
17602 as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
17605 $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
17612 if test -n "$ac_tool_prefix"; then
17613 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
17614 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616 $as_echo_n "checking for $ac_word... " >&6; }
17617 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
17618 $as_echo_n "(cached) " >&6
17620 case $DX_MAKEINDEX in
17622 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
17625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17626 for as_dir in $PATH
17629 test -z "$as_dir" && as_dir=.
17630 for ac_exec_ext in '' $ac_executable_extensions; do
17631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17632 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17643 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
17644 if test -n "$DX_MAKEINDEX"; then
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
17646 $as_echo "$DX_MAKEINDEX" >&6; }
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17649 $as_echo "no" >&6; }
17654 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
17655 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
17656 # Extract the first word of "makeindex", so it can be a program name with args.
17657 set dummy makeindex; ac_word=$2
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17659 $as_echo_n "checking for $ac_word... " >&6; }
17660 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
17661 $as_echo_n "(cached) " >&6
17663 case $ac_pt_DX_MAKEINDEX in
17665 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
17668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17669 for as_dir in $PATH
17672 test -z "$as_dir" && as_dir=.
17673 for ac_exec_ext in '' $ac_executable_extensions; do
17674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17675 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
17676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17686 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
17687 if test -n "$ac_pt_DX_MAKEINDEX"; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
17689 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17692 $as_echo "no" >&6; }
17695 if test "x$ac_pt_DX_MAKEINDEX" = x; then
17698 case $cross_compiling:$ac_tool_warned in
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17702 ac_tool_warned=yes ;;
17704 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
17707 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
17710 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
17711 if test "xmakeindex" = "xdoxygen"; then
17712 as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
17715 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
17722 if test -n "$ac_tool_prefix"; then
17723 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
17724 set dummy ${ac_tool_prefix}dvips; ac_word=$2
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17726 $as_echo_n "checking for $ac_word... " >&6; }
17727 if ${ac_cv_path_DX_DVIPS+:} false; then :
17728 $as_echo_n "(cached) " >&6
17732 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
17735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17736 for as_dir in $PATH
17739 test -z "$as_dir" && as_dir=.
17740 for ac_exec_ext in '' $ac_executable_extensions; do
17741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17742 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17753 DX_DVIPS=$ac_cv_path_DX_DVIPS
17754 if test -n "$DX_DVIPS"; then
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
17756 $as_echo "$DX_DVIPS" >&6; }
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17759 $as_echo "no" >&6; }
17764 if test -z "$ac_cv_path_DX_DVIPS"; then
17765 ac_pt_DX_DVIPS=$DX_DVIPS
17766 # Extract the first word of "dvips", so it can be a program name with args.
17767 set dummy dvips; ac_word=$2
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17769 $as_echo_n "checking for $ac_word... " >&6; }
17770 if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then :
17771 $as_echo_n "(cached) " >&6
17773 case $ac_pt_DX_DVIPS in
17775 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
17778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17779 for as_dir in $PATH
17782 test -z "$as_dir" && as_dir=.
17783 for ac_exec_ext in '' $ac_executable_extensions; do
17784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17785 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
17786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17796 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
17797 if test -n "$ac_pt_DX_DVIPS"; then
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
17799 $as_echo "$ac_pt_DX_DVIPS" >&6; }
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802 $as_echo "no" >&6; }
17805 if test "x$ac_pt_DX_DVIPS" = x; then
17808 case $cross_compiling:$ac_tool_warned in
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17812 ac_tool_warned=yes ;;
17814 DX_DVIPS=$ac_pt_DX_DVIPS
17817 DX_DVIPS="$ac_cv_path_DX_DVIPS"
17820 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
17821 if test "xdvips" = "xdoxygen"; then
17822 as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
17825 $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
17832 if test -n "$ac_tool_prefix"; then
17833 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
17834 set dummy ${ac_tool_prefix}egrep; ac_word=$2
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17836 $as_echo_n "checking for $ac_word... " >&6; }
17837 if ${ac_cv_path_DX_EGREP+:} false; then :
17838 $as_echo_n "(cached) " >&6
17842 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
17845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17846 for as_dir in $PATH
17849 test -z "$as_dir" && as_dir=.
17850 for ac_exec_ext in '' $ac_executable_extensions; do
17851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17852 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17863 DX_EGREP=$ac_cv_path_DX_EGREP
17864 if test -n "$DX_EGREP"; then
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
17866 $as_echo "$DX_EGREP" >&6; }
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17869 $as_echo "no" >&6; }
17874 if test -z "$ac_cv_path_DX_EGREP"; then
17875 ac_pt_DX_EGREP=$DX_EGREP
17876 # Extract the first word of "egrep", so it can be a program name with args.
17877 set dummy egrep; ac_word=$2
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17879 $as_echo_n "checking for $ac_word... " >&6; }
17880 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
17881 $as_echo_n "(cached) " >&6
17883 case $ac_pt_DX_EGREP in
17885 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
17888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17889 for as_dir in $PATH
17892 test -z "$as_dir" && as_dir=.
17893 for ac_exec_ext in '' $ac_executable_extensions; do
17894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17895 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
17896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17906 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
17907 if test -n "$ac_pt_DX_EGREP"; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
17909 $as_echo "$ac_pt_DX_EGREP" >&6; }
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17915 if test "x$ac_pt_DX_EGREP" = x; then
17918 case $cross_compiling:$ac_tool_warned in
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17922 ac_tool_warned=yes ;;
17924 DX_EGREP=$ac_pt_DX_EGREP
17927 DX_EGREP="$ac_cv_path_DX_EGREP"
17930 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
17931 if test "xegrep" = "xdoxygen"; then
17932 as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
17935 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
17943 if test "$DX_FLAG_ps" = 1; then
17952 # PDF file generation:
17956 # Check whether --enable-doxygen-pdf was given.
17957 if test "${enable_doxygen_pdf+set}" = set; then :
17958 enableval=$enable_doxygen_pdf;
17959 case "$enableval" in
17965 test "$DX_FLAG_doc" = "1" \
17966 || as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
17974 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
17983 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
17989 if test "$DX_FLAG_pdf" = 1; then
17991 if test -n "$ac_tool_prefix"; then
17992 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
17993 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17995 $as_echo_n "checking for $ac_word... " >&6; }
17996 if ${ac_cv_path_DX_PDFLATEX+:} false; then :
17997 $as_echo_n "(cached) " >&6
17999 case $DX_PDFLATEX in
18001 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
18004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18005 for as_dir in $PATH
18008 test -z "$as_dir" && as_dir=.
18009 for ac_exec_ext in '' $ac_executable_extensions; do
18010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18011 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18022 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
18023 if test -n "$DX_PDFLATEX"; then
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
18025 $as_echo "$DX_PDFLATEX" >&6; }
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18028 $as_echo "no" >&6; }
18033 if test -z "$ac_cv_path_DX_PDFLATEX"; then
18034 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
18035 # Extract the first word of "pdflatex", so it can be a program name with args.
18036 set dummy pdflatex; ac_word=$2
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18038 $as_echo_n "checking for $ac_word... " >&6; }
18039 if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then :
18040 $as_echo_n "(cached) " >&6
18042 case $ac_pt_DX_PDFLATEX in
18044 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
18047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18048 for as_dir in $PATH
18051 test -z "$as_dir" && as_dir=.
18052 for ac_exec_ext in '' $ac_executable_extensions; do
18053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18054 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
18055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18065 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
18066 if test -n "$ac_pt_DX_PDFLATEX"; then
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
18068 $as_echo "$ac_pt_DX_PDFLATEX" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071 $as_echo "no" >&6; }
18074 if test "x$ac_pt_DX_PDFLATEX" = x; then
18077 case $cross_compiling:$ac_tool_warned in
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18081 ac_tool_warned=yes ;;
18083 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
18086 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
18089 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
18090 if test "xpdflatex" = "xdoxygen"; then
18091 as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
18094 $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
18101 if test -n "$ac_tool_prefix"; then
18102 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
18103 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18105 $as_echo_n "checking for $ac_word... " >&6; }
18106 if ${ac_cv_path_DX_MAKEINDEX+:} false; then :
18107 $as_echo_n "(cached) " >&6
18109 case $DX_MAKEINDEX in
18111 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
18114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18115 for as_dir in $PATH
18118 test -z "$as_dir" && as_dir=.
18119 for ac_exec_ext in '' $ac_executable_extensions; do
18120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18121 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18132 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
18133 if test -n "$DX_MAKEINDEX"; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
18135 $as_echo "$DX_MAKEINDEX" >&6; }
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18138 $as_echo "no" >&6; }
18143 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
18144 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
18145 # Extract the first word of "makeindex", so it can be a program name with args.
18146 set dummy makeindex; ac_word=$2
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18148 $as_echo_n "checking for $ac_word... " >&6; }
18149 if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then :
18150 $as_echo_n "(cached) " >&6
18152 case $ac_pt_DX_MAKEINDEX in
18154 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18158 for as_dir in $PATH
18161 test -z "$as_dir" && as_dir=.
18162 for ac_exec_ext in '' $ac_executable_extensions; do
18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18164 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18175 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
18176 if test -n "$ac_pt_DX_MAKEINDEX"; then
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
18178 $as_echo "$ac_pt_DX_MAKEINDEX" >&6; }
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18181 $as_echo "no" >&6; }
18184 if test "x$ac_pt_DX_MAKEINDEX" = x; then
18187 case $cross_compiling:$ac_tool_warned in
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18191 ac_tool_warned=yes ;;
18193 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
18196 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
18199 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
18200 if test "xmakeindex" = "xdoxygen"; then
18201 as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
18204 $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
18211 if test -n "$ac_tool_prefix"; then
18212 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
18213 set dummy ${ac_tool_prefix}egrep; ac_word=$2
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18215 $as_echo_n "checking for $ac_word... " >&6; }
18216 if ${ac_cv_path_DX_EGREP+:} false; then :
18217 $as_echo_n "(cached) " >&6
18221 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
18224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225 for as_dir in $PATH
18228 test -z "$as_dir" && as_dir=.
18229 for ac_exec_ext in '' $ac_executable_extensions; do
18230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18242 DX_EGREP=$ac_cv_path_DX_EGREP
18243 if test -n "$DX_EGREP"; then
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
18245 $as_echo "$DX_EGREP" >&6; }
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18248 $as_echo "no" >&6; }
18253 if test -z "$ac_cv_path_DX_EGREP"; then
18254 ac_pt_DX_EGREP=$DX_EGREP
18255 # Extract the first word of "egrep", so it can be a program name with args.
18256 set dummy egrep; ac_word=$2
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18258 $as_echo_n "checking for $ac_word... " >&6; }
18259 if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then :
18260 $as_echo_n "(cached) " >&6
18262 case $ac_pt_DX_EGREP in
18264 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
18267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18268 for as_dir in $PATH
18271 test -z "$as_dir" && as_dir=.
18272 for ac_exec_ext in '' $ac_executable_extensions; do
18273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18274 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
18275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18285 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
18286 if test -n "$ac_pt_DX_EGREP"; then
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
18288 $as_echo "$ac_pt_DX_EGREP" >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 $as_echo "no" >&6; }
18294 if test "x$ac_pt_DX_EGREP" = x; then
18297 case $cross_compiling:$ac_tool_warned in
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18301 ac_tool_warned=yes ;;
18303 DX_EGREP=$ac_pt_DX_EGREP
18306 DX_EGREP="$ac_cv_path_DX_EGREP"
18309 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
18310 if test "xegrep" = "xdoxygen"; then
18311 as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
18314 $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
18322 if test "$DX_FLAG_pdf" = 1; then
18331 # LaTeX generation for PS and/or PDF:
18332 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
18333 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
18337 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
18342 # Paper size for PS and/or PDF:
18344 case "$DOXYGEN_PAPER_SIZE" in
18347 DOXYGEN_PAPER_SIZE=""
18350 a4wide|a4|letter|legal|executive)
18351 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
18352 PAPER_SIZE=$DOXYGEN_PAPER_SIZE
18356 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
18361 if test $DX_FLAG_html -eq 1; then :
18362 DX_SNIPPET_html="## ------------------------------- ##
18363 ## Rules specific for HTML output. ##
18364 ## ------------------------------- ##
18366 DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
18373 if test $DX_FLAG_chi -eq 1; then :
18375 DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
18376 \$(DX_DOCDIR)/\$(PACKAGE).chi"
18380 if test $DX_FLAG_chm -eq 1; then :
18381 DX_SNIPPET_chm="## ------------------------------ ##
18382 ## Rules specific for CHM output. ##
18383 ## ------------------------------ ##
18385 DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
18393 if test $DX_FLAG_man -eq 1; then :
18394 DX_SNIPPET_man="## ------------------------------ ##
18395 ## Rules specific for MAN output. ##
18396 ## ------------------------------ ##
18398 DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
18405 if test $DX_FLAG_rtf -eq 1; then :
18406 DX_SNIPPET_rtf="## ------------------------------ ##
18407 ## Rules specific for RTF output. ##
18408 ## ------------------------------ ##
18410 DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
18417 if test $DX_FLAG_xml -eq 1; then :
18418 DX_SNIPPET_xml="## ------------------------------ ##
18419 ## Rules specific for XML output. ##
18420 ## ------------------------------ ##
18422 DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
18429 if test $DX_FLAG_ps -eq 1; then :
18430 DX_SNIPPET_ps="## ----------------------------- ##
18431 ## Rules specific for PS output. ##
18432 ## ----------------------------- ##
18434 DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
18435 \$(DX_DOCDIR)/\$(PACKAGE).ps
18437 DX_PS_GOAL = doxygen-ps
18439 doxygen-ps: \$(DX_CLEAN_PS)
18441 \$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
18442 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18443 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18444 \$(DX_LATEX) refman.tex; \\
18445 \$(DX_MAKEINDEX) refman.idx; \\
18446 \$(DX_LATEX) refman.tex; \\
18448 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18449 refman.log > /dev/null 2>&1 \\
18450 && test \$\$countdown -gt 0; do \\
18451 \$(DX_LATEX) refman.tex; \\
18452 countdown=\`expr \$\$countdown - 1\`; \\
18454 \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
18460 if test $DX_FLAG_pdf -eq 1; then :
18461 DX_SNIPPET_pdf="## ------------------------------ ##
18462 ## Rules specific for PDF output. ##
18463 ## ------------------------------ ##
18465 DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
18466 \$(DX_DOCDIR)/\$(PACKAGE).pdf
18468 DX_PDF_GOAL = doxygen-pdf
18470 doxygen-pdf: \$(DX_CLEAN_PDF)
18472 \$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
18473 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
18474 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
18475 \$(DX_PDFLATEX) refman.tex; \\
18476 \$(DX_MAKEINDEX) refman.idx; \\
18477 \$(DX_PDFLATEX) refman.tex; \\
18479 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
18480 refman.log > /dev/null 2>&1 \\
18481 && test \$\$countdown -gt 0; do \\
18482 \$(DX_PDFLATEX) refman.tex; \\
18483 countdown=\`expr \$\$countdown - 1\`; \\
18485 mv refman.pdf ../\$(PACKAGE).pdf
18491 if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1; then :
18492 DX_SNIPPET_latex="## ------------------------------------------------- ##
18493 ## Rules specific for LaTeX (shared for PS and PDF). ##
18494 ## ------------------------------------------------- ##
18496 DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
18497 _DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
18498 _DX_v_LATEX_0 = @echo \" LATEX \" \$@;
18500 DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
18501 \$(DX_DOCDIR)/latex
18505 DX_SNIPPET_latex=""
18508 if test $DX_FLAG_doc -eq 1; then :
18509 DX_SNIPPET_doc="## --------------------------------- ##
18510 ## Format-independent Doxygen rules. ##
18511 ## --------------------------------- ##
18513 ${DX_SNIPPET_html}\
18520 ${DX_SNIPPET_latex}\
18521 DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
18522 _DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
18523 _DX_v_DXGEN_0 = @echo \" DXGEN \" \$<;
18525 .PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18527 .INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18529 doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
18531 doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
18533 \$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
18534 \$(A""M_V_at)rm -rf \$(DX_DOCDIR)
18535 \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
18536 \$(A""M_V_at)echo Timestamp >\$@
18539 \$(DX_DOCDIR)/doxygen_sqlite3.db \\
18540 \$(DX_DOCDIR)/\$(PACKAGE).tag \\
18542 \$(DX_CLEAN_HTML) \\
18543 \$(DX_CLEAN_CHM) \\
18544 \$(DX_CLEAN_CHI) \\
18545 \$(DX_CLEAN_MAN) \\
18546 \$(DX_CLEAN_RTF) \\
18547 \$(DX_CLEAN_XML) \\
18549 \$(DX_CLEAN_PDF) \\
18551 DX_INSTALL_DOCS = \\
18552 \$(DX_CLEAN_HTML) \\
18553 \$(DX_CLEAN_CHM) \\
18554 \$(DX_CLEAN_CHI) \\
18555 \$(DX_CLEAN_RTF) \\
18556 \$(DX_CLEAN_XML) \\
18558 \$(DX_CLEAN_PDF) \\
18564 DX_RULES="${DX_SNIPPET_doc}"
18568 #echo DX_FLAG_doc=$DX_FLAG_doc
18569 #echo DX_FLAG_dot=$DX_FLAG_dot
18570 #echo DX_FLAG_man=$DX_FLAG_man
18571 #echo DX_FLAG_html=$DX_FLAG_html
18572 #echo DX_FLAG_chm=$DX_FLAG_chm
18573 #echo DX_FLAG_chi=$DX_FLAG_chi
18574 #echo DX_FLAG_rtf=$DX_FLAG_rtf
18575 #echo DX_FLAG_xml=$DX_FLAG_xml
18576 #echo DX_FLAG_pdf=$DX_FLAG_pdf
18577 #echo DX_FLAG_ps=$DX_FLAG_ps
18578 #echo DX_ENV=$DX_ENV
18581 if test "$DX_FLAG_doc" = "1"; then
18582 ENABLE_DOXYGEN_TRUE=
18583 ENABLE_DOXYGEN_FALSE='#'
18585 ENABLE_DOXYGEN_TRUE='#'
18586 ENABLE_DOXYGEN_FALSE=
18589 if test "$DX_FLAG_man" = "1"; then
18590 ENABLE_DOXYGEN_MAN_TRUE=
18591 ENABLE_DOXYGEN_MAN_FALSE='#'
18593 ENABLE_DOXYGEN_MAN_TRUE='#'
18594 ENABLE_DOXYGEN_MAN_FALSE=
18598 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
18600 ac_config_files="$ac_config_files Makefile"
18602 cat >confcache <<\_ACEOF
18603 # This file is a shell script that caches the results of configure
18604 # tests run on this system so they can be shared between configure
18605 # scripts and configure runs, see configure's option --config-cache.
18606 # It is not useful on other systems. If it contains results you don't
18607 # want to keep, you may remove or edit it.
18609 # config.status only pays attention to the cache file if you give it
18610 # the --recheck option to rerun configure.
18612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18614 # following values.
18618 # The following way of writing the cache mishandles newlines in values,
18619 # but we know of no workaround that is simple, portable, and efficient.
18620 # So, we kill variables containing newlines.
18621 # Ultrix sh set writes to stderr and can't be redirected directly,
18622 # and sets the high bit in the cache file unless we assign to the vars.
18624 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18625 eval ac_val=\$$ac_var
18629 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18630 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18633 _ | IFS | as_nl) ;; #(
18634 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18635 *) { eval $ac_var=; unset $ac_var;} ;;
18641 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18642 *${as_nl}ac_space=\ *)
18643 # `set' does not quote correctly, so add quotes: double-quote
18644 # substitution turns \\\\ into \\, and sed turns \\ into \.
18647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18650 # `set' quotes correctly as required by POSIX, so do not add quotes.
18651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18660 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18662 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18664 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18665 if test -w "$cache_file"; then
18666 if test "x$cache_file" != "x/dev/null"; then
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18668 $as_echo "$as_me: updating cache $cache_file" >&6;}
18669 if test ! -f "$cache_file" || test -h "$cache_file"; then
18670 cat confcache >"$cache_file"
18672 case $cache_file in #(
18674 mv -f confcache "$cache_file"$$ &&
18675 mv -f "$cache_file"$$ "$cache_file" ;; #(
18677 mv -f confcache "$cache_file" ;;
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18683 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18689 # Let make expand exec_prefix.
18690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18692 DEFS=-DHAVE_CONFIG_H
18697 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18698 # 1. Remove the extension, and $U if already installed.
18699 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18700 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18702 # will be set to the directory where LIBOBJS objects are built.
18703 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18704 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18706 LIBOBJS=$ac_libobjs
18708 LTLIBOBJS=$ac_ltlibobjs
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18712 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18713 if test -n "$am_sleep_pid"; then
18714 # Hide warnings about reused PIDs.
18715 wait $am_sleep_pid 2>/dev/null
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18718 $as_echo "done" >&6; }
18719 if test -n "$EXEEXT"; then
18721 am__EXEEXT_FALSE='#'
18723 am__EXEEXT_TRUE='#'
18727 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18728 as_fn_error $? "conditional \"AMDEP\" was never defined.
18729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18731 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18732 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18735 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
18736 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
18737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18739 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
18740 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
18741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18743 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
18744 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
18745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18747 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18748 as_fn_error $? "conditional \"OPENSSL\" was never defined.
18749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18751 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
18752 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
18753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18755 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
18756 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
18757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18759 if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then
18760 as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined.
18761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18763 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
18764 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
18765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18767 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
18768 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
18769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18771 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
18772 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
18773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18775 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
18776 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
18777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18779 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
18780 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
18781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18783 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
18784 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
18785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18787 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
18788 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
18789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18791 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
18792 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
18793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18795 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
18796 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
18797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18799 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
18800 as_fn_error $? "conditional \"THREADS\" was never defined.
18801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18803 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
18804 as_fn_error $? "conditional \"PTHREADS\" was never defined.
18805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18807 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
18808 as_fn_error $? "conditional \"OPENSSL\" was never defined.
18809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18811 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
18812 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
18813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18815 if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
18816 as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
18817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18819 if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then
18820 as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined.
18821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18824 : "${CONFIG_STATUS=./config.status}"
18826 ac_clean_files_save=$ac_clean_files
18827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18833 # Generated by $as_me.
18834 # Run this file to recreate the current configuration.
18835 # Compiler output produced by configure, useful for debugging
18836 # configure, is in config.log if it exists.
18839 ac_cs_recheck=false
18842 SHELL=\${CONFIG_SHELL-$SHELL}
18845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18846 ## -------------------- ##
18847 ## M4sh Initialization. ##
18848 ## -------------------- ##
18850 # Be more Bourne compatible
18851 DUALCASE=1; export DUALCASE # for MKS sh
18852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18856 # is contrary to our usage. Disable this feature.
18857 alias -g '${1+"$@"}'='"$@"'
18858 setopt NO_GLOB_SUBST
18860 case `(set -o) 2>/dev/null` in #(
18872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18876 # Prefer a ksh shell builtin over an external printf program on Solaris,
18877 # but without wasting forks for bash or zsh.
18878 if test -z "$BASH_VERSION$ZSH_VERSION" \
18879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18880 as_echo='print -r --'
18881 as_echo_n='print -rn --'
18882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18883 as_echo='printf %s\n'
18884 as_echo_n='printf %s'
18886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18888 as_echo_n='/usr/ucb/echo -n'
18890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18891 as_echo_n_body='eval
18895 expr "X$arg" : "X\\(.*\\)$as_nl";
18896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18900 export as_echo_n_body
18901 as_echo_n='sh -c $as_echo_n_body as_echo'
18903 export as_echo_body
18904 as_echo='sh -c $as_echo_body as_echo'
18907 # The user is always right.
18908 if test "${PATH_SEPARATOR+set}" != set; then
18910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18918 # We need space, tab and new line, in precisely that order. Quoting is
18919 # there to prevent editors from complaining about space-tab.
18920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18921 # splitting by setting IFS to empty value.)
18924 # Find who we are. Look in the path if we contain no directory separator.
18927 *[\\/]* ) as_myself=$0 ;;
18928 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18929 for as_dir in $PATH
18932 test -z "$as_dir" && as_dir=.
18933 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18939 # We did not find ourselves, most probably we were run as `sh COMMAND'
18940 # in which case we are not to be found in the path.
18941 if test "x$as_myself" = x; then
18944 if test ! -f "$as_myself"; then
18945 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18949 # Unset variables that we do not need and which cause bugs (e.g. in
18950 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18951 # suppresses any "Segmentation fault" message there. '((' could
18952 # trigger a bug in pdksh 5.2.14.
18953 for as_var in BASH_ENV ENV MAIL MAILPATH
18954 do eval test x\${$as_var+set} = xset \
18955 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18972 # ----------------------------------------
18973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18975 # script with STATUS, using 1 if that was 0.
18978 as_status=$1; test $as_status -eq 0 && as_status=1
18980 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18981 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18983 $as_echo "$as_me: error: $2" >&2
18984 as_fn_exit $as_status
18988 # as_fn_set_status STATUS
18989 # -----------------------
18990 # Set $? to STATUS, without forking.
18991 as_fn_set_status ()
18994 } # as_fn_set_status
18996 # as_fn_exit STATUS
18997 # -----------------
18998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19002 as_fn_set_status $1
19008 # Portably unset VAR.
19011 { eval $1=; unset $1;}
19013 as_unset=as_fn_unset
19014 # as_fn_append VAR VALUE
19015 # ----------------------
19016 # Append the text in VALUE to the end of the definition contained in VAR. Take
19017 # advantage of any shell optimizations that allow amortized linear growth over
19018 # repeated appends, instead of the typical quadratic growth present in naive
19020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19021 eval 'as_fn_append ()
19032 # as_fn_arith ARG...
19033 # ------------------
19034 # Perform arithmetic evaluation on the ARGs, and store the result in the
19035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19036 # must be portable across $(()) and expr.
19037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19038 eval 'as_fn_arith ()
19045 as_val=`expr "$@" || test $? -eq 1`
19050 if expr a : '\(a\)' >/dev/null 2>&1 &&
19051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19058 as_basename=basename
19063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19069 as_me=`$as_basename -- "$0" ||
19070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19071 X"$0" : 'X\(//\)$' \| \
19072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19074 sed '/^.*\/\([^/][^/]*\)\/*$/{
19088 # Avoid depending upon Character Ranges.
19089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19092 as_cr_digits='0123456789'
19093 as_cr_alnum=$as_cr_Letters$as_cr_digits
19095 ECHO_C= ECHO_N= ECHO_T=
19096 case `echo -n x` in #(((((
19098 case `echo 'xy\c'` in
19099 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19101 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19108 rm -f conf$$ conf$$.exe conf$$.file
19109 if test -d conf$$.dir; then
19110 rm -f conf$$.dir/conf$$.file
19113 mkdir conf$$.dir 2>/dev/null
19115 if (echo >conf$$.file) 2>/dev/null; then
19116 if ln -s conf$$.file conf$$ 2>/dev/null; then
19118 # ... but there are two gotchas:
19119 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19120 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19121 # In both cases, we have to default to `cp -pR'.
19122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19124 elif ln conf$$.file conf$$ 2>/dev/null; then
19132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19133 rmdir conf$$.dir 2>/dev/null
19138 # Create "$as_dir" as a directory, including parents if necessary.
19143 -*) as_dir=./$as_dir;;
19145 test -d "$as_dir" || eval $as_mkdir_p || {
19149 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19150 *) as_qdir=$as_dir;;
19152 as_dirs="'$as_qdir' $as_dirs"
19153 as_dir=`$as_dirname -- "$as_dir" ||
19154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19155 X"$as_dir" : 'X\(//\)[^/]' \| \
19156 X"$as_dir" : 'X\(//\)$' \| \
19157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19158 $as_echo X"$as_dir" |
19159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19163 /^X\(\/\/\)[^/].*/{
19176 test -d "$as_dir" && break
19178 test -z "$as_dirs" || eval "mkdir $as_dirs"
19179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19183 if mkdir -p . 2>/dev/null; then
19184 as_mkdir_p='mkdir -p "$as_dir"'
19186 test -d ./-p && rmdir ./-p
19191 # as_fn_executable_p FILE
19192 # -----------------------
19193 # Test if FILE is an executable regular file.
19194 as_fn_executable_p ()
19196 test -f "$1" && test -x "$1"
19197 } # as_fn_executable_p
19198 as_test_x='test -x'
19199 as_executable_p=as_fn_executable_p
19201 # Sed expression to map a string onto a valid CPP name.
19202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19204 # Sed expression to map a string onto a valid variable name.
19205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19209 ## ----------------------------------- ##
19210 ## Main body of $CONFIG_STATUS script. ##
19211 ## ----------------------------------- ##
19213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19216 # Save the log message, to keep $0 and so on meaningful, and to
19217 # report actual input values of CONFIG_FILES etc. instead of their
19218 # values after options handling.
19220 This file was extended by libevent $as_me 2.1.12-stable, which was
19221 generated by GNU Autoconf 2.69. Invocation command line was
19223 CONFIG_FILES = $CONFIG_FILES
19224 CONFIG_HEADERS = $CONFIG_HEADERS
19225 CONFIG_LINKS = $CONFIG_LINKS
19226 CONFIG_COMMANDS = $CONFIG_COMMANDS
19229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19234 case $ac_config_files in *"
19235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19238 case $ac_config_headers in *"
19239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 # Files that config.status was made for.
19245 config_files="$ac_config_files"
19246 config_headers="$ac_config_headers"
19247 config_commands="$ac_config_commands"
19251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19253 \`$as_me' instantiates files and other configuration actions
19254 from templates according to the current configuration. Unless the files
19255 and actions are specified as TAGs, all are instantiated by default.
19257 Usage: $0 [OPTION]... [TAG]...
19259 -h, --help print this help, then exit
19260 -V, --version print version number and configuration settings, then exit
19261 --config print configuration, then exit
19262 -q, --quiet, --silent
19263 do not print progress messages
19264 -d, --debug don't remove temporary files
19265 --recheck update $as_me by reconfiguring in the same conditions
19266 --file=FILE[:TEMPLATE]
19267 instantiate the configuration file FILE
19268 --header=FILE[:TEMPLATE]
19269 instantiate the configuration header FILE
19271 Configuration files:
19274 Configuration headers:
19277 Configuration commands:
19280 Report bugs to the package provider."
19283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19284 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19286 libevent config.status 2.1.12-stable
19287 configured by $0, generated by GNU Autoconf 2.69,
19288 with options \\"\$ac_cs_config\\"
19290 Copyright (C) 2012 Free Software Foundation, Inc.
19291 This config.status script is free software; the Free Software Foundation
19292 gives unlimited permission to copy, distribute and modify it."
19299 test -n "\$AWK" || AWK=awk
19302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19303 # The default lists apply if the user does not specify any file.
19309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19310 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19314 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19326 # Handling of the options.
19327 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19329 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19330 $as_echo "$ac_cs_version"; exit ;;
19331 --config | --confi | --conf | --con | --co | --c )
19332 $as_echo "$ac_cs_config"; exit ;;
19333 --debug | --debu | --deb | --de | --d | -d )
19335 --file | --fil | --fi | --f )
19338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19339 '') as_fn_error $? "missing file argument" ;;
19341 as_fn_append CONFIG_FILES " '$ac_optarg'"
19342 ac_need_defaults=false;;
19343 --header | --heade | --head | --hea )
19346 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19348 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19349 ac_need_defaults=false;;
19351 # Conflict between --help and --header
19352 as_fn_error $? "ambiguous option: \`$1'
19353 Try \`$0 --help' for more information.";;
19354 --help | --hel | -h )
19355 $as_echo "$ac_cs_usage"; exit ;;
19356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19357 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19360 # This is an error.
19361 -*) as_fn_error $? "unrecognized option: \`$1'
19362 Try \`$0 --help' for more information." ;;
19364 *) as_fn_append ac_config_targets " $1"
19365 ac_need_defaults=false ;;
19371 ac_configure_extra_args=
19373 if $ac_cs_silent; then
19375 ac_configure_extra_args="$ac_configure_extra_args --silent"
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19380 if \$ac_cs_recheck; then
19381 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19384 CONFIG_SHELL='$SHELL'
19385 export CONFIG_SHELL
19390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19395 ## Running $as_me. ##
19401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19405 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19408 # The HP-UX ksh and POSIX shell print the target directory to stdout
19409 # if CDPATH is set.
19410 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19412 sed_quote_subst='$sed_quote_subst'
19413 double_quote_subst='$double_quote_subst'
19414 delay_variable_subst='$delay_variable_subst'
19415 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19416 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19417 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19418 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19419 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19420 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19421 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19422 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19423 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19424 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19425 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19426 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19427 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19428 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19429 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19430 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19431 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19432 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19433 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19434 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19435 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19436 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19437 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19438 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19439 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19440 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19441 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19442 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19443 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19444 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19445 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19446 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19447 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19448 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19449 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19450 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19451 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19452 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19453 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19454 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19455 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19456 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19457 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
19458 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19459 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19460 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19461 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19462 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19463 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19464 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19465 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19466 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19467 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19468 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19469 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19470 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19471 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19472 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19474 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"`'
19475 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19476 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19477 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19478 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19479 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19480 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19481 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19482 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19483 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19484 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19485 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19486 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19487 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19488 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19489 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19490 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19491 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19492 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19493 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19494 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19495 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19496 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19497 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19498 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19499 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19500 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19501 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19502 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19503 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19504 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19505 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19506 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19507 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19508 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19509 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19510 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19511 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19512 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19513 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19514 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19515 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19516 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19517 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19518 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19519 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19520 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19521 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19522 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19523 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19524 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19525 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19526 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19527 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19528 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19529 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19530 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19531 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19532 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19533 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19534 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19535 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19536 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19537 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19538 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19539 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19540 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19541 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19542 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19543 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19544 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19545 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19546 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19547 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19548 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19549 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19550 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19553 LTCFLAGS='$LTCFLAGS'
19554 compiler='$compiler_DEFAULT'
19556 # A function that is used when there is no print builtin or printf.
19557 func_fallback_echo ()
19559 eval 'cat <<_LTECHO_EOF
19564 # Quote evaled strings.
19579 deplibs_check_method \
19584 sharedlib_from_linklib_cmd \
19586 archiver_list_spec \
19592 lt_cv_sys_global_symbol_pipe \
19593 lt_cv_sys_global_symbol_to_cdecl \
19594 lt_cv_sys_global_symbol_to_import \
19595 lt_cv_sys_global_symbol_to_c_name_address \
19596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19597 lt_cv_nm_interface \
19598 nm_file_list_spec \
19599 lt_cv_truncate_bin \
19600 lt_prog_compiler_no_builtin_flag \
19601 lt_prog_compiler_pic \
19602 lt_prog_compiler_wl \
19603 lt_prog_compiler_static \
19604 lt_cv_prog_compiler_c_o \
19613 export_dynamic_flag_spec \
19614 whole_archive_flag_spec \
19615 compiler_needs_object \
19617 allow_undefined_flag \
19618 no_undefined_flag \
19619 hardcode_libdir_flag_spec \
19620 hardcode_libdir_separator \
19624 variables_saved_for_relink \
19626 library_names_spec \
19628 install_override_mode \
19632 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19633 *[\\\\\\\`\\"\\\$]*)
19634 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19637 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19642 # Double-quote double-evaled strings.
19643 for var in reload_cmds \
19644 old_postinstall_cmds \
19645 old_postuninstall_cmds \
19647 extract_expsyms_cmds \
19648 old_archive_from_new_cmds \
19649 old_archive_from_expsyms_cmds \
19651 archive_expsym_cmds \
19653 module_expsym_cmds \
19654 export_symbols_cmds \
19658 postuninstall_cmds \
19660 sys_lib_search_path_spec \
19661 configure_time_dlsearch_path \
19662 configure_time_lt_sys_library_path; do
19663 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19664 *[\\\\\\\`\\"\\\$]*)
19665 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19668 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19673 ac_aux_dir='$ac_aux_dir'
19675 # See if we are running on zsh, and set the options that allow our
19676 # commands through without removal of \ escapes INIT.
19677 if test -n "\${ZSH_VERSION+set}"; then
19678 setopt NO_GLOB_SUBST
19692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19694 # Handling of arguments.
19695 for ac_config_target in $ac_config_targets
19697 case $ac_config_target in
19698 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19699 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
19700 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19701 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19702 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
19703 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
19704 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
19705 "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
19706 "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
19707 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19709 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19714 # If the user did not use the arguments to specify the items to instantiate,
19715 # then the envvar interface is used. Set only those that are not.
19716 # We use the long form for the default assignment because of an extremely
19717 # bizarre bug on SunOS 4.1.3.
19718 if $ac_need_defaults; then
19719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19724 # Have a temporary directory for convenience. Make it in the build tree
19725 # simply because there is no reason against having it here, and in addition,
19726 # creating and moving files from /tmp can sometimes cause problems.
19727 # Hook for its removal unless debugging.
19728 # Note that there is a small window in which the directory will not be cleaned:
19729 # after its creation but before its name has been assigned to `$tmp'.
19733 trap 'exit_status=$?
19734 : "${ac_tmp:=$tmp}"
19735 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19737 trap 'as_fn_exit 1' 1 2 13 15
19739 # Create a (secure) tmp directory for tmp files.
19742 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19746 tmp=./conf$$-$RANDOM
19747 (umask 077 && mkdir "$tmp")
19748 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19751 # Set up the scripts for CONFIG_FILES section.
19752 # No need to generate them if there are no CONFIG_FILES.
19753 # This happens for instance with `./config.status config.h'.
19754 if test -n "$CONFIG_FILES"; then
19757 ac_cr=`echo X | tr X '\015'`
19758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19759 # But we know of no other shell where ac_cr would be empty at this
19760 # point, so we can use a bashism as a fallback.
19761 if test "x$ac_cr" = x; then
19762 eval ac_cr=\$\'\\r\'
19764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19768 ac_cs_awk_cr=$ac_cr
19771 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19776 echo "cat >conf$$subs.awk <<_ACEOF" &&
19777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19779 } >conf$$subs.sh ||
19780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19783 for ac_last_try in false false false false false :; do
19784 . ./conf$$subs.sh ||
19785 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19788 if test $ac_delim_n = $ac_delim_num; then
19790 elif $ac_last_try; then
19791 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19796 rm -f conf$$subs.sh
19798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19799 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19803 s/^/S["/; s/!.*/"]=/
19813 s/\(.\{148\}\)..*/\1/
19815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19827 s/\(.\{148\}\)..*/\1/
19829 s/["\\]/\\&/g; s/^/"/; s/$/"/
19833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19838 ' <conf$$subs.awk | sed '
19843 ' >>$CONFIG_STATUS || ac_write_fail=1
19844 rm -f conf$$subs.awk
19845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19847 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19848 for (key in S) S_is_set[key] = 1
19854 nfields = split(line, field, "@")
19856 len = length(field[1])
19857 for (i = 2; i < nfields; i++) {
19859 keylen = length(key)
19860 if (S_is_set[key]) {
19862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19863 len += length(value) + length(field[++i])
19874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19879 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19880 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19883 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19884 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19885 # trailing colons and then remove the whole line if VPATH becomes empty
19886 # (actually we leave an empty line to preserve line numbers).
19887 if test "x$srcdir" = x.; then
19888 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19907 fi # test -n "$CONFIG_FILES"
19909 # Set up the scripts for CONFIG_HEADERS section.
19910 # No need to generate them if there are no CONFIG_HEADERS.
19911 # This happens for instance with `./config.status Makefile'.
19912 if test -n "$CONFIG_HEADERS"; then
19913 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19917 # Transform confdefs.h into an awk script `defines.awk', embedded as
19918 # here-document in config.status, that substitutes the proper values into
19919 # config.h.in to produce config.h.
19921 # Create a delimiter string that does not exist in confdefs.h, to ease
19922 # handling of long lines.
19924 for ac_last_try in false false :; do
19925 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19926 if test -z "$ac_tt"; then
19928 elif $ac_last_try; then
19929 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19935 # For the awk script, D is an array of macro values keyed by name,
19936 # likewise P contains macro parameters if any. Preserve backslash
19937 # newline sequences.
19939 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19941 s/.\{148\}/&'"$ac_delim"'/g
19944 s/^[ ]*#[ ]*define[ ][ ]*/ /
19951 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19953 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19958 D["\1"]=" \3\\\\\\n"\\/p
19960 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19965 s/.\{148\}/&'"$ac_delim"'/g
19970 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19973 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19975 ' <confdefs.h | sed '
19976 s/'"$ac_delim"'/"\\\
19977 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19980 for (key in D) D_is_set[key] = 1
19983 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19985 split(line, arg, " ")
19986 if (arg[1] == "#") {
19990 defundef = substr(arg[1], 2)
19993 split(mac1, mac2, "(") #)
19995 prefix = substr(line, 1, index(line, defundef) - 1)
19996 if (D_is_set[macro]) {
19997 # Preserve the white space surrounding the "#".
19998 print prefix "define", macro P[macro] D[macro]
20001 # Replace #undef with comments. This is necessary, for example,
20002 # in the case of _POSIX_SOURCE, which is predefined and required
20003 # on some systems where configure will not decide to define it.
20004 if (defundef == "undef") {
20005 print "/*", prefix defundef, macro, "*/"
20013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20014 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20015 fi # test -n "$CONFIG_HEADERS"
20018 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20023 :[FHLC]) ac_mode=$ac_tag; continue;;
20025 case $ac_mode$ac_tag in
20027 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20028 :[FH]-) ac_tag=-:-;;
20029 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20046 -) ac_f="$ac_tmp/stdin";;
20047 *) # Look for the file first in the build tree, then in the source tree
20048 # (if the path is not absolute). The absolute path cannot be DOS-style,
20049 # because $ac_f cannot contain `:'.
20053 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20055 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20057 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20058 as_fn_append ac_file_inputs " '$ac_f'"
20061 # Let's still pretend it is `configure' which instantiates (i.e., don't
20062 # use $as_me), people would be surprised to read:
20063 # /* config.h. Generated by config.status. */
20064 configure_input='Generated from '`
20065 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20067 if test x"$ac_file" != x-; then
20068 configure_input="$ac_file. $configure_input"
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20070 $as_echo "$as_me: creating $ac_file" >&6;}
20072 # Neutralize special characters interpreted by sed in replacement strings.
20073 case $configure_input in #(
20074 *\&* | *\|* | *\\* )
20075 ac_sed_conf_input=`$as_echo "$configure_input" |
20076 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20077 *) ac_sed_conf_input=$configure_input;;
20081 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20087 ac_dir=`$as_dirname -- "$ac_file" ||
20088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20089 X"$ac_file" : 'X\(//\)[^/]' \| \
20090 X"$ac_file" : 'X\(//\)$' \| \
20091 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20092 $as_echo X"$ac_file" |
20093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20097 /^X\(\/\/\)[^/].*/{
20110 as_dir="$ac_dir"; as_fn_mkdir_p
20114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20117 # A ".." for each directory in $ac_dir_suffix.
20118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20119 case $ac_top_builddir_sub in
20120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20124 ac_abs_top_builddir=$ac_pwd
20125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20126 # for backward compatibility:
20127 ac_top_builddir=$ac_top_build_prefix
20130 .) # We are building in place.
20132 ac_top_srcdir=$ac_top_builddir_sub
20133 ac_abs_top_srcdir=$ac_pwd ;;
20134 [\\/]* | ?:[\\/]* ) # Absolute name.
20135 ac_srcdir=$srcdir$ac_dir_suffix;
20136 ac_top_srcdir=$srcdir
20137 ac_abs_top_srcdir=$srcdir ;;
20138 *) # Relative name.
20139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20140 ac_top_srcdir=$ac_top_build_prefix$srcdir
20141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20156 ac_MKDIR_P=$MKDIR_P
20158 [\\/$]* | ?:[\\/]* ) ;;
20159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20164 # If the template does not know about datarootdir, expand it.
20165 # FIXME: This hack should be removed a few years after 2.60.
20166 ac_datarootdir_hack=; ac_datarootdir_seen=
20177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20178 *datarootdir*) ac_datarootdir_seen=yes;;
20179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20184 ac_datarootdir_hack='
20185 s&@datadir@&$datadir&g
20186 s&@docdir@&$docdir&g
20187 s&@infodir@&$infodir&g
20188 s&@localedir@&$localedir&g
20189 s&@mandir@&$mandir&g
20190 s&\\\${datarootdir}&$datarootdir&g' ;;
20194 # Neutralize VPATH when `$srcdir' = `.'.
20195 # Shell code in configure.ac might set extrasub.
20196 # FIXME: do we really want to maintain this feature?
20197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20198 ac_sed_extra="$ac_vpsub
20201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20204 s|@configure_input@|$ac_sed_conf_input|;t t
20205 s&@top_builddir@&$ac_top_builddir_sub&;t t
20206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20207 s&@srcdir@&$ac_srcdir&;t t
20208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20209 s&@top_srcdir@&$ac_top_srcdir&;t t
20210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20211 s&@builddir@&$ac_builddir&;t t
20212 s&@abs_builddir@&$ac_abs_builddir&;t t
20213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20214 s&@INSTALL@&$ac_INSTALL&;t t
20215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20216 $ac_datarootdir_hack
20218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20219 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20222 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20223 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20224 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20226 which seems to be undefined. Please make sure it is defined" >&5
20227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20228 which seems to be undefined. Please make sure it is defined" >&2;}
20230 rm -f "$ac_tmp/stdin"
20232 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20233 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20241 if test x"$ac_file" != x-; then
20243 $as_echo "/* $configure_input */" \
20244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20245 } >"$ac_tmp/config.h" \
20246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20247 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20252 mv "$ac_tmp/config.h" "$ac_file" \
20253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20256 $as_echo "/* $configure_input */" \
20257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20258 || as_fn_error $? "could not create -" "$LINENO" 5
20260 # Compute "$ac_file"'s index in $config_headers.
20263 for _am_header in $config_headers :; do
20264 case $_am_header in
20265 $_am_arg | $_am_arg:* )
20268 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20271 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20272 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20273 X"$_am_arg" : 'X\(//\)[^/]' \| \
20274 X"$_am_arg" : 'X\(//\)$' \| \
20275 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20276 $as_echo X"$_am_arg" |
20277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20281 /^X\(\/\/\)[^/].*/{
20293 s/.*/./; q'`/stamp-h$_am_stamp_count
20296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20297 $as_echo "$as_me: executing $ac_file commands" >&6;}
20302 case $ac_file$ac_mode in
20303 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20304 # Older Autoconf quotes --file arguments for eval, but not when files
20305 # are listed without --file. Let's play safe and only enable the eval
20306 # if we detect the quoting.
20307 # TODO: see whether this extra hack can be removed once we start
20308 # requiring Autoconf 2.70 or later.
20309 case $CONFIG_FILES in #(
20311 eval set x "$CONFIG_FILES" ;; #(
20313 set x $CONFIG_FILES ;; #(
20318 # Used to flag and report bootstrapping failures.
20322 # Strip MF so we end up with the name of the file.
20323 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20324 # Check whether this is an Automake generated Makefile which includes
20325 # dependency-tracking related rules and includes.
20326 # Grep'ing the whole file directly is not great: AIX grep has a line
20327 # limit of 2048, but all sed's we know have understand at least 4000.
20328 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20330 am_dirpart=`$as_dirname -- "$am_mf" ||
20331 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20332 X"$am_mf" : 'X\(//\)[^/]' \| \
20333 X"$am_mf" : 'X\(//\)$' \| \
20334 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20335 $as_echo X"$am_mf" |
20336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20340 /^X\(\/\/\)[^/].*/{
20353 am_filepart=`$as_basename -- "$am_mf" ||
20354 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20355 X"$am_mf" : 'X\(//\)$' \| \
20356 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20357 $as_echo X/"$am_mf" |
20358 sed '/^.*\/\([^/][^/]*\)\/*$/{
20371 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20372 && sed -e '/# am--include-marker/d' "$am_filepart" \
20373 | $MAKE -f - am--depfiles" >&5
20374 (cd "$am_dirpart" \
20375 && sed -e '/# am--include-marker/d' "$am_filepart" \
20376 | $MAKE -f - am--depfiles) >&5 2>&5
20378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379 (exit $ac_status); } || am_rc=$?
20381 if test $am_rc -ne 0; then
20382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20384 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20385 for automatic dependency tracking. If GNU make was not used, consider
20386 re-running the configure script with MAKE=\"gmake\" (or whatever is
20387 necessary). You can also try re-running configure with the
20388 '--disable-dependency-tracking' option to at least be able to build
20389 the package (albeit without support for automatic dependency tracking).
20390 See \`config.log' for more details" "$LINENO" 5; }
20392 { am_dirpart=; unset am_dirpart;}
20393 { am_filepart=; unset am_filepart;}
20394 { am_mf=; unset am_mf;}
20395 { am_rc=; unset am_rc;}
20396 rm -f conftest-deps.mk
20401 # See if we are running on zsh, and set the options that allow our
20402 # commands through without removal of \ escapes.
20403 if test -n "${ZSH_VERSION+set}"; then
20404 setopt NO_GLOB_SUBST
20408 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20411 cat <<_LT_EOF >> "$cfgfile"
20413 # Generated automatically by $as_me ($PACKAGE) $VERSION
20414 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20416 # Provide generalized library-building support services.
20417 # Written by Gordon Matzigkeit, 1996
20419 # Copyright (C) 2014 Free Software Foundation, Inc.
20420 # This is free software; see the source for copying conditions. There is NO
20421 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20423 # GNU Libtool is free software; you can redistribute it and/or modify
20424 # it under the terms of the GNU General Public License as published by
20425 # the Free Software Foundation; either version 2 of of the License, or
20426 # (at your option) any later version.
20428 # As a special exception to the GNU General Public License, if you
20429 # distribute this file as part of a program or library that is built
20430 # using GNU Libtool, you may include this file under the same
20431 # distribution terms that you use for the rest of that program.
20433 # GNU Libtool is distributed in the hope that it will be useful, but
20434 # WITHOUT ANY WARRANTY; without even the implied warranty of
20435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20436 # GNU General Public License for more details.
20438 # You should have received a copy of the GNU General Public License
20439 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20442 # The names of the tagged configurations supported by this script.
20445 # Configured defaults for sys_lib_dlsearch_path munging.
20446 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20448 # ### BEGIN LIBTOOL CONFIG
20450 # Which release of libtool.m4 was used?
20451 macro_version=$macro_version
20452 macro_revision=$macro_revision
20454 # Whether or not to build shared libraries.
20455 build_libtool_libs=$enable_shared
20457 # Whether or not to build static libraries.
20458 build_old_libs=$enable_static
20460 # What type of objects to build.
20463 # Whether or not to optimize for fast installation.
20464 fast_install=$enable_fast_install
20466 # Shared archive member basename,for filename based shared library versioning on AIX.
20467 shared_archive_member_spec=$shared_archive_member_spec
20469 # Shell to use when invoking shell scripts.
20472 # An echo program that protects backslashes.
20475 # The PATH separator for the build system.
20476 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20479 host_alias=$host_alias
20483 # The build system.
20484 build_alias=$build_alias
20488 # A sed program that does not truncate output.
20491 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20492 Xsed="\$SED -e 1s/^X//"
20494 # A grep program that handles long lines.
20500 # A literal string matcher.
20503 # A BSD- or MS-compatible name lister.
20506 # Whether we need soft or hard links.
20509 # What is the maximum length of a command?
20510 max_cmd_len=$max_cmd_len
20512 # Object file suffix (normally "o").
20515 # Executable file suffix (normally "").
20518 # whether the shell understands "unset".
20521 # turn spaces into newlines.
20524 # turn newlines into spaces.
20527 # convert \$build file names to \$host format.
20528 to_host_file_cmd=$lt_cv_to_host_file_cmd
20530 # convert \$build files to toolchain format.
20531 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20533 # An object symbol dumper.
20534 OBJDUMP=$lt_OBJDUMP
20536 # Method to check whether dependent libraries are shared objects.
20537 deplibs_check_method=$lt_deplibs_check_method
20539 # Command to use when deplibs_check_method = "file_magic".
20540 file_magic_cmd=$lt_file_magic_cmd
20542 # How to find potential files when deplibs_check_method = "file_magic".
20543 file_magic_glob=$lt_file_magic_glob
20545 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20546 want_nocaseglob=$lt_want_nocaseglob
20548 # DLL creation program.
20549 DLLTOOL=$lt_DLLTOOL
20551 # Command to associate shared and link libraries.
20552 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20557 # Flags to create an archive (by configure).
20558 lt_ar_flags=$lt_ar_flags
20560 # Flags to create an archive.
20561 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
20563 # How to feed a file listing to the archiver.
20564 archiver_list_spec=$lt_archiver_list_spec
20566 # A symbol stripping program.
20569 # Commands used to install an old-style archive.
20571 old_postinstall_cmds=$lt_old_postinstall_cmds
20572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20574 # Whether to use a lock for old archive extraction.
20575 lock_old_archive_extraction=$lock_old_archive_extraction
20580 # LTCC compiler flags.
20581 LTCFLAGS=$lt_CFLAGS
20583 # Take the output of nm and produce a listing of raw symbols and C names.
20584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20586 # Transform the output of nm in a proper C declaration.
20587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20589 # Transform the output of nm into a list of symbols to manually relocate.
20590 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20592 # Transform the output of nm in a C name address pair.
20593 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20595 # Transform the output of nm in a C name address pair when lib prefix is needed.
20596 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20598 # The name lister interface.
20599 nm_interface=$lt_lt_cv_nm_interface
20601 # Specify filename containing input files for \$NM.
20602 nm_file_list_spec=$lt_nm_file_list_spec
20604 # The root where to search for dependent libraries,and where our libraries should be installed.
20605 lt_sysroot=$lt_sysroot
20607 # Command to truncate a binary pipe.
20608 lt_truncate_bin=$lt_lt_cv_truncate_bin
20610 # The name of the directory that contains temporary libtool files.
20613 # Used to examine libraries when file_magic_cmd begins with "file".
20614 MAGIC_CMD=$MAGIC_CMD
20616 # Must we lock files when doing compilation?
20617 need_locks=$lt_need_locks
20620 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20622 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20623 DSYMUTIL=$lt_DSYMUTIL
20625 # Tool to change global to local symbols on Mac OS X.
20628 # Tool to manipulate fat objects and archives on Mac OS X.
20631 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20634 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20635 OTOOL64=$lt_OTOOL64
20637 # Old archive suffix (normally "a").
20640 # Shared library suffix (normally ".so").
20641 shrext_cmds=$lt_shrext_cmds
20643 # The commands to extract the exported symbol list from a shared archive.
20644 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20646 # Variables whose values should be saved in libtool wrapper scripts and
20647 # restored at link time.
20648 variables_saved_for_relink=$lt_variables_saved_for_relink
20650 # Do we need the "lib" prefix for modules?
20651 need_lib_prefix=$need_lib_prefix
20653 # Do we need a version for libraries?
20654 need_version=$need_version
20656 # Library versioning type.
20657 version_type=$version_type
20659 # Shared library runtime path variable.
20660 runpath_var=$runpath_var
20662 # Shared library path variable.
20663 shlibpath_var=$shlibpath_var
20665 # Is shlibpath searched before the hard-coded library search path?
20666 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20668 # Format of library name prefix.
20669 libname_spec=$lt_libname_spec
20671 # List of archive names. First name is the real one, the rest are links.
20672 # The last name is the one that the linker finds with -lNAME
20673 library_names_spec=$lt_library_names_spec
20675 # The coded name of the library, if different from the real name.
20676 soname_spec=$lt_soname_spec
20678 # Permission mode override for installation of shared libraries.
20679 install_override_mode=$lt_install_override_mode
20681 # Command to use after installation of a shared archive.
20682 postinstall_cmds=$lt_postinstall_cmds
20684 # Command to use after uninstallation of a shared archive.
20685 postuninstall_cmds=$lt_postuninstall_cmds
20687 # Commands used to finish a libtool library installation in a directory.
20688 finish_cmds=$lt_finish_cmds
20690 # As "finish_cmds", except a single script fragment to be evaled but
20692 finish_eval=$lt_finish_eval
20694 # Whether we should hardcode library paths into libraries.
20695 hardcode_into_libs=$hardcode_into_libs
20697 # Compile-time system search path for libraries.
20698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20700 # Detected run-time system search path for libraries.
20701 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20703 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20704 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20706 # Whether dlopen is supported.
20707 dlopen_support=$enable_dlopen
20709 # Whether dlopen of programs is supported.
20710 dlopen_self=$enable_dlopen_self
20712 # Whether dlopen of statically linked programs is supported.
20713 dlopen_self_static=$enable_dlopen_self_static
20715 # Commands to strip libraries.
20716 old_striplib=$lt_old_striplib
20717 striplib=$lt_striplib
20720 # The linker used to build libraries.
20723 # How to create reloadable object files.
20724 reload_flag=$lt_reload_flag
20725 reload_cmds=$lt_reload_cmds
20727 # Commands used to build an old-style archive.
20728 old_archive_cmds=$lt_old_archive_cmds
20730 # A language specific compiler.
20733 # Is the compiler the GNU compiler?
20736 # Compiler flag to turn off builtin functions.
20737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20739 # Additional compiler flags for building library objects.
20740 pic_flag=$lt_lt_prog_compiler_pic
20742 # How to pass a linker flag through the compiler.
20743 wl=$lt_lt_prog_compiler_wl
20745 # Compiler flag to prevent dynamic linking.
20746 link_static_flag=$lt_lt_prog_compiler_static
20748 # Does compiler simultaneously support -c and -o options?
20749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20751 # Whether or not to add -lc for building shared libraries.
20752 build_libtool_need_lc=$archive_cmds_need_lc
20754 # Whether or not to disallow shared libs when runtime libs are static.
20755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20757 # Compiler flag to allow reflexive dlopens.
20758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20760 # Compiler flag to generate shared objects directly from archives.
20761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20763 # Whether the compiler copes with passing no objects directly.
20764 compiler_needs_object=$lt_compiler_needs_object
20766 # Create an old-style archive from a shared archive.
20767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20769 # Create a temporary old-style archive to link instead of a shared archive.
20770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20772 # Commands used to build a shared archive.
20773 archive_cmds=$lt_archive_cmds
20774 archive_expsym_cmds=$lt_archive_expsym_cmds
20776 # Commands used to build a loadable module if different from building
20777 # a shared archive.
20778 module_cmds=$lt_module_cmds
20779 module_expsym_cmds=$lt_module_expsym_cmds
20781 # Whether we are building with GNU ld or not.
20782 with_gnu_ld=$lt_with_gnu_ld
20784 # Flag that allows shared libraries with undefined symbols to be built.
20785 allow_undefined_flag=$lt_allow_undefined_flag
20787 # Flag that enforces no undefined symbols.
20788 no_undefined_flag=$lt_no_undefined_flag
20790 # Flag to hardcode \$libdir into a binary during linking.
20791 # This must work even if \$libdir does not exist
20792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20794 # Whether we need a single "-rpath" flag with a separated argument.
20795 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20798 # DIR into the resulting binary.
20799 hardcode_direct=$hardcode_direct
20801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20802 # DIR into the resulting binary and the resulting library dependency is
20803 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20804 # library is relocated.
20805 hardcode_direct_absolute=$hardcode_direct_absolute
20807 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20808 # into the resulting binary.
20809 hardcode_minus_L=$hardcode_minus_L
20811 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20812 # into the resulting binary.
20813 hardcode_shlibpath_var=$hardcode_shlibpath_var
20815 # Set to "yes" if building a shared library automatically hardcodes DIR
20816 # into the library and all subsequent libraries and executables linked
20818 hardcode_automatic=$hardcode_automatic
20820 # Set to yes if linker adds runtime paths of dependent libraries
20821 # to runtime path list.
20822 inherit_rpath=$inherit_rpath
20824 # Whether libtool must link a program against all its dependency libraries.
20825 link_all_deplibs=$link_all_deplibs
20827 # Set to "yes" if exported symbols are required.
20828 always_export_symbols=$always_export_symbols
20830 # The commands to list exported symbols.
20831 export_symbols_cmds=$lt_export_symbols_cmds
20833 # Symbols that should not be listed in the preloaded symbols.
20834 exclude_expsyms=$lt_exclude_expsyms
20836 # Symbols that must always be exported.
20837 include_expsyms=$lt_include_expsyms
20839 # Commands necessary for linking programs (against libraries) with templates.
20840 prelink_cmds=$lt_prelink_cmds
20842 # Commands necessary for finishing linking programs.
20843 postlink_cmds=$lt_postlink_cmds
20845 # Specify filename containing input files.
20846 file_list_spec=$lt_file_list_spec
20848 # How to hardcode a shared library path into an executable.
20849 hardcode_action=$hardcode_action
20851 # ### END LIBTOOL CONFIG
20855 cat <<'_LT_EOF' >> "$cfgfile"
20857 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20859 # func_munge_path_list VARIABLE PATH
20860 # -----------------------------------
20861 # VARIABLE is name of variable containing _space_ separated list of
20862 # directories to be munged by the contents of PATH, which is string
20865 # string "DIR[ DIR]" will be prepended to VARIABLE
20867 # string "DIR[ DIR]" will be appended to VARIABLE
20868 # "DIRP[:DIRP]::[DIRA:]DIRA"
20869 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20870 # "DIRA[ DIRA]" will be appended to VARIABLE
20872 # VARIABLE will be replaced by "DIR[ DIR]"
20873 func_munge_path_list ()
20879 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20882 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20885 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20886 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20889 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20895 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20896 func_cc_basename ()
20898 for cc_temp in $*""; do
20900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20906 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20910 # ### END FUNCTIONS SHARED WITH CONFIGURE
20916 cat <<\_LT_EOF >> "$cfgfile"
20917 # AIX sometimes has problems with the GCC collect2 program. For some
20918 # reason, if we set the COLLECT_NAMES environment variable, the problems
20919 # vanish in a puff of smoke.
20920 if test set != "${COLLECT_NAMES+set}"; then
20922 export COLLECT_NAMES
20929 ltmain=$ac_aux_dir/ltmain.sh
20932 # We use sed instead of cat because bash on DJGPP gets confused if
20933 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20934 # text mode, it properly converts lines to CR/LF. This bash problem
20935 # is reportedly fixed, but why not run on old versions too?
20936 sed '$q' "$ltmain" >> "$cfgfile" \
20937 || (rm -f "$cfgfile"; exit 1)
20939 mv -f "$cfgfile" "$ofile" ||
20940 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20951 ac_clean_files=$ac_clean_files_save
20953 test $ac_write_fail = 0 ||
20954 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20957 # configure is writing to config.log, and then calls config.status.
20958 # config.status does its own redirection, appending to config.log.
20959 # Unfortunately, on DOS this fails, as config.log is still kept open
20960 # by configure, so config.status won't be able to write to it; its
20961 # output is simply discarded. So we exec the FD to /dev/null,
20962 # effectively closing config.log, so it can be properly (re)opened and
20963 # appended to by config.status. When coming back to configure, we
20964 # need to make the FD available again.
20965 if test "$no_create" != yes; then
20967 ac_config_status_args=
20968 test "$silent" = yes &&
20969 ac_config_status_args="$ac_config_status_args --quiet"
20971 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20973 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20974 # would make configure fail if this is the last instruction.
20975 $ac_cs_success || as_fn_exit 1
20977 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20979 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}