2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir=.
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 *v*x* | *x*v* ) as_opts=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir=./$as_dir;;
301 test -d "$as_dir" || eval $as_mkdir_p || {
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
370 as_val=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status=$1; test $as_status -eq 0 && as_status=1
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
511 test -d ./-p && rmdir ./-p
515 if test -x / >/dev/null 2>&1; then
518 if ls -dL / >/dev/null 2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix=/usr/local
560 ac_config_libobj_dir=.
567 # Identity of this package.
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
612 ac_subst_vars='am__EXEEXT_FALSE
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
635 DEVPOLL_BACKEND_FALSE
641 BUILD_WITH_NO_UNDEFINED_FALSE
642 BUILD_WITH_NO_UNDEFINED_TRUE
710 INSTALL_STRIP_PROGRAM
752 program_transform_name
765 enable_option_checking
766 enable_dependency_tracking
768 enable_thread_support
769 enable_malloc_replacement
772 enable_libevent_install
773 enable_libevent_regress
774 enable_function_sections
783 ac_precious_vars='build_alias
794 # Initialize some variables set by options.
796 ac_init_version=false
797 ac_unrecognized_opts=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
808 program_transform_name=s,x,x,
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE}'
833 infodir='${datarootdir}/info'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
846 # If the previous option needs an argument, assign it.
847 if test -n "$ac_prev"; then
848 eval $ac_prev=\$ac_option
854 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 as_fn_error $? "invalid feature name: $ac_useropt"
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
911 eval enable_$ac_useropt=no ;;
913 -docdir | --docdir | --docdi | --doc | --do)
915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923 -enable-* | --enable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error $? "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
952 -help | --help | --hel | --he | -h)
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1101 -site=* | --site=* | --sit=*)
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=\$ac_optarg ;;
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=no ;;
1160 # Obsolete; use --with-x.
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1228 # Be sure to have absolute directory names.
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1241 target=$target_alias
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1248 If a cross compiler is detected then cross compile mode will be used" >&2
1249 elif test "x$build_alias" != "x$host_alias"; then
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257 test "$silent" = yes && exec 6>/dev/null
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263 as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265 as_fn_error $? "pwd does not report name of working directory"
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270 ac_srcdir_defaulted=yes
1271 # Try the directory containing this script, then the parent directory.
1272 ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274 X"$as_myself" : 'X\(//\)[^/]' \| \
1275 X"$as_myself" : 'X\(//\)$' \| \
1276 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1300 ac_srcdir_defaulted=no
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 for ac_var in $ac_precious_vars; do
1321 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_env_${ac_var}_value=\$${ac_var}
1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 # Report the --help message.
1330 if test "$ac_init_help" = "long"; then
1331 # Omit some internal or obsolete options to make the list less imposing.
1332 # This message is too long to be a string in the A/UX 3.1 sh.
1334 \`configure' configures this package to adapt to many kinds of systems.
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE. See below for descriptions of some of the useful variables.
1341 Defaults for the options are specified in brackets.
1344 -h, --help display this help and exit
1345 --help=short display options specific to this package
1346 --help=recursive display the short help of all the included packages
1347 -V, --version display version information and exit
1348 -q, --quiet, --silent do not print \`checking ...' messages
1349 --cache-file=FILE cache test results in FILE [disabled]
1350 -C, --config-cache alias for \`--cache-file=config.cache'
1351 -n, --no-create do not create output files
1352 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354 Installation directories:
1355 --prefix=PREFIX install architecture-independent files in PREFIX
1356 [$ac_default_prefix]
1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1365 For better control, use the options below.
1367 Fine tuning of the installation directories:
1368 --bindir=DIR user executables [EPREFIX/bin]
1369 --sbindir=DIR system admin executables [EPREFIX/sbin]
1370 --libexecdir=DIR program executables [EPREFIX/libexec]
1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1374 --libdir=DIR object code libraries [EPREFIX/lib]
1375 --includedir=DIR C header files [PREFIX/include]
1376 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1379 --infodir=DIR info documentation [DATAROOTDIR/info]
1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1381 --mandir=DIR man documentation [DATAROOTDIR/man]
1382 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1383 --htmldir=DIR html documentation [DOCDIR]
1384 --dvidir=DIR dvi documentation [DOCDIR]
1385 --pdfdir=DIR pdf documentation [DOCDIR]
1386 --psdir=DIR ps documentation [DOCDIR]
1392 --program-prefix=PREFIX prepend PREFIX to installed program names
1393 --program-suffix=SUFFIX append SUFFIX to installed program names
1394 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397 --build=BUILD configure for building on BUILD [guessed]
1398 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 if test -n "$ac_init_help"; then
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --disable-dependency-tracking speeds up one-time build
1411 --enable-dependency-tracking do not reject slow dependency extractors
1412 --enable-gcc-warnings enable verbose warnings with GCC
1413 --disable-thread-support
1414 disable support for threading
1415 --disable-malloc-replacement
1416 disable support for replacing the memory mgt
1418 --disable-openssl disable support for openssl encryption
1419 --disable-debug-mode disable support for running in debug mode
1420 --disable-libevent-install, disable installation of libevent
1422 --disable-libevent-regress, skip regress in make check
1424 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1454 Report bugs to the package provider.
1459 if test "$ac_init_help" = "recursive"; then
1460 # If there are subdirs, report their specific --help.
1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462 test -d "$ac_dir" ||
1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1484 .) # We are building in place.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1518 generated by GNU Autoconf 2.68
1520 Copyright (C) 2010 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537 rm -f conftest.$ac_objext
1538 if { { ac_try="$ac_compile"
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_compile") 2>conftest.err
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } && {
1554 test -z "$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 } && test -s conftest.$ac_objext; then :
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565 as_fn_set_status $ac_retval
1567 } # ac_fn_c_try_compile
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } > conftest.i && {
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext conftest$ac_exeext
1613 if { { ac_try="$ac_link"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>conftest.err
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest$ac_exeext && {
1632 test "$cross_compiling" = yes ||
1633 $as_test_x conftest$ac_exeext
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644 # interfere with the next link command; also delete a directory that is
1645 # left behind by Apple's compiler. We do this before executing the actions.
1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1650 } # ac_fn_c_try_link
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662 $as_echo_n "(cached) " >&6
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1669 if ac_fn_c_try_compile "$LINENO"; then :
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_header_compile
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_link"
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_link") 2>&5
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701 { { case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_try") 2>&5
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; }; }; then :
1713 $as_echo "$as_me: program exited with status $ac_status" >&5
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=$ac_status
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1748 # include <limits.h>
1750 # include <assert.h>
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1777 if ac_fn_c_try_link "$LINENO"; then :
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_func
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1797 ac_fn_c_check_header_mongrel ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 if eval \${$3+:} false; then :
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1810 # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 ac_header_compiler=yes
1821 ac_header_compiler=no
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h. */
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835 ac_header_preproc=yes
1837 ac_header_preproc=no
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1843 # So? What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 eval "$3=\$ac_header_compiler"
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 } # ac_fn_c_check_header_mongrel
1879 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1880 # ---------------------------------------------
1881 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1883 ac_fn_c_check_decl ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 as_decl_name=`echo $2|sed 's/ *(.*//'`
1887 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1889 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1899 #ifndef $as_decl_name
1901 (void) $as_decl_use;
1903 (void) $as_decl_name;
1911 if ac_fn_c_try_compile "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_decl
1925 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1926 # --------------------------------------------
1927 # Tries to find the compile-time value of EXPR in a program that includes
1928 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1930 ac_fn_c_compute_int ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if test "$cross_compiling" = yes; then
1934 # Depending upon the size, compute the lo and hi bounds.
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1941 static int test_array [1 - 2 * !(($2) >= 0)];
1948 if ac_fn_c_try_compile "$LINENO"; then :
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1957 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_hi=$ac_mid; break
1967 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1968 if test $ac_lo -le $ac_mid; then
1972 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1983 static int test_array [1 - 2 * !(($2) < 0)];
1990 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1999 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 if ac_fn_c_try_compile "$LINENO"; then :
2043 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2055 static long int longval () { return $2; }
2056 static unsigned long int ulongval () { return $2; }
2063 FILE *f = fopen ("conftest.val", "w");
2068 long int i = longval ();
2071 fprintf (f, "%ld", i);
2075 unsigned long int i = ulongval ();
2078 fprintf (f, "%lu", i);
2080 /* Do not output a trailing newline, as this causes \r\n confusion
2081 on some platforms. */
2082 return ferror (f) || fclose (f) != 0;
2088 if ac_fn_c_try_run "$LINENO"; then :
2089 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2094 conftest.$ac_objext conftest.beam conftest.$ac_ext
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 as_fn_set_status $ac_retval
2101 } # ac_fn_c_compute_int
2103 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2104 # -------------------------------------------
2105 # Tests whether TYPE exists after having included INCLUDES, setting cache
2106 # variable VAR accordingly.
2107 ac_fn_c_check_type ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2141 if ac_fn_c_try_compile "$LINENO"; then :
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_type
2157 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2158 # ----------------------------------------------------
2159 # Tries to find if the field MEMBER exists in type AGGR, after including
2160 # INCLUDES, setting cache variable VAR accordingly.
2161 ac_fn_c_check_member ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2165 $as_echo_n "checking for $2.$3... " >&6; }
2166 if eval \${$4+:} false; then :
2167 $as_echo_n "(cached) " >&6
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2182 if ac_fn_c_try_compile "$LINENO"; then :
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2192 if (sizeof ac_aggr.$3)
2198 if ac_fn_c_try_compile "$LINENO"; then :
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 } # ac_fn_c_check_member
2213 cat >config.log <<_ACEOF
2214 This file contains any messages produced by compilers while
2215 running configure, to aid debugging if configure makes a mistake.
2217 It was created by $as_me, which was
2218 generated by GNU Autoconf 2.68. Invocation command line was
2230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2239 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2240 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2243 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2244 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2245 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 $as_echo "PATH: $as_dir"
2270 # Keep a trace of the command line.
2271 # Strip out --no-create and --no-recursion so they do not pile up.
2272 # Strip out --silent because we don't want to record it for future runs.
2273 # Also quote any args containing shell meta-characters.
2274 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_must_keep_next=false
2284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286 | -silent | --silent | --silen | --sile | --sil)
2289 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2294 as_fn_append ac_configure_args1 " '$ac_arg'"
2295 if test $ac_must_keep_next = true; then
2296 ac_must_keep_next=false # Got value, back to normal.
2299 *=* | --config-cache | -C | -disable-* | --disable-* \
2300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302 | -with-* | --with-* | -without-* | --without-* | --x)
2303 case "$ac_configure_args0 " in
2304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 -* ) ac_must_keep_next=true ;;
2310 as_fn_append ac_configure_args " '$ac_arg'"
2315 { ac_configure_args0=; unset ac_configure_args0;}
2316 { ac_configure_args1=; unset ac_configure_args1;}
2318 # When interrupted or exit'd, cleanup temporary files, and complete
2319 # config.log. We remove comments because anyway the quotes in there
2320 # would cause problems or look ugly.
2321 # WARNING: Use '\'' to represent an apostrophe within the trap.
2322 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323 trap 'exit_status=$?
2324 # Save into config.log some information that might help in debugging.
2328 $as_echo "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2332 # The following way of writing the cache mishandles newlines in values,
2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335 eval ac_val=\$$ac_var
2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2343 _ | IFS | as_nl) ;; #(
2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345 *) { eval $ac_var=; unset $ac_var;} ;;
2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2353 "s/'\''/'\''\\\\'\'''\''/g;
2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364 $as_echo "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2368 for ac_var in $ac_subst_vars
2370 eval ac_val=\$$ac_var
2372 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -n "$ac_subst_files"; then
2379 $as_echo "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2383 for ac_var in $ac_subst_files
2385 eval ac_val=\$$ac_var
2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 $as_echo "$ac_var='\''$ac_val'\''"
2394 if test -s confdefs.h; then
2395 $as_echo "## ----------- ##
2402 test "$ac_signal" != 0 &&
2403 $as_echo "$as_me: caught signal $ac_signal"
2404 $as_echo "$as_me: exit $exit_status"
2406 rm -f core *.core core.conftest.* &&
2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2410 for ac_signal in 1 2 13 15; do
2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest* confdefs.h
2418 $as_echo "/* confdefs.h */" > confdefs.h
2420 # Predefined preprocessor variables.
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_NAME "$PACKAGE_NAME"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_STRING "$PACKAGE_STRING"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_URL "$PACKAGE_URL"
2447 # Let the site file select an alternate cache file if it wants to.
2448 # Prefer an explicitly selected file to automatically selected ones.
2451 if test -n "$CONFIG_SITE"; then
2452 # We do not want a PATH search for config.site.
2453 case $CONFIG_SITE in #((
2454 -*) ac_site_file1=./$CONFIG_SITE;;
2455 */*) ac_site_file1=$CONFIG_SITE;;
2456 *) ac_site_file1=./$CONFIG_SITE;;
2458 elif test "x$prefix" != xNONE; then
2459 ac_site_file1=$prefix/share/config.site
2460 ac_site_file2=$prefix/etc/config.site
2462 ac_site_file1=$ac_default_prefix/share/config.site
2463 ac_site_file2=$ac_default_prefix/etc/config.site
2465 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2467 test "x$ac_site_file" = xNONE && continue
2468 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471 sed 's/^/| /' "$ac_site_file" >&5
2473 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 as_fn_error $? "failed to load site script $ac_site_file
2476 See \`config.log' for more details" "$LINENO" 5; }
2480 if test -r "$cache_file"; then
2481 # Some versions of bash will fail to source /dev/null (special files
2482 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2483 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488 *) . "./$cache_file";;
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497 # Check that the precious variables saved in the cache have kept the same
2499 ac_cache_corrupted=false
2500 for ac_var in $ac_precious_vars; do
2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502 eval ac_new_set=\$ac_env_${ac_var}_set
2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504 eval ac_new_val=\$ac_env_${ac_var}_value
2505 case $ac_old_set,$ac_new_set in
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509 ac_cache_corrupted=: ;;
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2516 if test "x$ac_old_val" != "x$ac_new_val"; then
2517 # differences in whitespace do not lead to failure.
2518 ac_old_val_w=`echo x $ac_old_val`
2519 ac_new_val_w=`echo x $ac_new_val`
2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523 ac_cache_corrupted=:
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527 eval $ac_var=\$ac_old_val
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2530 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2532 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2535 # Pass precious variables to config.status.
2536 if test "$ac_new_set" = set; then
2538 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 *) ac_arg=$ac_var=$ac_new_val ;;
2541 case " $ac_configure_args " in
2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 if $ac_cache_corrupted; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554 ## -------------------- ##
2555 ## Main body of script. ##
2556 ## -------------------- ##
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 am__api_version='1.11'
2571 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2572 if test -f "$ac_dir/install-sh"; then
2574 ac_install_sh="$ac_aux_dir/install-sh -c"
2576 elif test -f "$ac_dir/install.sh"; then
2578 ac_install_sh="$ac_aux_dir/install.sh -c"
2580 elif test -f "$ac_dir/shtool"; then
2582 ac_install_sh="$ac_aux_dir/shtool install -c"
2586 if test -z "$ac_aux_dir"; then
2587 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2590 # These three variables are undocumented and unsupported,
2591 # and are intended to be withdrawn in a future Autoconf release.
2592 # They can cause serious problems if a builder's source tree is in a directory
2593 # whose full name contains unusual characters.
2594 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2595 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2596 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2599 # Find a good install program. We prefer a C program (faster),
2600 # so one script is as good as another. But avoid the broken or
2601 # incompatible versions:
2602 # SysV /etc/install, /usr/sbin/install
2603 # SunOS /usr/etc/install
2604 # IRIX /sbin/install
2606 # AmigaOS /C/install, which installs bootblocks on floppy discs
2607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610 # OS/2's system install, which has a completely different semantic
2611 # ./install, which can be erroneously created by make from ./install.sh.
2612 # Reject install programs that cannot install multiple files.
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2615 if test -z "$INSTALL"; then
2616 if ${ac_cv_path_install+:} false; then :
2617 $as_echo_n "(cached) " >&6
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 # Account for people who put trailing slashes in PATH elements.
2625 case $as_dir/ in #((
2626 ./ | .// | /[cC]/* | \
2627 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2628 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2631 # OSF1 and SCO ODT 3.0 have their own names for install.
2632 # Don't use installbsd from OSF since it installs stuff as root
2634 for ac_prog in ginstall scoinst install; do
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2637 if test $ac_prog = install &&
2638 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639 # AIX install. It has an incompatible calling convention.
2641 elif test $ac_prog = install &&
2642 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643 # program-specific install script used by HP pwplus--don't use.
2646 rm -rf conftest.one conftest.two conftest.dir
2647 echo one > conftest.one
2648 echo two > conftest.two
2650 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2651 test -s conftest.one && test -s conftest.two &&
2652 test -s conftest.dir/conftest.one &&
2653 test -s conftest.dir/conftest.two
2655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2668 rm -rf conftest.one conftest.two conftest.dir
2671 if test "${ac_cv_path_install+set}" = set; then
2672 INSTALL=$ac_cv_path_install
2674 # As a last resort, use the slow shell script. Don't cache a
2675 # value for INSTALL within a source directory, because that will
2676 # break other packages using the cache if that directory is
2677 # removed, or if the value is a relative name.
2678 INSTALL=$ac_install_sh
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2682 $as_echo "$INSTALL" >&6; }
2684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2685 # It thinks the first close brace ends the variable substitution.
2686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2690 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2693 $as_echo_n "checking whether build environment is sane... " >&6; }
2696 echo timestamp > conftest.file
2697 # Reject unsafe characters in $srcdir or the absolute working directory
2698 # name. Accept space and tab only in the latter.
2702 *[\\\"\#\$\&\'\`$am_lf]*)
2703 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2706 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2707 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2710 # Do `set' in a subshell so we don't clobber the current shell's
2711 # arguments. Must try -L first in case configure is actually a
2712 # symlink; some systems play weird games with the mod time of symlinks
2713 # (eg FreeBSD returns the mod time of the symlink's containing
2716 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717 if test "$*" = "X"; then
2719 set X `ls -t "$srcdir/configure" conftest.file`
2722 if test "$*" != "X $srcdir/configure conftest.file" \
2723 && test "$*" != "X conftest.file $srcdir/configure"; then
2725 # If neither matched, then we have a broken ls. This can happen
2726 # if, for instance, CONFIG_SHELL is bash and it inherits a
2727 # broken ls alias from the environment. This has actually
2728 # happened. Such a system could not be considered "sane".
2729 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2730 alias in your environment" "$LINENO" 5
2733 test "$2" = conftest.file
2739 as_fn_error $? "newly created file is older than distributed files!
2740 Check your system clock" "$LINENO" 5
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2744 test "$program_prefix" != NONE &&
2745 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2746 # Use a double $ so make ignores it.
2747 test "$program_suffix" != NONE &&
2748 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2749 # Double any \ or $.
2750 # By default was `s,x,x', remove it if useless.
2751 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2752 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2754 # expand $ac_aux_dir to an absolute path
2755 am_aux_dir=`cd $ac_aux_dir && pwd`
2757 if test x"${MISSING+set}" != xset; then
2760 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2762 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2765 # Use eval to expand $SHELL
2766 if eval "$MISSING --run true"; then
2767 am_missing_run="$MISSING --run "
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2771 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2774 if test x"${install_sh}" != xset; then
2777 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2779 install_sh="\${SHELL} $am_aux_dir/install-sh"
2783 # Installed binaries are usually stripped using `strip' when the user
2784 # run `make install-strip'. However `strip' might not be the right
2785 # tool to use in cross-compilation environments, therefore Automake
2786 # will honor the `STRIP' environment variable to overrule this program.
2787 if test "$cross_compiling" != no; then
2788 if test -n "$ac_tool_prefix"; then
2789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}strip; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_STRIP+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 if test -n "$STRIP"; then
2797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 STRIP=$ac_cv_prog_STRIP
2817 if test -n "$STRIP"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819 $as_echo "$STRIP" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2827 if test -z "$ac_cv_prog_STRIP"; then
2829 # Extract the first word of "strip", so it can be a program name with args.
2830 set dummy strip; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test -n "$ac_ct_STRIP"; then
2837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_STRIP="strip"
2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857 if test -n "$ac_ct_STRIP"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859 $as_echo "$ac_ct_STRIP" >&6; }
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2865 if test "x$ac_ct_STRIP" = x; then
2868 case $cross_compiling:$ac_tool_warned in
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2877 STRIP="$ac_cv_prog_STRIP"
2881 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2884 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2885 if test -z "$MKDIR_P"; then
2886 if ${ac_cv_path_mkdir+:} false; then :
2887 $as_echo_n "(cached) " >&6
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2893 test -z "$as_dir" && as_dir=.
2894 for ac_prog in mkdir gmkdir; do
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2897 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2898 'mkdir (GNU coreutils) '* | \
2899 'mkdir (coreutils) '* | \
2900 'mkdir (fileutils) '4.1*)
2901 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911 test -d ./--version && rmdir ./--version
2912 if test "${ac_cv_path_mkdir+set}" = set; then
2913 MKDIR_P="$ac_cv_path_mkdir -p"
2915 # As a last resort, use the slow shell script. Don't cache a
2916 # value for MKDIR_P within a source directory, because that will
2917 # break other packages using the cache if that directory is
2918 # removed, or if the value is a relative name.
2919 MKDIR_P="$ac_install_sh -d"
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2923 $as_echo "$MKDIR_P" >&6; }
2927 [\\/$]* | ?:[\\/]*) ;;
2928 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2931 for ac_prog in gawk mawk nawk awk
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$AWK"; then
2941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2970 test -n "$AWK" && break
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 cat >conftest.make <<\_ACEOF
2983 @echo '@@@%%%=$(MAKE)=@@@%%%'
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988 eval ac_cv_prog_make_${ac_make}_set=yes;;
2990 eval ac_cv_prog_make_${ac_make}_set=no;;
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 SET_MAKE="MAKE=${MAKE-make}"
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3011 rmdir .tst 2>/dev/null
3013 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015 # is not polluted with repeated "-I."
3016 am__isrc=' -I$(srcdir)'
3017 # test to see if srcdir already configured
3018 if test -f $srcdir/config.status; then
3019 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3033 # Define the identity of the package.
3035 VERSION=2.0.17-stable
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3047 # Some tools Automake needs.
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063 # We need awk for the "check" target. The system "awk" is bad on
3065 # Always define AMTAR for backward compatibility.
3067 AMTAR=${AMTAR-"${am_missing_run}tar"}
3069 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3075 ac_config_headers="$ac_config_headers config.h"
3078 $as_echo "#define NUMERIC_VERSION 0x02001100" >>confdefs.h
3081 if test "$prefix" = "NONE"; then
3085 # Make sure we can run config.sub.
3086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090 $as_echo_n "checking build system type... " >&6; }
3091 if ${ac_cv_build+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 ac_build_alias=$build_alias
3095 test "x$ac_build_alias" = x &&
3096 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097 test "x$ac_build_alias" = x &&
3098 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3099 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104 $as_echo "$ac_cv_build" >&6; }
3105 case $ac_cv_build in
3107 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3110 ac_save_IFS=$IFS; IFS='-'
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3124 $as_echo_n "checking host system type... " >&6; }
3125 if ${ac_cv_host+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 if test "x$host_alias" = x; then
3129 ac_cv_host=$ac_cv_build
3131 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137 $as_echo "$ac_cv_host" >&6; }
3140 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3143 ac_save_IFS=$IFS; IFS='-'
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3153 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3160 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_CC"; then
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_CC="gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_CC" = x; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3302 if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$CC" && break
3402 if test -z "$CC"; then
3404 for ac_prog in cl.exe
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411 $as_echo_n "(cached) " >&6
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$ac_ct_CC" && break
3446 if test "x$ac_ct_CC" = x; then
3449 case $cross_compiling:$ac_tool_warned in
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details" "$LINENO" 5; }
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471 for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3481 if test -s conftest.err; then
3483 ... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509 $as_echo_n "checking whether the C compiler works... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516 for ac_file in $ac_files
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3525 if { { ac_try="$ac_link_default"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 # We found the default executable, but exeext='' is most
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3571 if test -z "$ac_file"; then :
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error 77 "C compiler cannot create executables
3580 See \`config.log' for more details" "$LINENO" 5; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583 $as_echo "yes" >&6; }
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586 $as_echo_n "checking for C compiler default output file name... " >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3588 $as_echo "$ac_file" >&6; }
3589 ac_exeext=$ac_cv_exeext
3591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3592 ac_clean_files=$ac_clean_files_save
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3594 $as_echo_n "checking for suffix of executables... " >&6; }
3595 if { { ac_try="$ac_link"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }; then :
3606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3608 # work properly (i.e., refer to `conftest.exe'), while it won't with
3610 for ac_file in conftest.exe conftest conftest.*; do
3611 test -f "$ac_file" || continue
3613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3623 See \`config.log' for more details" "$LINENO" 5; }
3625 rm -f conftest conftest$ac_cv_exeext
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3627 $as_echo "$ac_cv_exeext" >&6; }
3629 rm -f conftest.$ac_ext
3630 EXEEXT=$ac_cv_exeext
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3638 FILE *f = fopen ("conftest.out", "w");
3639 return ferror (f) || fclose (f) != 0;
3645 ac_clean_files="$ac_clean_files conftest.out"
3646 # Check that the compiler produces executables we can run. If not, either
3647 # the compiler is broken, or we cross compile.
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3649 $as_echo_n "checking whether we are cross compiling... " >&6; }
3650 if test "$cross_compiling" != yes; then
3651 { { ac_try="$ac_link"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }
3662 if { ac_try='./conftest$ac_cv_exeext'
3663 { { case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_try") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; }; then
3675 if test "$cross_compiling" = maybe; then
3678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "cannot run C compiled programs.
3681 If you meant to cross compile, use \`--host'.
3682 See \`config.log' for more details" "$LINENO" 5; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3690 ac_clean_files=$ac_clean_files_save
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3692 $as_echo_n "checking for suffix of object files... " >&6; }
3693 if ${ac_cv_objext+:} false; then :
3694 $as_echo_n "(cached) " >&6
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3707 rm -f conftest.o conftest.obj
3708 if { { ac_try="$ac_compile"
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_compile") 2>&5
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 for ac_file in conftest.o conftest.obj conftest.*; do
3720 test -f "$ac_file" || continue;
3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3723 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot compute suffix of object files: cannot compile
3734 See \`config.log' for more details" "$LINENO" 5; }
3736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3739 $as_echo "$ac_cv_objext" >&6; }
3740 OBJEXT=$ac_cv_objext
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3744 if ${ac_cv_c_compiler_gnu+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3761 if ac_fn_c_try_compile "$LINENO"; then :
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3772 if test $ac_compiler_gnu = yes; then
3777 ac_test_CFLAGS=${CFLAGS+set}
3778 ac_save_CFLAGS=$CFLAGS
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3781 if ${ac_cv_prog_cc_g+:} false; then :
3782 $as_echo_n "(cached) " >&6
3784 ac_save_c_werror_flag=$ac_c_werror_flag
3785 ac_c_werror_flag=yes
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3799 if ac_fn_c_try_compile "$LINENO"; then :
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3814 if ac_fn_c_try_compile "$LINENO"; then :
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 if ac_fn_c_try_compile "$LINENO"; then :
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 ac_c_werror_flag=$ac_save_c_werror_flag
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3841 $as_echo "$ac_cv_prog_cc_g" >&6; }
3842 if test "$ac_test_CFLAGS" = set; then
3843 CFLAGS=$ac_save_CFLAGS
3844 elif test $ac_cv_prog_cc_g = yes; then
3845 if test "$GCC" = yes; then
3851 if test "$GCC" = yes; then
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859 if ${ac_cv_prog_cc_c89+:} false; then :
3860 $as_echo_n "(cached) " >&6
3862 ac_cv_prog_cc_c89=no
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 #include <sys/types.h>
3869 #include <sys/stat.h>
3870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3871 struct buf { int x; };
3872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3873 static char *e (p, i)
3879 static char *f (char * (*g) (char **, int), char **p, ...)
3884 s = g (p, va_arg (v,int));
3889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3890 function prototypes and stuff, but not '\xHH' hex character constants.
3891 These don't provoke an error unfortunately, instead are silently treated
3892 as 'x'. The following induces an error, until -std is added to get
3893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3894 array size at least. It's necessary to write '\x00'==0 to get something
3895 that's true only with -std. */
3896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3899 inside strings and character constants. */
3901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3903 int test (int i, double x);
3904 struct s1 {int (*f) (int a);};
3905 struct s2 {int (*f) (double a);};
3906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3918 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 CC="$ac_save_CC $ac_arg"
3921 if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_cv_prog_cc_c89=$ac_arg
3924 rm -f core conftest.err conftest.$ac_objext
3925 test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 rm -f conftest.$ac_ext
3932 case "x$ac_cv_prog_cc_c89" in
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3940 CC="$CC $ac_cv_prog_cc_c89"
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 if test "x$ac_cv_prog_cc_c89" != xno; then :
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 DEPDIR="${am__leading_dot}deps"
3955 ac_config_commands="$ac_config_commands depfiles"
3958 am_make=${MAKE-make}
3959 cat > confinc << 'END'
3961 @echo this is the am__doit target
3964 # If we don't find an include directive, just comment out the code.
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3966 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 # First try GNU make style include.
3971 echo "include confinc" > confmf
3972 # Ignore all kinds of additional output from `make'.
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982 echo '.include "confinc"' > confmf
3983 case `$am_make -s -f confmf 2> /dev/null` in #(
3984 *the\ am__doit\ target*)
3985 am__include=.include
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3994 $as_echo "$_am_result" >&6; }
3995 rm -f confinc confmf
3997 # Check whether --enable-dependency-tracking was given.
3998 if test "${enable_dependency_tracking+set}" = set; then :
3999 enableval=$enable_dependency_tracking;
4002 if test "x$enable_dependency_tracking" != xno; then
4003 am_depcomp="$ac_aux_dir/depcomp"
4006 if test "x$enable_dependency_tracking" != xno; then
4016 depcc="$CC" am_compiler_list=
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019 $as_echo_n "checking dependency style of $depcc... " >&6; }
4020 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4042 am_cv_CC_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4047 case " $depcc " in #(
4048 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4051 for depmode in $am_compiler_list; do
4052 # Setup a source with many dependencies, because some compilers
4053 # like to wrap large dependency lists on column 80 (with \), and
4054 # we should not choose a depcomp mode which is confused by this.
4056 # We need to recreate these files for each test, as the compiler may
4057 # overwrite some of them when testing with obscure command lines.
4058 # This happens at least with the AIX C compiler.
4060 for i in 1 2 3 4 5 6; do
4061 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063 # Solaris 8's {/usr,}/bin/sh.
4064 touch sub/conftst$i.h
4066 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4069 # mode. It turns out that the SunPro C++ compiler does not properly
4070 # handle `-M -o', and we need to detect this. Also, some Intel
4071 # versions had trouble with output in subdirs
4072 am__obj=sub/conftest.${OBJEXT-o}
4073 am__minus_obj="-o $am__obj"
4076 # This depmode causes a compiler race in universal mode.
4077 test "$am__universal" = false || continue
4080 # after this tag, mechanisms are not by side-effect, so they'll
4081 # only be used when explicitly requested
4082 if test "x$enable_dependency_tracking" = xyes; then
4088 msvisualcpp | msvcmsys)
4089 # This compiler won't grok `-c -o', but also, the minuso test has
4090 # not run yet. These depmodes are late enough in the game, and
4091 # so weak that their functioning should not be impacted.
4092 am__obj=conftest.${OBJEXT-o}
4097 if depmode=$depmode \
4098 source=sub/conftest.c object=$am__obj \
4099 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101 >/dev/null 2>conftest.err &&
4102 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106 # icc doesn't choke on unknown options, it will just issue warnings
4107 # or remarks (even with -Werror). So we grep stderr for any message
4108 # that says an option was ignored or not supported.
4109 # When given -MP, icc 7.0 and 7.1 complain thusly:
4110 # icc: Command line warning: ignoring option '-M'; no argument required
4111 # The diagnosis changed in icc 8.0:
4112 # icc: Command line remark: option '-MP' not supported
4113 if (grep 'ignoring option' conftest.err ||
4114 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115 am_cv_CC_dependencies_compiler_type=$depmode
4124 am_cv_CC_dependencies_compiler_type=none
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4129 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4133 test "x$enable_dependency_tracking" != xno \
4134 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4136 am__fastdepCC_FALSE='#'
4138 am__fastdepCC_TRUE='#'
4139 am__fastdepCC_FALSE=
4143 if test "x$CC" != xcc; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4145 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4148 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4150 set dummy $CC; ac_cc=`$as_echo "$2" |
4151 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4152 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4166 # Make sure it works both with $CC and with simple cc.
4167 # We do the test twice because some compilers refuse to overwrite an
4168 # existing .o file with -o, though they will create one.
4169 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4171 if { { case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177 (eval "$ac_try") 2>&5
4179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180 test $ac_status = 0; } &&
4181 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187 (eval "$ac_try") 2>&5
4189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190 test $ac_status = 0; };
4192 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4193 if test "x$CC" != xcc; then
4194 # Test first that cc exists at all.
4195 if { ac_try='cc -c conftest.$ac_ext >&5'
4196 { { case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202 (eval "$ac_try") 2>&5
4204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205 test $ac_status = 0; }; }; then
4206 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4208 if { { case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214 (eval "$ac_try") 2>&5
4216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217 test $ac_status = 0; } &&
4218 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_try") 2>&5
4226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227 test $ac_status = 0; };
4232 # cc exists but doesn't like -o.
4233 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4238 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4240 rm -f core conftest*
4243 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4245 $as_echo "yes" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4250 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4254 # FIXME: we rely on the cache variable name because
4255 # there is no other way.
4257 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4258 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4259 if test "$am_t" != yes; then
4260 # Losing compiler, so override with the script.
4261 # FIXME: It is wrong to rewrite CC.
4262 # But if we don't then we get into trouble of one sort or another.
4263 # A longer-term fix would be to have automake use am__CC in this case,
4264 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4265 CC="$am_aux_dir/compile $CC"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4271 $as_echo_n "checking whether ln -s works... " >&6; }
4273 if test "$LN_S" = "ln -s"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4278 $as_echo "no, using $LN_S" >&6; }
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4290 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4291 # On Suns, sometimes $CPP names a directory.
4292 if test -n "$CPP" && test -d "$CPP"; then
4295 if test -z "$CPP"; then
4296 if ${ac_cv_prog_CPP+:} false; then :
4297 $as_echo_n "(cached) " >&6
4299 # Double quotes because CPP needs to be expanded
4300 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4303 for ac_c_preproc_warn_flag in '' yes
4305 # Use a header file that comes with gcc, so configuring glibc
4306 # with a fresh cross-compiler works.
4307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 # <limits.h> exists even on freestanding compilers.
4309 # On the NeXT, cc -E runs the code through the compiler's parser,
4310 # not just through cpp. "Syntax error" is here to catch this case.
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4314 # include <limits.h>
4316 # include <assert.h>
4320 if ac_fn_c_try_cpp "$LINENO"; then :
4323 # Broken: fails on valid input.
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #include <ac_nonexistent.h>
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4335 # Broken: success on invalid input.
4338 # Passes both tests.
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346 rm -f conftest.i conftest.err conftest.$ac_ext
4347 if $ac_preproc_ok; then :
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4360 $as_echo "$CPP" >&6; }
4362 for ac_c_preproc_warn_flag in '' yes
4364 # Use a header file that comes with gcc, so configuring glibc
4365 # with a fresh cross-compiler works.
4366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367 # <limits.h> exists even on freestanding compilers.
4368 # On the NeXT, cc -E runs the code through the compiler's parser,
4369 # not just through cpp. "Syntax error" is here to catch this case.
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4373 # include <limits.h>
4375 # include <assert.h>
4379 if ac_fn_c_try_cpp "$LINENO"; then :
4382 # Broken: fails on valid input.
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4387 # OK, works on sane cases. Now check whether nonexistent headers
4388 # can be detected and how.
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4391 #include <ac_nonexistent.h>
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4394 # Broken: success on invalid input.
4397 # Passes both tests.
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4405 rm -f conftest.i conftest.err conftest.$ac_ext
4406 if $ac_preproc_ok; then :
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log' for more details" "$LINENO" 5; }
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4423 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4424 if ${ac_cv_path_GREP+:} false; then :
4425 $as_echo_n "(cached) " >&6
4427 if test -z "$GREP"; then
4428 ac_path_GREP_found=false
4429 # Loop through the user's path and test for each of PROGNAME-LIST
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4434 test -z "$as_dir" && as_dir=.
4435 for ac_prog in grep ggrep; do
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4438 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4439 # Check for GNU ac_path_GREP and select it if it is found.
4440 # Check for GNU $ac_path_GREP
4441 case `"$ac_path_GREP" --version 2>&1` in
4443 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4446 $as_echo_n 0123456789 >"conftest.in"
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 $as_echo 'GREP' >> "conftest.nl"
4453 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 as_fn_arith $ac_count + 1 && ac_count=$as_val
4456 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_GREP="$ac_path_GREP"
4459 ac_path_GREP_max=$ac_count
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 $ac_path_GREP_found && break 3
4472 if test -z "$ac_cv_path_GREP"; then
4473 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476 ac_cv_path_GREP=$GREP
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4481 $as_echo "$ac_cv_path_GREP" >&6; }
4482 GREP="$ac_cv_path_GREP"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4486 $as_echo_n "checking for egrep... " >&6; }
4487 if ${ac_cv_path_EGREP+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491 then ac_cv_path_EGREP="$GREP -E"
4493 if test -z "$EGREP"; then
4494 ac_path_EGREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in egrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4504 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4505 # Check for GNU ac_path_EGREP and select it if it is found.
4506 # Check for GNU $ac_path_EGREP
4507 case `"$ac_path_EGREP" --version 2>&1` in
4509 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4512 $as_echo_n 0123456789 >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'EGREP' >> "conftest.nl"
4519 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_EGREP="$ac_path_EGREP"
4525 ac_path_EGREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 $ac_path_EGREP_found && break 3
4538 if test -z "$ac_cv_path_EGREP"; then
4539 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 ac_cv_path_EGREP=$EGREP
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4548 $as_echo "$ac_cv_path_EGREP" >&6; }
4549 EGREP="$ac_cv_path_EGREP"
4552 if test $ac_cv_c_compiler_gnu = yes; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4554 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4555 if ${ac_cv_prog_gcc_traditional+:} false; then :
4556 $as_echo_n "(cached) " >&6
4558 ac_pattern="Autoconf.*'x'"
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4566 ac_cv_prog_gcc_traditional=yes
4568 ac_cv_prog_gcc_traditional=no
4573 if test $ac_cv_prog_gcc_traditional = no; then
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4581 ac_cv_prog_gcc_traditional=yes
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4588 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4589 if test $ac_cv_prog_gcc_traditional = yes; then
4590 CC="$CC -traditional"
4595 if test "$GCC" = "yes" ; then
4596 # Enable many gcc warnings by default...
4597 CFLAGS="$CFLAGS -Wall"
4598 # And disable the strict-aliasing optimization, since it breaks
4599 # our sockaddr-handling code in strange ways.
4600 CFLAGS="$CFLAGS -fno-strict-aliasing"
4603 # OS X Lion started deprecating the system openssl. Let's just disable
4604 # all deprecation warnings on OS X.
4608 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4612 # Check whether --enable-gcc-warnings was given.
4613 if test "${enable_gcc_warnings+set}" = set; then :
4614 enableval=$enable_gcc_warnings;
4617 # Check whether --enable-thread-support was given.
4618 if test "${enable_thread_support+set}" = set; then :
4619 enableval=$enable_thread_support;
4621 enable_thread_support=yes
4624 # Check whether --enable-malloc-replacement was given.
4625 if test "${enable_malloc_replacement+set}" = set; then :
4626 enableval=$enable_malloc_replacement;
4628 enable_malloc_replacement=yes
4631 # Check whether --enable-openssl was given.
4632 if test "${enable_openssl+set}" = set; then :
4633 enableval=$enable_openssl;
4638 # Check whether --enable-debug-mode was given.
4639 if test "${enable_debug_mode+set}" = set; then :
4640 enableval=$enable_debug_mode;
4642 enable_debug_mode=yes
4645 # Check whether --enable-libevent-install was given.
4646 if test "${enable_libevent_install+set}" = set; then :
4647 enableval=$enable_libevent_install;
4649 enable_libevent_install=yes
4652 # Check whether --enable-libevent-regress was given.
4653 if test "${enable_libevent_regress+set}" = set; then :
4654 enableval=$enable_libevent_regress;
4656 enable_libevent_regress=yes
4659 # Check whether --enable-function-sections was given.
4660 if test "${enable_function_sections+set}" = set; then :
4661 enableval=$enable_function_sections;
4663 enable_function_sections=no
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4677 macro_revision='1.3293'
4691 ltmain="$ac_aux_dir/ltmain.sh"
4693 # Backslashify metacharacters that are still active within
4694 # double-quoted strings.
4695 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4697 # Same as above, but do not quote variable references.
4698 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4700 # Sed substitution to delay expansion of an escaped shell variable in a
4701 # double_quote_subst'ed string.
4702 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4704 # Sed substitution to delay expansion of an escaped single quote.
4705 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4707 # Sed substitution to avoid accidental globbing in evaled expressions
4708 no_glob_subst='s/\*/\\\*/g'
4710 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4711 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4715 $as_echo_n "checking how to print strings... " >&6; }
4716 # Test print first, because it will be a builtin if present.
4717 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4718 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4720 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4723 # Use this function as a fallback that always works.
4724 func_fallback_echo ()
4726 eval 'cat <<_LTECHO_EOF
4730 ECHO='func_fallback_echo'
4733 # func_echo_all arg...
4734 # Invoke $ECHO with all args, space-separated.
4741 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4742 $as_echo "printf" >&6; } ;;
4743 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4744 $as_echo "print -r" >&6; } ;;
4745 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4746 $as_echo "cat" >&6; } ;;
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4763 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4764 if ${ac_cv_path_SED+:} false; then :
4765 $as_echo_n "(cached) " >&6
4767 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4768 for ac_i in 1 2 3 4 5 6 7; do
4769 ac_script="$ac_script$as_nl$ac_script"
4771 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4772 { ac_script=; unset ac_script;}
4773 if test -z "$SED"; then
4774 ac_path_SED_found=false
4775 # Loop through the user's path and test for each of PROGNAME-LIST
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_prog in sed gsed; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4784 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4785 # Check for GNU ac_path_SED and select it if it is found.
4786 # Check for GNU $ac_path_SED
4787 case `"$ac_path_SED" --version 2>&1` in
4789 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4792 $as_echo_n 0123456789 >"conftest.in"
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
4798 $as_echo '' >> "conftest.nl"
4799 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801 as_fn_arith $ac_count + 1 && ac_count=$as_val
4802 if test $ac_count -gt ${ac_path_SED_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_SED="$ac_path_SED"
4805 ac_path_SED_max=$ac_count
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4813 $ac_path_SED_found && break 3
4818 if test -z "$ac_cv_path_SED"; then
4819 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4827 $as_echo "$ac_cv_path_SED" >&6; }
4828 SED="$ac_cv_path_SED"
4831 test -z "$SED" && SED=sed
4832 Xsed="$SED -e 1s/^X//"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4845 $as_echo_n "checking for fgrep... " >&6; }
4846 if ${ac_cv_path_FGREP+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4850 then ac_cv_path_FGREP="$GREP -F"
4852 if test -z "$FGREP"; then
4853 ac_path_FGREP_found=false
4854 # Loop through the user's path and test for each of PROGNAME-LIST
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859 test -z "$as_dir" && as_dir=.
4860 for ac_prog in fgrep; do
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4863 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4864 # Check for GNU ac_path_FGREP and select it if it is found.
4865 # Check for GNU $ac_path_FGREP
4866 case `"$ac_path_FGREP" --version 2>&1` in
4868 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4871 $as_echo_n 0123456789 >"conftest.in"
4874 cat "conftest.in" "conftest.in" >"conftest.tmp"
4875 mv "conftest.tmp" "conftest.in"
4876 cp "conftest.in" "conftest.nl"
4877 $as_echo 'FGREP' >> "conftest.nl"
4878 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880 as_fn_arith $ac_count + 1 && ac_count=$as_val
4881 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4882 # Best one so far, save it but keep looking for a better one
4883 ac_cv_path_FGREP="$ac_path_FGREP"
4884 ac_path_FGREP_max=$ac_count
4886 # 10*(2^10) chars as input seems more than enough
4887 test $ac_count -gt 10 && break
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892 $ac_path_FGREP_found && break 3
4897 if test -z "$ac_cv_path_FGREP"; then
4898 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901 ac_cv_path_FGREP=$FGREP
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4907 $as_echo "$ac_cv_path_FGREP" >&6; }
4908 FGREP="$ac_cv_path_FGREP"
4911 test -z "$GREP" && GREP=grep
4931 # Check whether --with-gnu-ld was given.
4932 if test "${with_gnu_ld+set}" = set; then :
4933 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4939 if test "$GCC" = yes; then
4940 # Check if gcc -print-prog-name=ld gives a path.
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4942 $as_echo_n "checking for ld used by $CC... " >&6; }
4945 # gcc leaves a trailing carriage return which upsets mingw
4946 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4948 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4951 # Accept absolute paths.
4953 re_direlt='/[^/][^/]*/\.\./'
4954 # Canonicalize the pathname of ld
4955 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4956 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4957 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4959 test -z "$LD" && LD="$ac_prog"
4962 # If it fails, then pretend we aren't using GCC.
4966 # If it is relative, then search for the first ld in PATH.
4970 elif test "$with_gnu_ld" = yes; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4972 $as_echo_n "checking for GNU ld... " >&6; }
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4975 $as_echo_n "checking for non-GNU ld... " >&6; }
4977 if ${lt_cv_path_LD+:} false; then :
4978 $as_echo_n "(cached) " >&6
4980 if test -z "$LD"; then
4981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4982 for ac_dir in $PATH; do
4984 test -z "$ac_dir" && ac_dir=.
4985 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4986 lt_cv_path_LD="$ac_dir/$ac_prog"
4987 # Check to see if the program is GNU ld. I'd rather use --version,
4988 # but apparently some variants of GNU ld only accept -v.
4989 # Break only if it was the GNU/non-GNU ld that we prefer.
4990 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4991 *GNU* | *'with BFD'*)
4992 test "$with_gnu_ld" != no && break
4995 test "$with_gnu_ld" != yes && break
5002 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5007 if test -n "$LD"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5009 $as_echo "$LD" >&6; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5014 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5017 if ${lt_cv_prog_gnu_ld+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5021 case `$LD -v 2>&1 </dev/null` in
5022 *GNU* | *'with BFD'*)
5023 lt_cv_prog_gnu_ld=yes
5026 lt_cv_prog_gnu_ld=no
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5031 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5032 with_gnu_ld=$lt_cv_prog_gnu_ld
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5043 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5044 if ${lt_cv_path_NM+:} false; then :
5045 $as_echo_n "(cached) " >&6
5047 if test -n "$NM"; then
5048 # Let the user override the test.
5051 lt_nm_to_check="${ac_tool_prefix}nm"
5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5053 lt_nm_to_check="$lt_nm_to_check nm"
5055 for lt_tmp_nm in $lt_nm_to_check; do
5056 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5057 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5059 test -z "$ac_dir" && ac_dir=.
5060 tmp_nm="$ac_dir/$lt_tmp_nm"
5061 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5062 # Check to see if the nm accepts a BSD-compat flag.
5063 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5064 # nm: unknown option "B" ignored
5065 # Tru64's nm complains that /dev/null is an invalid object file
5066 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5067 */dev/null* | *'Invalid file or object type'*)
5068 lt_cv_path_NM="$tmp_nm -B"
5072 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5074 lt_cv_path_NM="$tmp_nm -p"
5078 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5079 continue # so that we can try to find one that supports BSD flags
5088 : ${lt_cv_path_NM=no}
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5092 $as_echo "$lt_cv_path_NM" >&6; }
5093 if test "$lt_cv_path_NM" != "no"; then
5096 # Didn't find any BSD compatible name lister, look for dumpbin.
5097 if test -n "$DUMPBIN"; then :
5098 # Let the user override the test.
5100 if test -n "$ac_tool_prefix"; then
5101 for ac_prog in dumpbin "link -dump"
5103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_DUMPBIN+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$DUMPBIN"; then
5111 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 DUMPBIN=$ac_cv_prog_DUMPBIN
5131 if test -n "$DUMPBIN"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5133 $as_echo "$DUMPBIN" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$DUMPBIN" && break
5143 if test -z "$DUMPBIN"; then
5144 ac_ct_DUMPBIN=$DUMPBIN
5145 for ac_prog in dumpbin "link -dump"
5147 # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -n "$ac_ct_DUMPBIN"; then
5155 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5175 if test -n "$ac_ct_DUMPBIN"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5177 $as_echo "$ac_ct_DUMPBIN" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5184 test -n "$ac_ct_DUMPBIN" && break
5187 if test "x$ac_ct_DUMPBIN" = x; then
5190 case $cross_compiling:$ac_tool_warned in
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194 ac_tool_warned=yes ;;
5196 DUMPBIN=$ac_ct_DUMPBIN
5200 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5202 DUMPBIN="$DUMPBIN -symbols"
5210 if test "$DUMPBIN" != ":"; then
5214 test -z "$NM" && NM=nm
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5222 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5223 if ${lt_cv_nm_interface+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 lt_cv_nm_interface="BSD nm"
5227 echo "int some_variable = 0;" > conftest.$ac_ext
5228 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5229 (eval "$ac_compile" 2>conftest.err)
5230 cat conftest.err >&5
5231 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5232 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5233 cat conftest.err >&5
5234 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5235 cat conftest.out >&5
5236 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5237 lt_cv_nm_interface="MS dumpbin"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5242 $as_echo "$lt_cv_nm_interface" >&6; }
5244 # find the maximum length of command line arguments
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5246 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5247 if ${lt_cv_sys_max_cmd_len+:} false; then :
5248 $as_echo_n "(cached) " >&6
5255 # On DJGPP, this test can blow up pretty badly due to problems in libc
5256 # (any single argument exceeding 2000 bytes causes a buffer overrun
5257 # during glob expansion). Even if it were fixed, the result of this
5258 # check would be larger than it should be.
5259 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5263 # Under GNU Hurd, this test is not required because there is
5264 # no limit to the length of command line arguments.
5265 # Libtool will interpret -1 as no limit whatsoever
5266 lt_cv_sys_max_cmd_len=-1;
5269 cygwin* | mingw* | cegcc*)
5270 # On Win9x/ME, this test blows up -- it succeeds, but takes
5271 # about 5 minutes as the teststring grows exponentially.
5272 # Worse, since 9x/ME are not pre-emptively multitasking,
5273 # you end up with a "frozen" computer, even though with patience
5274 # the test eventually succeeds (with a max line length of 256k).
5275 # Instead, let's just punt: use the minimum linelength reported by
5276 # all of the supported platforms: 8192 (on NT/2K/XP).
5277 lt_cv_sys_max_cmd_len=8192;
5281 # On MiNT this can take a long time and run out of memory.
5282 lt_cv_sys_max_cmd_len=8192;
5286 # On AmigaOS with pdksh, this test takes hours, literally.
5287 # So we just punt and use a minimum line length of 8192.
5288 lt_cv_sys_max_cmd_len=8192;
5291 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5292 # This has been around since 386BSD, at least. Likely further.
5293 if test -x /sbin/sysctl; then
5294 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5295 elif test -x /usr/sbin/sysctl; then
5296 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5298 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5300 # And add a safety zone
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5306 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5307 lt_cv_sys_max_cmd_len=196608
5311 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5312 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5313 # nice to cause kernel panics so lets avoid the loop below.
5314 # First set a reasonable default.
5315 lt_cv_sys_max_cmd_len=16384
5317 if test -x /sbin/sysconfig; then
5318 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5319 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5324 lt_cv_sys_max_cmd_len=102400
5326 sysv5* | sco5v6* | sysv4.2uw2*)
5327 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5328 if test -n "$kargmax"; then
5329 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5331 lt_cv_sys_max_cmd_len=32768
5335 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5336 if test -n "$lt_cv_sys_max_cmd_len"; then
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5340 # Make teststring a little bigger before we do anything with it.
5341 # a 1K string should be a reasonable start.
5342 for i in 1 2 3 4 5 6 7 8 ; do
5343 teststring=$teststring$teststring
5345 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5346 # If test is not a shell built-in, we'll probably end up computing a
5347 # maximum length that is only half of the actual maximum length, but
5349 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5350 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5351 test $i != 17 # 1/2 MB should be enough
5354 teststring=$teststring$teststring
5356 # Only check the string length outside the loop.
5357 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5359 # Add a significant safety factor because C++ compilers can tack on
5360 # massive amounts of additional arguments before passing them to the
5361 # linker. It appears as though 1/2 is a usable value.
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5369 if test -n $lt_cv_sys_max_cmd_len ; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5371 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5374 $as_echo "none" >&6; }
5376 max_cmd_len=$lt_cv_sys_max_cmd_len
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5388 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5389 # Try some XSI features
5392 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5394 && eval 'test $(( 1 + 1 )) -eq 2 \
5395 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5398 $as_echo "$xsi_shell" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5402 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5404 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5406 && lt_shell_append=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5408 $as_echo "$lt_shell_append" >&6; }
5411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5421 # test EBCDIC or ASCII
5422 case `echo X|tr X '\101'` in
5423 A) # ASCII based system
5424 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5425 lt_SP2NL='tr \040 \012'
5426 lt_NL2SP='tr \015\012 \040\040'
5428 *) # EBCDIC based system
5429 lt_SP2NL='tr \100 \n'
5430 lt_NL2SP='tr \r\n \100\100'
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5443 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5444 if ${lt_cv_to_host_file_cmd+:} false; then :
5445 $as_echo_n "(cached) " >&6
5450 *-*-mingw* ) # actually msys
5451 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5454 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5456 * ) # otherwise, assume *nix
5457 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5463 *-*-mingw* ) # actually msys
5464 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5467 lt_cv_to_host_file_cmd=func_convert_file_noop
5469 * ) # otherwise, assume *nix
5470 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5474 * ) # unhandled hosts (and "normal" native builds)
5475 lt_cv_to_host_file_cmd=func_convert_file_noop
5481 to_host_file_cmd=$lt_cv_to_host_file_cmd
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5483 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5490 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5491 if ${lt_cv_to_tool_file_cmd+:} false; then :
5492 $as_echo_n "(cached) " >&6
5494 #assume ordinary cross tools, or native build.
5495 lt_cv_to_tool_file_cmd=func_convert_file_noop
5499 *-*-mingw* ) # actually msys
5500 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5508 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5510 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5517 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5518 if ${lt_cv_ld_reload_flag+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 lt_cv_ld_reload_flag='-r'
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5524 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5525 reload_flag=$lt_cv_ld_reload_flag
5526 case $reload_flag in
5528 *) reload_flag=" $reload_flag" ;;
5530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5532 cygwin* | mingw* | pw32* | cegcc*)
5533 if test "$GCC" != yes; then
5538 if test "$GCC" = yes; then
5539 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5541 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5554 if test -n "$ac_tool_prefix"; then
5555 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5556 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_OBJDUMP+:} false; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$OBJDUMP"; then
5563 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 OBJDUMP=$ac_cv_prog_OBJDUMP
5583 if test -n "$OBJDUMP"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5585 $as_echo "$OBJDUMP" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5593 if test -z "$ac_cv_prog_OBJDUMP"; then
5594 ac_ct_OBJDUMP=$OBJDUMP
5595 # Extract the first word of "objdump", so it can be a program name with args.
5596 set dummy objdump; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5600 $as_echo_n "(cached) " >&6
5602 if test -n "$ac_ct_OBJDUMP"; then
5603 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5623 if test -n "$ac_ct_OBJDUMP"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5625 $as_echo "$ac_ct_OBJDUMP" >&6; }
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5631 if test "x$ac_ct_OBJDUMP" = x; then
5634 case $cross_compiling:$ac_tool_warned in
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5640 OBJDUMP=$ac_ct_OBJDUMP
5643 OBJDUMP="$ac_cv_prog_OBJDUMP"
5646 test -z "$OBJDUMP" && OBJDUMP=objdump
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5657 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5658 if ${lt_cv_deplibs_check_method+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 lt_cv_file_magic_cmd='$MAGIC_CMD'
5662 lt_cv_file_magic_test_file=
5663 lt_cv_deplibs_check_method='unknown'
5664 # Need to set the preceding variable on all platforms that support
5665 # interlibrary dependencies.
5666 # 'none' -- dependencies not supported.
5667 # `unknown' -- same as none, but documents that we really don't know.
5668 # 'pass_all' -- all dependencies passed with no checks.
5669 # 'test_compile' -- check by making test program.
5670 # 'file_magic [[regex]]' -- check by looking for files in library path
5671 # which responds to the $file_magic_cmd with a given extended regex.
5672 # If you have `file' or equivalent on your system and you're not sure
5673 # whether `pass_all' will *always* work, you probably want this one.
5677 lt_cv_deplibs_check_method=pass_all
5681 lt_cv_deplibs_check_method=pass_all
5685 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5686 lt_cv_file_magic_cmd='/usr/bin/file -L'
5687 lt_cv_file_magic_test_file=/shlib/libc.so
5691 # func_win32_libid is a shell function defined in ltmain.sh
5692 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5693 lt_cv_file_magic_cmd='func_win32_libid'
5697 # Base MSYS/MinGW do not provide the 'file' command needed by
5698 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5699 # unless we find 'file', for example because we are cross-compiling.
5700 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5701 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5703 lt_cv_file_magic_cmd='func_win32_libid'
5705 # Keep this pattern in sync with the one in func_win32_libid.
5706 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5707 lt_cv_file_magic_cmd='$OBJDUMP -f'
5712 # use the weaker test based on 'objdump'. See mingw*.
5713 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5714 lt_cv_file_magic_cmd='$OBJDUMP -f'
5717 darwin* | rhapsody*)
5718 lt_cv_deplibs_check_method=pass_all
5721 freebsd* | dragonfly*)
5722 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5725 # Not sure whether the presence of OpenBSD here was a mistake.
5726 # Let's accept both of them until this is cleared up.
5727 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5728 lt_cv_file_magic_cmd=/usr/bin/file
5729 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5733 lt_cv_deplibs_check_method=pass_all
5738 lt_cv_deplibs_check_method=pass_all
5742 lt_cv_deplibs_check_method=pass_all
5745 hpux10.20* | hpux11*)
5746 lt_cv_file_magic_cmd=/usr/bin/file
5749 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5750 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5753 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]'
5754 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5758 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5764 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5765 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5768 irix5* | irix6* | nonstopux*)
5770 *-32|*"-32 ") libmagic=32-bit;;
5771 *-n32|*"-n32 ") libmagic=N32;;
5772 *-64|*"-64 ") libmagic=64-bit;;
5773 *) libmagic=never-match;;
5775 lt_cv_deplibs_check_method=pass_all
5778 # This must be Linux ELF.
5779 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5780 lt_cv_deplibs_check_method=pass_all
5784 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5785 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5793 lt_cv_file_magic_cmd=/usr/bin/file
5794 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5798 lt_cv_deplibs_check_method=pass_all
5802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5809 osf3* | osf4* | osf5*)
5810 lt_cv_deplibs_check_method=pass_all
5814 lt_cv_deplibs_check_method=pass_all
5818 lt_cv_deplibs_check_method=pass_all
5821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5822 lt_cv_deplibs_check_method=pass_all
5826 case $host_vendor in
5828 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]'
5829 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5832 lt_cv_deplibs_check_method=pass_all
5835 lt_cv_file_magic_cmd='/bin/file'
5836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5839 lt_cv_file_magic_cmd='/bin/file'
5840 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5841 lt_cv_file_magic_test_file=/lib/libc.so
5844 lt_cv_deplibs_check_method=pass_all
5847 lt_cv_deplibs_check_method=pass_all
5853 lt_cv_deplibs_check_method=pass_all
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5859 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5863 if test "$build" = "$host"; then
5866 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5869 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5875 file_magic_cmd=$lt_cv_file_magic_cmd
5876 deplibs_check_method=$lt_cv_deplibs_check_method
5877 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_DLLTOOL+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 if test -n "$DLLTOOL"; then
5909 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 DLLTOOL=$ac_cv_prog_DLLTOOL
5929 if test -n "$DLLTOOL"; then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5931 $as_echo "$DLLTOOL" >&6; }
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5939 if test -z "$ac_cv_prog_DLLTOOL"; then
5940 ac_ct_DLLTOOL=$DLLTOOL
5941 # Extract the first word of "dlltool", so it can be a program name with args.
5942 set dummy dlltool; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 if test -n "$ac_ct_DLLTOOL"; then
5949 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5969 if test -n "$ac_ct_DLLTOOL"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5971 $as_echo "$ac_ct_DLLTOOL" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5977 if test "x$ac_ct_DLLTOOL" = x; then
5980 case $cross_compiling:$ac_tool_warned in
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5986 DLLTOOL=$ac_ct_DLLTOOL
5989 DLLTOOL="$ac_cv_prog_DLLTOOL"
5992 test -z "$DLLTOOL" && DLLTOOL=dlltool
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6004 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6005 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6006 $as_echo_n "(cached) " >&6
6008 lt_cv_sharedlib_from_linklib_cmd='unknown'
6011 cygwin* | mingw* | pw32* | cegcc*)
6012 # two different shell functions defined in ltmain.sh
6013 # decide which to use based on capabilities of $DLLTOOL
6014 case `$DLLTOOL --help 2>&1` in
6015 *--identify-strict*)
6016 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6019 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6024 # fallback: assume linklib IS sharedlib
6025 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6031 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6032 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6033 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6041 if test -n "$ac_tool_prefix"; then
6044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_AR+:} false; then :
6049 $as_echo_n "(cached) " >&6
6051 if test -n "$AR"; then
6052 ac_cv_prog_AR="$AR" # Let the user override the test.
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 if test -n "$AR"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6074 $as_echo "$AR" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6081 test -n "$AR" && break
6084 if test -z "$AR"; then
6088 # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6093 $as_echo_n "(cached) " >&6
6095 if test -n "$ac_ct_AR"; then
6096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_AR="$ac_prog"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6116 if test -n "$ac_ct_AR"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6118 $as_echo "$ac_ct_AR" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6125 test -n "$ac_ct_AR" && break
6128 if test "x$ac_ct_AR" = x; then
6131 case $cross_compiling:$ac_tool_warned in
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6155 $as_echo_n "checking for archiver @FILE support... " >&6; }
6156 if ${lt_cv_ar_at_file+:} false; then :
6157 $as_echo_n "(cached) " >&6
6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172 echo conftest.$ac_objext > conftest.lst
6173 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6175 (eval $lt_ar_try) 2>&5
6177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178 test $ac_status = 0; }
6179 if test "$ac_status" -eq 0; then
6180 # Ensure the archiver fails upon bogus file names.
6181 rm -f conftest.$ac_objext libconftest.a
6182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6183 (eval $lt_ar_try) 2>&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; }
6187 if test "$ac_status" -ne 0; then
6191 rm -f conftest.* libconftest.a
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6198 $as_echo "$lt_cv_ar_at_file" >&6; }
6200 if test "x$lt_cv_ar_at_file" = xno; then
6203 archiver_list_spec=$lt_cv_ar_at_file
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}strip; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_STRIP+:} false; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$STRIP"; then
6221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 STRIP=$ac_cv_prog_STRIP
6241 if test -n "$STRIP"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6243 $as_echo "$STRIP" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6251 if test -z "$ac_cv_prog_STRIP"; then
6253 # Extract the first word of "strip", so it can be a program name with args.
6254 set dummy strip; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6258 $as_echo_n "(cached) " >&6
6260 if test -n "$ac_ct_STRIP"; then
6261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_STRIP="strip"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6281 if test -n "$ac_ct_STRIP"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6283 $as_echo "$ac_ct_STRIP" >&6; }
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6289 if test "x$ac_ct_STRIP" = x; then
6292 case $cross_compiling:$ac_tool_warned in
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6301 STRIP="$ac_cv_prog_STRIP"
6304 test -z "$STRIP" && STRIP=:
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_RANLIB+:} false; then :
6317 $as_echo_n "(cached) " >&6
6319 if test -n "$RANLIB"; then
6320 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 RANLIB=$ac_cv_prog_RANLIB
6340 if test -n "$RANLIB"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6342 $as_echo "$RANLIB" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6350 if test -z "$ac_cv_prog_RANLIB"; then
6351 ac_ct_RANLIB=$RANLIB
6352 # Extract the first word of "ranlib", so it can be a program name with args.
6353 set dummy ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6357 $as_echo_n "(cached) " >&6
6359 if test -n "$ac_ct_RANLIB"; then
6360 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_ac_ct_RANLIB="ranlib"
6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6380 if test -n "$ac_ct_RANLIB"; then
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6382 $as_echo "$ac_ct_RANLIB" >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6388 if test "x$ac_ct_RANLIB" = x; then
6391 case $cross_compiling:$ac_tool_warned in
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6397 RANLIB=$ac_ct_RANLIB
6400 RANLIB="$ac_cv_prog_RANLIB"
6403 test -z "$RANLIB" && RANLIB=:
6410 # Determine commands to create old-style static archives.
6411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6412 old_postinstall_cmds='chmod 644 $oldlib'
6413 old_postuninstall_cmds=
6415 if test -n "$RANLIB"; then
6418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6424 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6429 lock_old_archive_extraction=yes ;;
6431 lock_old_archive_extraction=no ;;
6472 # If no C compiler was specified, use CC.
6475 # If no C compiler flags were specified, use CFLAGS.
6476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6478 # Allow CC to be a program name with arguments.
6482 # Check for command to grab the raw symbol name followed by C symbol from nm.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6485 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6486 $as_echo_n "(cached) " >&6
6489 # These are sane defaults that work on at least a few old systems.
6490 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6492 # Character class describing NM global symbol codes.
6493 symcode='[BCDEGRST]'
6495 # Regexp to match symbols that can be accessed directly from C.
6496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6498 # Define system-specific variables.
6503 cygwin* | mingw* | pw32* | cegcc*)
6504 symcode='[ABCDGISTW]'
6507 if test "$host_cpu" = ia64; then
6508 symcode='[ABCDEGRST]'
6512 symcode='[BCDEGRST]'
6515 symcode='[BCDEGQRST]'
6526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6534 # If we're using GNU nm, then use its standard symbol codes.
6535 case `$NM -V 2>&1` in
6536 *GNU* | *'with BFD'*)
6537 symcode='[ABCDGIRSTW]' ;;
6540 # Transform an extracted symbol line into a proper C declaration.
6541 # Some systems (esp. on ia64) link data and code symbols differently,
6542 # so use this general approach.
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6549 # Handle CRLF in mingw tool chain
6553 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6557 # Try without a prefix underscore, then with it.
6558 for ac_symprfx in "" "_"; do
6560 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6561 symxfrm="\\1 $ac_symprfx\\2 \\2"
6563 # Write the raw and C identifiers.
6564 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565 # Fake it for dumpbin and say T for any non-static function
6566 # and D for any global variable.
6567 # Also find C++ and __fastcall symbols from MSVC++,
6568 # which start with @ or ?.
6569 lt_cv_sys_global_symbol_pipe="$AWK '"\
6570 " {last_section=section; section=\$ 3};"\
6571 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6572 " \$ 0!~/External *\|/{next};"\
6573 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6574 " {if(hide[section]) next};"\
6575 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6576 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6577 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6578 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6579 " ' prfx=^$ac_symprfx"
6581 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6583 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6585 # Check to see that the pipe works correctly.
6589 cat > conftest.$ac_ext <<_LT_EOF
6594 void nm_test_func(void);
6595 void nm_test_func(void){}
6599 int main(){nm_test_var='a';nm_test_func();return(0);}
6602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603 (eval $ac_compile) 2>&5
6605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606 test $ac_status = 0; }; then
6607 # Now try to grab the symbols.
6609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6610 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613 test $ac_status = 0; } && test -s "$nlist"; then
6614 # Try sorting and uniquifying the output.
6615 if sort "$nlist" | uniq > "$nlist"T; then
6616 mv -f "$nlist"T "$nlist"
6621 # Make sure that we snagged all the symbols we need.
6622 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6623 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6624 cat <<_LT_EOF > conftest.$ac_ext
6625 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6626 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6627 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6628 relocations are performed -- see ld's documentation on pseudo-relocs. */
6629 # define LT_DLSYM_CONST
6630 #elif defined(__osf__)
6631 /* This system does not cope well with relocations in const data. */
6632 # define LT_DLSYM_CONST
6634 # define LT_DLSYM_CONST const
6642 # Now generate the symbol file.
6643 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6645 cat <<_LT_EOF >> conftest.$ac_ext
6647 /* The mapping between symbol names and symbols. */
6648 LT_DLSYM_CONST struct {
6652 lt__PROGRAM__LTX_preloaded_symbols[] =
6654 { "@PROGRAM@", (void *) 0 },
6656 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6657 cat <<\_LT_EOF >> conftest.$ac_ext
6661 /* This works around a problem in FreeBSD linker */
6662 #ifdef FREEBSD_WORKAROUND
6663 static const void *lt_preloaded_setup() {
6664 return lt__PROGRAM__LTX_preloaded_symbols;
6672 # Now try linking the two files.
6673 mv conftest.$ac_objext conftstm.$ac_objext
6674 lt_globsym_save_LIBS=$LIBS
6675 lt_globsym_save_CFLAGS=$CFLAGS
6676 LIBS="conftstm.$ac_objext"
6677 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6679 (eval $ac_link) 2>&5
6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6685 LIBS=$lt_globsym_save_LIBS
6686 CFLAGS=$lt_globsym_save_CFLAGS
6688 echo "cannot find nm_test_func in $nlist" >&5
6691 echo "cannot find nm_test_var in $nlist" >&5
6694 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6697 echo "$progname: failed program was:" >&5
6698 cat conftest.$ac_ext >&5
6700 rm -rf conftest* conftst*
6702 # Do not use the global_symbol_pipe unless it works.
6703 if test "$pipe_works" = yes; then
6706 lt_cv_sys_global_symbol_pipe=
6712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6713 lt_cv_sys_global_symbol_to_cdecl=
6715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6717 $as_echo "failed" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6720 $as_echo "ok" >&6; }
6723 # Response file support.
6724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6725 nm_file_list_spec='@'
6726 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6727 nm_file_list_spec='@'
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6757 $as_echo_n "checking for sysroot... " >&6; }
6759 # Check whether --with-sysroot was given.
6760 if test "${with_sysroot+set}" = set; then :
6761 withval=$with_sysroot;
6768 case ${with_sysroot} in #(
6770 if test "$GCC" = yes; then
6771 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6775 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6781 $as_echo "${with_sysroot}" >&6; }
6782 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6787 $as_echo "${lt_sysroot:-no}" >&6; }
6793 # Check whether --enable-libtool-lock was given.
6794 if test "${enable_libtool_lock+set}" = set; then :
6795 enableval=$enable_libtool_lock;
6798 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6800 # Some flags need to be propagated to the compiler or linker for good
6804 # Find out which ABI we are using.
6805 echo 'int i;' > conftest.$ac_ext
6806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807 (eval $ac_compile) 2>&5
6809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810 test $ac_status = 0; }; then
6811 case `/usr/bin/file conftest.$ac_objext` in
6823 # Find out which ABI we are using.
6824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 if test "$lt_cv_prog_gnu_ld" = yes; then
6831 case `/usr/bin/file conftest.$ac_objext` in
6833 LD="${LD-ld} -melf32bsmip"
6836 LD="${LD-ld} -melf32bmipn32"
6839 LD="${LD-ld} -melf64bmip"
6843 case `/usr/bin/file conftest.$ac_objext` in
6859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861 # Find out which ABI we are using.
6862 echo 'int i;' > conftest.$ac_ext
6863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864 (eval $ac_compile) 2>&5
6866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867 test $ac_status = 0; }; then
6868 case `/usr/bin/file conftest.o` in
6871 x86_64-*kfreebsd*-gnu)
6872 LD="${LD-ld} -m elf_i386_fbsd"
6875 LD="${LD-ld} -m elf_i386"
6877 ppc64-*linux*|powerpc64-*linux*)
6878 LD="${LD-ld} -m elf32ppclinux"
6881 LD="${LD-ld} -m elf_s390"
6884 LD="${LD-ld} -m elf32_sparc"
6890 x86_64-*kfreebsd*-gnu)
6891 LD="${LD-ld} -m elf_x86_64_fbsd"
6894 LD="${LD-ld} -m elf_x86_64"
6896 ppc*-*linux*|powerpc*-*linux*)
6897 LD="${LD-ld} -m elf64ppc"
6899 s390*-*linux*|s390*-*tpf*)
6900 LD="${LD-ld} -m elf64_s390"
6903 LD="${LD-ld} -m elf64_sparc"
6913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914 SAVE_CFLAGS="$CFLAGS"
6915 CFLAGS="$CFLAGS -belf"
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6918 if ${lt_cv_cc_needs_belf+:} false; then :
6919 $as_echo_n "(cached) " >&6
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 lt_cv_cc_needs_belf=yes
6941 lt_cv_cc_needs_belf=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6946 ac_cpp='$CPP $CPPFLAGS'
6947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6953 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6954 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6955 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6956 CFLAGS="$SAVE_CFLAGS"
6960 # Find out which ABI we are using.
6961 echo 'int i;' > conftest.$ac_ext
6962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963 (eval $ac_compile) 2>&5
6965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966 test $ac_status = 0; }; then
6967 case `/usr/bin/file conftest.o` in
6969 case $lt_cv_prog_gnu_ld in
6970 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6972 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6984 need_locks="$enable_libtool_lock"
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}mt; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 if test -n "$MANIFEST_TOOL"; then
6995 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7015 if test -n "$MANIFEST_TOOL"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7017 $as_echo "$MANIFEST_TOOL" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7025 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7026 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7027 # Extract the first word of "mt", so it can be a program name with args.
7028 set dummy mt; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -n "$ac_ct_MANIFEST_TOOL"; then
7035 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7055 if test -n "$ac_ct_MANIFEST_TOOL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7057 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7063 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7066 case $cross_compiling:$ac_tool_warned in
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7072 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7075 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7078 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7080 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7081 if ${lt_cv_path_mainfest_tool+:} false; then :
7082 $as_echo_n "(cached) " >&6
7084 lt_cv_path_mainfest_tool=no
7085 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7086 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7087 cat conftest.err >&5
7088 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7089 lt_cv_path_mainfest_tool=yes
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7094 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7095 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7105 rhapsody* | darwin*)
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 if test -n "$DSYMUTIL"; then
7115 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7135 if test -n "$DSYMUTIL"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7137 $as_echo "$DSYMUTIL" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7145 if test -z "$ac_cv_prog_DSYMUTIL"; then
7146 ac_ct_DSYMUTIL=$DSYMUTIL
7147 # Extract the first word of "dsymutil", so it can be a program name with args.
7148 set dummy dsymutil; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7152 $as_echo_n "(cached) " >&6
7154 if test -n "$ac_ct_DSYMUTIL"; then
7155 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7177 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7183 if test "x$ac_ct_DSYMUTIL" = x; then
7186 case $cross_compiling:$ac_tool_warned in
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7192 DSYMUTIL=$ac_ct_DSYMUTIL
7195 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7198 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_NMEDIT+:} false; then :
7204 $as_echo_n "(cached) " >&6
7206 if test -n "$NMEDIT"; then
7207 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 NMEDIT=$ac_cv_prog_NMEDIT
7227 if test -n "$NMEDIT"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7229 $as_echo "$NMEDIT" >&6; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7237 if test -z "$ac_cv_prog_NMEDIT"; then
7238 ac_ct_NMEDIT=$NMEDIT
7239 # Extract the first word of "nmedit", so it can be a program name with args.
7240 set dummy nmedit; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7244 $as_echo_n "(cached) " >&6
7246 if test -n "$ac_ct_NMEDIT"; then
7247 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7267 if test -n "$ac_ct_NMEDIT"; then
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7269 $as_echo "$ac_ct_NMEDIT" >&6; }
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7275 if test "x$ac_ct_NMEDIT" = x; then
7278 case $cross_compiling:$ac_tool_warned in
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7284 NMEDIT=$ac_ct_NMEDIT
7287 NMEDIT="$ac_cv_prog_NMEDIT"
7290 if test -n "$ac_tool_prefix"; then
7291 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_LIPO+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 if test -n "$LIPO"; then
7299 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 LIPO=$ac_cv_prog_LIPO
7319 if test -n "$LIPO"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7321 $as_echo "$LIPO" >&6; }
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7329 if test -z "$ac_cv_prog_LIPO"; then
7331 # Extract the first word of "lipo", so it can be a program name with args.
7332 set dummy lipo; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$ac_ct_LIPO"; then
7339 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348 ac_cv_prog_ac_ct_LIPO="lipo"
7349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7359 if test -n "$ac_ct_LIPO"; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7361 $as_echo "$ac_ct_LIPO" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7367 if test "x$ac_ct_LIPO" = x; then
7370 case $cross_compiling:$ac_tool_warned in
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7379 LIPO="$ac_cv_prog_LIPO"
7382 if test -n "$ac_tool_prefix"; then
7383 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}otool; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_OTOOL+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 if test -n "$OTOOL"; then
7391 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 OTOOL=$ac_cv_prog_OTOOL
7411 if test -n "$OTOOL"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7413 $as_echo "$OTOOL" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7421 if test -z "$ac_cv_prog_OTOOL"; then
7423 # Extract the first word of "otool", so it can be a program name with args.
7424 set dummy otool; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 if test -n "$ac_ct_OTOOL"; then
7431 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_prog_ac_ct_OTOOL="otool"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7451 if test -n "$ac_ct_OTOOL"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7453 $as_echo "$ac_ct_OTOOL" >&6; }
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7459 if test "x$ac_ct_OTOOL" = x; then
7462 case $cross_compiling:$ac_tool_warned in
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7471 OTOOL="$ac_cv_prog_OTOOL"
7474 if test -n "$ac_tool_prefix"; then
7475 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_OTOOL64+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 if test -n "$OTOOL64"; then
7483 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 OTOOL64=$ac_cv_prog_OTOOL64
7503 if test -n "$OTOOL64"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7505 $as_echo "$OTOOL64" >&6; }
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7513 if test -z "$ac_cv_prog_OTOOL64"; then
7514 ac_ct_OTOOL64=$OTOOL64
7515 # Extract the first word of "otool64", so it can be a program name with args.
7516 set dummy otool64; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 if test -n "$ac_ct_OTOOL64"; then
7523 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir=.
7530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_prog_ac_ct_OTOOL64="otool64"
7533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7543 if test -n "$ac_ct_OTOOL64"; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7545 $as_echo "$ac_ct_OTOOL64" >&6; }
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7551 if test "x$ac_ct_OTOOL64" = x; then
7554 case $cross_compiling:$ac_tool_warned in
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7560 OTOOL64=$ac_ct_OTOOL64
7563 OTOOL64="$ac_cv_prog_OTOOL64"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7593 $as_echo_n "checking for -single_module linker flag... " >&6; }
7594 if ${lt_cv_apple_cc_single_mod+:} false; then :
7595 $as_echo_n "(cached) " >&6
7597 lt_cv_apple_cc_single_mod=no
7598 if test -z "${LT_MULTI_MODULE}"; then
7599 # By default we will add the -single_module flag. You can override
7600 # by either setting the environment variable LT_MULTI_MODULE
7601 # non-empty at configure time, or by adding -multi_module to the
7603 rm -rf libconftest.dylib*
7604 echo "int foo(void){return 1;}" > conftest.c
7605 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7606 -dynamiclib -Wl,-single_module conftest.c" >&5
7607 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7608 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7610 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7611 lt_cv_apple_cc_single_mod=yes
7613 cat conftest.err >&5
7615 rm -rf libconftest.dylib*
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7623 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7624 $as_echo_n "(cached) " >&6
7626 lt_cv_ld_exported_symbols_list=no
7627 save_LDFLAGS=$LDFLAGS
7628 echo "_main" > conftest.sym
7629 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7641 if ac_fn_c_try_link "$LINENO"; then :
7642 lt_cv_ld_exported_symbols_list=yes
7644 lt_cv_ld_exported_symbols_list=no
7646 rm -f core conftest.err conftest.$ac_objext \
7647 conftest$ac_exeext conftest.$ac_ext
7648 LDFLAGS="$save_LDFLAGS"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7652 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7654 $as_echo_n "checking for -force_load linker flag... " >&6; }
7655 if ${lt_cv_ld_force_load+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 lt_cv_ld_force_load=no
7659 cat > conftest.c << _LT_EOF
7660 int forced_loaded() { return 2;}
7662 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7663 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7664 echo "$AR cru libconftest.a conftest.o" >&5
7665 $AR cru libconftest.a conftest.o 2>&5
7666 echo "$RANLIB libconftest.a" >&5
7667 $RANLIB libconftest.a 2>&5
7668 cat > conftest.c << _LT_EOF
7669 int main() { return 0;}
7671 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7672 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7674 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7675 lt_cv_ld_force_load=yes
7677 cat conftest.err >&5
7679 rm -f conftest.err libconftest.a conftest conftest.c
7680 rm -rf conftest.dSYM
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7684 $as_echo "$lt_cv_ld_force_load" >&6; }
7686 rhapsody* | darwin1.[012])
7687 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7689 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7690 darwin*) # darwin 5.x on
7691 # if running on 10.5 or later, the deployment target defaults
7692 # to the OS version, if on x86, and 10.4, the deployment
7693 # target defaults to 10.4. Don't you love it?
7694 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7695 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7696 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7698 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7700 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7704 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7705 _lt_dar_single_mod='$single_module'
7707 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7708 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7710 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7712 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7713 _lt_dsymutil='~$DSYMUTIL $lib || :'
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7721 $as_echo_n "checking for ANSI C header files... " >&6; }
7722 if ${ac_cv_header_stdc+:} false; then :
7723 $as_echo_n "(cached) " >&6
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 ac_cv_header_stdc=yes
7743 ac_cv_header_stdc=no
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 if test $ac_cv_header_stdc = yes; then
7748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h. */
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755 $EGREP "memchr" >/dev/null 2>&1; then :
7758 ac_cv_header_stdc=no
7764 if test $ac_cv_header_stdc = yes; then
7765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7772 $EGREP "free" >/dev/null 2>&1; then :
7775 ac_cv_header_stdc=no
7781 if test $ac_cv_header_stdc = yes; then
7782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7783 if test "$cross_compiling" = yes; then :
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7790 #if ((' ' & 0x0FF) == 0x020)
7791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7794 # define ISLOWER(c) \
7795 (('a' <= (c) && (c) <= 'i') \
7796 || ('j' <= (c) && (c) <= 'r') \
7797 || ('s' <= (c) && (c) <= 'z'))
7798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7806 for (i = 0; i < 256; i++)
7807 if (XOR (islower (i), ISLOWER (i))
7808 || toupper (i) != TOUPPER (i))
7813 if ac_fn_c_try_run "$LINENO"; then :
7816 ac_cv_header_stdc=no
7818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7819 conftest.$ac_objext conftest.beam conftest.$ac_ext
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7825 $as_echo "$ac_cv_header_stdc" >&6; }
7826 if test $ac_cv_header_stdc = yes; then
7828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7834 inttypes.h stdint.h unistd.h
7836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7840 cat >>confdefs.h <<_ACEOF
7841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7849 for ac_header in dlfcn.h
7851 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7853 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7854 cat >>confdefs.h <<_ACEOF
7855 #define HAVE_DLFCN_H 1
7876 # Check whether --enable-shared was given.
7877 if test "${enable_shared+set}" = set; then :
7878 enableval=$enable_shared; p=${PACKAGE-default}
7880 yes) enable_shared=yes ;;
7881 no) enable_shared=no ;;
7884 # Look at the argument we got. We use all the common list separators.
7885 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886 for pkg in $enableval; do
7888 if test "X$pkg" = "X$p"; then
7907 # Check whether --enable-static was given.
7908 if test "${enable_static+set}" = set; then :
7909 enableval=$enable_static; p=${PACKAGE-default}
7911 yes) enable_static=yes ;;
7912 no) enable_static=no ;;
7915 # Look at the argument we got. We use all the common list separators.
7916 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7917 for pkg in $enableval; do
7919 if test "X$pkg" = "X$p"; then
7939 # Check whether --with-pic was given.
7940 if test "${with_pic+set}" = set; then :
7941 withval=$with_pic; pic_mode="$withval"
7947 test -z "$pic_mode" && pic_mode=default
7955 # Check whether --enable-fast-install was given.
7956 if test "${enable_fast_install+set}" = set; then :
7957 enableval=$enable_fast_install; p=${PACKAGE-default}
7959 yes) enable_fast_install=yes ;;
7960 no) enable_fast_install=no ;;
7962 enable_fast_install=no
7963 # Look at the argument we got. We use all the common list separators.
7964 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7965 for pkg in $enableval; do
7967 if test "X$pkg" = "X$p"; then
7968 enable_fast_install=yes
7975 enable_fast_install=yes
7988 # This can be used to rebuild libtool when needed
7989 LIBTOOL_DEPS="$ltmain"
7991 # Always use our own libtool.
7992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8019 test -z "$LN_S" && LN_S="ln -s"
8034 if test -n "${ZSH_VERSION+set}" ; then
8035 setopt NO_GLOB_SUBST
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8039 $as_echo_n "checking for objdir... " >&6; }
8040 if ${lt_cv_objdir+:} false; then :
8041 $as_echo_n "(cached) " >&6
8043 rm -f .libs 2>/dev/null
8044 mkdir .libs 2>/dev/null
8045 if test -d .libs; then
8048 # MS-DOS does not allow filenames that begin with a dot.
8051 rmdir .libs 2>/dev/null
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8054 $as_echo "$lt_cv_objdir" >&6; }
8055 objdir=$lt_cv_objdir
8061 cat >>confdefs.h <<_ACEOF
8062 #define LT_OBJDIR "$lt_cv_objdir/"
8070 # AIX sometimes has problems with the GCC collect2 program. For some
8071 # reason, if we set the COLLECT_NAMES environment variable, the problems
8072 # vanish in a puff of smoke.
8073 if test "X${COLLECT_NAMES+set}" != Xset; then
8075 export COLLECT_NAMES
8082 can_build_shared=yes
8084 # All known linkers require a `.a' archive for static linking (except MSVC,
8085 # which needs '.lib').
8088 with_gnu_ld="$lt_cv_prog_gnu_ld"
8091 old_CFLAGS="$CFLAGS"
8093 # Set sane defaults for various variables
8094 test -z "$CC" && CC=cc
8095 test -z "$LTCC" && LTCC=$CC
8096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8097 test -z "$LD" && LD=ld
8098 test -z "$ac_objext" && ac_objext=o
8100 for cc_temp in $compiler""; do
8102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8108 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8111 # Only perform the check for file, if the check method requires it
8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8113 case $deplibs_check_method in
8115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8119 $as_echo_n "(cached) " >&6
8123 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8126 lt_save_MAGIC_CMD="$MAGIC_CMD"
8127 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129 for ac_dir in $ac_dummy; do
8131 test -z "$ac_dir" && ac_dir=.
8132 if test -f $ac_dir/${ac_tool_prefix}file; then
8133 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8134 if test -n "$file_magic_test_file"; then
8135 case $deplibs_check_method in
8137 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140 $EGREP "$file_magic_regex" > /dev/null; then
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such. This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem. Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8162 MAGIC_CMD="$lt_save_MAGIC_CMD"
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8170 $as_echo "$MAGIC_CMD" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8180 if test -z "$lt_cv_path_MAGIC_CMD"; then
8181 if test -n "$ac_tool_prefix"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8183 $as_echo_n "checking for file... " >&6; }
8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185 $as_echo_n "(cached) " >&6
8189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8192 lt_save_MAGIC_CMD="$MAGIC_CMD"
8193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8194 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195 for ac_dir in $ac_dummy; do
8197 test -z "$ac_dir" && ac_dir=.
8198 if test -f $ac_dir/file; then
8199 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8200 if test -n "$file_magic_test_file"; then
8201 case $deplibs_check_method in
8203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206 $EGREP "$file_magic_regex" > /dev/null; then
8211 *** Warning: the command libtool uses to detect shared libraries,
8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
8213 *** The result is that libtool may fail to recognize shared libraries
8214 *** as such. This will affect the creation of libtool libraries that
8215 *** depend on shared libraries, but programs linked with such libtool
8216 *** libraries will work regardless of this problem. Nevertheless, you
8217 *** may want to report the problem to your system manager and/or to
8218 *** bug-libtool@gnu.org
8228 MAGIC_CMD="$lt_save_MAGIC_CMD"
8233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234 if test -n "$MAGIC_CMD"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236 $as_echo "$MAGIC_CMD" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8252 # Use C for the default configuration in the libtool script
8256 ac_cpp='$CPP $CPPFLAGS'
8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8262 # Source file extension for C test sources.
8265 # Object file extension for compiled C test sources.
8269 # Code to be used in simple compile tests
8270 lt_simple_compile_test_code="int some_variable = 0;"
8272 # Code to be used in simple link tests
8273 lt_simple_link_test_code='int main(){return(0);}'
8281 # If no C compiler was specified, use CC.
8284 # If no C compiler flags were specified, use CFLAGS.
8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8287 # Allow CC to be a program name with arguments.
8290 # Save the default compiler, since it gets overwritten when the other
8291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8292 compiler_DEFAULT=$CC
8294 # save warnings/boilerplate of simple test code
8295 ac_outfile=conftest.$ac_objext
8296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_compiler_boilerplate=`cat conftest.err`
8301 ac_outfile=conftest.$ac_objext
8302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8304 _lt_linker_boilerplate=`cat conftest.err`
8309 ## There is no encapsulation within the following macros, do not change
8310 ## the running order or otherwise move them around unless you know exactly
8311 ## what you are doing...
8312 if test -n "$compiler"; then
8314 lt_prog_compiler_no_builtin_flag=
8316 if test "$GCC" = yes; then
8317 case $cc_basename in
8319 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8321 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8326 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8327 $as_echo_n "(cached) " >&6
8329 lt_cv_prog_compiler_rtti_exceptions=no
8330 ac_outfile=conftest.$ac_objext
8331 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332 lt_compiler_flag="-fno-rtti -fno-exceptions"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 # The option is referenced via a variable to avoid confusing sed.
8338 lt_compile=`echo "$ac_compile" | $SED \
8339 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341 -e 's:$: $lt_compiler_flag:'`
8342 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8343 (eval "$lt_compile" 2>conftest.err)
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 if (exit $ac_status) && test -s "$ac_outfile"; then
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings other than the usual output.
8350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8353 lt_cv_prog_compiler_rtti_exceptions=yes
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8363 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8375 lt_prog_compiler_wl=
8376 lt_prog_compiler_pic=
8377 lt_prog_compiler_static=
8380 if test "$GCC" = yes; then
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_static='-static'
8386 # All AIX code is PIC.
8387 if test "$host_cpu" = ia64; then
8388 # AIX 5 now supports IA64 processor
8389 lt_prog_compiler_static='-Bstatic'
8396 # see comment about AmigaOS4 .so support
8397 lt_prog_compiler_pic='-fPIC'
8400 # FIXME: we need at least 68020 code to build shared libraries, but
8401 # adding the `-m68020' flag to GCC prevents building anything better,
8403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8409 # PIC is the default for these OSes.
8412 mingw* | cygwin* | pw32* | os2* | cegcc*)
8413 # This hack is so that the source file can tell whether it is being
8414 # built for inclusion in a dll (and should export symbols for example).
8415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8416 # (--disable-auto-import) libraries
8417 lt_prog_compiler_pic='-DDLL_EXPORT'
8420 darwin* | rhapsody*)
8421 # PIC is the default on this platform
8422 # Common symbols not allowed in MH_DYLIB files
8423 lt_prog_compiler_pic='-fno-common'
8427 # PIC is the default for Haiku.
8428 # The "-static" flag exists, but is broken.
8429 lt_prog_compiler_static=
8433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8435 # sets the default TLS model and affects inlining.
8441 lt_prog_compiler_pic='-fPIC'
8447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8448 # Instead, we relocate shared libraries at runtime.
8452 # Just because we use GCC doesn't mean we suddenly get shared libraries
8453 # on systems that don't support them.
8454 lt_prog_compiler_can_build_shared=no
8459 # QNX uses GNU C++, but need to define -shared option too, otherwise
8461 lt_prog_compiler_pic='-fPIC -shared'
8465 if test -d /usr/nec; then
8466 lt_prog_compiler_pic=-Kconform_pic
8471 lt_prog_compiler_pic='-fPIC'
8475 case $cc_basename in
8476 nvcc*) # Cuda Compiler Driver 2.2
8477 lt_prog_compiler_wl='-Xlinker '
8478 lt_prog_compiler_pic='-Xcompiler -fPIC'
8482 # PORTME Check for flag to pass linker flags through the system compiler.
8485 lt_prog_compiler_wl='-Wl,'
8486 if test "$host_cpu" = ia64; then
8487 # AIX 5 now supports IA64 processor
8488 lt_prog_compiler_static='-Bstatic'
8490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8494 mingw* | cygwin* | pw32* | os2* | cegcc*)
8495 # This hack is so that the source file can tell whether it is being
8496 # built for inclusion in a dll (and should export symbols for example).
8497 lt_prog_compiler_pic='-DDLL_EXPORT'
8500 hpux9* | hpux10* | hpux11*)
8501 lt_prog_compiler_wl='-Wl,'
8502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8509 lt_prog_compiler_pic='+Z'
8512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8513 lt_prog_compiler_static='${wl}-a ${wl}archive'
8516 irix5* | irix6* | nonstopux*)
8517 lt_prog_compiler_wl='-Wl,'
8518 # PIC (with -KPIC) is the default.
8519 lt_prog_compiler_static='-non_shared'
8522 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8523 case $cc_basename in
8524 # old Intel for x86_64 which still supported -KPIC.
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-static'
8530 # icc used to be incompatible with GCC.
8531 # ICC 10 doesn't accept -KPIC any more.
8533 lt_prog_compiler_wl='-Wl,'
8534 lt_prog_compiler_pic='-fPIC'
8535 lt_prog_compiler_static='-static'
8537 # Lahey Fortran 8.1.
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='--shared'
8541 lt_prog_compiler_static='--static'
8544 # NAG Fortran compiler
8545 lt_prog_compiler_wl='-Wl,-Wl,,'
8546 lt_prog_compiler_pic='-PIC'
8547 lt_prog_compiler_static='-Bstatic'
8549 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8561 xl* | bgxl* | bgf* | mpixl*)
8562 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-qpic'
8565 lt_prog_compiler_static='-qstaticlink'
8568 case `$CC -V 2>&1 | sed 5q` in
8569 *Sun\ F* | *Sun*Fortran*)
8570 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 lt_prog_compiler_wl=''
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 lt_prog_compiler_wl='-Wl,'
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8592 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 lt_prog_compiler_pic='-fPIC -shared'
8597 osf3* | osf4* | osf5*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All OSF/1 code is PIC.
8600 lt_prog_compiler_static='-non_shared'
8604 lt_prog_compiler_static='-non_shared'
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 case $cc_basename in
8611 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8612 lt_prog_compiler_wl='-Qoption ld ';;
8614 lt_prog_compiler_wl='-Wl,';;
8619 lt_prog_compiler_wl='-Qoption ld '
8620 lt_prog_compiler_pic='-PIC'
8621 lt_prog_compiler_static='-Bstatic'
8624 sysv4 | sysv4.2uw2* | sysv4.3*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8631 if test -d /usr/nec ;then
8632 lt_prog_compiler_pic='-Kconform_pic'
8633 lt_prog_compiler_static='-Bstatic'
8637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_can_build_shared=no
8649 lt_prog_compiler_pic='-pic'
8650 lt_prog_compiler_static='-Bstatic'
8654 lt_prog_compiler_can_build_shared=no
8660 # For platforms which do not support PIC, -DPIC is meaningless:
8662 lt_prog_compiler_pic=
8665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8670 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8671 if ${lt_cv_prog_compiler_pic+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8677 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8678 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8681 # Check to make sure the PIC flag actually works.
8683 if test -n "$lt_prog_compiler_pic"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8686 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8687 $as_echo_n "(cached) " >&6
8689 lt_cv_prog_compiler_pic_works=no
8690 ac_outfile=conftest.$ac_objext
8691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8693 # Insert the option either (1) after the last *FLAGS variable, or
8694 # (2) before a word containing "conftest.", or (3) at the end.
8695 # Note that $ac_compile itself does not contain backslashes and begins
8696 # with a dollar sign (not a hyphen), so the echo should work correctly.
8697 # The option is referenced via a variable to avoid confusing sed.
8698 lt_compile=`echo "$ac_compile" | $SED \
8699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701 -e 's:$: $lt_compiler_flag:'`
8702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8703 (eval "$lt_compile" 2>conftest.err)
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 if (exit $ac_status) && test -s "$ac_outfile"; then
8708 # The compiler can only warn and ignore the option if not recognized
8709 # So say no if there are warnings other than the usual output.
8710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler_pic_works=yes
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8723 case $lt_prog_compiler_pic in
8725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8728 lt_prog_compiler_pic=
8729 lt_prog_compiler_can_build_shared=no
8745 # Check to make sure the static flag actually works.
8747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8750 if ${lt_cv_prog_compiler_static_works+:} false; then :
8751 $as_echo_n "(cached) " >&6
8753 lt_cv_prog_compiler_static_works=no
8754 save_LDFLAGS="$LDFLAGS"
8755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8758 # The linker can only warn and ignore the option if not recognized
8759 # So say no if there are warnings
8760 if test -s conftest.err; then
8761 # Append any errors to the config.log.
8762 cat conftest.err 1>&5
8763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765 if diff conftest.exp conftest.er2 >/dev/null; then
8766 lt_cv_prog_compiler_static_works=yes
8769 lt_cv_prog_compiler_static_works=yes
8773 LDFLAGS="$save_LDFLAGS"
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8777 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8779 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8782 lt_prog_compiler_static=
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8793 if ${lt_cv_prog_compiler_c_o+:} false; then :
8794 $as_echo_n "(cached) " >&6
8796 lt_cv_prog_compiler_c_o=no
8797 $RM -r conftest 2>/dev/null
8801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8803 lt_compiler_flag="-o out/conftest2.$ac_objext"
8804 # Insert the option either (1) after the last *FLAGS variable, or
8805 # (2) before a word containing "conftest.", or (3) at the end.
8806 # Note that $ac_compile itself does not contain backslashes and begins
8807 # with a dollar sign (not a hyphen), so the echo should work correctly.
8808 lt_compile=`echo "$ac_compile" | $SED \
8809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8811 -e 's:$: $lt_compiler_flag:'`
8812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8813 (eval "$lt_compile" 2>out/conftest.err)
8815 cat out/conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8819 # The compiler can only warn and ignore the option if not recognized
8820 # So say no if there are warnings
8821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8824 lt_cv_prog_compiler_c_o=yes
8829 # SGI C++ compiler will create directory out/ii_files/ for
8830 # template instantiation
8831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8832 $RM out/* && rmdir out
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8848 if ${lt_cv_prog_compiler_c_o+:} false; then :
8849 $as_echo_n "(cached) " >&6
8851 lt_cv_prog_compiler_c_o=no
8852 $RM -r conftest 2>/dev/null
8856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8858 lt_compiler_flag="-o out/conftest2.$ac_objext"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 lt_compile=`echo "$ac_compile" | $SED \
8864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8866 -e 's:$: $lt_compiler_flag:'`
8867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8868 (eval "$lt_compile" 2>out/conftest.err)
8870 cat out/conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings
8876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8879 lt_cv_prog_compiler_c_o=yes
8884 # SGI C++ compiler will create directory out/ii_files/ for
8885 # template instantiation
8886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8887 $RM out/* && rmdir out
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8899 hard_links="nottested"
8900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8901 # do not overwrite the value of need_locks provided by the user
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8903 $as_echo_n "checking if we can lock with hard links... " >&6; }
8906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8908 ln conftest.a conftest.b 2>&5 || hard_links=no
8909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8911 $as_echo "$hard_links" >&6; }
8912 if test "$hard_links" = no; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8914 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8930 allow_undefined_flag=
8931 always_export_symbols=no
8933 archive_expsym_cmds=
8934 compiler_needs_object=no
8935 enable_shared_with_static_runtimes=no
8936 export_dynamic_flag_spec=
8937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8938 hardcode_automatic=no
8940 hardcode_direct_absolute=no
8941 hardcode_libdir_flag_spec=
8942 hardcode_libdir_flag_spec_ld=
8943 hardcode_libdir_separator=
8945 hardcode_shlibpath_var=unsupported
8947 link_all_deplibs=unknown
8950 old_archive_from_new_cmds=
8951 old_archive_from_expsyms_cmds=
8952 thread_safe_flag_spec=
8953 whole_archive_flag_spec=
8954 # include_expsyms should be a list of space-separated symbols to be *always*
8955 # included in the symbol list
8957 # exclude_expsyms can be an extended regexp of symbols to exclude
8958 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8960 # as well as any symbol that contains `d'.
8961 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8963 # platforms (ab)use it in PIC code, but their linkers get confused if
8964 # the symbol is explicitly referenced. Since portable code cannot
8965 # rely on this symbol name, it's probably fine to never include it in
8966 # preloaded symbol tables.
8967 # Exclude shared library initialization/finalization symbols.
8968 extract_expsyms_cmds=
8971 cygwin* | mingw* | pw32* | cegcc*)
8972 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8973 # When not using gcc, we currently assume that we are using
8974 # Microsoft Visual C++.
8975 if test "$GCC" != yes; then
8980 # we just hope/assume this is gcc and not c89 (= MSVC++)
8990 # On some targets, GNU ld is compatible enough with the native linker
8991 # that we're better off using the native interface for both.
8992 lt_use_gnu_ld_interface=no
8993 if test "$with_gnu_ld" = yes; then
8996 # The AIX port of GNU ld has always aspired to compatibility
8997 # with the native linker. However, as the warning in the GNU ld
8998 # block says, versions before 2.19.5* couldn't really create working
8999 # shared libraries, regardless of the interface used.
9000 case `$LD -v 2>&1` in
9001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9005 lt_use_gnu_ld_interface=yes
9010 lt_use_gnu_ld_interface=yes
9015 if test "$lt_use_gnu_ld_interface" = yes; then
9016 # If archive_cmds runs LD, not CC, wlarc should be empty
9019 # Set some defaults for GNU ld with shared library support. These
9020 # are reset later if shared libraries are not supported. Putting them
9021 # here allows them to be overridden if necessary.
9022 runpath_var=LD_RUN_PATH
9023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024 export_dynamic_flag_spec='${wl}--export-dynamic'
9025 # ancient GNU ld didn't support --whole-archive et. al.
9026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9027 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9029 whole_archive_flag_spec=
9031 supports_anon_versioning=no
9032 case `$LD -v 2>&1` in
9033 *GNU\ gold*) supports_anon_versioning=yes ;;
9034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9037 *\ 2.11.*) ;; # other 2.11 versions
9038 *) supports_anon_versioning=yes ;;
9041 # See if GNU ld supports shared libraries.
9044 # On AIX/PPC, the GNU linker is very broken
9045 if test "$host_cpu" != ia64; then
9049 *** Warning: the GNU linker, at least up to release 2.19, is reported
9050 *** to be unable to reliably create shared libraries on AIX.
9051 *** Therefore, libtool is disabling shared libraries support. If you
9052 *** really care for shared libraries, you may want to install binutils
9053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9054 *** You will then need to restart the configuration process.
9063 # see comment about AmigaOS4 .so support
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065 archive_expsym_cmds=''
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077 allow_undefined_flag=unsupported
9078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9079 # support --undefined. This deserves some investigation. FIXME
9080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9086 cygwin* | mingw* | pw32* | cegcc*)
9087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9088 # as there is no search path for DLLs.
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 export_dynamic_flag_spec='${wl}--export-all-symbols'
9091 allow_undefined_flag=unsupported
9092 always_export_symbols=no
9093 enable_shared_with_static_runtimes=yes
9094 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'
9095 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099 # If the export-symbols file already is a .def file (1st line
9100 # is EXPORTS), use it as is; otherwise, prepend...
9101 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9102 cp $export_symbols $output_objdir/$soname.def;
9104 echo EXPORTS > $output_objdir/$soname.def;
9105 cat $export_symbols >> $output_objdir/$soname.def;
9107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 link_all_deplibs=yes
9120 hardcode_shlibpath_var=no
9121 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9122 export_dynamic_flag_spec='${wl}-E'
9123 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9124 # Instead, shared libraries are loaded at an image base (0x10000000 by
9125 # default) and relocated if they conflict, which is a slow very memory
9126 # consuming and fragmenting process. To avoid this, we pick a random,
9127 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9128 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9129 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9130 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'
9133 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9135 if test "$host_os" = linux-dietlibc; then
9136 case $cc_basename in
9137 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9140 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9141 && test "$tmp_diet" = no
9143 tmp_addflag=' $pic_flag'
9144 tmp_sharedflag='-shared'
9145 case $cc_basename,$host_cpu in
9146 pgcc*) # Portland Group C compiler
9147 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'
9148 tmp_addflag=' $pic_flag'
9150 pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group f77 and f90 compilers
9152 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'
9153 tmp_addflag=' $pic_flag -Mnomain' ;;
9154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9155 tmp_addflag=' -i_dynamic' ;;
9156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9157 tmp_addflag=' -i_dynamic -nofor_main' ;;
9158 ifc* | ifort*) # Intel Fortran compiler
9159 tmp_addflag=' -nofor_main' ;;
9160 lf95*) # Lahey Fortran 8.1
9161 whole_archive_flag_spec=
9162 tmp_sharedflag='--shared' ;;
9163 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9164 tmp_sharedflag='-qmkshrobj'
9166 nvcc*) # Cuda Compiler Driver 2.2
9167 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'
9168 compiler_needs_object=yes
9171 case `$CC -V 2>&1 | sed 5q` in
9172 *Sun\ C*) # Sun C 5.9
9173 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'
9174 compiler_needs_object=yes
9175 tmp_sharedflag='-G' ;;
9176 *Sun\ F*) # Sun Fortran 8.3
9177 tmp_sharedflag='-G' ;;
9179 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181 if test "x$supports_anon_versioning" = xyes; then
9182 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9183 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9184 echo "local: *; };" >> $output_objdir/$libname.ver~
9185 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9188 case $cc_basename in
9189 xlf* | bgf* | bgxlf* | mpixlf*)
9190 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9191 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9192 hardcode_libdir_flag_spec=
9193 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9194 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9195 if test "x$supports_anon_versioning" = xyes; then
9196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9210 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9224 *** create shared libraries on Solaris systems. Therefore, libtool
9225 *** is disabling shared libraries support. We urge you to upgrade GNU
9226 *** binutils to release 2.9.1 or newer. Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9231 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9240 case `$LD -v 2>&1` in
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9246 *** reliably create shared libraries on SCO systems. Therefore, libtool
9247 *** is disabling shared libraries support. We urge you to upgrade GNU
9248 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9249 *** your PATH or compiler configuration so that the native linker is
9250 *** used, and then restart.
9255 # For security reasons, it is highly recommended that you always
9256 # use absolute paths for naming shared libraries, and exclude the
9257 # DT_RUNPATH tag from executables and libraries. But doing so
9258 # requires that you compile everything twice, which is a pain.
9259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9271 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_shlibpath_var=no
9278 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9287 if test "$ld_shlibs" = no; then
9289 hardcode_libdir_flag_spec=
9290 export_dynamic_flag_spec=
9291 whole_archive_flag_spec=
9294 # PORTME fill in a description of your system's linker (not GNU ld)
9297 allow_undefined_flag=unsupported
9298 always_export_symbols=yes
9299 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'
9300 # Note: this linker hardcodes the directories in LIBPATH if there
9301 # are no directories specified by -L.
9302 hardcode_minus_L=yes
9303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9304 # Neither direct hardcoding nor static linking is supported with a
9306 hardcode_direct=unsupported
9311 if test "$host_cpu" = ia64; then
9312 # On IA64, the linker does run time linking by default, so we don't
9313 # have to do anything special.
9314 aix_use_runtimelinking=no
9315 exp_sym_flag='-Bexport'
9318 # If we're using GNU nm, then we don't want the "-C" option.
9319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9320 # Also, AIX nm treats weak defined symbols like other global
9321 # defined symbols, whereas GNU nm marks them as "W".
9322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9325 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9327 aix_use_runtimelinking=no
9329 # Test if we are trying to use run time linking or normal
9330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331 # need to do runtime linking.
9332 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333 for ld_flag in $LDFLAGS; do
9334 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9335 aix_use_runtimelinking=yes
9342 exp_sym_flag='-bexport'
9343 no_entry_flag='-bnoentry'
9346 # When large executables or shared objects are built, AIX ld can
9347 # have problems creating the table of contents. If linking a library
9348 # or program results in "error TOC overflow" add -mminimal-toc to
9349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9354 hardcode_direct_absolute=yes
9355 hardcode_libdir_separator=':'
9356 link_all_deplibs=yes
9357 file_list_spec='${wl}-f,'
9359 if test "$GCC" = yes; then
9360 case $host_os in aix4.[012]|aix4.[012].*)
9361 # We only want to do this on AIX 4.2 and lower, the check
9362 # below for broken collect2 doesn't work under 4.3+
9363 collect2name=`${CC} -print-prog-name=collect2`
9364 if test -f "$collect2name" &&
9365 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9367 # We have reworked collect2
9370 # We have old collect2
9371 hardcode_direct=unsupported
9372 # It fails to find uninstalled libraries when the uninstalled
9373 # path is not listed in the libpath. Setting hardcode_minus_L
9374 # to unsupported forces relinking
9375 hardcode_minus_L=yes
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_libdir_separator=
9381 shared_flag='-shared'
9382 if test "$aix_use_runtimelinking" = yes; then
9383 shared_flag="$shared_flag "'${wl}-G'
9387 if test "$host_cpu" = ia64; then
9388 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9389 # chokes on -Wl,-G. The following line is correct:
9392 if test "$aix_use_runtimelinking" = yes; then
9393 shared_flag='${wl}-G'
9395 shared_flag='${wl}-bM:SRE'
9400 export_dynamic_flag_spec='${wl}-bexpall'
9401 # It seems that -bexpall does not export symbols beginning with
9402 # underscore (_), so it is better to generate a list of symbols to export.
9403 always_export_symbols=yes
9404 if test "$aix_use_runtimelinking" = yes; then
9405 # Warning - without using the other runtime loading flags (-brtl),
9406 # -berok will link without error, but may produce a broken library.
9407 allow_undefined_flag='-berok'
9408 # Determine the default libpath from the value encoded in an
9410 if test "${lt_cv_aix_libpath+set}" = set; then
9411 aix_libpath=$lt_cv_aix_libpath
9413 if ${lt_cv_aix_libpath_+:} false; then :
9414 $as_echo_n "(cached) " >&6
9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h. */
9427 if ac_fn_c_try_link "$LINENO"; then :
9429 lt_aix_libpath_sed='
9430 /Import File Strings/,/^$/ {
9432 s/^0 *\([^ ]*\) *$/\1/
9436 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9437 # Check for a 64-bit object if we didn't find anything.
9438 if test -z "$lt_cv_aix_libpath_"; then
9439 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9442 rm -f core conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9444 if test -z "$lt_cv_aix_libpath_"; then
9445 lt_cv_aix_libpath_="/usr/lib:/lib"
9450 aix_libpath=$lt_cv_aix_libpath_
9453 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9454 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9456 if test "$host_cpu" = ia64; then
9457 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9458 allow_undefined_flag="-z nodefs"
9459 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"
9461 # Determine the default libpath from the value encoded in an
9463 if test "${lt_cv_aix_libpath+set}" = set; then
9464 aix_libpath=$lt_cv_aix_libpath
9466 if ${lt_cv_aix_libpath_+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9480 if ac_fn_c_try_link "$LINENO"; then :
9482 lt_aix_libpath_sed='
9483 /Import File Strings/,/^$/ {
9485 s/^0 *\([^ ]*\) *$/\1/
9489 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 # Check for a 64-bit object if we didn't find anything.
9491 if test -z "$lt_cv_aix_libpath_"; then
9492 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 if test -z "$lt_cv_aix_libpath_"; then
9498 lt_cv_aix_libpath_="/usr/lib:/lib"
9503 aix_libpath=$lt_cv_aix_libpath_
9506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9507 # Warning - without using the other run time loading flags,
9508 # -berok will link without error, but may produce a broken library.
9509 no_undefined_flag=' ${wl}-bernotok'
9510 allow_undefined_flag=' ${wl}-berok'
9511 if test "$with_gnu_ld" = yes; then
9512 # We only use this code for GNU lds that support --whole-archive.
9513 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9515 # Exported symbols can be pulled into shared objects from archives
9516 whole_archive_flag_spec='$convenience'
9518 archive_cmds_need_lc=yes
9519 # This is similar to how AIX traditionally builds its shared libraries.
9520 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9528 # see comment about AmigaOS4 .so support
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds=''
9533 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)'
9534 hardcode_libdir_flag_spec='-L$libdir'
9535 hardcode_minus_L=yes
9541 export_dynamic_flag_spec=-rdynamic
9544 cygwin* | mingw* | pw32* | cegcc*)
9545 # When not using gcc, we currently assume that we are using
9546 # Microsoft Visual C++.
9547 # hardcode_libdir_flag_spec is actually meaningless, as there is
9548 # no search path for DLLs.
9549 case $cc_basename in
9552 hardcode_libdir_flag_spec=' '
9553 allow_undefined_flag=unsupported
9554 always_export_symbols=yes
9556 # Tell ltmain to make .lib files, not .a files.
9558 # Tell ltmain to make .dll files, not .so files.
9560 # FIXME: Setting linknames here is a bad hack.
9561 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9563 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9565 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9567 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9569 # The linker will not automatically build a static lib if we build a DLL.
9570 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9571 enable_shared_with_static_runtimes=yes
9572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9574 old_postinstall_cmds='chmod 644 $oldlib'
9575 postlink_cmds='lt_outputfile="@OUTPUT@"~
9576 lt_tool_outputfile="@TOOL_OUTPUT@"~
9577 case $lt_outputfile in
9580 lt_outputfile="$lt_outputfile.exe"
9581 lt_tool_outputfile="$lt_tool_outputfile.exe"
9584 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9586 $RM "$lt_outputfile.manifest";
9590 # Assume MSVC wrapper
9591 hardcode_libdir_flag_spec=' '
9592 allow_undefined_flag=unsupported
9593 # Tell ltmain to make .lib files, not .a files.
9595 # Tell ltmain to make .dll files, not .so files.
9597 # FIXME: Setting linknames here is a bad hack.
9598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9599 # The linker will automatically build a .lib file if we build a DLL.
9600 old_archive_from_new_cmds='true'
9601 # FIXME: Should let the user specify the lib program.
9602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9603 enable_shared_with_static_runtimes=yes
9608 darwin* | rhapsody*)
9611 archive_cmds_need_lc=no
9613 hardcode_automatic=yes
9614 hardcode_shlibpath_var=unsupported
9615 if test "$lt_cv_ld_force_load" = "yes"; then
9616 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\"`'
9618 whole_archive_flag_spec=''
9620 link_all_deplibs=yes
9621 allow_undefined_flag="$_lt_dar_allow_undefined"
9622 case $cc_basename in
9623 ifort*) _lt_dar_can_shared=yes ;;
9624 *) _lt_dar_can_shared=$GCC ;;
9626 if test "$_lt_dar_can_shared" = "yes"; then
9627 output_verbose_link_cmd=func_echo_all
9628 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9629 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9630 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}"
9631 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}"
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_libdir_flag_spec='-L$libdir'
9642 hardcode_shlibpath_var=no
9649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9650 # support. Future versions do this automatically, but an explicit c++rt0.o
9651 # does not break anything, and helps significantly (at the cost of a little
9654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9655 hardcode_libdir_flag_spec='-R$libdir'
9657 hardcode_shlibpath_var=no
9660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9662 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_minus_L=yes
9665 hardcode_shlibpath_var=no
9668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9669 freebsd* | dragonfly*)
9670 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_shlibpath_var=no
9677 if test "$GCC" = yes; then
9678 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9680 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9683 hardcode_libdir_separator=:
9686 # hardcode_minus_L: Not really in the search PATH,
9687 # but as the default location of the library.
9688 hardcode_minus_L=yes
9689 export_dynamic_flag_spec='${wl}-E'
9693 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9694 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9698 if test "$with_gnu_ld" = no; then
9699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9700 hardcode_libdir_flag_spec_ld='+b $libdir'
9701 hardcode_libdir_separator=:
9703 hardcode_direct_absolute=yes
9704 export_dynamic_flag_spec='${wl}-E'
9705 # hardcode_minus_L: Not really in the search PATH,
9706 # but as the default location of the library.
9707 hardcode_minus_L=yes
9712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9715 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734 # Older versions of the 11.00 compiler do not understand -b yet
9735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9737 $as_echo_n "checking if $CC understands -b... " >&6; }
9738 if ${lt_cv_prog_compiler__b+:} false; then :
9739 $as_echo_n "(cached) " >&6
9741 lt_cv_prog_compiler__b=no
9742 save_LDFLAGS="$LDFLAGS"
9743 LDFLAGS="$LDFLAGS -b"
9744 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9746 # The linker can only warn and ignore the option if not recognized
9747 # So say no if there are warnings
9748 if test -s conftest.err; then
9749 # Append any errors to the config.log.
9750 cat conftest.err 1>&5
9751 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9752 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9753 if diff conftest.exp conftest.er2 >/dev/null; then
9754 lt_cv_prog_compiler__b=yes
9757 lt_cv_prog_compiler__b=yes
9761 LDFLAGS="$save_LDFLAGS"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9765 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9767 if test x"$lt_cv_prog_compiler__b" = xyes; then
9768 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9770 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9776 if test "$with_gnu_ld" = no; then
9777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_separator=:
9783 hardcode_shlibpath_var=no
9787 hardcode_direct_absolute=yes
9788 export_dynamic_flag_spec='${wl}-E'
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L=yes
9798 irix5* | irix6* | nonstopux*)
9799 if test "$GCC" = yes; then
9800 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'
9801 # Try to use the -exported_symbol ld option, if it does not
9802 # work, assume that -exports_file does not work either and
9803 # implicitly export all symbols.
9804 # This should be the same for all languages, so no per-tag cache variable.
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9806 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9807 if ${lt_cv_irix_exported_symbol+:} false; then :
9808 $as_echo_n "(cached) " >&6
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int foo (void) { return 0; }
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 lt_cv_irix_exported_symbol=yes
9819 lt_cv_irix_exported_symbol=no
9821 rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823 LDFLAGS="$save_LDFLAGS"
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9826 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9827 if test "$lt_cv_irix_exported_symbol" = yes; then
9828 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'
9831 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'
9832 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'
9834 archive_cmds_need_lc='no'
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator=:
9838 link_all_deplibs=yes
9842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9845 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9847 hardcode_libdir_flag_spec='-R$libdir'
9849 hardcode_shlibpath_var=no
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857 hardcode_shlibpath_var=no
9864 if test -f /usr/libexec/ld.so; then
9866 hardcode_shlibpath_var=no
9867 hardcode_direct_absolute=yes
9868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_libdir_flag_spec='-R$libdir'
9880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 allow_undefined_flag=unsupported
9894 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9895 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9899 if test "$GCC" = yes; then
9900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9901 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'
9903 allow_undefined_flag=' -expect_unresolved \*'
9904 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'
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908 hardcode_libdir_separator=:
9911 osf4* | osf5*) # as osf3* with the addition of -msym flag
9912 if test "$GCC" = yes; then
9913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9914 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'
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9919 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~
9920 $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'
9922 # Both c and cxx compiler support -rpath directly
9923 hardcode_libdir_flag_spec='-rpath $libdir'
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_separator=:
9930 no_undefined_flag=' -z defs'
9931 if test "$GCC" = yes; then
9933 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $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'
9937 case `$CC -V 2>&1` in
9940 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9946 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_shlibpath_var=no
9955 solaris2.[0-5] | solaris2.[0-5].*) ;;
9957 # The compiler driver will combine and reorder linker options,
9958 # but understands `-z linker_flag'. GCC discards it without `$wl',
9959 # but is careful enough not to reorder.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 if test "$GCC" = yes; then
9962 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9968 link_all_deplibs=yes
9972 if test "x$host_vendor" = xsequent; then
9973 # Use $CC to link under sequent, because it throws in some extra .o
9974 # files that make .init and .fini sections work.
9975 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9986 case $host_vendor in
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes # is this really true???
9992 ## LD is ld it makes a PLAMLIB
9993 ## CC just makes a GrossModule.
9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995 reload_cmds='$CC -r -o $output$reload_objs'
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10003 runpath_var='LD_RUN_PATH'
10004 hardcode_shlibpath_var=no
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 export_dynamic_flag_spec='-Bexport'
10014 if test -d /usr/nec; then
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_shlibpath_var=no
10017 runpath_var=LD_RUN_PATH
10018 hardcode_runpath_var=yes
10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024 no_undefined_flag='${wl}-z,text'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 runpath_var='LD_RUN_PATH'
10029 if test "$GCC" = yes; then
10030 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 sysv5* | sco3.2v5* | sco5v6*)
10039 # Note: We can NOT use -z defs as we might desire, because we do not
10040 # link with -lc, and that would cause any symbols used from libc to
10041 # always be unresolved, which means just about no library would
10042 # ever link correctly. If we're not using GNU ld we use -z text
10043 # though, which does catch some bad symbols but isn't as heavy-handed
10045 no_undefined_flag='${wl}-z,text'
10046 allow_undefined_flag='${wl}-z,nodefs'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10050 hardcode_libdir_separator=':'
10051 link_all_deplibs=yes
10052 export_dynamic_flag_spec='${wl}-Bexport'
10053 runpath_var='LD_RUN_PATH'
10055 if test "$GCC" = yes; then
10056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_shlibpath_var=no
10075 if test x$host_vendor = xsni; then
10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078 export_dynamic_flag_spec='${wl}-Blargedynsym'
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test "$ld_shlibs" = no && can_build_shared=no
10088 with_gnu_ld=$with_gnu_ld
10105 # Do we need to explicitly link libc?
10107 case "x$archive_cmds_need_lc" in
10109 # Assume -lc should be added
10110 archive_cmds_need_lc=yes
10112 if test "$enable_shared" = yes && test "$GCC" = yes; then
10113 case $archive_cmds in
10115 # FIXME: we may have to deal with multi-command sequences.
10118 # Test whether the compiler implicitly links with -lc since on some
10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120 # to ld, don't add -lc before -lgcc.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124 $as_echo_n "(cached) " >&6
10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130 (eval $ac_compile) 2>&5
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; } 2>conftest.err; then
10136 libobjs=conftest.$ac_objext
10138 wl=$lt_prog_compiler_wl
10139 pic_flag=$lt_prog_compiler_pic
10145 lt_save_allow_undefined_flag=$allow_undefined_flag
10146 allow_undefined_flag=
10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151 test $ac_status = 0; }
10153 lt_cv_archive_cmds_need_lc=no
10155 lt_cv_archive_cmds_need_lc=yes
10157 allow_undefined_flag=$lt_save_allow_undefined_flag
10159 cat conftest.err 1>&5
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10330 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10332 if test "$GCC" = yes; then
10334 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10335 *) lt_awk_arg="/^libraries:/" ;;
10338 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10339 *) lt_sed_strip_eq="s,=/,/,g" ;;
10341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10342 case $lt_search_path_spec in
10344 # if the path contains ";" then we assume it to be the separator
10345 # otherwise default to the standard path separator (i.e. ":") - it is
10346 # assumed that no part of a normal pathname contains ";" but that should
10347 # okay in the real world where ";" in dirpaths is itself problematic.
10348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10354 # Ok, now we have the path, separated by spaces, we can step through it
10355 # and add multilib dir if necessary.
10356 lt_tmp_lt_search_path_spec=
10357 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10358 for lt_sys_path in $lt_search_path_spec; do
10359 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10362 test -d "$lt_sys_path" && \
10363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10366 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10367 BEGIN {RS=" "; FS="/|\n";} {
10370 for (lt_i = NF; lt_i > 0; lt_i--) {
10371 if ($lt_i != "" && $lt_i != ".") {
10372 if ($lt_i == "..") {
10375 if (lt_count == 0) {
10376 lt_foo="/" $lt_i lt_foo;
10383 if (lt_foo != "") { lt_freq[lt_foo]++; }
10384 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10386 # AWK program above erroneously prepends '/' to C:/dos/paths
10389 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10390 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10392 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10396 library_names_spec=
10397 libname_spec='lib$name'
10401 postuninstall_cmds=
10405 shlibpath_overrides_runpath=unknown
10407 dynamic_linker="$host_os ld.so"
10408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10409 need_lib_prefix=unknown
10410 hardcode_into_libs=no
10412 # when you set need_version to no, make sure it does not cause -set_version
10413 # flags to be left without arguments
10414 need_version=unknown
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10420 shlibpath_var=LIBPATH
10422 # AIX 3 has no versioning support, so we append a major version to the name.
10423 soname_spec='${libname}${release}${shared_ext}$major'
10430 hardcode_into_libs=yes
10431 if test "$host_cpu" = ia64; then
10432 # AIX 5 supports IA64
10433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10436 # With GCC up to 2.95.x, collect2 would create an import file
10437 # for dependence libraries. The import file would start with
10438 # the line `#! .'. This would cause the generated library to
10439 # depend on `.', always an invalid library. This was fixed in
10440 # development snapshots of GCC prior to 3.0.
10442 aix4 | aix4.[01] | aix4.[01].*)
10443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10448 can_build_shared=no
10452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10453 # soname into executable. Probably we can add versioning support to
10454 # collect2, so additional links can be useful in future.
10455 if test "$aix_use_runtimelinking" = yes; then
10456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10457 # instead of lib<name>.a to let people know that these are not
10458 # typical AIX shared libraries.
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461 # We preserve .a as extension for shared libraries through AIX4.2
10462 # and later when we are not doing run time linking.
10463 library_names_spec='${libname}${release}.a $libname.a'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LIBPATH
10473 # Since July 2007 AmigaOS4 officially supports .so libraries.
10474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10478 library_names_spec='$libname.ixlibrary $libname.a'
10479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10480 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10486 library_names_spec='${libname}${shared_ext}'
10487 dynamic_linker="$host_os ld.so"
10488 shlibpath_var=LIBRARY_PATH
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10500 # the default ld.so.conf also contains /usr/contrib/lib and
10501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10502 # libtool to hard-code these into programs
10505 cygwin* | mingw* | pw32* | cegcc*)
10506 version_type=windows
10511 case $GCC,$cc_basename in
10514 library_names_spec='$libname.dll.a'
10515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10516 postinstall_cmds='base_file=`basename \${file}`~
10517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10518 dldir=$destdir/`dirname \$dlpath`~
10519 test -d \$dldir || mkdir -p \$dldir~
10520 $install_prog $dir/$dlname \$dldir/$dlname~
10521 chmod a+x \$dldir/$dlname~
10522 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10523 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10525 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10526 dlpath=$dir/\$dldll~
10528 shlibpath_overrides_runpath=yes
10532 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10533 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10538 # MinGW DLLs use traditional 'lib' prefix
10539 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10542 # pw32 DLLs use 'pw' prefix rather than 'lib'
10543 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546 dynamic_linker='Win32 ld.exe'
10551 libname_spec='$name'
10552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553 library_names_spec='${libname}.dll.lib'
10557 sys_lib_search_path_spec=
10560 for lt_path in $LIB
10563 # Let DOS variable expansion print the short 8.3 style file name.
10564 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10565 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10568 # Convert to MSYS style.
10569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10572 # Convert to unix form, then to dos form, then back to unix form
10573 # but this time dos style (no spaces!) so that the unix form looks
10574 # like /cygdrive/c/PROGRA~1:/cygdr...
10575 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10576 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10577 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10580 sys_lib_search_path_spec="$LIB"
10581 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10582 # It is most probably a Windows format PATH.
10583 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10585 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10587 # FIXME: find the short name or the path components, as spaces are
10588 # common. (e.g. "Program Files" -> "PROGRA~1")
10592 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10593 postinstall_cmds='base_file=`basename \${file}`~
10594 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10595 dldir=$destdir/`dirname \$dlpath`~
10596 test -d \$dldir || mkdir -p \$dldir~
10597 $install_prog $dir/$dlname \$dldir/$dlname'
10598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10599 dlpath=$dir/\$dldll~
10601 shlibpath_overrides_runpath=yes
10602 dynamic_linker='Win32 link.exe'
10606 # Assume MSVC wrapper
10607 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10608 dynamic_linker='Win32 ld.exe'
10611 # FIXME: first we should search . and the directory the executable is in
10615 darwin* | rhapsody*)
10616 dynamic_linker="$host_os dyld"
10617 version_type=darwin
10620 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10621 soname_spec='${libname}${release}${major}$shared_ext'
10622 shlibpath_overrides_runpath=yes
10623 shlibpath_var=DYLD_LIBRARY_PATH
10624 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10626 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10627 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10643 freebsd* | dragonfly*)
10644 # DragonFly does not have aout. When/if they implement a new
10645 # versioning mechanism, adjust this.
10646 if test -x /usr/bin/objformat; then
10647 objformat=`/usr/bin/objformat`
10650 freebsd[123]*) objformat=aout ;;
10651 *) objformat=elf ;;
10654 version_type=freebsd-$objformat
10655 case $version_type in
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10666 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=yes
10671 freebsd3.[01]* | freebsdelf3.[01]*)
10672 shlibpath_overrides_runpath=yes
10673 hardcode_into_libs=yes
10675 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10676 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10677 shlibpath_overrides_runpath=no
10678 hardcode_into_libs=yes
10680 *) # from 4.6 on, and DragonFly
10681 shlibpath_overrides_runpath=yes
10682 hardcode_into_libs=yes
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 hardcode_into_libs=yes
10701 dynamic_linker="$host_os runtime_loader"
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LIBRARY_PATH
10705 shlibpath_overrides_runpath=yes
10706 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10707 hardcode_into_libs=yes
10710 hpux9* | hpux10* | hpux11*)
10711 # Give a soname corresponding to the major version so that dld.sl refuses to
10712 # link against other versions.
10719 hardcode_into_libs=yes
10720 dynamic_linker="$host_os dld.so"
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 if test "X$HPUX_IA64_MODE" = X32; then
10726 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10730 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10734 hardcode_into_libs=yes
10735 dynamic_linker="$host_os dld.sl"
10736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10745 dynamic_linker="$host_os dld.sl"
10746 shlibpath_var=SHLIB_PATH
10747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10753 postinstall_cmds='chmod 555 $lib'
10754 # or fails outright, so override atomically:
10755 install_override_mode=555
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10770 irix5* | irix6* | nonstopux*)
10772 nonstopux*) version_type=nonstopux ;;
10774 if test "$lt_cv_prog_gnu_ld" = yes; then
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 irix5* | nonstopux*)
10786 libsuff= shlibsuff=
10789 case $LD in # libtool.m4 will add one of these switches to LD
10790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10791 libsuff= shlibsuff= libmagic=32-bit;;
10792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10793 libsuff=32 shlibsuff=N32 libmagic=N32;;
10794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10795 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10796 *) libsuff= shlibsuff= libmagic=never-match;;
10800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10801 shlibpath_overrides_runpath=no
10802 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10803 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10804 hardcode_into_libs=yes
10807 # No shared lib support for Linux oldld, aout, or coff.
10808 linux*oldld* | linux*aout* | linux*coff*)
10812 # This must be Linux ELF.
10813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10823 # Some binutils ld are patched to set DT_RUNPATH
10824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10825 $as_echo_n "(cached) " >&6
10827 lt_cv_shlibpath_overrides_runpath=no
10828 save_LDFLAGS=$LDFLAGS
10829 save_libdir=$libdir
10830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10845 lt_cv_shlibpath_overrides_runpath=yes
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LDFLAGS=$save_LDFLAGS
10851 libdir=$save_libdir
10855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10857 # This implies no fast_install, which is unacceptable.
10858 # Some rework will be needed to allow for fast_install
10859 # before this can be enabled.
10860 hardcode_into_libs=yes
10862 # Add ABI-specific directories to the system library path.
10863 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10865 # Append ld.so.conf contents to the search path
10866 if test -f /etc/ld.so.conf; then
10867 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' ' '`
10868 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10872 # We used to test for /lib/ld.so.1 and disable shared libraries on
10873 # powerpc, because MkLinux only supported shared libraries with the
10874 # GNU dynamic linker. Since this was broken with cross compilers,
10875 # most powerpc-linux boxes support dynamic linking these days and
10876 # people can always --disable-shared, the test was removed, and we
10877 # assume the GNU/Linux dynamic linker is in use.
10878 dynamic_linker='GNU/Linux ld.so'
10885 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10888 dynamic_linker='NetBSD (a.out) ld.so'
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 dynamic_linker='NetBSD ld.elf_so'
10894 shlibpath_var=LD_LIBRARY_PATH
10895 shlibpath_overrides_runpath=yes
10896 hardcode_into_libs=yes
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 shlibpath_overrides_runpath=no
10914 hardcode_into_libs=yes
10915 dynamic_linker='ldqnx.so'
10920 sys_lib_dlsearch_path_spec="/usr/lib"
10922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10924 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10925 *) need_version=no ;;
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10932 openbsd2.[89] | openbsd2.[89].*)
10933 shlibpath_overrides_runpath=no
10936 shlibpath_overrides_runpath=yes
10940 shlibpath_overrides_runpath=yes
10945 libname_spec='$name'
10948 library_names_spec='$libname${shared_ext} $libname.a'
10949 dynamic_linker='OS/2 ld.exe'
10950 shlibpath_var=LIBPATH
10953 osf3* | osf4* | osf5*)
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10977 # ldd complains unless libraries are executable
10978 postinstall_cmds='chmod +x $lib'
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes
10987 if test "$with_gnu_ld" = yes; then
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 shlibpath_var=LD_LIBRARY_PATH
10998 case $host_vendor in
11000 shlibpath_overrides_runpath=no
11002 runpath_var=LD_RUN_PATH
11010 shlibpath_overrides_runpath=no
11011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11017 if test -d /usr/nec ;then
11019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020 soname_spec='$libname${shared_ext}.$major'
11021 shlibpath_var=LD_LIBRARY_PATH
11025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026 version_type=freebsd-elf
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 hardcode_into_libs=yes
11034 if test "$with_gnu_ld" = yes; then
11035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11044 sys_lib_dlsearch_path_spec='/usr/lib'
11048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11070 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11179 if test -n "$hardcode_libdir_flag_spec" ||
11180 test -n "$runpath_var" ||
11181 test "X$hardcode_automatic" = "Xyes" ; then
11183 # We can hardcode non-existent directories.
11184 if test "$hardcode_direct" != no &&
11185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11186 # have to relink, otherwise we might link with an installed library
11187 # when we should be linking with a yet-to-be-installed one
11188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189 test "$hardcode_minus_L" != no; then
11190 # Linking always hardcodes the temporary library directory.
11191 hardcode_action=relink
11193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11194 hardcode_action=immediate
11197 # We cannot hardcode anything, or else we can only hardcode existing
11199 hardcode_action=unsupported
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11202 $as_echo "$hardcode_action" >&6; }
11204 if test "$hardcode_action" = relink ||
11205 test "$inherit_rpath" = yes; then
11206 # Fast installation is not supported
11207 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11210 # Fast installation is not necessary
11211 enable_fast_install=needless
11219 if test "x$enable_dlopen" != xyes; then
11220 enable_dlopen=unknown
11221 enable_dlopen_self=unknown
11222 enable_dlopen_self_static=unknown
11229 lt_cv_dlopen="load_add_on"
11231 lt_cv_dlopen_self=yes
11234 mingw* | pw32* | cegcc*)
11235 lt_cv_dlopen="LoadLibrary"
11240 lt_cv_dlopen="dlopen"
11245 # if libdl is installed we need to link against it
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11248 if ${ac_cv_lib_dl_dlopen+:} false; then :
11249 $as_echo_n "(cached) " >&6
11251 ac_check_lib_save_LIBS=$LIBS
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h. */
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11271 if ac_fn_c_try_link "$LINENO"; then :
11272 ac_cv_lib_dl_dlopen=yes
11274 ac_cv_lib_dl_dlopen=no
11276 rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11282 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286 lt_cv_dlopen="dyld"
11288 lt_cv_dlopen_self=yes
11295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11296 if test "x$ac_cv_func_shl_load" = xyes; then :
11297 lt_cv_dlopen="shl_load"
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11301 if ${ac_cv_lib_dld_shl_load+:} false; then :
11302 $as_echo_n "(cached) " >&6
11304 ac_check_lib_save_LIBS=$LIBS
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11319 return shl_load ();
11324 if ac_fn_c_try_link "$LINENO"; then :
11325 ac_cv_lib_dld_shl_load=yes
11327 ac_cv_lib_dld_shl_load=no
11329 rm -f core conftest.err conftest.$ac_objext \
11330 conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11335 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11339 if test "x$ac_cv_func_dlopen" = xyes; then :
11340 lt_cv_dlopen="dlopen"
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if ${ac_cv_lib_dl_dlopen+:} false; then :
11345 $as_echo_n "(cached) " >&6
11347 ac_check_lib_save_LIBS=$LIBS
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_dl_dlopen=yes
11370 ac_cv_lib_dl_dlopen=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11378 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11383 if ${ac_cv_lib_svld_dlopen+:} false; then :
11384 $as_echo_n "(cached) " >&6
11386 ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lsvld $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11406 if ac_fn_c_try_link "$LINENO"; then :
11407 ac_cv_lib_svld_dlopen=yes
11409 ac_cv_lib_svld_dlopen=no
11411 rm -f core conftest.err conftest.$ac_objext \
11412 conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11417 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11422 if ${ac_cv_lib_dld_dld_link+:} false; then :
11423 $as_echo_n "(cached) " >&6
11425 ac_check_lib_save_LIBS=$LIBS
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h. */
11430 /* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
11440 return dld_link ();
11445 if ac_fn_c_try_link "$LINENO"; then :
11446 ac_cv_lib_dld_dld_link=yes
11448 ac_cv_lib_dld_dld_link=no
11450 rm -f core conftest.err conftest.$ac_objext \
11451 conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11456 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11478 if test "x$lt_cv_dlopen" != xno; then
11484 case $lt_cv_dlopen in
11486 save_CPPFLAGS="$CPPFLAGS"
11487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11489 save_LDFLAGS="$LDFLAGS"
11490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11493 LIBS="$lt_cv_dlopen_libs $LIBS"
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11497 if ${lt_cv_dlopen_self+:} false; then :
11498 $as_echo_n "(cached) " >&6
11500 if test "$cross_compiling" = yes; then :
11501 lt_cv_dlopen_self=cross
11503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11504 lt_status=$lt_dlunknown
11505 cat > conftest.$ac_ext <<_LT_EOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11516 # define LT_DLGLOBAL RTLD_GLOBAL
11519 # define LT_DLGLOBAL DL_GLOBAL
11521 # define LT_DLGLOBAL 0
11525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526 find out it does not work in some platform. */
11527 #ifndef LT_DLLAZY_OR_NOW
11529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11532 # define LT_DLLAZY_OR_NOW DL_LAZY
11535 # define LT_DLLAZY_OR_NOW RTLD_NOW
11538 # define LT_DLLAZY_OR_NOW DL_NOW
11540 # define LT_DLLAZY_OR_NOW 0
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
11548 correspondingly for the symbols needed. */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11550 int fnord () __attribute__((visibility("default")));
11553 int fnord () { return 42; }
11556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11557 int status = $lt_dlunknown;
11561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11565 else puts (dlerror ());
11567 /* dlclose (self); */
11575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576 (eval $ac_link) 2>&5
11578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580 (./conftest; exit; ) >&5 2>/dev/null
11582 case x$lt_status in
11583 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11588 # compilation failed
11589 lt_cv_dlopen_self=no
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597 $as_echo "$lt_cv_dlopen_self" >&6; }
11599 if test "x$lt_cv_dlopen_self" = xyes; then
11600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603 if ${lt_cv_dlopen_self_static+:} false; then :
11604 $as_echo_n "(cached) " >&6
11606 if test "$cross_compiling" = yes; then :
11607 lt_cv_dlopen_self_static=cross
11609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610 lt_status=$lt_dlunknown
11611 cat > conftest.$ac_ext <<_LT_EOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11622 # define LT_DLGLOBAL RTLD_GLOBAL
11625 # define LT_DLGLOBAL DL_GLOBAL
11627 # define LT_DLGLOBAL 0
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632 find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11635 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11638 # define LT_DLLAZY_OR_NOW DL_LAZY
11641 # define LT_DLLAZY_OR_NOW RTLD_NOW
11644 # define LT_DLLAZY_OR_NOW DL_NOW
11646 # define LT_DLLAZY_OR_NOW 0
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
11654 correspondingly for the symbols needed. */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 int fnord () __attribute__((visibility("default")));
11659 int fnord () { return 42; }
11662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663 int status = $lt_dlunknown;
11667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11670 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11671 else puts (dlerror ());
11673 /* dlclose (self); */
11681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682 (eval $ac_link) 2>&5
11684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686 (./conftest; exit; ) >&5 2>/dev/null
11688 case x$lt_status in
11689 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11690 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11691 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694 # compilation failed
11695 lt_cv_dlopen_self_static=no
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11706 CPPFLAGS="$save_CPPFLAGS"
11707 LDFLAGS="$save_LDFLAGS"
11712 case $lt_cv_dlopen_self in
11713 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11714 *) enable_dlopen_self=unknown ;;
11717 case $lt_cv_dlopen_self_static in
11718 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11719 *) enable_dlopen_self_static=unknown ;;
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11744 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11745 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11749 # FIXME - insert some real tests, host_os isn't really good enough
11752 if test -n "$STRIP" ; then
11753 striplib="$STRIP -x"
11754 old_striplib="$STRIP -S"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11780 # Report which library types will actually be built
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11784 $as_echo "$can_build_shared" >&6; }
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11787 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788 test "$can_build_shared" = "no" && enable_shared=no
11790 # On AIX, shared libraries and static libraries use the same namespace, and
11791 # are all built from PIC.
11794 test "$enable_shared" = yes && enable_static=no
11795 if test -n "$RANLIB"; then
11796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11797 postinstall_cmds='$RANLIB $lib'
11802 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803 test "$enable_shared" = yes && enable_static=no
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11808 $as_echo "$enable_shared" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11811 $as_echo_n "checking whether to build static libraries... " >&6; }
11812 # Make sure either enable_shared or enable_static is yes.
11813 test "$enable_shared" = yes || enable_static=yes
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11815 $as_echo "$enable_static" >&6; }
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11841 ac_config_commands="$ac_config_commands libtool"
11846 # Only expand once:
11852 if test "$enable_libevent_regress" = "yes"; then
11853 BUILD_REGRESS_TRUE=
11854 BUILD_REGRESS_FALSE='#'
11856 BUILD_REGRESS_TRUE='#'
11857 BUILD_REGRESS_FALSE=
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11862 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
11863 if ${ac_cv_search_inet_ntoa+:} false; then :
11864 $as_echo_n "(cached) " >&6
11866 ac_func_search_save_LIBS=$LIBS
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11880 return inet_ntoa ();
11885 for ac_lib in '' nsl; do
11886 if test -z "$ac_lib"; then
11887 ac_res="none required"
11890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11892 if ac_fn_c_try_link "$LINENO"; then :
11893 ac_cv_search_inet_ntoa=$ac_res
11895 rm -f core conftest.err conftest.$ac_objext \
11897 if ${ac_cv_search_inet_ntoa+:} false; then :
11901 if ${ac_cv_search_inet_ntoa+:} false; then :
11904 ac_cv_search_inet_ntoa=no
11906 rm conftest.$ac_ext
11907 LIBS=$ac_func_search_save_LIBS
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
11910 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
11911 ac_res=$ac_cv_search_inet_ntoa
11912 if test "$ac_res" != no; then :
11913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11918 $as_echo_n "checking for library containing socket... " >&6; }
11919 if ${ac_cv_search_socket+:} false; then :
11920 $as_echo_n "(cached) " >&6
11922 ac_func_search_save_LIBS=$LIBS
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11926 /* Override any GCC internal prototype to avoid an error.
11927 Use char because int might match the return type of a GCC
11928 builtin and then its argument prototype would still apply. */
11941 for ac_lib in '' socket; do
11942 if test -z "$ac_lib"; then
11943 ac_res="none required"
11946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11948 if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_search_socket=$ac_res
11951 rm -f core conftest.err conftest.$ac_objext \
11953 if ${ac_cv_search_socket+:} false; then :
11957 if ${ac_cv_search_socket+:} false; then :
11960 ac_cv_search_socket=no
11962 rm conftest.$ac_ext
11963 LIBS=$ac_func_search_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11966 $as_echo "$ac_cv_search_socket" >&6; }
11967 ac_res=$ac_cv_search_socket
11968 if test "$ac_res" != no; then :
11969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
11974 $as_echo_n "checking for library containing inet_aton... " >&6; }
11975 if ${ac_cv_search_inet_aton+:} false; then :
11976 $as_echo_n "(cached) " >&6
11978 ac_func_search_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11992 return inet_aton ();
11997 for ac_lib in '' resolv; do
11998 if test -z "$ac_lib"; then
11999 ac_res="none required"
12002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_search_inet_aton=$ac_res
12007 rm -f core conftest.err conftest.$ac_objext \
12009 if ${ac_cv_search_inet_aton+:} false; then :
12013 if ${ac_cv_search_inet_aton+:} false; then :
12016 ac_cv_search_inet_aton=no
12018 rm conftest.$ac_ext
12019 LIBS=$ac_func_search_save_LIBS
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12022 $as_echo "$ac_cv_search_inet_aton" >&6; }
12023 ac_res=$ac_cv_search_inet_aton
12024 if test "$ac_res" != no; then :
12025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12030 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12031 if ${ac_cv_search_clock_gettime+:} false; then :
12032 $as_echo_n "(cached) " >&6
12034 ac_func_search_save_LIBS=$LIBS
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12044 char clock_gettime ();
12048 return clock_gettime ();
12053 for ac_lib in '' rt; do
12054 if test -z "$ac_lib"; then
12055 ac_res="none required"
12058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12060 if ac_fn_c_try_link "$LINENO"; then :
12061 ac_cv_search_clock_gettime=$ac_res
12063 rm -f core conftest.err conftest.$ac_objext \
12065 if ${ac_cv_search_clock_gettime+:} false; then :
12069 if ${ac_cv_search_clock_gettime+:} false; then :
12072 ac_cv_search_clock_gettime=no
12074 rm conftest.$ac_ext
12075 LIBS=$ac_func_search_save_LIBS
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12078 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12079 ac_res=$ac_cv_search_clock_gettime
12080 if test "$ac_res" != no; then :
12081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12086 $as_echo_n "checking for library containing sendfile... " >&6; }
12087 if ${ac_cv_search_sendfile+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 ac_func_search_save_LIBS=$LIBS
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12104 return sendfile ();
12109 for ac_lib in '' sendfile; do
12110 if test -z "$ac_lib"; then
12111 ac_res="none required"
12114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 ac_cv_search_sendfile=$ac_res
12119 rm -f core conftest.err conftest.$ac_objext \
12121 if ${ac_cv_search_sendfile+:} false; then :
12125 if ${ac_cv_search_sendfile+:} false; then :
12128 ac_cv_search_sendfile=no
12130 rm conftest.$ac_ext
12131 LIBS=$ac_func_search_save_LIBS
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12134 $as_echo "$ac_cv_search_sendfile" >&6; }
12135 ac_res=$ac_cv_search_sendfile
12136 if test "$ac_res" != no; then :
12137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12143 $as_echo_n "checking for WIN32... " >&6; }
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161 $as_echo "yes" >&6; }
12163 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12169 $as_echo_n "checking for CYGWIN... " >&6; }
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 $as_echo "yes" >&6; }
12189 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 for ac_header in zlib.h
12196 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_zlib_h" = xyes; then :
12198 cat >>confdefs.h <<_ACEOF
12199 #define HAVE_ZLIB_H 1
12207 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12213 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12214 if ${ac_cv_search_inflateEnd+:} false; then :
12215 $as_echo_n "(cached) " >&6
12217 ac_func_search_save_LIBS=$LIBS
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h. */
12221 /* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
12227 char inflateEnd ();
12231 return inflateEnd ();
12236 for ac_lib in '' z; do
12237 if test -z "$ac_lib"; then
12238 ac_res="none required"
12241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12243 if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_search_inflateEnd=$ac_res
12246 rm -f core conftest.err conftest.$ac_objext \
12248 if ${ac_cv_search_inflateEnd+:} false; then :
12252 if ${ac_cv_search_inflateEnd+:} false; then :
12255 ac_cv_search_inflateEnd=no
12257 rm conftest.$ac_ext
12258 LIBS=$ac_func_search_save_LIBS
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12261 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12262 ac_res=$ac_cv_search_inflateEnd
12263 if test "$ac_res" != no; then :
12264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12268 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12275 if test "$have_zlib" = "yes"; then
12277 ZLIB_REGRESS_FALSE='#'
12279 ZLIB_REGRESS_TRUE='#'
12280 ZLIB_REGRESS_FALSE=
12284 if test "$bwin32" = true; then
12285 EV_LIB_WS32=-lws2_32
12294 for ac_header in openssl/bio.h
12296 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12297 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12298 cat >>confdefs.h <<_ACEOF
12299 #define HAVE_OPENSSL_BIO_H 1
12307 if test "$enable_openssl" = "yes"; then
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12313 $as_echo_n "checking for library containing SSL_new... " >&6; }
12314 if ${ac_cv_search_SSL_new+:} false; then :
12315 $as_echo_n "(cached) " >&6
12317 ac_func_search_save_LIBS=$LIBS
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply. */
12336 for ac_lib in '' ssl; do
12337 if test -z "$ac_lib"; then
12338 ac_res="none required"
12341 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $ac_func_search_save_LIBS"
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 ac_cv_search_SSL_new=$ac_res
12346 rm -f core conftest.err conftest.$ac_objext \
12348 if ${ac_cv_search_SSL_new+:} false; then :
12352 if ${ac_cv_search_SSL_new+:} false; then :
12355 ac_cv_search_SSL_new=no
12357 rm conftest.$ac_ext
12358 LIBS=$ac_func_search_save_LIBS
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12361 $as_echo "$ac_cv_search_SSL_new" >&6; }
12362 ac_res=$ac_cv_search_SSL_new
12363 if test "$ac_res" != no; then :
12364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12366 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32"
12368 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12379 $as_echo_n "checking for ANSI C header files... " >&6; }
12380 if ${ac_cv_header_stdc+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 #include <stdlib.h>
12386 #include <stdarg.h>
12387 #include <string.h>
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399 ac_cv_header_stdc=yes
12401 ac_cv_header_stdc=no
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 if test $ac_cv_header_stdc = yes; then
12406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <string.h>
12412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413 $EGREP "memchr" >/dev/null 2>&1; then :
12416 ac_cv_header_stdc=no
12422 if test $ac_cv_header_stdc = yes; then
12423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h. */
12426 #include <stdlib.h>
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430 $EGREP "free" >/dev/null 2>&1; then :
12433 ac_cv_header_stdc=no
12439 if test $ac_cv_header_stdc = yes; then
12440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12441 if test "$cross_compiling" = yes; then :
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12447 #include <stdlib.h>
12448 #if ((' ' & 0x0FF) == 0x020)
12449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12452 # define ISLOWER(c) \
12453 (('a' <= (c) && (c) <= 'i') \
12454 || ('j' <= (c) && (c) <= 'r') \
12455 || ('s' <= (c) && (c) <= 'z'))
12456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12464 for (i = 0; i < 256; i++)
12465 if (XOR (islower (i), ISLOWER (i))
12466 || toupper (i) != TOUPPER (i))
12471 if ac_fn_c_try_run "$LINENO"; then :
12474 ac_cv_header_stdc=no
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477 conftest.$ac_objext conftest.beam conftest.$ac_ext
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12483 $as_echo "$ac_cv_header_stdc" >&6; }
12484 if test $ac_cv_header_stdc = yes; then
12486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12490 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12495 cat >>confdefs.h <<_ACEOF
12496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12503 for ac_header in sys/sysctl.h
12505 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12506 #ifdef HAVE_SYS_PARAM_H
12507 #include <sys/param.h>
12511 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_SYS_SYSCTL_H 1
12520 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12522 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12526 #include <sys/queue.h>
12527 #ifdef TAILQ_FOREACH
12532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12533 $EGREP "yes" >/dev/null 2>&1; then :
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12535 $as_echo "yes" >&6; }
12537 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12548 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12550 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12554 #include <sys/time.h>
12560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12561 $EGREP "yes" >/dev/null 2>&1; then :
12563 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 $as_echo "yes" >&6; }
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12576 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12578 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12582 #include <sys/time.h>
12588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12589 $EGREP "yes" >/dev/null 2>&1; then :
12591 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12604 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12606 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12610 #include <sys/time.h>
12616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12617 $EGREP "yes" >/dev/null 2>&1; then :
12619 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12632 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12634 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h. */
12638 #include <sys/time.h>
12644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12645 $EGREP "yes" >/dev/null 2>&1; then :
12647 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12650 $as_echo "yes" >&6; }
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12660 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12661 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12662 #include <sys/sysctl.h>
12665 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_DECL_CTL_KERN $ac_have_decl
12674 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12675 #include <sys/sysctl.h>
12678 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12684 cat >>confdefs.h <<_ACEOF
12685 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12687 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12688 #include <sys/sysctl.h>
12691 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12697 cat >>confdefs.h <<_ACEOF
12698 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12700 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12701 #include <sys/sysctl.h>
12704 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_DECL_KERN_ARND $ac_have_decl
12716 if test x$bwin32 = xtrue; then
12718 BUILD_WIN32_FALSE='#'
12720 BUILD_WIN32_TRUE='#'
12724 if test x$cygwin = xtrue; then
12726 BUILD_CYGWIN_FALSE='#'
12728 BUILD_CYGWIN_TRUE='#'
12729 BUILD_CYGWIN_FALSE=
12732 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12733 BUILD_WITH_NO_UNDEFINED_TRUE=
12734 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12736 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12737 BUILD_WITH_NO_UNDEFINED_FALSE=
12741 if test x$bwin32 = xtrue; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12743 $as_echo_n "checking for library containing getservbyname... " >&6; }
12744 if ${ac_cv_search_getservbyname+:} false; then :
12745 $as_echo_n "(cached) " >&6
12747 ac_func_search_save_LIBS=$LIBS
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12751 /* Override any GCC internal prototype to avoid an error.
12752 Use char because int might match the return type of a GCC
12753 builtin and then its argument prototype would still apply. */
12757 char getservbyname ();
12761 return getservbyname ();
12766 for ac_lib in '' ws2_32; do
12767 if test -z "$ac_lib"; then
12768 ac_res="none required"
12771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12773 if ac_fn_c_try_link "$LINENO"; then :
12774 ac_cv_search_getservbyname=$ac_res
12776 rm -f core conftest.err conftest.$ac_objext \
12778 if ${ac_cv_search_getservbyname+:} false; then :
12782 if ${ac_cv_search_getservbyname+:} false; then :
12785 ac_cv_search_getservbyname=no
12787 rm conftest.$ac_ext
12788 LIBS=$ac_func_search_save_LIBS
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12791 $as_echo "$ac_cv_search_getservbyname" >&6; }
12792 ac_res=$ac_cv_search_getservbyname
12793 if test "$ac_res" != no; then :
12794 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12801 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12802 if ${ac_cv_c_const+:} false; then :
12803 $as_echo_n "(cached) " >&6
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12811 /* FIXME: Include the comments suggested by Paul. */
12812 #ifndef __cplusplus
12813 /* Ultrix mips cc rejects this. */
12814 typedef int charset[2];
12816 /* SunOS 4.1.1 cc rejects this. */
12817 char const *const *pcpcc;
12819 /* NEC SVR4.0.2 mips cc rejects this. */
12820 struct point {int x, y;};
12821 static struct point const zero = {0,0};
12822 /* AIX XL C 1.02.0.0 rejects this.
12823 It does not let you subtract one const X* pointer from another in
12824 an arm of an if-expression whose if-part is not a constant
12826 const char *g = "string";
12827 pcpcc = &g + (g ? g-g : 0);
12828 /* HPUX 7.0 cc rejects these. */
12830 ppc = (char**) pcpcc;
12831 pcpcc = (char const *const *) ppc;
12832 { /* SCO 3.2v4 cc rejects this. */
12834 char const *s = 0 ? (char *) 0 : (char const *) 0;
12839 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12840 int x[] = {25, 17};
12841 const int *foo = &x[0];
12844 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12845 typedef const int *iptr;
12849 { /* AIX XL C 1.02.0.0 rejects this saying
12850 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12851 struct s { int j; const int *ap[3]; };
12852 struct s *b; b->j = 5;
12854 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12855 const int foo = 10;
12856 if (!foo) return 0;
12858 return !cs[0] && !zero.x;
12865 if ac_fn_c_try_compile "$LINENO"; then :
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12873 $as_echo "$ac_cv_c_const" >&6; }
12874 if test $ac_cv_c_const = no; then
12876 $as_echo "#define const /**/" >>confdefs.h
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12881 $as_echo_n "checking for inline... " >&6; }
12882 if ${ac_cv_c_inline+:} false; then :
12883 $as_echo_n "(cached) " >&6
12886 for ac_kw in inline __inline__ __inline; do
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #ifndef __cplusplus
12891 static $ac_kw foo_t static_foo () {return 0; }
12892 $ac_kw foo_t foo () {return 0; }
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897 ac_cv_c_inline=$ac_kw
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 test "$ac_cv_c_inline" != no && break
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12905 $as_echo "$ac_cv_c_inline" >&6; }
12907 case $ac_cv_c_inline in
12910 case $ac_cv_c_inline in
12912 *) ac_val=$ac_cv_c_inline;;
12914 cat >>confdefs.h <<_ACEOF
12915 #ifndef __cplusplus
12916 #define inline $ac_val
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12923 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12924 if ${ac_cv_header_time+:} false; then :
12925 $as_echo_n "(cached) " >&6
12927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h. */
12929 #include <sys/types.h>
12930 #include <sys/time.h>
12936 if ((struct tm *) 0)
12942 if ac_fn_c_try_compile "$LINENO"; then :
12943 ac_cv_header_time=yes
12945 ac_cv_header_time=no
12947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12950 $as_echo "$ac_cv_header_time" >&6; }
12951 if test $ac_cv_header_time = yes; then
12953 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12958 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
12960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12963 cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12970 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
12972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12975 cat >>confdefs.h <<_ACEOF
12976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
12984 $as_echo_n "checking for getaddrinfo... " >&6; }
12985 if ${libevent_cv_getaddrinfo+:} false; then :
12986 $as_echo_n "(cached) " >&6
12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h. */
12991 #ifdef HAVE_NETDB_H
13006 if ac_fn_c_try_link "$LINENO"; then :
13007 libevent_cv_getaddrinfo=yes
13009 libevent_cv_getaddrinfo=no
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13017 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13018 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13020 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13024 for ac_func in getservbyname
13026 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13027 if test "x$ac_cv_func_getservbyname" = xyes; then :
13028 cat >>confdefs.h <<_ACEOF
13029 #define HAVE_GETSERVBYNAME 1
13035 # Check for gethostbyname_r in all its glorious incompatible versions.
13036 # (This is cut-and-pasted from Tor, which based its logic on
13037 # Python's configure.in.)
13040 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13041 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13044 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13046 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13057 struct hostent *h1, *h2;
13059 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13065 if ac_fn_c_try_compile "$LINENO"; then :
13067 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13070 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13073 $as_echo "6" >&6; }
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13087 struct hostent *h1;
13089 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13095 if ac_fn_c_try_compile "$LINENO"; then :
13097 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13100 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13103 $as_echo "5" >&6; }
13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13117 struct hostent *h1;
13118 struct hostent_data hd;
13119 (void) gethostbyname_r(cp1,h1,&hd);
13125 if ac_fn_c_try_compile "$LINENO"; then :
13127 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13130 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13133 $as_echo "3" >&6; }
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13138 $as_echo "0" >&6; }
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13155 # The cast to long int works around a bug in the HP C Compiler
13156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13158 # This bug is HP SR number 8606223364.
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13160 $as_echo_n "checking size of long... " >&6; }
13161 if ${ac_cv_sizeof_long+:} false; then :
13162 $as_echo_n "(cached) " >&6
13164 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13167 if test "$ac_cv_type_long" = yes; then
13168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13170 as_fn_error 77 "cannot compute sizeof (long)
13171 See \`config.log' for more details" "$LINENO" 5; }
13173 ac_cv_sizeof_long=0
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13179 $as_echo "$ac_cv_sizeof_long" >&6; }
13183 cat >>confdefs.h <<_ACEOF
13184 #define SIZEOF_LONG $ac_cv_sizeof_long
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13190 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h. */
13194 #define _GNU_SOURCE
13201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13202 $EGREP "yes" >/dev/null 2>&1; then :
13204 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13207 $as_echo "yes" >&6; }
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13217 if test x$bwin32 != xtrue; then
13218 for ac_func in select
13220 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13221 if test "x$ac_cv_func_select" = xyes; then :
13222 cat >>confdefs.h <<_ACEOF
13223 #define HAVE_SELECT 1
13229 if test "x$haveselect" = "xyes" ; then
13233 if test "x$haveselect" = "xyes"; then
13234 SELECT_BACKEND_TRUE=
13235 SELECT_BACKEND_FALSE='#'
13237 SELECT_BACKEND_TRUE='#'
13238 SELECT_BACKEND_FALSE=
13243 for ac_func in poll
13245 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13246 if test "x$ac_cv_func_poll" = xyes; then :
13247 cat >>confdefs.h <<_ACEOF
13248 #define HAVE_POLL 1
13254 if test "x$havepoll" = "xyes" ; then
13257 if test "x$havepoll" = "xyes"; then
13259 POLL_BACKEND_FALSE='#'
13261 POLL_BACKEND_TRUE='#'
13262 POLL_BACKEND_FALSE=
13267 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13269 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13272 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13273 DEVPOLL_BACKEND_TRUE=
13274 DEVPOLL_BACKEND_FALSE='#'
13276 DEVPOLL_BACKEND_TRUE='#'
13277 DEVPOLL_BACKEND_FALSE=
13282 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13283 for ac_func in kqueue
13285 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13286 if test "x$ac_cv_func_kqueue" = xyes; then :
13287 cat >>confdefs.h <<_ACEOF
13288 #define HAVE_KQUEUE 1
13294 if test "x$havekqueue" = "xyes" ; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13296 $as_echo_n "checking for working kqueue... " >&6; }
13297 if test "$cross_compiling" = yes; then :
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #include <sys/types.h>
13304 #include <sys/time.h>
13305 #include <sys/event.h>
13307 #include <unistd.h>
13311 main(int argc, char **argv)
13317 struct timespec ts;
13320 if (pipe(fd) == -1)
13322 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13325 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13328 if ((kq = kqueue()) == -1)
13331 memset(&ev, 0, sizeof(ev));
13333 ev.filter = EVFILT_WRITE;
13334 ev.flags = EV_ADD | EV_ENABLE;
13335 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13339 read(fd[0], buf, sizeof(buf));
13343 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13344 if (n == -1 || n == 0)
13350 if ac_fn_c_try_run "$LINENO"; then :
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13352 $as_echo "yes" >&6; }
13354 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13363 conftest.$ac_objext conftest.beam conftest.$ac_ext
13368 if test "x$havekqueue" = "xyes"; then
13369 KQUEUE_BACKEND_TRUE=
13370 KQUEUE_BACKEND_FALSE='#'
13372 KQUEUE_BACKEND_TRUE='#'
13373 KQUEUE_BACKEND_FALSE=
13377 haveepollsyscall=no
13379 for ac_func in epoll_ctl
13381 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13382 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13383 cat >>confdefs.h <<_ACEOF
13384 #define HAVE_EPOLL_CTL 1
13390 if test "x$haveepoll" = "xyes" ; then
13392 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13396 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13397 if test "x$haveepoll" = "xno" ; then
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13399 $as_echo_n "checking for epoll system call... " >&6; }
13400 if test "$cross_compiling" = yes; then :
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13406 #include <stdint.h>
13407 #include <sys/param.h>
13408 #include <sys/types.h>
13409 #include <sys/syscall.h>
13410 #include <sys/epoll.h>
13411 #include <unistd.h>
13414 epoll_create(int size)
13416 return (syscall(__NR_epoll_create, size));
13420 main(int argc, char **argv)
13424 epfd = epoll_create(256);
13425 exit (epfd == -1 ? 1 : 0);
13428 if ac_fn_c_try_run "$LINENO"; then :
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13430 $as_echo "yes" >&6; }
13432 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13436 case " $LIBOBJS " in
13437 *" epoll_sub.$ac_objext "* ) ;;
13438 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13448 conftest.$ac_objext conftest.beam conftest.$ac_ext
13453 if test "x$haveepoll" = "xyes"; then
13454 EPOLL_BACKEND_TRUE=
13455 EPOLL_BACKEND_FALSE='#'
13457 EPOLL_BACKEND_TRUE='#'
13458 EPOLL_BACKEND_FALSE=
13463 for ac_func in port_create
13465 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13466 if test "x$ac_cv_func_port_create" = xyes; then :
13467 cat >>confdefs.h <<_ACEOF
13468 #define HAVE_PORT_CREATE 1
13474 if test "x$haveeventports" = "xyes" ; then
13476 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13480 if test "x$haveeventports" = "xyes"; then
13481 EVPORT_BACKEND_TRUE=
13482 EVPORT_BACKEND_FALSE='#'
13484 EVPORT_BACKEND_TRUE='#'
13485 EVPORT_BACKEND_FALSE=
13489 if test "x$bwin32" = "xtrue"; then
13493 if test "x$needsignal" = "xyes"; then
13494 SIGNAL_SUPPORT_TRUE=
13495 SIGNAL_SUPPORT_FALSE='#'
13497 SIGNAL_SUPPORT_TRUE='#'
13498 SIGNAL_SUPPORT_FALSE=
13502 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13503 if test "x$ac_cv_type_pid_t" = xyes; then :
13507 cat >>confdefs.h <<_ACEOF
13513 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13514 if test "x$ac_cv_type_size_t" = xyes; then :
13518 cat >>confdefs.h <<_ACEOF
13519 #define size_t unsigned int
13524 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13525 if test "x$ac_cv_type_ssize_t" = xyes; then :
13529 cat >>confdefs.h <<_ACEOF
13530 #define ssize_t int
13536 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13537 #include <stdint.h>
13538 #elif defined(HAVE_INTTYPES_H)
13539 #include <inttypes.h>
13541 #ifdef HAVE_SYS_TYPES_H
13542 #include <sys/types.h>
13545 if test "x$ac_cv_type_uint64_t" = xyes; then :
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_UINT64_T 1
13553 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13554 #include <stdint.h>
13555 #elif defined(HAVE_INTTYPES_H)
13556 #include <inttypes.h>
13558 #ifdef HAVE_SYS_TYPES_H
13559 #include <sys/types.h>
13562 if test "x$ac_cv_type_uint32_t" = xyes; then :
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_UINT32_T 1
13570 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13571 #include <stdint.h>
13572 #elif defined(HAVE_INTTYPES_H)
13573 #include <inttypes.h>
13575 #ifdef HAVE_SYS_TYPES_H
13576 #include <sys/types.h>
13579 if test "x$ac_cv_type_uint16_t" = xyes; then :
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_UINT16_T 1
13587 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13588 #include <stdint.h>
13589 #elif defined(HAVE_INTTYPES_H)
13590 #include <inttypes.h>
13592 #ifdef HAVE_SYS_TYPES_H
13593 #include <sys/types.h>
13596 if test "x$ac_cv_type_uint8_t" = xyes; then :
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_UINT8_T 1
13604 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13605 #include <stdint.h>
13606 #elif defined(HAVE_INTTYPES_H)
13607 #include <inttypes.h>
13609 #ifdef HAVE_SYS_TYPES_H
13610 #include <sys/types.h>
13613 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13615 cat >>confdefs.h <<_ACEOF
13616 #define HAVE_UINTPTR_T 1
13623 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13624 #include <sys/types.h>
13626 #ifdef HAVE_SYS_SELECT_H
13627 #include <sys/select.h>
13630 if test "x$ac_cv_type_fd_mask" = xyes; then :
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_FD_MASK 1
13640 # The cast to long int works around a bug in the HP C Compiler
13641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13643 # This bug is HP SR number 8606223364.
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13645 $as_echo_n "checking size of long long... " >&6; }
13646 if ${ac_cv_sizeof_long_long+:} false; then :
13647 $as_echo_n "(cached) " >&6
13649 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13652 if test "$ac_cv_type_long_long" = yes; then
13653 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13655 as_fn_error 77 "cannot compute sizeof (long long)
13656 See \`config.log' for more details" "$LINENO" 5; }
13658 ac_cv_sizeof_long_long=0
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13664 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13668 cat >>confdefs.h <<_ACEOF
13669 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13673 # The cast to long int works around a bug in the HP C Compiler
13674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13676 # This bug is HP SR number 8606223364.
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13678 $as_echo_n "checking size of long... " >&6; }
13679 if ${ac_cv_sizeof_long+:} false; then :
13680 $as_echo_n "(cached) " >&6
13682 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13685 if test "$ac_cv_type_long" = yes; then
13686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13688 as_fn_error 77 "cannot compute sizeof (long)
13689 See \`config.log' for more details" "$LINENO" 5; }
13691 ac_cv_sizeof_long=0
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13697 $as_echo "$ac_cv_sizeof_long" >&6; }
13701 cat >>confdefs.h <<_ACEOF
13702 #define SIZEOF_LONG $ac_cv_sizeof_long
13706 # The cast to long int works around a bug in the HP C Compiler
13707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13709 # This bug is HP SR number 8606223364.
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13711 $as_echo_n "checking size of int... " >&6; }
13712 if ${ac_cv_sizeof_int+:} false; then :
13713 $as_echo_n "(cached) " >&6
13715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13718 if test "$ac_cv_type_int" = yes; then
13719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error 77 "cannot compute sizeof (int)
13722 See \`config.log' for more details" "$LINENO" 5; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13730 $as_echo "$ac_cv_sizeof_int" >&6; }
13734 cat >>confdefs.h <<_ACEOF
13735 #define SIZEOF_INT $ac_cv_sizeof_int
13739 # The cast to long int works around a bug in the HP C Compiler
13740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13742 # This bug is HP SR number 8606223364.
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13744 $as_echo_n "checking size of short... " >&6; }
13745 if ${ac_cv_sizeof_short+:} false; then :
13746 $as_echo_n "(cached) " >&6
13748 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13751 if test "$ac_cv_type_short" = yes; then
13752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 as_fn_error 77 "cannot compute sizeof (short)
13755 See \`config.log' for more details" "$LINENO" 5; }
13757 ac_cv_sizeof_short=0
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13763 $as_echo "$ac_cv_sizeof_short" >&6; }
13767 cat >>confdefs.h <<_ACEOF
13768 #define SIZEOF_SHORT $ac_cv_sizeof_short
13772 # The cast to long int works around a bug in the HP C Compiler
13773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13775 # This bug is HP SR number 8606223364.
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13777 $as_echo_n "checking size of size_t... " >&6; }
13778 if ${ac_cv_sizeof_size_t+:} false; then :
13779 $as_echo_n "(cached) " >&6
13781 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13784 if test "$ac_cv_type_size_t" = yes; then
13785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13787 as_fn_error 77 "cannot compute sizeof (size_t)
13788 See \`config.log' for more details" "$LINENO" 5; }
13790 ac_cv_sizeof_size_t=0
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13796 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13800 cat >>confdefs.h <<_ACEOF
13801 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13805 # The cast to long int works around a bug in the HP C Compiler
13806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13808 # This bug is HP SR number 8606223364.
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13810 $as_echo_n "checking size of void *... " >&6; }
13811 if ${ac_cv_sizeof_void_p+:} false; then :
13812 $as_echo_n "(cached) " >&6
13814 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13817 if test "$ac_cv_type_void_p" = yes; then
13818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13820 as_fn_error 77 "cannot compute sizeof (void *)
13821 See \`config.log' for more details" "$LINENO" 5; }
13823 ac_cv_sizeof_void_p=0
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13833 cat >>confdefs.h <<_ACEOF
13834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13839 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13840 #include <sys/types.h>
13841 #ifdef HAVE_NETINET_IN_H
13842 #include <netinet/in.h>
13844 #ifdef HAVE_NETINET_IN6_H
13845 #include <netinet/in6.h>
13847 #ifdef HAVE_SYS_SOCKET_H
13848 #include <sys/socket.h>
13850 #ifdef HAVE_NETDB_H
13854 #define WIN32_WINNT 0x400
13855 #define _WIN32_WINNT 0x400
13856 #define WIN32_LEAN_AND_MEAN
13857 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13858 #include <winsock.h>
13860 #include <winsock2.h>
13861 #include <ws2tcpip.h>
13866 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_STRUCT_IN6_ADDR 1
13874 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13875 #include <sys/types.h>
13876 #ifdef HAVE_NETINET_IN_H
13877 #include <netinet/in.h>
13879 #ifdef HAVE_NETINET_IN6_H
13880 #include <netinet/in6.h>
13882 #ifdef HAVE_SYS_SOCKET_H
13883 #include <sys/socket.h>
13885 #ifdef HAVE_NETDB_H
13889 #define WIN32_WINNT 0x400
13890 #define _WIN32_WINNT 0x400
13891 #define WIN32_LEAN_AND_MEAN
13892 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13893 #include <winsock.h>
13895 #include <winsock2.h>
13896 #include <ws2tcpip.h>
13901 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_STRUCT_SOCKADDR_IN6 1
13909 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
13910 #include <sys/types.h>
13911 #ifdef HAVE_NETINET_IN_H
13912 #include <netinet/in.h>
13914 #ifdef HAVE_NETINET_IN6_H
13915 #include <netinet/in6.h>
13917 #ifdef HAVE_SYS_SOCKET_H
13918 #include <sys/socket.h>
13920 #ifdef HAVE_NETDB_H
13924 #define WIN32_WINNT 0x400
13925 #define _WIN32_WINNT 0x400
13926 #define WIN32_LEAN_AND_MEAN
13927 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13928 #include <winsock.h>
13930 #include <winsock2.h>
13931 #include <ws2tcpip.h>
13936 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_SA_FAMILY_T 1
13944 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
13945 #include <sys/types.h>
13946 #ifdef HAVE_NETINET_IN_H
13947 #include <netinet/in.h>
13949 #ifdef HAVE_NETINET_IN6_H
13950 #include <netinet/in6.h>
13952 #ifdef HAVE_SYS_SOCKET_H
13953 #include <sys/socket.h>
13955 #ifdef HAVE_NETDB_H
13959 #define WIN32_WINNT 0x400
13960 #define _WIN32_WINNT 0x400
13961 #define WIN32_LEAN_AND_MEAN
13962 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13963 #include <winsock.h>
13965 #include <winsock2.h>
13966 #include <ws2tcpip.h>
13971 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_STRUCT_ADDRINFO 1
13979 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
13980 #include <sys/types.h>
13981 #ifdef HAVE_NETINET_IN_H
13982 #include <netinet/in.h>
13984 #ifdef HAVE_NETINET_IN6_H
13985 #include <netinet/in6.h>
13987 #ifdef HAVE_SYS_SOCKET_H
13988 #include <sys/socket.h>
13990 #ifdef HAVE_NETDB_H
13994 #define WIN32_WINNT 0x400
13995 #define _WIN32_WINNT 0x400
13996 #define WIN32_LEAN_AND_MEAN
13997 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13998 #include <winsock.h>
14000 #include <winsock2.h>
14001 #include <ws2tcpip.h>
14006 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14015 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14016 #ifdef HAVE_NETINET_IN_H
14017 #include <netinet/in.h>
14019 #ifdef HAVE_NETINET_IN6_H
14020 #include <netinet/in6.h>
14022 #ifdef HAVE_SYS_SOCKET_H
14023 #include <sys/socket.h>
14026 #define WIN32_WINNT 0x400
14027 #define _WIN32_WINNT 0x400
14028 #define WIN32_LEAN_AND_MEAN
14029 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14030 #include <winsock.h>
14032 #include <winsock2.h>
14033 #include <ws2tcpip.h>
14038 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14046 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14047 #ifdef HAVE_NETINET_IN_H
14048 #include <netinet/in.h>
14050 #ifdef HAVE_NETINET_IN6_H
14051 #include <netinet/in6.h>
14053 #ifdef HAVE_SYS_SOCKET_H
14054 #include <sys/socket.h>
14057 #define WIN32_WINNT 0x400
14058 #define _WIN32_WINNT 0x400
14059 #define WIN32_LEAN_AND_MEAN
14060 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14061 #include <winsock.h>
14063 #include <winsock2.h>
14064 #include <ws2tcpip.h>
14069 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14071 cat >>confdefs.h <<_ACEOF
14072 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14077 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14078 #ifdef HAVE_NETINET_IN_H
14079 #include <netinet/in.h>
14081 #ifdef HAVE_NETINET_IN6_H
14082 #include <netinet/in6.h>
14084 #ifdef HAVE_SYS_SOCKET_H
14085 #include <sys/socket.h>
14088 #define WIN32_WINNT 0x400
14089 #define _WIN32_WINNT 0x400
14090 #define WIN32_LEAN_AND_MEAN
14091 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14092 #include <winsock.h>
14094 #include <winsock2.h>
14095 #include <ws2tcpip.h>
14100 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14108 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14109 #ifdef HAVE_NETINET_IN_H
14110 #include <netinet/in.h>
14112 #ifdef HAVE_NETINET_IN6_H
14113 #include <netinet/in6.h>
14115 #ifdef HAVE_SYS_SOCKET_H
14116 #include <sys/socket.h>
14119 #define WIN32_WINNT 0x400
14120 #define _WIN32_WINNT 0x400
14121 #define WIN32_LEAN_AND_MEAN
14122 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14123 #include <winsock.h>
14125 #include <winsock2.h>
14126 #include <ws2tcpip.h>
14131 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14139 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14140 #ifdef HAVE_NETINET_IN_H
14141 #include <netinet/in.h>
14143 #ifdef HAVE_NETINET_IN6_H
14144 #include <netinet/in6.h>
14146 #ifdef HAVE_SYS_SOCKET_H
14147 #include <sys/socket.h>
14150 #define WIN32_WINNT 0x400
14151 #define _WIN32_WINNT 0x400
14152 #define WIN32_LEAN_AND_MEAN
14153 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14154 #include <winsock.h>
14156 #include <winsock2.h>
14157 #include <ws2tcpip.h>
14162 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14164 cat >>confdefs.h <<_ACEOF
14165 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14170 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14171 #ifdef HAVE_NETINET_IN_H
14172 #include <netinet/in.h>
14174 #ifdef HAVE_NETINET_IN6_H
14175 #include <netinet/in6.h>
14177 #ifdef HAVE_SYS_SOCKET_H
14178 #include <sys/socket.h>
14181 #define WIN32_WINNT 0x400
14182 #define _WIN32_WINNT 0x400
14183 #define WIN32_LEAN_AND_MEAN
14184 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14185 #include <winsock.h>
14187 #include <winsock2.h>
14188 #include <ws2tcpip.h>
14193 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14204 $as_echo_n "checking for socklen_t... " >&6; }
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h. */
14208 #include <sys/types.h>
14209 #include <sys/socket.h>
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14220 $as_echo "yes" >&6; }
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14225 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14232 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14239 const char *cp = __func__;
14244 if ac_fn_c_try_compile "$LINENO"; then :
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246 $as_echo "yes" >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14251 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h. */
14258 const char *cp = __FUNCTION__;
14263 if ac_fn_c_try_compile "$LINENO"; then :
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14267 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14273 $as_echo "#define __func__ __FILE__" >>confdefs.h
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 # check if we can compile with pthreads
14283 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14288 ac_cpp='$CPP $CPPFLAGS'
14289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14295 # We used to check for pthread.h first, but this fails if pthread.h
14296 # requires special compiler flags (e.g. on True64 or Sequent).
14297 # It gets checked for in the link test anyway.
14299 # First of all, check if the user has set any of the PTHREAD_LIBS,
14300 # etcetera environment variables, and if threads linking works using
14302 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14303 save_CFLAGS="$CFLAGS"
14304 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14306 LIBS="$PTHREAD_LIBS $LIBS"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14308 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14318 char pthread_join ();
14322 return pthread_join ();
14327 if ac_fn_c_try_link "$LINENO"; then :
14330 rm -f core conftest.err conftest.$ac_objext \
14331 conftest$ac_exeext conftest.$ac_ext
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14333 $as_echo "$acx_pthread_ok" >&6; }
14334 if test x"$acx_pthread_ok" = xno; then
14339 CFLAGS="$save_CFLAGS"
14342 # We must check for the threads library under a number of different
14343 # names; the ordering is very important because some systems
14344 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14345 # libraries is broken (non-POSIX).
14347 # Create a list of thread flags to try. Items starting with a "-" are
14348 # C compiler flags, and other items are library names, except for "none"
14349 # which indicates that we try without any flags at all, and "pthread-config"
14350 # which is a program returning the flags for the Pth emulation library.
14352 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14354 # The ordering *is* (sometimes) important. Some notes on the
14355 # individual items follow:
14357 # pthreads: AIX (must check this before -lpthread)
14358 # none: in case threads are in libc; should be tried before -Kthread and
14359 # other compiler flags to prevent continual compiler warnings
14360 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14361 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14362 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14363 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14364 # -pthreads: Solaris/gcc
14365 # -mthreads: Mingw32/gcc, Lynx/gcc
14366 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14367 # doesn't hurt to check since this sometimes defines pthreads too;
14368 # also defines -D_REENTRANT)
14369 # ... -mt is also the pthreads flag for HP/aCC
14370 # pthread: Linux, etcetera
14371 # --thread-safe: KAI C++
14372 # pthread-config: use pthread-config program (for GNU Pth library)
14374 case "${host_cpu}-${host_os}" in
14377 # On Solaris (at least, for some versions), libc contains stubbed
14378 # (non-functional) versions of the pthreads routines, so link-based
14379 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14380 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14381 # a function called by this macro, so we could check for that, but
14382 # who knows whether they'll stub that too in a future libc.) So,
14383 # we'll just look for -pthreads and -lpthread first:
14385 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14389 if test x"$acx_pthread_ok" = xno; then
14390 for flag in $acx_pthread_flags; do
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14395 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14400 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14401 PTHREAD_CFLAGS="$flag"
14405 # Extract the first word of "pthread-config", so it can be a program name with args.
14406 set dummy pthread-config; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14410 $as_echo_n "(cached) " >&6
14412 if test -n "$acx_pthread_config"; then
14413 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
14421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14422 ac_cv_prog_acx_pthread_config="yes"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14430 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14433 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14434 if test -n "$acx_pthread_config"; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14436 $as_echo "$acx_pthread_config" >&6; }
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14443 if test x"$acx_pthread_config" = xno; then continue; fi
14444 PTHREAD_CFLAGS="`pthread-config --cflags`"
14445 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14450 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14451 PTHREAD_LIBS="-l$flag"
14456 save_CFLAGS="$CFLAGS"
14457 LIBS="$PTHREAD_LIBS $LIBS"
14458 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14460 # Check for various functions. We must include pthread.h,
14461 # since some functions may be macros. (On the Sequent, we
14462 # need a special flag -Kthread to make this header compile.)
14463 # We check for pthread_join because it is in -lpthread on IRIX
14464 # while pthread_create is in libc. We check for pthread_attr_init
14465 # due to DEC craziness with -lpthreads. We check for
14466 # pthread_cleanup_push because it is one of the few pthread
14467 # functions on Solaris that doesn't have a non-functional libc stub.
14468 # We try pthread_create on general principles.
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 #include <pthread.h>
14475 pthread_t th; pthread_join(th, 0);
14476 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14477 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14482 if ac_fn_c_try_link "$LINENO"; then :
14485 rm -f core conftest.err conftest.$ac_objext \
14486 conftest$ac_exeext conftest.$ac_ext
14489 CFLAGS="$save_CFLAGS"
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14492 $as_echo "$acx_pthread_ok" >&6; }
14493 if test "x$acx_pthread_ok" = xyes; then
14502 # Various other checks:
14503 if test "x$acx_pthread_ok" = xyes; then
14505 LIBS="$PTHREAD_LIBS $LIBS"
14506 save_CFLAGS="$CFLAGS"
14507 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14509 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14511 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14513 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14516 #include <pthread.h>
14520 int attr=$attr; return attr;
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 attr_name=$attr; break
14528 rm -f core conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14532 $as_echo "$attr_name" >&6; }
14533 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define PTHREAD_CREATE_JOINABLE $attr_name
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14542 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14544 case "${host_cpu}-${host_os}" in
14545 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14546 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14549 $as_echo "${flag}" >&6; }
14550 if test "x$flag" != xno; then
14551 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14555 CFLAGS="$save_CFLAGS"
14557 # More AIX lossage: must compile with xlc_r or cc_r
14558 if test x"$GCC" != xyes; then
14559 for ac_prog in xlc_r cc_r
14561 # Extract the first word of "$ac_prog", so it can be a program name with args.
14562 set dummy $ac_prog; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14566 $as_echo_n "(cached) " >&6
14568 if test -n "$PTHREAD_CC"; then
14569 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14572 for as_dir in $PATH
14575 test -z "$as_dir" && as_dir=.
14576 for ac_exec_ext in '' $ac_executable_extensions; do
14577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14578 ac_cv_prog_PTHREAD_CC="$ac_prog"
14579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14588 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14589 if test -n "$PTHREAD_CC"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14591 $as_echo "$PTHREAD_CC" >&6; }
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14598 test -n "$PTHREAD_CC" && break
14600 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14613 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14614 if test x"$acx_pthread_ok" = xyes; then
14617 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14632 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14633 # The cast to long int works around a bug in the HP C Compiler
14634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14636 # This bug is HP SR number 8606223364.
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14638 $as_echo_n "checking size of pthread_t... " >&6; }
14639 if ${ac_cv_sizeof_pthread_t+:} false; then :
14640 $as_echo_n "(cached) " >&6
14642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14643 #include <pthread.h>
14648 if test "$ac_cv_type_pthread_t" = yes; then
14649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14651 as_fn_error 77 "cannot compute sizeof (pthread_t)
14652 See \`config.log' for more details" "$LINENO" 5; }
14654 ac_cv_sizeof_pthread_t=0
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14660 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14664 cat >>confdefs.h <<_ACEOF
14665 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14670 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14679 # check if we should compile locking into the library
14680 if test x$enable_thread_support = xno; then
14682 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14686 # check if we should hard-code the mm functions.
14687 if test x$enable_malloc_replacement = xno; then
14689 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14693 # check if we should hard-code debugging out
14694 if test x$enable_debug_mode = xno; then
14696 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14700 # check if we have and should use openssl
14701 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14710 # Add some more warnings which we use in development but not in the
14711 # released versions. (Some relevant gcc versions can't handle these.)
14712 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14721 #if !defined(__GNUC__) || (__GNUC__ < 4)
14728 if ac_fn_c_try_compile "$LINENO"; then :
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14742 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14749 if ac_fn_c_try_compile "$LINENO"; then :
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14763 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14770 if ac_fn_c_try_compile "$LINENO"; then :
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14784 #if !defined(__clang__)
14791 if ac_fn_c_try_compile "$LINENO"; then :
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h. */
14805 #if !defined(__clang__) || (__clang_major__ > 2) || (__clang_major__ == 2 && __clang_minor__ > 9)
14812 if ac_fn_c_try_compile "$LINENO"; then :
14813 have_clang29orlower=yes
14815 have_clang29orlower=no
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
14820 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14822 if test x$have_gcc4 = xyes ; then
14823 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14824 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14825 #CFLAGS="$CFLAGS -Wold-style-definition"
14828 if test x$have_gcc42 = xyes ; then
14829 # These warnings break gcc 4.0.2 and work on gcc 4.2
14830 CFLAGS="$CFLAGS -Waddress"
14833 if test x$have_gcc42 = xyes && test x$have_clang29orlower = xno; then
14834 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14835 # We only disable these for clang 2.9 and lower, in case they are
14836 # supported in later versions.
14837 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14840 if test x$have_gcc45 = xyes ; then
14841 # These warnings work on gcc 4.5
14842 CFLAGS="$CFLAGS -Wlogical-op"
14845 if test x$have_clang = xyes; then
14846 # Disable the unused-function warnings, because these trigger
14847 # for minheap-internal.h related code.
14848 CFLAGS="$CFLAGS -Wno-unused-function"
14851 ##This will break the world on some 64-bit architectures
14852 # CFLAGS="$CFLAGS -Winline"
14856 LIBEVENT_GC_SECTIONS=
14857 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14859 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14860 if ${libevent_cv_gc_sections_runs+:} false; then :
14861 $as_echo_n "(cached) " >&6
14864 origCFLAGS="$CFLAGS"
14865 CFLAGS="$CFLAGS -Wl,--gc-sections"
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14869 #include <stdlib.h>
14879 int read_success_once;
14881 fpC = fopen("conftest.c", "r");
14885 cch = fread(buf, sizeof(buf), 1, fpC);
14886 read_success_once |= (0 != cch);
14887 } while (0 != cch);
14888 if (!read_success_once)
14892 if (0 != fclose(fpC))
14895 exit(EXIT_SUCCESS);
14902 if ac_fn_c_try_link "$LINENO"; then :
14904 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
14905 libevent_cv_gc_sections_runs=no
14907 libevent_cv_gc_sections_runs=no
14908 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
14912 libevent_cv_gc_sections_runs=no
14915 rm -f core conftest.err conftest.$ac_objext \
14916 conftest$ac_exeext conftest.$ac_ext
14917 CFLAGS="$origCFLAGS"
14918 { origCFLAGS=; unset origCFLAGS;}
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
14923 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
14924 case "$libevent_cv_gc_sections_runs" in
14926 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
14927 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
14933 if test "$enable_libevent_install" = "yes"; then
14934 INSTALL_LIBEVENT_TRUE=
14935 INSTALL_LIBEVENT_FALSE='#'
14937 INSTALL_LIBEVENT_TRUE='#'
14938 INSTALL_LIBEVENT_FALSE=
14942 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
14944 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
14946 cat >confcache <<\_ACEOF
14947 # This file is a shell script that caches the results of configure
14948 # tests run on this system so they can be shared between configure
14949 # scripts and configure runs, see configure's option --config-cache.
14950 # It is not useful on other systems. If it contains results you don't
14951 # want to keep, you may remove or edit it.
14953 # config.status only pays attention to the cache file if you give it
14954 # the --recheck option to rerun configure.
14956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14958 # following values.
14962 # The following way of writing the cache mishandles newlines in values,
14963 # but we know of no workaround that is simple, portable, and efficient.
14964 # So, we kill variables containing newlines.
14965 # Ultrix sh set writes to stderr and can't be redirected directly,
14966 # and sets the high bit in the cache file unless we assign to the vars.
14968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14969 eval ac_val=\$$ac_var
14973 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977 _ | IFS | as_nl) ;; #(
14978 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14979 *) { eval $ac_var=; unset $ac_var;} ;;
14985 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14986 *${as_nl}ac_space=\ *)
14987 # `set' does not quote correctly, so add quotes: double-quote
14988 # substitution turns \\\\ into \\, and sed turns \\ into \.
14991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994 # `set' quotes correctly as required by POSIX, so do not add quotes.
14995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15009 if test -w "$cache_file"; then
15010 if test "x$cache_file" != "x/dev/null"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15012 $as_echo "$as_me: updating cache $cache_file" >&6;}
15013 if test ! -f "$cache_file" || test -h "$cache_file"; then
15014 cat confcache >"$cache_file"
15016 case $cache_file in #(
15018 mv -f confcache "$cache_file"$$ &&
15019 mv -f "$cache_file"$$ "$cache_file" ;; #(
15021 mv -f confcache "$cache_file" ;;
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15027 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15033 # Let make expand exec_prefix.
15034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15036 DEFS=-DHAVE_CONFIG_H
15041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15042 # 1. Remove the extension, and $U if already installed.
15043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15046 # will be set to the directory where LIBOBJS objects are built.
15047 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15048 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15050 LIBOBJS=$ac_libobjs
15052 LTLIBOBJS=$ac_ltlibobjs
15055 if test -n "$EXEEXT"; then
15057 am__EXEEXT_FALSE='#'
15059 am__EXEEXT_TRUE='#'
15063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15064 as_fn_error $? "conditional \"AMDEP\" was never defined.
15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15068 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15072 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15076 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15080 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15084 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15088 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15092 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15096 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15100 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15104 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15108 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15112 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15116 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15120 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15124 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15128 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 : "${CONFIG_STATUS=./config.status}"
15134 ac_clean_files_save=$ac_clean_files
15135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15141 # Generated by $as_me.
15142 # Run this file to recreate the current configuration.
15143 # Compiler output produced by configure, useful for debugging
15144 # configure, is in config.log if it exists.
15147 ac_cs_recheck=false
15150 SHELL=\${CONFIG_SHELL-$SHELL}
15153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15154 ## -------------------- ##
15155 ## M4sh Initialization. ##
15156 ## -------------------- ##
15158 # Be more Bourne compatible
15159 DUALCASE=1; export DUALCASE # for MKS sh
15160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15164 # is contrary to our usage. Disable this feature.
15165 alias -g '${1+"$@"}'='"$@"'
15166 setopt NO_GLOB_SUBST
15168 case `(set -o) 2>/dev/null` in #(
15180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15184 # Prefer a ksh shell builtin over an external printf program on Solaris,
15185 # but without wasting forks for bash or zsh.
15186 if test -z "$BASH_VERSION$ZSH_VERSION" \
15187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15188 as_echo='print -r --'
15189 as_echo_n='print -rn --'
15190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15191 as_echo='printf %s\n'
15192 as_echo_n='printf %s'
15194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15196 as_echo_n='/usr/ucb/echo -n'
15198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15199 as_echo_n_body='eval
15203 expr "X$arg" : "X\\(.*\\)$as_nl";
15204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15208 export as_echo_n_body
15209 as_echo_n='sh -c $as_echo_n_body as_echo'
15211 export as_echo_body
15212 as_echo='sh -c $as_echo_body as_echo'
15215 # The user is always right.
15216 if test "${PATH_SEPARATOR+set}" != set; then
15218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15226 # We need space, tab and new line, in precisely that order. Quoting is
15227 # there to prevent editors from complaining about space-tab.
15228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15229 # splitting by setting IFS to empty value.)
15232 # Find who we are. Look in the path if we contain no directory separator.
15235 *[\\/]* ) as_myself=$0 ;;
15236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH
15240 test -z "$as_dir" && as_dir=.
15241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15247 # We did not find ourselves, most probably we were run as `sh COMMAND'
15248 # in which case we are not to be found in the path.
15249 if test "x$as_myself" = x; then
15252 if test ! -f "$as_myself"; then
15253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15257 # Unset variables that we do not need and which cause bugs (e.g. in
15258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15259 # suppresses any "Segmentation fault" message there. '((' could
15260 # trigger a bug in pdksh 5.2.14.
15261 for as_var in BASH_ENV ENV MAIL MAILPATH
15262 do eval test x\${$as_var+set} = xset \
15263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15280 # ----------------------------------------
15281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15283 # script with STATUS, using 1 if that was 0.
15286 as_status=$1; test $as_status -eq 0 && as_status=1
15288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15291 $as_echo "$as_me: error: $2" >&2
15292 as_fn_exit $as_status
15296 # as_fn_set_status STATUS
15297 # -----------------------
15298 # Set $? to STATUS, without forking.
15299 as_fn_set_status ()
15302 } # as_fn_set_status
15304 # as_fn_exit STATUS
15305 # -----------------
15306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15310 as_fn_set_status $1
15316 # Portably unset VAR.
15319 { eval $1=; unset $1;}
15321 as_unset=as_fn_unset
15322 # as_fn_append VAR VALUE
15323 # ----------------------
15324 # Append the text in VALUE to the end of the definition contained in VAR. Take
15325 # advantage of any shell optimizations that allow amortized linear growth over
15326 # repeated appends, instead of the typical quadratic growth present in naive
15328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15329 eval 'as_fn_append ()
15340 # as_fn_arith ARG...
15341 # ------------------
15342 # Perform arithmetic evaluation on the ARGs, and store the result in the
15343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15344 # must be portable across $(()) and expr.
15345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15346 eval 'as_fn_arith ()
15353 as_val=`expr "$@" || test $? -eq 1`
15358 if expr a : '\(a\)' >/dev/null 2>&1 &&
15359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15366 as_basename=basename
15371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15377 as_me=`$as_basename -- "$0" ||
15378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15379 X"$0" : 'X\(//\)$' \| \
15380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15382 sed '/^.*\/\([^/][^/]*\)\/*$/{
15396 # Avoid depending upon Character Ranges.
15397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15400 as_cr_digits='0123456789'
15401 as_cr_alnum=$as_cr_Letters$as_cr_digits
15403 ECHO_C= ECHO_N= ECHO_T=
15404 case `echo -n x` in #(((((
15406 case `echo 'xy\c'` in
15407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15416 rm -f conf$$ conf$$.exe conf$$.file
15417 if test -d conf$$.dir; then
15418 rm -f conf$$.dir/conf$$.file
15421 mkdir conf$$.dir 2>/dev/null
15423 if (echo >conf$$.file) 2>/dev/null; then
15424 if ln -s conf$$.file conf$$ 2>/dev/null; then
15426 # ... but there are two gotchas:
15427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15429 # In both cases, we have to default to `cp -p'.
15430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15432 elif ln conf$$.file conf$$ 2>/dev/null; then
15440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15441 rmdir conf$$.dir 2>/dev/null
15446 # Create "$as_dir" as a directory, including parents if necessary.
15451 -*) as_dir=./$as_dir;;
15453 test -d "$as_dir" || eval $as_mkdir_p || {
15457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15458 *) as_qdir=$as_dir;;
15460 as_dirs="'$as_qdir' $as_dirs"
15461 as_dir=`$as_dirname -- "$as_dir" ||
15462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15463 X"$as_dir" : 'X\(//\)[^/]' \| \
15464 X"$as_dir" : 'X\(//\)$' \| \
15465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15466 $as_echo X"$as_dir" |
15467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15471 /^X\(\/\/\)[^/].*/{
15484 test -d "$as_dir" && break
15486 test -z "$as_dirs" || eval "mkdir $as_dirs"
15487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15491 if mkdir -p . 2>/dev/null; then
15492 as_mkdir_p='mkdir -p "$as_dir"'
15494 test -d ./-p && rmdir ./-p
15498 if test -x / >/dev/null 2>&1; then
15499 as_test_x='test -x'
15501 if ls -dL / >/dev/null 2>&1; then
15508 if test -d "$1"; then
15514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15515 ???[sx]*):;;*)false;;esac;fi
15519 as_executable_p=$as_test_x
15521 # Sed expression to map a string onto a valid CPP name.
15522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15524 # Sed expression to map a string onto a valid variable name.
15525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15529 ## ----------------------------------- ##
15530 ## Main body of $CONFIG_STATUS script. ##
15531 ## ----------------------------------- ##
15533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 # Save the log message, to keep $0 and so on meaningful, and to
15537 # report actual input values of CONFIG_FILES etc. instead of their
15538 # values after options handling.
15540 This file was extended by $as_me, which was
15541 generated by GNU Autoconf 2.68. Invocation command line was
15543 CONFIG_FILES = $CONFIG_FILES
15544 CONFIG_HEADERS = $CONFIG_HEADERS
15545 CONFIG_LINKS = $CONFIG_LINKS
15546 CONFIG_COMMANDS = $CONFIG_COMMANDS
15549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15554 case $ac_config_files in *"
15555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15558 case $ac_config_headers in *"
15559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15564 # Files that config.status was made for.
15565 config_files="$ac_config_files"
15566 config_headers="$ac_config_headers"
15567 config_commands="$ac_config_commands"
15571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15573 \`$as_me' instantiates files and other configuration actions
15574 from templates according to the current configuration. Unless the files
15575 and actions are specified as TAGs, all are instantiated by default.
15577 Usage: $0 [OPTION]... [TAG]...
15579 -h, --help print this help, then exit
15580 -V, --version print version number and configuration settings, then exit
15581 --config print configuration, then exit
15582 -q, --quiet, --silent
15583 do not print progress messages
15584 -d, --debug don't remove temporary files
15585 --recheck update $as_me by reconfiguring in the same conditions
15586 --file=FILE[:TEMPLATE]
15587 instantiate the configuration file FILE
15588 --header=FILE[:TEMPLATE]
15589 instantiate the configuration header FILE
15591 Configuration files:
15594 Configuration headers:
15597 Configuration commands:
15600 Report bugs to the package provider."
15603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15607 configured by $0, generated by GNU Autoconf 2.68,
15608 with options \\"\$ac_cs_config\\"
15610 Copyright (C) 2010 Free Software Foundation, Inc.
15611 This config.status script is free software; the Free Software Foundation
15612 gives unlimited permission to copy, distribute and modify it."
15619 test -n "\$AWK" || AWK=awk
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623 # The default lists apply if the user does not specify any file.
15629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15634 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15646 # Handling of the options.
15647 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15649 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15650 $as_echo "$ac_cs_version"; exit ;;
15651 --config | --confi | --conf | --con | --co | --c )
15652 $as_echo "$ac_cs_config"; exit ;;
15653 --debug | --debu | --deb | --de | --d | -d )
15655 --file | --fil | --fi | --f )
15658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15659 '') as_fn_error $? "missing file argument" ;;
15661 as_fn_append CONFIG_FILES " '$ac_optarg'"
15662 ac_need_defaults=false;;
15663 --header | --heade | --head | --hea )
15666 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15668 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15669 ac_need_defaults=false;;
15671 # Conflict between --help and --header
15672 as_fn_error $? "ambiguous option: \`$1'
15673 Try \`$0 --help' for more information.";;
15674 --help | --hel | -h )
15675 $as_echo "$ac_cs_usage"; exit ;;
15676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15677 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15680 # This is an error.
15681 -*) as_fn_error $? "unrecognized option: \`$1'
15682 Try \`$0 --help' for more information." ;;
15684 *) as_fn_append ac_config_targets " $1"
15685 ac_need_defaults=false ;;
15691 ac_configure_extra_args=
15693 if $ac_cs_silent; then
15695 ac_configure_extra_args="$ac_configure_extra_args --silent"
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 if \$ac_cs_recheck; then
15701 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15703 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15704 CONFIG_SHELL='$SHELL'
15705 export CONFIG_SHELL
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15714 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15715 ## Running $as_me. ##
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15728 # The HP-UX ksh and POSIX shell print the target directory to stdout
15729 # if CDPATH is set.
15730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15732 sed_quote_subst='$sed_quote_subst'
15733 double_quote_subst='$double_quote_subst'
15734 delay_variable_subst='$delay_variable_subst'
15735 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15736 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15737 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15739 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15740 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15741 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15742 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15767 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15790 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"`'
15791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15825 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15826 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15827 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15828 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15829 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15830 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15831 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15832 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15833 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15834 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15835 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15836 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15837 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15838 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15839 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15840 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15841 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15842 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15843 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15844 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15845 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15846 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15847 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15848 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15849 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15850 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15851 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15852 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15853 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15854 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15855 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15856 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15857 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15858 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15859 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15860 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15861 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15862 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15863 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15864 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15867 LTCFLAGS='$LTCFLAGS'
15868 compiler='$compiler_DEFAULT'
15870 # A function that is used when there is no print builtin or printf.
15871 func_fallback_echo ()
15873 eval 'cat <<_LTECHO_EOF
15878 # Quote evaled strings.
15892 deplibs_check_method \
15897 sharedlib_from_linklib_cmd \
15900 archiver_list_spec \
15906 lt_cv_sys_global_symbol_pipe \
15907 lt_cv_sys_global_symbol_to_cdecl \
15908 lt_cv_sys_global_symbol_to_c_name_address \
15909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15910 nm_file_list_spec \
15911 lt_prog_compiler_no_builtin_flag \
15912 lt_prog_compiler_pic \
15913 lt_prog_compiler_wl \
15914 lt_prog_compiler_static \
15915 lt_cv_prog_compiler_c_o \
15924 export_dynamic_flag_spec \
15925 whole_archive_flag_spec \
15926 compiler_needs_object \
15928 allow_undefined_flag \
15929 no_undefined_flag \
15930 hardcode_libdir_flag_spec \
15931 hardcode_libdir_flag_spec_ld \
15932 hardcode_libdir_separator \
15936 variables_saved_for_relink \
15938 library_names_spec \
15940 install_override_mode \
15944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945 *[\\\\\\\`\\"\\\$]*)
15946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15954 # Double-quote double-evaled strings.
15955 for var in reload_cmds \
15956 old_postinstall_cmds \
15957 old_postuninstall_cmds \
15959 extract_expsyms_cmds \
15960 old_archive_from_new_cmds \
15961 old_archive_from_expsyms_cmds \
15963 archive_expsym_cmds \
15965 module_expsym_cmds \
15966 export_symbols_cmds \
15970 postuninstall_cmds \
15972 sys_lib_search_path_spec \
15973 sys_lib_dlsearch_path_spec; do
15974 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15975 *[\\\\\\\`\\"\\\$]*)
15976 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15979 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15984 ac_aux_dir='$ac_aux_dir'
15985 xsi_shell='$xsi_shell'
15986 lt_shell_append='$lt_shell_append'
15988 # See if we are running on zsh, and set the options which allow our
15989 # commands through without removal of \ escapes INIT.
15990 if test -n "\${ZSH_VERSION+set}" ; then
15991 setopt NO_GLOB_SUBST
15997 TIMESTAMP='$TIMESTAMP'
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16008 # Handling of arguments.
16009 for ac_config_target in $ac_config_targets
16011 case $ac_config_target in
16012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16014 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16015 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16016 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16017 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16019 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16020 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16021 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16023 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16028 # If the user did not use the arguments to specify the items to instantiate,
16029 # then the envvar interface is used. Set only those that are not.
16030 # We use the long form for the default assignment because of an extremely
16031 # bizarre bug on SunOS 4.1.3.
16032 if $ac_need_defaults; then
16033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16038 # Have a temporary directory for convenience. Make it in the build tree
16039 # simply because there is no reason against having it here, and in addition,
16040 # creating and moving files from /tmp can sometimes cause problems.
16041 # Hook for its removal unless debugging.
16042 # Note that there is a small window in which the directory will not be cleaned:
16043 # after its creation but before its name has been assigned to `$tmp'.
16047 trap 'exit_status=$?
16048 : "${ac_tmp:=$tmp}"
16049 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16051 trap 'as_fn_exit 1' 1 2 13 15
16053 # Create a (secure) tmp directory for tmp files.
16056 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16060 tmp=./conf$$-$RANDOM
16061 (umask 077 && mkdir "$tmp")
16062 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16065 # Set up the scripts for CONFIG_FILES section.
16066 # No need to generate them if there are no CONFIG_FILES.
16067 # This happens for instance with `./config.status config.h'.
16068 if test -n "$CONFIG_FILES"; then
16071 ac_cr=`echo X | tr X '\015'`
16072 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16073 # But we know of no other shell where ac_cr would be empty at this
16074 # point, so we can use a bashism as a fallback.
16075 if test "x$ac_cr" = x; then
16076 eval ac_cr=\$\'\\r\'
16078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16082 ac_cs_awk_cr=$ac_cr
16085 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16090 echo "cat >conf$$subs.awk <<_ACEOF" &&
16091 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16093 } >conf$$subs.sh ||
16094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16095 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16097 for ac_last_try in false false false false false :; do
16098 . ./conf$$subs.sh ||
16099 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16101 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16102 if test $ac_delim_n = $ac_delim_num; then
16104 elif $ac_last_try; then
16105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16110 rm -f conf$$subs.sh
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16117 s/^/S["/; s/!.*/"]=/
16127 s/\(.\{148\}\)..*/\1/
16129 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16134 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16141 s/\(.\{148\}\)..*/\1/
16143 s/["\\]/\\&/g; s/^/"/; s/$/"/
16147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16152 ' <conf$$subs.awk | sed '
16157 ' >>$CONFIG_STATUS || ac_write_fail=1
16158 rm -f conf$$subs.awk
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16162 for (key in S) S_is_set[key] = 1
16168 nfields = split(line, field, "@")
16170 len = length(field[1])
16171 for (i = 2; i < nfields; i++) {
16173 keylen = length(key)
16174 if (S_is_set[key]) {
16176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16177 len += length(value) + length(field[++i])
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16193 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16194 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16197 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16198 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16199 # trailing colons and then remove the whole line if VPATH becomes empty
16200 # (actually we leave an empty line to preserve line numbers).
16201 if test "x$srcdir" = x.; then
16202 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 fi # test -n "$CONFIG_FILES"
16223 # Set up the scripts for CONFIG_HEADERS section.
16224 # No need to generate them if there are no CONFIG_HEADERS.
16225 # This happens for instance with `./config.status Makefile'.
16226 if test -n "$CONFIG_HEADERS"; then
16227 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16231 # Transform confdefs.h into an awk script `defines.awk', embedded as
16232 # here-document in config.status, that substitutes the proper values into
16233 # config.h.in to produce config.h.
16235 # Create a delimiter string that does not exist in confdefs.h, to ease
16236 # handling of long lines.
16238 for ac_last_try in false false :; do
16239 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16240 if test -z "$ac_tt"; then
16242 elif $ac_last_try; then
16243 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16245 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16249 # For the awk script, D is an array of macro values keyed by name,
16250 # likewise P contains macro parameters if any. Preserve backslash
16251 # newline sequences.
16253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16255 s/.\{148\}/&'"$ac_delim"'/g
16258 s/^[ ]*#[ ]*define[ ][ ]*/ /
16265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16267 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16272 D["\1"]=" \3\\\\\\n"\\/p
16274 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16279 s/.\{148\}/&'"$ac_delim"'/g
16284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16289 ' <confdefs.h | sed '
16290 s/'"$ac_delim"'/"\\\
16291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 for (key in D) D_is_set[key] = 1
16297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16299 split(line, arg, " ")
16300 if (arg[1] == "#") {
16304 defundef = substr(arg[1], 2)
16307 split(mac1, mac2, "(") #)
16309 prefix = substr(line, 1, index(line, defundef) - 1)
16310 if (D_is_set[macro]) {
16311 # Preserve the white space surrounding the "#".
16312 print prefix "define", macro P[macro] D[macro]
16315 # Replace #undef with comments. This is necessary, for example,
16316 # in the case of _POSIX_SOURCE, which is predefined and required
16317 # on some systems where configure will not decide to define it.
16318 if (defundef == "undef") {
16319 print "/*", prefix defundef, macro, "*/"
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16329 fi # test -n "$CONFIG_HEADERS"
16332 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16337 :[FHLC]) ac_mode=$ac_tag; continue;;
16339 case $ac_mode$ac_tag in
16341 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16342 :[FH]-) ac_tag=-:-;;
16343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16360 -) ac_f="$ac_tmp/stdin";;
16361 *) # Look for the file first in the build tree, then in the source tree
16362 # (if the path is not absolute). The absolute path cannot be DOS-style,
16363 # because $ac_f cannot contain `:'.
16367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16369 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16371 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16372 as_fn_append ac_file_inputs " '$ac_f'"
16375 # Let's still pretend it is `configure' which instantiates (i.e., don't
16376 # use $as_me), people would be surprised to read:
16377 # /* config.h. Generated by config.status. */
16378 configure_input='Generated from '`
16379 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16381 if test x"$ac_file" != x-; then
16382 configure_input="$ac_file. $configure_input"
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16384 $as_echo "$as_me: creating $ac_file" >&6;}
16386 # Neutralize special characters interpreted by sed in replacement strings.
16387 case $configure_input in #(
16388 *\&* | *\|* | *\\* )
16389 ac_sed_conf_input=`$as_echo "$configure_input" |
16390 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16391 *) ac_sed_conf_input=$configure_input;;
16395 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16401 ac_dir=`$as_dirname -- "$ac_file" ||
16402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16403 X"$ac_file" : 'X\(//\)[^/]' \| \
16404 X"$ac_file" : 'X\(//\)$' \| \
16405 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16406 $as_echo X"$ac_file" |
16407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16411 /^X\(\/\/\)[^/].*/{
16424 as_dir="$ac_dir"; as_fn_mkdir_p
16428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16431 # A ".." for each directory in $ac_dir_suffix.
16432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16433 case $ac_top_builddir_sub in
16434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16438 ac_abs_top_builddir=$ac_pwd
16439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16440 # for backward compatibility:
16441 ac_top_builddir=$ac_top_build_prefix
16444 .) # We are building in place.
16446 ac_top_srcdir=$ac_top_builddir_sub
16447 ac_abs_top_srcdir=$ac_pwd ;;
16448 [\\/]* | ?:[\\/]* ) # Absolute name.
16449 ac_srcdir=$srcdir$ac_dir_suffix;
16450 ac_top_srcdir=$srcdir
16451 ac_abs_top_srcdir=$srcdir ;;
16452 *) # Relative name.
16453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16454 ac_top_srcdir=$ac_top_build_prefix$srcdir
16455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16467 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16468 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16470 ac_MKDIR_P=$MKDIR_P
16472 [\\/$]* | ?:[\\/]* ) ;;
16473 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16478 # If the template does not know about datarootdir, expand it.
16479 # FIXME: This hack should be removed a few years after 2.60.
16480 ac_datarootdir_hack=; ac_datarootdir_seen=
16491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16492 *datarootdir*) ac_datarootdir_seen=yes;;
16493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16495 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16498 ac_datarootdir_hack='
16499 s&@datadir@&$datadir&g
16500 s&@docdir@&$docdir&g
16501 s&@infodir@&$infodir&g
16502 s&@localedir@&$localedir&g
16503 s&@mandir@&$mandir&g
16504 s&\\\${datarootdir}&$datarootdir&g' ;;
16508 # Neutralize VPATH when `$srcdir' = `.'.
16509 # Shell code in configure.ac might set extrasub.
16510 # FIXME: do we really want to maintain this feature?
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 ac_sed_extra="$ac_vpsub
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16518 s|@configure_input@|$ac_sed_conf_input|;t t
16519 s&@top_builddir@&$ac_top_builddir_sub&;t t
16520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16521 s&@srcdir@&$ac_srcdir&;t t
16522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16523 s&@top_srcdir@&$ac_top_srcdir&;t t
16524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16525 s&@builddir@&$ac_builddir&;t t
16526 s&@abs_builddir@&$ac_abs_builddir&;t t
16527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16528 s&@INSTALL@&$ac_INSTALL&;t t
16529 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16530 $ac_datarootdir_hack
16532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16533 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16536 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16537 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16538 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined. Please make sure it is defined" >&5
16541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16542 which seems to be undefined. Please make sure it is defined" >&2;}
16544 rm -f "$ac_tmp/stdin"
16546 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16547 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16555 if test x"$ac_file" != x-; then
16557 $as_echo "/* $configure_input */" \
16558 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16559 } >"$ac_tmp/config.h" \
16560 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16561 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16566 mv "$ac_tmp/config.h" "$ac_file" \
16567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16570 $as_echo "/* $configure_input */" \
16571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16572 || as_fn_error $? "could not create -" "$LINENO" 5
16574 # Compute "$ac_file"'s index in $config_headers.
16577 for _am_header in $config_headers :; do
16578 case $_am_header in
16579 $_am_arg | $_am_arg:* )
16582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587 X"$_am_arg" : 'X\(//\)[^/]' \| \
16588 X"$_am_arg" : 'X\(//\)$' \| \
16589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16590 $as_echo X"$_am_arg" |
16591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16595 /^X\(\/\/\)[^/].*/{
16607 s/.*/./; q'`/stamp-h$_am_stamp_count
16610 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16611 $as_echo "$as_me: executing $ac_file commands" >&6;}
16616 case $ac_file$ac_mode in
16617 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16618 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16619 # are listed without --file. Let's play safe and only enable the eval
16620 # if we detect the quoting.
16621 case $CONFIG_FILES in
16622 *\'*) eval set x "$CONFIG_FILES" ;;
16623 *) set x $CONFIG_FILES ;;
16628 # Strip MF so we end up with the name of the file.
16629 mf=`echo "$mf" | sed -e 's/:.*$//'`
16630 # Check whether this is an Automake generated Makefile or not.
16631 # We used to match only the files named `Makefile.in', but
16632 # some people rename them; so instead we look at the file content.
16633 # Grep'ing the first line is not enough: some people post-process
16634 # each Makefile.in and add a new line on top of each file to say so.
16635 # Grep'ing the whole file is not good either: AIX grep has a line
16636 # limit of 2048, but all sed's we know have understand at least 4000.
16637 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16638 dirpart=`$as_dirname -- "$mf" ||
16639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640 X"$mf" : 'X\(//\)[^/]' \| \
16641 X"$mf" : 'X\(//\)$' \| \
16642 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16648 /^X\(\/\/\)[^/].*/{
16664 # Extract the definition of DEPDIR, am__include, and am__quote
16665 # from the Makefile without running `make'.
16666 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16667 test -z "$DEPDIR" && continue
16668 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16669 test -z "am__include" && continue
16670 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16671 # When using ansi2knr, U may be empty or an underscore; expand it
16672 U=`sed -n 's/^U = //p' < "$mf"`
16673 # Find all dependency output files, they are included files with
16674 # $(DEPDIR) in their names. We invoke sed twice because it is the
16675 # simplest approach to changing $(DEPDIR) to its actual value in the
16677 for file in `sed -n "
16678 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16679 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16680 # Make sure the directory exists.
16681 test -f "$dirpart/$file" && continue
16682 fdir=`$as_dirname -- "$file" ||
16683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684 X"$file" : 'X\(//\)[^/]' \| \
16685 X"$file" : 'X\(//\)$' \| \
16686 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16687 $as_echo X"$file" |
16688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16692 /^X\(\/\/\)[^/].*/{
16705 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16706 # echo "creating $dirpart/$file"
16707 echo '# dummy' > "$dirpart/$file"
16714 # See if we are running on zsh, and set the options which allow our
16715 # commands through without removal of \ escapes.
16716 if test -n "${ZSH_VERSION+set}" ; then
16717 setopt NO_GLOB_SUBST
16720 cfgfile="${ofile}T"
16721 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16724 cat <<_LT_EOF >> "$cfgfile"
16727 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16728 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16732 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16733 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16735 # Written by Gordon Matzigkeit, 1996
16737 # This file is part of GNU Libtool.
16739 # GNU Libtool is free software; you can redistribute it and/or
16740 # modify it under the terms of the GNU General Public License as
16741 # published by the Free Software Foundation; either version 2 of
16742 # the License, or (at your option) any later version.
16744 # As a special exception to the GNU General Public License,
16745 # if you distribute this file as part of a program or library that
16746 # is built using GNU Libtool, you may include this file under the
16747 # same distribution terms that you use for the rest of that program.
16749 # GNU Libtool is distributed in the hope that it will be useful,
16750 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16751 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16752 # GNU General Public License for more details.
16754 # You should have received a copy of the GNU General Public License
16755 # along with GNU Libtool; see the file COPYING. If not, a copy
16756 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16757 # obtained by writing to the Free Software Foundation, Inc.,
16758 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16761 # The names of the tagged configurations supported by this script.
16764 # ### BEGIN LIBTOOL CONFIG
16766 # Which release of libtool.m4 was used?
16767 macro_version=$macro_version
16768 macro_revision=$macro_revision
16770 # Whether or not to build shared libraries.
16771 build_libtool_libs=$enable_shared
16773 # Whether or not to build static libraries.
16774 build_old_libs=$enable_static
16776 # What type of objects to build.
16779 # Whether or not to optimize for fast installation.
16780 fast_install=$enable_fast_install
16782 # Shell to use when invoking shell scripts.
16785 # An echo program that protects backslashes.
16789 host_alias=$host_alias
16793 # The build system.
16794 build_alias=$build_alias
16798 # A sed program that does not truncate output.
16801 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16802 Xsed="\$SED -e 1s/^X//"
16804 # A grep program that handles long lines.
16810 # A literal string matcher.
16813 # A BSD- or MS-compatible name lister.
16816 # Whether we need soft or hard links.
16819 # What is the maximum length of a command?
16820 max_cmd_len=$max_cmd_len
16822 # Object file suffix (normally "o").
16825 # Executable file suffix (normally "").
16828 # whether the shell understands "unset".
16831 # turn spaces into newlines.
16834 # turn newlines into spaces.
16837 # convert \$build file names to \$host format.
16838 to_host_file_cmd=$lt_cv_to_host_file_cmd
16840 # convert \$build files to toolchain format.
16841 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16843 # An object symbol dumper.
16844 OBJDUMP=$lt_OBJDUMP
16846 # Method to check whether dependent libraries are shared objects.
16847 deplibs_check_method=$lt_deplibs_check_method
16849 # Command to use when deplibs_check_method = "file_magic".
16850 file_magic_cmd=$lt_file_magic_cmd
16852 # How to find potential files when deplibs_check_method = "file_magic".
16853 file_magic_glob=$lt_file_magic_glob
16855 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16856 want_nocaseglob=$lt_want_nocaseglob
16858 # DLL creation program.
16859 DLLTOOL=$lt_DLLTOOL
16861 # Command to associate shared and link libraries.
16862 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16867 # Flags to create an archive.
16868 AR_FLAGS=$lt_AR_FLAGS
16870 # How to feed a file listing to the archiver.
16871 archiver_list_spec=$lt_archiver_list_spec
16873 # A symbol stripping program.
16876 # Commands used to install an old-style archive.
16878 old_postinstall_cmds=$lt_old_postinstall_cmds
16879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16881 # Whether to use a lock for old archive extraction.
16882 lock_old_archive_extraction=$lock_old_archive_extraction
16887 # LTCC compiler flags.
16888 LTCFLAGS=$lt_CFLAGS
16890 # Take the output of nm and produce a listing of raw symbols and C names.
16891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16893 # Transform the output of nm in a proper C declaration.
16894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16896 # Transform the output of nm in a C name address pair.
16897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16899 # Transform the output of nm in a C name address pair when lib prefix is needed.
16900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16902 # Specify filename containing input files for \$NM.
16903 nm_file_list_spec=$lt_nm_file_list_spec
16905 # The root where to search for dependent libraries,and in which our libraries should be installed.
16906 lt_sysroot=$lt_sysroot
16908 # The name of the directory that contains temporary libtool files.
16911 # Used to examine libraries when file_magic_cmd begins with "file".
16912 MAGIC_CMD=$MAGIC_CMD
16914 # Must we lock files when doing compilation?
16915 need_locks=$lt_need_locks
16918 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16921 DSYMUTIL=$lt_DSYMUTIL
16923 # Tool to change global to local symbols on Mac OS X.
16926 # Tool to manipulate fat objects and archives on Mac OS X.
16929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16933 OTOOL64=$lt_OTOOL64
16935 # Old archive suffix (normally "a").
16938 # Shared library suffix (normally ".so").
16939 shrext_cmds=$lt_shrext_cmds
16941 # The commands to extract the exported symbol list from a shared archive.
16942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16944 # Variables whose values should be saved in libtool wrapper scripts and
16945 # restored at link time.
16946 variables_saved_for_relink=$lt_variables_saved_for_relink
16948 # Do we need the "lib" prefix for modules?
16949 need_lib_prefix=$need_lib_prefix
16951 # Do we need a version for libraries?
16952 need_version=$need_version
16954 # Library versioning type.
16955 version_type=$version_type
16957 # Shared library runtime path variable.
16958 runpath_var=$runpath_var
16960 # Shared library path variable.
16961 shlibpath_var=$shlibpath_var
16963 # Is shlibpath searched before the hard-coded library search path?
16964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16966 # Format of library name prefix.
16967 libname_spec=$lt_libname_spec
16969 # List of archive names. First name is the real one, the rest are links.
16970 # The last name is the one that the linker finds with -lNAME
16971 library_names_spec=$lt_library_names_spec
16973 # The coded name of the library, if different from the real name.
16974 soname_spec=$lt_soname_spec
16976 # Permission mode override for installation of shared libraries.
16977 install_override_mode=$lt_install_override_mode
16979 # Command to use after installation of a shared archive.
16980 postinstall_cmds=$lt_postinstall_cmds
16982 # Command to use after uninstallation of a shared archive.
16983 postuninstall_cmds=$lt_postuninstall_cmds
16985 # Commands used to finish a libtool library installation in a directory.
16986 finish_cmds=$lt_finish_cmds
16988 # As "finish_cmds", except a single script fragment to be evaled but
16990 finish_eval=$lt_finish_eval
16992 # Whether we should hardcode library paths into libraries.
16993 hardcode_into_libs=$hardcode_into_libs
16995 # Compile-time system search path for libraries.
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16998 # Run-time system search path for libraries.
16999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17001 # Whether dlopen is supported.
17002 dlopen_support=$enable_dlopen
17004 # Whether dlopen of programs is supported.
17005 dlopen_self=$enable_dlopen_self
17007 # Whether dlopen of statically linked programs is supported.
17008 dlopen_self_static=$enable_dlopen_self_static
17010 # Commands to strip libraries.
17011 old_striplib=$lt_old_striplib
17012 striplib=$lt_striplib
17015 # The linker used to build libraries.
17018 # How to create reloadable object files.
17019 reload_flag=$lt_reload_flag
17020 reload_cmds=$lt_reload_cmds
17022 # Commands used to build an old-style archive.
17023 old_archive_cmds=$lt_old_archive_cmds
17025 # A language specific compiler.
17028 # Is the compiler the GNU compiler?
17031 # Compiler flag to turn off builtin functions.
17032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17034 # Additional compiler flags for building library objects.
17035 pic_flag=$lt_lt_prog_compiler_pic
17037 # How to pass a linker flag through the compiler.
17038 wl=$lt_lt_prog_compiler_wl
17040 # Compiler flag to prevent dynamic linking.
17041 link_static_flag=$lt_lt_prog_compiler_static
17043 # Does compiler simultaneously support -c and -o options?
17044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17046 # Whether or not to add -lc for building shared libraries.
17047 build_libtool_need_lc=$archive_cmds_need_lc
17049 # Whether or not to disallow shared libs when runtime libs are static.
17050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17052 # Compiler flag to allow reflexive dlopens.
17053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17055 # Compiler flag to generate shared objects directly from archives.
17056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17058 # Whether the compiler copes with passing no objects directly.
17059 compiler_needs_object=$lt_compiler_needs_object
17061 # Create an old-style archive from a shared archive.
17062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17064 # Create a temporary old-style archive to link instead of a shared archive.
17065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17067 # Commands used to build a shared archive.
17068 archive_cmds=$lt_archive_cmds
17069 archive_expsym_cmds=$lt_archive_expsym_cmds
17071 # Commands used to build a loadable module if different from building
17072 # a shared archive.
17073 module_cmds=$lt_module_cmds
17074 module_expsym_cmds=$lt_module_expsym_cmds
17076 # Whether we are building with GNU ld or not.
17077 with_gnu_ld=$lt_with_gnu_ld
17079 # Flag that allows shared libraries with undefined symbols to be built.
17080 allow_undefined_flag=$lt_allow_undefined_flag
17082 # Flag that enforces no undefined symbols.
17083 no_undefined_flag=$lt_no_undefined_flag
17085 # Flag to hardcode \$libdir into a binary during linking.
17086 # This must work even if \$libdir does not exist
17087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17089 # If ld is used when linking, flag to hardcode \$libdir into a binary
17090 # during linking. This must work even if \$libdir does not exist.
17091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17093 # Whether we need a single "-rpath" flag with a separated argument.
17094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17097 # DIR into the resulting binary.
17098 hardcode_direct=$hardcode_direct
17100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17101 # DIR into the resulting binary and the resulting library dependency is
17102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17103 # library is relocated.
17104 hardcode_direct_absolute=$hardcode_direct_absolute
17106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17107 # into the resulting binary.
17108 hardcode_minus_L=$hardcode_minus_L
17110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17111 # into the resulting binary.
17112 hardcode_shlibpath_var=$hardcode_shlibpath_var
17114 # Set to "yes" if building a shared library automatically hardcodes DIR
17115 # into the library and all subsequent libraries and executables linked
17117 hardcode_automatic=$hardcode_automatic
17119 # Set to yes if linker adds runtime paths of dependent libraries
17120 # to runtime path list.
17121 inherit_rpath=$inherit_rpath
17123 # Whether libtool must link a program against all its dependency libraries.
17124 link_all_deplibs=$link_all_deplibs
17126 # Set to "yes" if exported symbols are required.
17127 always_export_symbols=$always_export_symbols
17129 # The commands to list exported symbols.
17130 export_symbols_cmds=$lt_export_symbols_cmds
17132 # Symbols that should not be listed in the preloaded symbols.
17133 exclude_expsyms=$lt_exclude_expsyms
17135 # Symbols that must always be exported.
17136 include_expsyms=$lt_include_expsyms
17138 # Commands necessary for linking programs (against libraries) with templates.
17139 prelink_cmds=$lt_prelink_cmds
17141 # Commands necessary for finishing linking programs.
17142 postlink_cmds=$lt_postlink_cmds
17144 # Specify filename containing input files.
17145 file_list_spec=$lt_file_list_spec
17147 # How to hardcode a shared library path into an executable.
17148 hardcode_action=$hardcode_action
17150 # ### END LIBTOOL CONFIG
17156 cat <<\_LT_EOF >> "$cfgfile"
17157 # AIX sometimes has problems with the GCC collect2 program. For some
17158 # reason, if we set the COLLECT_NAMES environment variable, the problems
17159 # vanish in a puff of smoke.
17160 if test "X${COLLECT_NAMES+set}" != Xset; then
17162 export COLLECT_NAMES
17169 ltmain="$ac_aux_dir/ltmain.sh"
17172 # We use sed instead of cat because bash on DJGPP gets confused if
17173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17174 # text mode, it properly converts lines to CR/LF. This bash problem
17175 # is reportedly fixed, but why not run on old versions too?
17176 sed '$q' "$ltmain" >> "$cfgfile" \
17177 || (rm -f "$cfgfile"; exit 1)
17179 if test x"$xsi_shell" = xyes; then
17180 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17184 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17185 \ * ) func_dirname_result="${3}" ;;\
17187 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17188 && mv -f "$cfgfile.tmp" "$cfgfile" \
17189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17190 test 0 -eq $? || _lt_function_replace_fail=:
17193 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17196 \ func_basename_result="${1##*/}"\
17197 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17198 && mv -f "$cfgfile.tmp" "$cfgfile" \
17199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17200 test 0 -eq $? || _lt_function_replace_fail=:
17203 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17204 func_dirname_and_basename ()\
17207 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17208 \ * ) func_dirname_result="${3}" ;;\
17210 \ func_basename_result="${1##*/}"\
17211 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17212 && mv -f "$cfgfile.tmp" "$cfgfile" \
17213 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17214 test 0 -eq $? || _lt_function_replace_fail=:
17217 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17220 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17221 \ # positional parameters, so assign one to ordinary parameter first.\
17222 \ func_stripname_result=${3}\
17223 \ func_stripname_result=${func_stripname_result#"${1}"}\
17224 \ func_stripname_result=${func_stripname_result%"${2}"}\
17225 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17226 && mv -f "$cfgfile.tmp" "$cfgfile" \
17227 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17228 test 0 -eq $? || _lt_function_replace_fail=:
17231 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17232 func_split_long_opt ()\
17234 \ func_split_long_opt_name=${1%%=*}\
17235 \ func_split_long_opt_arg=${1#*=}\
17236 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17237 && mv -f "$cfgfile.tmp" "$cfgfile" \
17238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17242 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17243 func_split_short_opt ()\
17245 \ func_split_short_opt_arg=${1#??}\
17246 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17247 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17248 && mv -f "$cfgfile.tmp" "$cfgfile" \
17249 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17250 test 0 -eq $? || _lt_function_replace_fail=:
17253 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17257 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17258 \ *) func_lo2o_result=${1} ;;\
17260 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17261 && mv -f "$cfgfile.tmp" "$cfgfile" \
17262 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17263 test 0 -eq $? || _lt_function_replace_fail=:
17266 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17269 func_xform_result=${1%.*}.lo\
17270 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17271 && mv -f "$cfgfile.tmp" "$cfgfile" \
17272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17273 test 0 -eq $? || _lt_function_replace_fail=:
17276 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17279 func_arith_result=$(( $* ))\
17280 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17281 && mv -f "$cfgfile.tmp" "$cfgfile" \
17282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17283 test 0 -eq $? || _lt_function_replace_fail=:
17286 sed -e '/^func_len ()$/,/^} # func_len /c\
17289 func_len_result=${#1}\
17290 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17291 && mv -f "$cfgfile.tmp" "$cfgfile" \
17292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17297 if test x"$lt_shell_append" = xyes; then
17298 sed -e '/^func_append ()$/,/^} # func_append /c\
17301 eval "${1}+=\\${2}"\
17302 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17303 && mv -f "$cfgfile.tmp" "$cfgfile" \
17304 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17308 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17309 func_append_quoted ()\
17311 \ func_quote_for_eval "${2}"\
17312 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17313 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17314 && mv -f "$cfgfile.tmp" "$cfgfile" \
17315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316 test 0 -eq $? || _lt_function_replace_fail=:
17319 # Save a `func_append' function call where possible by direct use of '+='
17320 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17321 && mv -f "$cfgfile.tmp" "$cfgfile" \
17322 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17323 test 0 -eq $? || _lt_function_replace_fail=:
17325 # Save a `func_append' function call even when '+=' is not available
17326 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17327 && mv -f "$cfgfile.tmp" "$cfgfile" \
17328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17329 test 0 -eq $? || _lt_function_replace_fail=:
17332 if test x"$_lt_function_replace_fail" = x":"; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17334 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17338 mv -f "$cfgfile" "$ofile" ||
17339 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17350 ac_clean_files=$ac_clean_files_save
17352 test $ac_write_fail = 0 ||
17353 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17356 # configure is writing to config.log, and then calls config.status.
17357 # config.status does its own redirection, appending to config.log.
17358 # Unfortunately, on DOS this fails, as config.log is still kept open
17359 # by configure, so config.status won't be able to write to it; its
17360 # output is simply discarded. So we exec the FD to /dev/null,
17361 # effectively closing config.log, so it can be properly (re)opened and
17362 # appended to by config.status. When coming back to configure, we
17363 # need to make the FD available again.
17364 if test "$no_create" != yes; then
17366 ac_config_status_args=
17367 test "$silent" = yes &&
17368 ac_config_status_args="$ac_config_status_args --quiet"
17370 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17372 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17373 # would make configure fail if this is the last instruction.
17374 $ac_cs_success || as_fn_exit 1
17376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}