2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
595 ac_unique_file
="event.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='am__EXEEXT_FALSE
635 INSTALL_LIBEVENT_FALSE
636 INSTALL_LIBEVENT_TRUE
655 DEVPOLL_BACKEND_FALSE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
732 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
788 enable_dependency_tracking
790 enable_thread_support
791 enable_malloc_replacement
794 enable_libevent_install
795 enable_libevent_regress
796 enable_function_sections
805 ac_precious_vars
='build_alias
816 # Initialize some variables set by options.
818 ac_init_version
=false
819 ac_unrecognized_opts
=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
830 program_transform_name
=s
,x
,x
,
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir
='${exec_prefix}/bin'
845 sbindir
='${exec_prefix}/sbin'
846 libexecdir
='${exec_prefix}/libexec'
847 datarootdir
='${prefix}/share'
848 datadir
='${datarootdir}'
849 sysconfdir
='${prefix}/etc'
850 sharedstatedir
='${prefix}/com'
851 localstatedir
='${prefix}/var'
852 includedir
='${prefix}/include'
853 oldincludedir
='/usr/include'
854 docdir
='${datarootdir}/doc/${PACKAGE}'
855 infodir
='${datarootdir}/info'
860 libdir
='${exec_prefix}/lib'
861 localedir
='${datarootdir}/locale'
862 mandir
='${datarootdir}/man'
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\
$ac_option
876 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
889 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
892 -build |
--build |
--buil |
--bui |
--bu)
893 ac_prev
=build_alias
;;
894 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
895 build_alias
=$ac_optarg ;;
897 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
898 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
899 ac_prev
=cache_file
;;
900 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
901 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
902 cache_file
=$ac_optarg ;;
905 cache_file
=config.cache
;;
907 -datadir |
--datadir |
--datadi |
--datad)
909 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
910 datadir
=$ac_optarg ;;
912 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
913 |
--dataroo |
--dataro |
--datar)
914 ac_prev
=datarootdir
;;
915 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
916 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
917 datarootdir
=$ac_optarg ;;
919 -disable-* |
--disable-*)
920 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
923 as_fn_error $?
"invalid feature name: $ac_useropt"
924 ac_useropt_orig
=$ac_useropt
925 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
930 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep
=', ';;
933 eval enable_
$ac_useropt=no
;;
935 -docdir |
--docdir |
--docdi |
--doc |
--do)
937 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
940 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
942 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
945 -enable-* |
--enable-*)
946 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
949 as_fn_error $?
"invalid feature name: $ac_useropt"
950 ac_useropt_orig
=$ac_useropt
951 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
956 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep
=', ';;
959 eval enable_
$ac_useropt=\
$ac_optarg ;;
961 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
962 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
963 |
--exec |
--exe |
--ex)
964 ac_prev
=exec_prefix
;;
965 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
966 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
967 |
--exec=* |
--exe=* |
--ex=*)
968 exec_prefix
=$ac_optarg ;;
970 -gas |
--gas |
--ga |
--g)
971 # Obsolete; use --with-gas.
974 -help |
--help |
--hel |
--he |
-h)
976 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
977 ac_init_help
=recursive
;;
978 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
979 ac_init_help
=short
;;
981 -host |
--host |
--hos |
--ho)
982 ac_prev
=host_alias
;;
983 -host=* |
--host=* |
--hos=* |
--ho=*)
984 host_alias
=$ac_optarg ;;
986 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
988 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
990 htmldir
=$ac_optarg ;;
992 -includedir |
--includedir |
--includedi |
--included |
--include \
993 |
--includ |
--inclu |
--incl |
--inc)
994 ac_prev
=includedir
;;
995 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
996 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
997 includedir
=$ac_optarg ;;
999 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1001 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1002 infodir
=$ac_optarg ;;
1004 -libdir |
--libdir |
--libdi |
--libd)
1006 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1007 libdir
=$ac_optarg ;;
1009 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1010 |
--libexe |
--libex |
--libe)
1011 ac_prev
=libexecdir
;;
1012 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1013 |
--libexe=* |
--libex=* |
--libe=*)
1014 libexecdir
=$ac_optarg ;;
1016 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1017 ac_prev
=localedir
;;
1018 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1019 localedir
=$ac_optarg ;;
1021 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1022 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1023 ac_prev
=localstatedir
;;
1024 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1025 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1026 localstatedir
=$ac_optarg ;;
1028 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1030 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1031 mandir
=$ac_optarg ;;
1033 -nfp |
--nfp |
--nf)
1034 # Obsolete; use --without-fp.
1037 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1038 |
--no-cr |
--no-c |
-n)
1041 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1042 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1045 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1046 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1047 |
--oldin |
--oldi |
--old |
--ol |
--o)
1048 ac_prev
=oldincludedir
;;
1049 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1050 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1051 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1052 oldincludedir
=$ac_optarg ;;
1054 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1056 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1057 prefix
=$ac_optarg ;;
1059 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1060 |
--program-pre |
--program-pr |
--program-p)
1061 ac_prev
=program_prefix
;;
1062 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1063 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1064 program_prefix
=$ac_optarg ;;
1066 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1067 |
--program-suf |
--program-su |
--program-s)
1068 ac_prev
=program_suffix
;;
1069 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1070 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1071 program_suffix
=$ac_optarg ;;
1073 -program-transform-name |
--program-transform-name \
1074 |
--program-transform-nam |
--program-transform-na \
1075 |
--program-transform-n |
--program-transform- \
1076 |
--program-transform |
--program-transfor \
1077 |
--program-transfo |
--program-transf \
1078 |
--program-trans |
--program-tran \
1079 |
--progr-tra |
--program-tr |
--program-t)
1080 ac_prev
=program_transform_name
;;
1081 -program-transform-name=* |
--program-transform-name=* \
1082 |
--program-transform-nam=* |
--program-transform-na=* \
1083 |
--program-transform-n=* |
--program-transform-=* \
1084 |
--program-transform=* |
--program-transfor=* \
1085 |
--program-transfo=* |
--program-transf=* \
1086 |
--program-trans=* |
--program-tran=* \
1087 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1088 program_transform_name
=$ac_optarg ;;
1090 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1092 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1093 pdfdir
=$ac_optarg ;;
1095 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1097 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1100 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1101 |
-silent |
--silent |
--silen |
--sile |
--sil)
1104 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1106 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1108 sbindir
=$ac_optarg ;;
1110 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1111 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1112 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1114 ac_prev
=sharedstatedir
;;
1115 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1116 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1117 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1119 sharedstatedir
=$ac_optarg ;;
1121 -site |
--site |
--sit)
1123 -site=* |
--site=* |
--sit=*)
1126 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1128 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1129 srcdir
=$ac_optarg ;;
1131 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1132 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1133 ac_prev
=sysconfdir
;;
1134 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1135 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1136 sysconfdir
=$ac_optarg ;;
1138 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1139 ac_prev
=target_alias
;;
1140 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1141 target_alias
=$ac_optarg ;;
1143 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1146 -version |
--version |
--versio |
--versi |
--vers |
-V)
1147 ac_init_version
=: ;;
1150 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1153 as_fn_error $?
"invalid package name: $ac_useropt"
1154 ac_useropt_orig
=$ac_useropt
1155 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep
=', ';;
1163 eval with_
$ac_useropt=\
$ac_optarg ;;
1165 -without-* |
--without-*)
1166 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1169 as_fn_error $?
"invalid package name: $ac_useropt"
1170 ac_useropt_orig
=$ac_useropt
1171 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1176 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep
=', ';;
1179 eval with_
$ac_useropt=no
;;
1182 # Obsolete; use --with-x.
1185 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1186 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1187 ac_prev
=x_includes
;;
1188 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1189 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1190 x_includes
=$ac_optarg ;;
1192 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1193 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1194 ac_prev
=x_libraries
;;
1195 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1196 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1197 x_libraries
=$ac_optarg ;;
1199 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1204 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1208 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1210 eval $ac_envvar=\
$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 if test -n "$ac_prev"; then
1225 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $?
"missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 # Check all directory arguments for consistency.
1238 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val
=\$
$ac_var
1244 # Remove trailing slashes.
1247 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\
$ac_val;;
1250 # Be sure to have absolute directory names.
1252 [\\/$
]* | ?
:[\\/]* ) continue;;
1253 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1255 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1263 target
=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x
; then
1267 if test "x$build_alias" = x
; then
1268 cross_compiling
=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1275 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1277 test "$silent" = yes && exec 6>/dev
/null
1280 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di
=`ls -di .` &&
1282 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $?
"working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $?
"pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted
=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir
=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1320 ac_srcdir_defaulted
=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1324 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var
in $ac_precious_vars; do
1341 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1343 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1417 --build=BUILD configure
for building on BUILD
[guessed
]
1418 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1422 if test -n "$ac_init_help"; then
1427 --disable-option-checking ignore unrecognized
--enable/--with options
1428 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1429 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-gcc-warnings enable verbose warnings with GCC
1435 --disable-thread-support
1436 disable support
for threading
1437 --disable-malloc-replacement
1438 disable support
for replacing the memory mgt
1440 --disable-openssl disable support
for openssl encryption
1441 --disable-debug-mode disable support
for running
in debug mode
1442 --disable-libevent-install, disable installation of libevent
1444 --disable-libevent-regress, skip regress
in make check
1446 --enable-function-sections, make static library allow smaller binaries with
--gc-sections
1448 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1449 --enable-static[=PKGS
] build static libraries
[default
=yes]
1450 --enable-fast-install[=PKGS
]
1451 optimize
for fast installation
[default
=yes]
1452 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1455 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1456 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1457 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1459 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1460 --with-sysroot=DIR Search
for dependent libraries within DIR
1461 (or the compiler
's sysroot if not specified).
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1473 Use these variables to override the choices made by `configure' or to
help
1474 it to
find libraries and programs with nonstandard names
/locations.
1476 Report bugs to the package provider.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1490 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1492 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1497 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1500 ac_abs_top_builddir
=$ac_pwd
1501 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir
=$ac_top_build_prefix
1506 .
) # We are building in place.
1508 ac_top_srcdir
=$ac_top_builddir_sub
1509 ac_abs_top_srcdir
=$ac_pwd ;;
1510 [\\/]* | ?
:[\\/]* ) # Absolute name.
1511 ac_srcdir
=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir
=$srcdir
1513 ac_abs_top_srcdir
=$srcdir ;;
1515 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1519 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1540 generated by GNU Autoconf
2.69
1542 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1543 This configure
script is free software
; the Free Software Foundation
1544 gives unlimited permission to copy
, distribute and modify it.
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile
()
1558 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1559 rm -f conftest.
$ac_objext
1560 if { { ac_try
="$ac_compile"
1562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_c_try_compile
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1600 *) ac_try_echo
=$ac_try;;
1602 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 if test -s conftest.err
; then
1607 grep -v '^ *+' conftest.err
>conftest.er1
1608 cat conftest.er1
>&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i
&& {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.
$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status
$ac_retval
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1634 rm -f conftest.
$ac_objext conftest
$ac_exeext
1635 if { { ac_try
="$ac_link"
1637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_link
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1691 if ac_fn_c_try_compile "$LINENO"; then :
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1715 *) ac_try_echo
=$ac_try;;
1717 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below.
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767 <limits.h> exists even on freestanding compilers. */
1770 # include <limits.h>
1772 # include <assert.h>
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1799 if ac_fn_c_try_link "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext \
1805 conftest$ac_exeext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_func
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1819 ac_fn_c_check_header_mongrel ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if eval \${$3+:} false; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1843 ac_header_compiler=no
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1859 ac_header_preproc=no
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1891 eval "$3=\$ac_header_compiler"
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1902 # ---------------------------------------------
1903 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905 ac_fn_c_check_decl ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 as_decl_name=`echo $2|
sed 's/ *(.*//'`
1909 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1921 #ifndef $as_decl_name
1923 (void) $as_decl_use;
1925 (void) $as_decl_name;
1933 if ac_fn_c_try_compile "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_decl
1947 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948 # --------------------------------------------
1949 # Tries to find the compile-time value of EXPR in a program that includes
1950 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1952 ac_fn_c_compute_int ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if test "$cross_compiling" = yes; then
1956 # Depending upon the size, compute the lo and hi bounds.
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1963 static int test_array [1 - 2 * !(($2) >= 0)];
1965 return test_array [0];
1971 if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1982 return test_array [0];
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_hi=$ac_mid; break
1991 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992 if test $ac_lo -le $ac_mid; then
1996 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) < 0)];
2009 return test_array [0];
2015 if ac_fn_c_try_compile "$LINENO"; then :
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2024 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2026 return test_array [0];
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_lo=$ac_mid; break
2035 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036 if test $ac_mid -le $ac_hi; then
2040 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 # Binary search between lo and hi bounds.
2051 while test "x$ac_lo" != "x$ac_hi"; do
2052 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2070 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2082 static long int longval () { return $2; }
2083 static unsigned long int ulongval () { return $2; }
2090 FILE *f = fopen ("conftest.val", "w");
2095 long int i = longval ();
2098 fprintf (f, "%ld", i);
2102 unsigned long int i = ulongval ();
2105 fprintf (f, "%lu", i);
2107 /* Do not output a trailing newline, as this causes \r\n confusion
2108 on some platforms. */
2109 return ferror (f) || fclose (f) != 0;
2115 if ac_fn_c_try_run "$LINENO"; then :
2116 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_compute_int
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2168 if ac_fn_c_try_compile "$LINENO"; then :
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if eval \${$4+:} false; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2209 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2219 if (sizeof ac_aggr.$3)
2225 if ac_fn_c_try_compile "$LINENO"; then :
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_member
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2244 It was created by $as_me, which was
2245 generated by GNU Autoconf 2.69. Invocation command line was
2257 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2258 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2259 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2260 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2261 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2263 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2264 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2266 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2267 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2268 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2269 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2270 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2271 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2272 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 $as_echo "PATH: $as_dir"
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_must_keep_next=false
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2316 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2334 -* ) ac_must_keep_next=true ;;
2337 as_fn_append ac_configure_args " '$ac_arg'"
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Save into config.log some information that might help in debugging.
2355 $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2359 # The following way of writing the cache mishandles newlines in values,
2361 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2362 eval ac_val=\$$ac_var
2366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 _ | IFS | as_nl) ;; #(
2371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372 *) { eval $ac_var=; unset $ac_var;} ;;
2377 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2378 *${as_nl}ac_space=\ *)
2380 "s/'\''/'\''\\\\'\'''\''/g;
2381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2395 for ac_var in $ac_subst_vars
2397 eval ac_val=\$$ac_var
2399 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 $as_echo "$ac_var='\''$ac_val'\''"
2405 if test -n "$ac_subst_files"; then
2406 $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2410 for ac_var in $ac_subst_files
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2421 if test -s confdefs.h; then
2422 $as_echo "## ----------- ##
2429 test "$ac_signal" != 0 &&
2430 $as_echo "$as_me: caught signal $ac_signal"
2431 $as_echo "$as_me: exit $exit_status"
2433 rm -f core *.core core.conftest.* &&
2434 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2437 for ac_signal in 1 2 13 15; do
2438 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2445 $as_echo "/* confdefs.h */" > confdefs.h
2447 # Predefined preprocessor variables.
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2478 if test -n "$CONFIG_SITE"; then
2479 # We do not want a PATH search for config.site.
2480 case $CONFIG_SITE in #((
2481 -*) ac_site_file1=./$CONFIG_SITE;;
2482 */*) ac_site_file1=$CONFIG_SITE;;
2483 *) ac_site_file1=./$CONFIG_SITE;;
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2500 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site
script $ac_site_file
2503 See \
`config.log' for more details" "$LINENO" 5; }
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special files
2509 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2510 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2524 # Check that the precious variables saved in the cache have kept the same
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529 eval ac_new_set=\$ac_env_${ac_var}_set
2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531 eval ac_new_val=\$ac_env_${ac_var}_value
2532 case $ac_old_set,$ac_new_set in
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2535 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2539 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2543 if test "x$ac_old_val" != "x$ac_new_val"; then
2544 # differences in whitespace do not lead to failure.
2545 ac_old_val_w=`echo x
$ac_old_val`
2546 ac_new_val_w=`echo x
$ac_new_val`
2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2550 ac_cache_corrupted=:
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554 eval $ac_var=\$ac_old_val
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2557 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 # Pass precious variables to config.status.
2563 if test "$ac_new_set" = set; then
2565 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2566 *) ac_arg=$ac_var=$ac_new_val ;;
2568 case " $ac_configure_args " in
2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 if $ac_cache_corrupted; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 am__api_version='1.12'
2598 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599 if test -f "$ac_dir/install-sh"; then
2601 ac_install_sh="$ac_aux_dir/install-sh -c"
2603 elif test -f "$ac_dir/install.sh"; then
2605 ac_install_sh="$ac_aux_dir/install.sh -c"
2607 elif test -f "$ac_dir/shtool"; then
2609 ac_install_sh="$ac_aux_dir/shtool install -c"
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2626 # Find a good install program. We prefer a C program (faster),
2627 # so one script is as good as another. But avoid the broken or
2628 # incompatible versions:
2629 # SysV /etc/install, /usr/sbin/install
2630 # SunOS /usr/etc/install
2631 # IRIX /sbin/install
2633 # AmigaOS /C/install, which installs bootblocks on floppy discs
2634 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2635 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2636 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2637 # OS/2's system install, which has a completely different semantic
2638 # ./install, which can be erroneously created by make from ./install.sh.
2639 # Reject install programs that cannot install multiple files.
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2641 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2642 if test -z "$INSTALL"; then
2643 if ${ac_cv_path_install+:} false; then :
2644 $as_echo_n "(cached) " >&6
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 test -z "$as_dir" && as_dir=.
2651 # Account for people who put trailing slashes in PATH elements.
2652 case $as_dir/ in #((
2653 ./ | .// | /[cC]/* | \
2654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2655 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2658 # OSF1 and SCO ODT 3.0 have their own names for install.
2659 # Don't use installbsd from OSF since it installs stuff as root
2661 for ac_prog in ginstall scoinst install; do
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2664 if test $ac_prog = install &&
2665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2666 # AIX install. It has an incompatible calling convention.
2668 elif test $ac_prog = install &&
2669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670 # program-specific install script used by HP pwplus--don't use.
2673 rm -rf conftest.one conftest.two conftest.dir
2674 echo one > conftest.one
2675 echo two > conftest.two
2677 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2678 test -s conftest.one && test -s conftest.two &&
2679 test -s conftest.dir/conftest.one &&
2680 test -s conftest.dir/conftest.two
2682 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695 rm -rf conftest.one conftest.two conftest.dir
2698 if test "${ac_cv_path_install+set}" = set; then
2699 INSTALL=$ac_cv_path_install
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for INSTALL within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the value is a relative name.
2705 INSTALL=$ac_install_sh
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2709 $as_echo "$INSTALL" >&6; }
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2720 $as_echo_n "checking whether build environment is sane... " >&6; }
2721 # Reject unsafe characters in $srcdir or the absolute working directory
2722 # name. Accept space and tab only in the latter.
2726 *[\\\"\#\$\&\'\`$am_lf]*)
2727 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2730 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2731 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2734 # Do 'set' in a subshell so we don't clobber the current shell's
2735 # arguments. Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2741 for am_try
in 1 2; do
2742 echo "timestamp, slept: $am_has_slept" > conftest.
file
2743 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2744 if test "$*" = "X"; then
2746 set X
`ls -t "$srcdir/configure" conftest.file`
2748 if test "$*" != "X $srcdir/configure conftest.file" \
2749 && test "$*" != "X conftest.file $srcdir/configure"; then
2751 # If neither matched, then we have a broken ls. This can happen
2752 # if, for instance, CONFIG_SHELL is bash and it inherits a
2753 # broken ls alias from the environment. This has actually
2754 # happened. Such a system could not be considered "sane".
2755 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2756 alias in your environment" "$LINENO" 5
2758 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2765 test "$2" = conftest.
file
2771 as_fn_error $?
"newly created file is older than distributed files!
2772 Check your system clock" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775 $as_echo "yes" >&6; }
2776 # If we didn't sleep, we still need to ensure time stamps of config.status and
2777 # generated files are strictly newer.
2779 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2786 test "$program_prefix" != NONE
&&
2787 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2788 # Use a double $ so make ignores it.
2789 test "$program_suffix" != NONE
&&
2790 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2791 # Double any \ or $.
2792 # By default was `s,x,x', remove it if useless.
2793 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2794 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2796 # expand $ac_aux_dir to an absolute path
2797 am_aux_dir
=`cd $ac_aux_dir && pwd`
2799 if test x
"${MISSING+set}" != xset
; then
2802 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2804 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2807 # Use eval to expand $SHELL
2808 if eval "$MISSING --run true"; then
2809 am_missing_run
="$MISSING --run "
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2813 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2816 if test x
"${install_sh}" != xset
; then
2819 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2821 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2825 # Installed binaries are usually stripped using 'strip' when the user
2826 # run "make install-strip". However 'strip' might not be the right
2827 # tool to use in cross-compilation environments, therefore Automake
2828 # will honor the 'STRIP' environment variable to overrule this program.
2829 if test "$cross_compiling" != no
; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2832 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if ${ac_cv_prog_STRIP+:} false
; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$STRIP"; then
2839 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 STRIP
=$ac_cv_prog_STRIP
2859 if test -n "$STRIP"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861 $as_echo "$STRIP" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2869 if test -z "$ac_cv_prog_STRIP"; then
2871 # Extract the first word of "strip", so it can be a program name with args.
2872 set dummy strip
; ac_word
=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2876 $as_echo_n "(cached) " >&6
2878 if test -n "$ac_ct_STRIP"; then
2879 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2885 test -z "$as_dir" && as_dir
=.
2886 for ac_exec_ext
in '' $ac_executable_extensions; do
2887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_ac_ct_STRIP
="strip"
2889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2899 if test -n "$ac_ct_STRIP"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901 $as_echo "$ac_ct_STRIP" >&6; }
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2907 if test "x$ac_ct_STRIP" = x
; then
2910 case $cross_compiling:$ac_tool_warned in
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914 ac_tool_warned
=yes ;;
2919 STRIP
="$ac_cv_prog_STRIP"
2923 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2926 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2927 if test -z "$MKDIR_P"; then
2928 if ${ac_cv_path_mkdir+:} false
; then :
2929 $as_echo_n "(cached) " >&6
2931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2932 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2935 test -z "$as_dir" && as_dir
=.
2936 for ac_prog
in mkdir gmkdir
; do
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940 'mkdir (GNU coreutils) '* | \
2941 'mkdir (coreutils) '* | \
2942 'mkdir (fileutils) '4.1*)
2943 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2953 test -d .
/--version && rmdir .
/--version
2954 if test "${ac_cv_path_mkdir+set}" = set; then
2955 MKDIR_P
="$ac_cv_path_mkdir -p"
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for MKDIR_P within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 MKDIR_P
="$ac_install_sh -d"
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2965 $as_echo "$MKDIR_P" >&6; }
2969 [\\/$
]* | ?
:[\\/]*) ;;
2970 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2973 for ac_prog
in gawk mawk nawk
awk
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy
$ac_prog; ac_word
=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_AWK+:} false
; then :
2980 $as_echo_n "(cached) " >&6
2982 if test -n "$AWK"; then
2983 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir
=.
2990 for ac_exec_ext
in '' $ac_executable_extensions; do
2991 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2992 ac_cv_prog_AWK
="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test -n "$AWK"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3005 $as_echo "$AWK" >&6; }
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$AWK" && break
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3016 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3019 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3020 $as_echo_n "(cached) " >&6
3022 cat >conftest.
make <<\_ACEOF
3025 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3027 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3030 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3032 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3036 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038 $as_echo "yes" >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3043 SET_MAKE
="MAKE=${MAKE-make}"
3046 rm -rf .tst
2>/dev
/null
3047 mkdir .tst
2>/dev
/null
3048 if test -d .tst
; then
3053 rmdir .tst
2>/dev
/null
3055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3057 # is not polluted with repeated "-I."
3058 am__isrc
=' -I$(srcdir)'
3059 # test to see if srcdir already configured
3060 if test -f $srcdir/config.status
; then
3061 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3065 # test whether we have cygpath
3066 if test -z "$CYGPATH_W"; then
3067 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3068 CYGPATH_W
='cygpath -w'
3075 # Define the identity of the package.
3077 VERSION
=2.0.19-stable-dev
3080 cat >>confdefs.h
<<_ACEOF
3081 #define PACKAGE "$PACKAGE"
3085 cat >>confdefs.h
<<_ACEOF
3086 #define VERSION "$VERSION"
3089 # Some tools Automake needs.
3091 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3094 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3097 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3100 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3103 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3105 # We need awk for the "check" target. The system "awk" is bad on
3107 # Always define AMTAR for backward compatibility. Yes, it's still used
3108 # in the wild :-( We should find a proper way to deprecate it ...
3111 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3117 ac_config_headers
="$ac_config_headers config.h"
3120 $as_echo "#define NUMERIC_VERSION 0x02001301" >>confdefs.h
3123 if test "$prefix" = "NONE"; then
3127 # Make sure we can run config.sub.
3128 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3129 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3132 $as_echo_n "checking build system type... " >&6; }
3133 if ${ac_cv_build+:} false
; then :
3134 $as_echo_n "(cached) " >&6
3136 ac_build_alias
=$build_alias
3137 test "x$ac_build_alias" = x
&&
3138 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3139 test "x$ac_build_alias" = x
&&
3140 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3141 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3142 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3146 $as_echo "$ac_cv_build" >&6; }
3147 case $ac_cv_build in
3149 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3152 ac_save_IFS
=$IFS; IFS
='-'
3158 # Remember, the first character of IFS is used to create $*,
3159 # except with old shells:
3162 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3166 $as_echo_n "checking host system type... " >&6; }
3167 if ${ac_cv_host+:} false
; then :
3168 $as_echo_n "(cached) " >&6
3170 if test "x$host_alias" = x
; then
3171 ac_cv_host
=$ac_cv_build
3173 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3174 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3179 $as_echo "$ac_cv_host" >&6; }
3182 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3185 ac_save_IFS
=$IFS; IFS
='-'
3191 # Remember, the first character of IFS is used to create $*,
3192 # except with old shells:
3195 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3202 CFLAGS
="$CFLAGS -D_OSF_SOURCE"
3207 ac_cpp
='$CPP $CPPFLAGS'
3208 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3213 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_CC+:} false
; then :
3217 $as_echo_n "(cached) " >&6
3219 if test -n "$CC"; then
3220 ac_cv_prog_CC
="$CC" # Let the user override the test.
3222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3226 test -z "$as_dir" && as_dir
=.
3227 for ac_exec_ext
in '' $ac_executable_extensions; do
3228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test -n "$CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242 $as_echo "$CC" >&6; }
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3250 if test -z "$ac_cv_prog_CC"; then
3252 # Extract the first word of "gcc", so it can be a program name with args.
3253 set dummy gcc
; ac_word
=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3257 $as_echo_n "(cached) " >&6
3259 if test -n "$ac_ct_CC"; then
3260 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3266 test -z "$as_dir" && as_dir
=.
3267 for ac_exec_ext
in '' $ac_executable_extensions; do
3268 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_ac_ct_CC
="gcc"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3279 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3280 if test -n "$ac_ct_CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3282 $as_echo "$ac_ct_CC" >&6; }
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3288 if test "x$ac_ct_CC" = x
; then
3291 case $cross_compiling:$ac_tool_warned in
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3295 ac_tool_warned
=yes ;;
3303 if test -z "$CC"; then
3304 if test -n "$ac_tool_prefix"; then
3305 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3306 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false
; then :
3310 $as_echo_n "(cached) " >&6
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC
="$CC" # Let the user override the test.
3315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir
=.
3320 for ac_exec_ext
in '' $ac_executable_extensions; do
3321 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3322 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 if test -n "$CC"; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3335 $as_echo "$CC" >&6; }
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3344 if test -z "$CC"; then
3345 # Extract the first word of "cc", so it can be a program name with args.
3346 set dummy cc
; ac_word
=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_CC+:} false
; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$CC"; then
3353 ac_cv_prog_CC
="$CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3363 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3364 ac_prog_rejected
=yes
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test $ac_prog_rejected = yes; then
3376 # We found a bogon in the path, so make sure we never use it.
3377 set dummy
$ac_cv_prog_CC
3379 if test $# != 0; then
3380 # We chose a different compiler from the bogus one.
3381 # However, it has the same basename, so the bogon will be chosen
3382 # first if we set CC to just the basename; use the full file name.
3384 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
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; }
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 for ac_prog
in cl.exe
3404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3405 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false
; then :
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC
="$CC" # Let the user override the test.
3414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir
=.
3419 for ac_exec_ext
in '' $ac_executable_extensions; do
3420 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3441 test -n "$CC" && break
3444 if test -z "$CC"; then
3446 for ac_prog
in cl.exe
3448 # Extract the first word of "$ac_prog", so it can be a program name with args.
3449 set dummy
$ac_prog; ac_word
=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$ac_ct_CC"; then
3456 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir
=.
3463 for ac_exec_ext
in '' $ac_executable_extensions; do
3464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_ac_ct_CC
="$ac_prog"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3476 if test -n "$ac_ct_CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3478 $as_echo "$ac_ct_CC" >&6; }
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3485 test -n "$ac_ct_CC" && break
3488 if test "x$ac_ct_CC" = x
; then
3491 case $cross_compiling:$ac_tool_warned in
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3495 ac_tool_warned
=yes ;;
3504 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506 as_fn_error $?
"no acceptable C compiler found in \$PATH
3507 See \`config.log' for more details" "$LINENO" 5; }
3509 # Provide some information about the compiler.
3510 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3513 for ac_option
in --version -v -V -qversion; do
3514 { { ac_try
="$ac_compiler $ac_option >&5"
3516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3523 if test -s conftest.err; then
3525 ... rest of stderr output deleted ...
3526 10q' conftest.err >conftest.er1
3527 cat conftest.er1 >&5
3529 rm -f conftest.er1 conftest.err
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3545 ac_clean_files_save=$ac_clean_files
3546 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3547 # Try to create an executable without -o first, disregard a.out.
3548 # It will help us diagnose broken compilers, and finding out an intuition
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3551 $as_echo_n "checking whether the C compiler works... " >&6; }
3552 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3554 # The possible output files:
3555 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3558 for ac_file in $ac_files
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3562 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567 if { { ac_try="$ac_link_default"
3569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3570 *) ac_try_echo
=$ac_try;;
3572 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573 $as_echo "$ac_try_echo"; } >&5
3574 (eval "$ac_link_default") 2>&5
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }; then :
3578 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3579 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3580 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3581 # so that the user can short-circuit this test for compilers unknown to
3583 for ac_file
in $ac_files ''
3585 test -f "$ac_file" ||
continue
3587 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3590 # We found the default executable, but exeext='' is most
3594 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3596 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3598 # We set ac_cv_exeext here because the later test for it is not
3599 # safe: cross compilers may not add the suffix if given an `-o'
3600 # argument, so we may need to know it at that point already.
3601 # Even if this section looks crufty: it has the advantage of
3608 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3613 if test -z "$ac_file"; then :
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 $as_echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error
77 "C compiler cannot create executables
3622 See \`config.log' for more details" "$LINENO" 5; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 $as_echo "yes" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3628 $as_echo_n "checking for C compiler default output file name... " >&6; }
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3630 $as_echo "$ac_file" >&6; }
3631 ac_exeext
=$ac_cv_exeext
3633 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3634 ac_clean_files
=$ac_clean_files_save
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3636 $as_echo_n "checking for suffix of executables... " >&6; }
3637 if { { ac_try
="$ac_link"
3639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link") 2>&5
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3649 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3650 # work properly (i.e., refer to `conftest.exe'), while it won't with
3652 for ac_file
in conftest.exe conftest conftest.
*; do
3653 test -f "$ac_file" ||
continue
3655 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3656 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3665 See \`config.log' for more details" "$LINENO" 5; }
3667 rm -f conftest conftest
$ac_cv_exeext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3669 $as_echo "$ac_cv_exeext" >&6; }
3671 rm -f conftest.
$ac_ext
3672 EXEEXT
=$ac_cv_exeext
3674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3680 FILE *f = fopen ("conftest.out", "w");
3681 return ferror (f) || fclose (f) != 0;
3687 ac_clean_files
="$ac_clean_files conftest.out"
3688 # Check that the compiler produces executables we can run. If not, either
3689 # the compiler is broken, or we cross compile.
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3691 $as_echo_n "checking whether we are cross compiling... " >&6; }
3692 if test "$cross_compiling" != yes; then
3693 { { ac_try
="$ac_link"
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_link") 2>&5
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 if { ac_try='./conftest$ac_cv_exeext'
3705 { { case "(($ac_try" in
3706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3707 *) ac_try_echo
=$ac_try;;
3709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 $as_echo "$ac_try_echo"; } >&5
3711 (eval "$ac_try") 2>&5
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }; }; then
3717 if test "$cross_compiling" = maybe
; then
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $?
"cannot run C compiled programs.
3723 If you meant to cross compile, use \`--host'.
3724 See \`config.log' for more details" "$LINENO" 5; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3729 $as_echo "$cross_compiling" >&6; }
3731 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3732 ac_clean_files
=$ac_clean_files_save
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3734 $as_echo_n "checking for suffix of object files... " >&6; }
3735 if ${ac_cv_objext+:} false
; then :
3736 $as_echo_n "(cached) " >&6
3738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3749 rm -f conftest.o conftest.obj
3750 if { { ac_try
="$ac_compile"
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_compile") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; then :
3761 for ac_file in conftest.o conftest.obj conftest.*; do
3762 test -f "$ac_file" || continue;
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770 $as_echo "$as_me: failed program was:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3776 See \
`config.log' for more details" "$LINENO" 5; }
3778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3781 $as_echo "$ac_cv_objext" >&6; }
3782 OBJEXT=$ac_cv_objext
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3786 if ${ac_cv_c_compiler_gnu+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3803 if ac_fn_c_try_compile "$LINENO"; then :
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3813 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3814 if test $ac_compiler_gnu = yes; then
3819 ac_test_CFLAGS=${CFLAGS+set}
3820 ac_save_CFLAGS=$CFLAGS
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3823 if ${ac_cv_prog_cc_g+:} false; then :
3824 $as_echo_n "(cached) " >&6
3826 ac_save_c_werror_flag=$ac_c_werror_flag
3827 ac_c_werror_flag=yes
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 if ac_fn_c_try_compile "$LINENO"; then :
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_c_try_compile "$LINENO"; then :
3859 ac_c_werror_flag=$ac_save_c_werror_flag
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3872 if ac_fn_c_try_compile "$LINENO"; then :
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3883 $as_echo "$ac_cv_prog_cc_g" >&6; }
3884 if test "$ac_test_CFLAGS" = set; then
3885 CFLAGS=$ac_save_CFLAGS
3886 elif test $ac_cv_prog_cc_g = yes; then
3887 if test "$GCC" = yes; then
3893 if test "$GCC" = yes; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3901 if ${ac_cv_prog_cc_c89+:} false; then :
3902 $as_echo_n "(cached) " >&6
3904 ac_cv_prog_cc_c89=no
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3912 struct buf { int x; };
3913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3914 static char *e (p, i)
3920 static char *f (char * (*g) (char **, int), char **p, ...)
3925 s = g (p, va_arg (v,int));
3930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3931 function prototypes and stuff, but not '\xHH' hex character constants.
3932 These don't provoke an error unfortunately, instead are silently treated
3933 as 'x'. The following induces an error, until -std is added to get
3934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3935 array size at least. It's necessary to write '\x00'==0 to get something
3936 that's true only with -std. */
3937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3940 inside strings and character constants. */
3942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3944 int test (int i, double x);
3945 struct s1 {int (*f) (int a);};
3946 struct s2 {int (*f) (double a);};
3947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3961 CC="$ac_save_CC $ac_arg"
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_c89=$ac_arg
3965 rm -f core conftest.err conftest.$ac_objext
3966 test "x$ac_cv_prog_cc_c89" != "xno" && break
3968 rm -f conftest.$ac_ext
3973 case "x$ac_cv_prog_cc_c89" in
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3976 $as_echo "none needed" >&6; } ;;
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3979 $as_echo "unsupported" >&6; } ;;
3981 CC="$CC $ac_cv_prog_cc_c89"
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3985 if test "x$ac_cv_prog_cc_c89" != xno; then :
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 DEPDIR="${am__leading_dot}deps"
3996 ac_config_commands="$ac_config_commands depfiles"
3999 am_make=${MAKE-make}
4000 cat > confinc << 'END'
4002 @echo this is the am__doit target
4005 # If we don't find an include directive, just comment out the code.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4007 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4011 # First try GNU make style include.
4012 echo "include confinc" > confmf
4013 # Ignore all kinds of additional output from 'make'.
4014 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4015 *the\ am__doit\ target*)
4021 # Now try BSD make style include.
4022 if test "$am__include" = "#"; then
4023 echo '.include "confinc"' > confmf
4024 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4025 *the\ am__doit\ target*)
4026 am__include=.include
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4035 $as_echo "$_am_result" >&6; }
4036 rm -f confinc confmf
4038 # Check whether --enable-dependency-tracking was given.
4039 if test "${enable_dependency_tracking+set}" = set; then :
4040 enableval=$enable_dependency_tracking;
4043 if test "x$enable_dependency_tracking" != xno; then
4044 am_depcomp="$ac_aux_dir/depcomp"
4048 if test "x$enable_dependency_tracking" != xno; then
4058 depcc="$CC" am_compiler_list=
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4061 $as_echo_n "checking dependency style of $depcc... " >&6; }
4062 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4066 # We make a subdir and do the tests there. Otherwise we can end up
4067 # making bogus files that we don't know about and never remove. For
4068 # instance it was reported that on HP-UX the gcc test will end up
4069 # making a dummy file named 'D' -- because '-MD' means "put the output
4073 # Copy depcomp to subdir because otherwise we won't find it if we're
4074 # using a relative directory.
4075 cp "$am_depcomp" conftest.dir
4077 # We will build objects and dependencies in a subdirectory because
4078 # it helps to detect inapplicable dependency modes. For instance
4079 # both Tru64's cc and ICC support -MD to output dependencies as a
4080 # side effect of compilation, but ICC will put the dependencies in
4081 # the current directory while Tru64 will put them in the object
4085 am_cv_CC_dependencies_compiler_type=none
4086 if test "$am_compiler_list" = ""; then
4087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4090 case " $depcc " in #(
4091 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4094 for depmode in $am_compiler_list; do
4095 # Setup a source with many dependencies, because some compilers
4096 # like to wrap large dependency lists on column 80 (with \), and
4097 # we should not choose a depcomp mode which is confused by this.
4099 # We need to recreate these files for each test, as the compiler may
4100 # overwrite some of them when testing with obscure command lines.
4101 # This happens at least with the AIX C compiler.
4103 for i in 1 2 3 4 5 6; do
4104 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4105 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4106 # Solaris 10 /bin/sh.
4107 echo '/* dummy */' > sub/conftst$i.h
4109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4112 # mode. It turns out that the SunPro C++ compiler does not properly
4113 # handle '-M -o', and we need to detect this. Also, some Intel
4114 # versions had trouble with output in subdirs.
4115 am__obj=sub/conftest.${OBJEXT-o}
4116 am__minus_obj="-o $am__obj"
4119 # This depmode causes a compiler race in universal mode.
4120 test "$am__universal" = false || continue
4123 # After this tag, mechanisms are not by side-effect, so they'll
4124 # only be used when explicitly requested.
4125 if test "x$enable_dependency_tracking" = xyes; then
4131 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4132 # This compiler won't grok '-c -o', but also, the minuso test has
4133 # not run yet. These depmodes are late enough in the game, and
4134 # so weak that their functioning should not be impacted.
4135 am__obj=conftest.${OBJEXT-o}
4140 if depmode=$depmode \
4141 source=sub/conftest.c object=$am__obj \
4142 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4143 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4144 >/dev/null 2>conftest.err &&
4145 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4146 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4147 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4148 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4149 # icc doesn't choke on unknown options, it will just issue warnings
4150 # or remarks (even with -Werror). So we grep stderr for any message
4151 # that says an option was ignored or not supported.
4152 # When given -MP, icc 7.0 and 7.1 complain thusly:
4153 # icc: Command line warning: ignoring option '-M'; no argument required
4154 # The diagnosis changed in icc 8.0:
4155 # icc: Command line remark: option '-MP' not supported
4156 if (grep 'ignoring option' conftest.err ||
4157 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4158 am_cv_CC_dependencies_compiler_type=$depmode
4167 am_cv_CC_dependencies_compiler_type=none
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4172 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4176 test "x$enable_dependency_tracking" != xno \
4177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179 am__fastdepCC_FALSE='#'
4181 am__fastdepCC_TRUE='#'
4182 am__fastdepCC_FALSE=
4186 if test "x$CC" != xcc; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4188 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4191 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4193 set dummy $CC; ac_cc=`$as_echo "$2" |
4194 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4195 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h. */
4209 # Make sure it works both with $CC and with simple cc.
4210 # We do the test twice because some compilers refuse to overwrite an
4211 # existing .o file with -o, though they will create one.
4212 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4214 if { { case "(($ac_try" in
4215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4216 *) ac_try_echo
=$ac_try;;
4218 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_try") 2>&5
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; } &&
4224 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4225 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4229 $as_echo "$ac_try_echo"; } >&5
4230 (eval "$ac_try") 2>&5
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; };
4235 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4236 if test "x$CC" != xcc; then
4237 # Test first that cc exists at all.
4238 if { ac_try='cc -c conftest.$ac_ext >&5'
4239 { { case "(($ac_try" in
4240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4241 *) ac_try_echo
=$ac_try;;
4243 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_try") 2>&5
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; }; }; then
4249 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4251 if { { case "(($ac_try" in
4252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; } &&
4261 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4263 *) ac_try_echo
=$ac_try;;
4265 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4266 $as_echo "$ac_try_echo"; } >&5
4267 (eval "$ac_try") 2>&5
4269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4270 test $ac_status = 0; };
4275 # cc exists but doesn't like -o.
4276 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4281 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4283 rm -f core conftest
*
4286 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288 $as_echo "yes" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4293 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4297 # FIXME: we rely on the cache variable name because
4298 # there is no other way.
4300 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4301 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4302 if test "$am_t" != yes; then
4303 # Losing compiler, so override with the script.
4304 # FIXME: It is wrong to rewrite CC.
4305 # But if we don't then we get into trouble of one sort or another.
4306 # A longer-term fix would be to have automake use am__CC in this case,
4307 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4308 CC
="$am_aux_dir/compile $CC"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4314 $as_echo_n "checking whether ln -s works... " >&6; }
4316 if test "$LN_S" = "ln -s"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4318 $as_echo "yes" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4321 $as_echo "no, using $LN_S" >&6; }
4328 ac_cpp
='$CPP $CPPFLAGS'
4329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4333 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4334 # On Suns, sometimes $CPP names a directory.
4335 if test -n "$CPP" && test -d "$CPP"; then
4338 if test -z "$CPP"; then
4339 if ${ac_cv_prog_CPP+:} false
; then :
4340 $as_echo_n "(cached) " >&6
4342 # Double quotes because CPP needs to be expanded
4343 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4346 for ac_c_preproc_warn_flag
in '' yes
4348 # Use a header file that comes with gcc, so configuring glibc
4349 # with a fresh cross-compiler works.
4350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4351 # <limits.h> exists even on freestanding compilers.
4352 # On the NeXT, cc -E runs the code through the compiler's parser,
4353 # not just through cpp. "Syntax error" is here to catch this case.
4354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4357 # include <limits.h>
4359 # include <assert.h>
4363 if ac_fn_c_try_cpp
"$LINENO"; then :
4366 # Broken: fails on valid input.
4369 rm -f conftest.err conftest.i conftest.
$ac_ext
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <ac_nonexistent.h>
4377 if ac_fn_c_try_cpp
"$LINENO"; then :
4378 # Broken: success on invalid input.
4381 # Passes both tests.
4385 rm -f conftest.err conftest.i conftest.
$ac_ext
4388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4389 rm -f conftest.i conftest.err conftest.
$ac_ext
4390 if $ac_preproc_ok; then :
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4403 $as_echo "$CPP" >&6; }
4405 for ac_c_preproc_warn_flag
in '' yes
4407 # Use a header file that comes with gcc, so configuring glibc
4408 # with a fresh cross-compiler works.
4409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410 # <limits.h> exists even on freestanding compilers.
4411 # On the NeXT, cc -E runs the code through the compiler's parser,
4412 # not just through cpp. "Syntax error" is here to catch this case.
4413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h. */
4416 # include <limits.h>
4418 # include <assert.h>
4422 if ac_fn_c_try_cpp
"$LINENO"; then :
4425 # Broken: fails on valid input.
4428 rm -f conftest.err conftest.i conftest.
$ac_ext
4430 # OK, works on sane cases. Now check whether nonexistent headers
4431 # can be detected and how.
4432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 #include <ac_nonexistent.h>
4436 if ac_fn_c_try_cpp
"$LINENO"; then :
4437 # Broken: success on invalid input.
4440 # Passes both tests.
4444 rm -f conftest.err conftest.i conftest.
$ac_ext
4447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4448 rm -f conftest.i conftest.err conftest.
$ac_ext
4449 if $ac_preproc_ok; then :
4452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4454 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4455 See \`config.log' for more details" "$LINENO" 5; }
4459 ac_cpp
='$CPP $CPPFLAGS'
4460 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4467 if ${ac_cv_path_GREP+:} false
; then :
4468 $as_echo_n "(cached) " >&6
4470 if test -z "$GREP"; then
4471 ac_path_GREP_found
=false
4472 # Loop through the user's path and test for each of PROGNAME-LIST
4473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4477 test -z "$as_dir" && as_dir
=.
4478 for ac_prog
in grep ggrep
; do
4479 for ac_exec_ext
in '' $ac_executable_extensions; do
4480 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4481 as_fn_executable_p
"$ac_path_GREP" ||
continue
4482 # Check for GNU ac_path_GREP and select it if it is found.
4483 # Check for GNU $ac_path_GREP
4484 case `"$ac_path_GREP" --version 2>&1` in
4486 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4489 $as_echo_n 0123456789 >"conftest.in"
4492 cat "conftest.in" "conftest.in" >"conftest.tmp"
4493 mv "conftest.tmp" "conftest.in"
4494 cp "conftest.in" "conftest.nl"
4495 $as_echo 'GREP' >> "conftest.nl"
4496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4497 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4498 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4499 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4500 # Best one so far, save it but keep looking for a better one
4501 ac_cv_path_GREP
="$ac_path_GREP"
4502 ac_path_GREP_max
=$ac_count
4504 # 10*(2^10) chars as input seems more than enough
4505 test $ac_count -gt 10 && break
4507 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4510 $ac_path_GREP_found && break 3
4515 if test -z "$ac_cv_path_GREP"; then
4516 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4519 ac_cv_path_GREP
=$GREP
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4524 $as_echo "$ac_cv_path_GREP" >&6; }
4525 GREP
="$ac_cv_path_GREP"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4529 $as_echo_n "checking for egrep... " >&6; }
4530 if ${ac_cv_path_EGREP+:} false
; then :
4531 $as_echo_n "(cached) " >&6
4533 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4534 then ac_cv_path_EGREP
="$GREP -E"
4536 if test -z "$EGREP"; then
4537 ac_path_EGREP_found
=false
4538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_prog
in egrep; do
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4547 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4548 # Check for GNU ac_path_EGREP and select it if it is found.
4549 # Check for GNU $ac_path_EGREP
4550 case `"$ac_path_EGREP" --version 2>&1` in
4552 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4555 $as_echo_n 0123456789 >"conftest.in"
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 $as_echo 'EGREP' >> "conftest.nl"
4562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4563 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4564 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_EGREP
="$ac_path_EGREP"
4568 ac_path_EGREP_max
=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4573 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4576 $ac_path_EGREP_found && break 3
4581 if test -z "$ac_cv_path_EGREP"; then
4582 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4585 ac_cv_path_EGREP
=$EGREP
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4591 $as_echo "$ac_cv_path_EGREP" >&6; }
4592 EGREP
="$ac_cv_path_EGREP"
4595 if test $ac_cv_c_compiler_gnu = yes; then
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4597 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4598 if ${ac_cv_prog_gcc_traditional+:} false
; then :
4599 $as_echo_n "(cached) " >&6
4601 ac_pattern
="Autoconf.*'x'"
4602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4609 ac_cv_prog_gcc_traditional
=yes
4611 ac_cv_prog_gcc_traditional
=no
4616 if test $ac_cv_prog_gcc_traditional = no
; then
4617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4624 ac_cv_prog_gcc_traditional
=yes
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4631 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4632 if test $ac_cv_prog_gcc_traditional = yes; then
4633 CC
="$CC -traditional"
4638 # We need to test for at least gcc 2.95 here, because older versions don't
4639 # have -fno-strict-aliasing
4640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4647 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4654 if ac_fn_c_try_compile
"$LINENO"; then :
4659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4661 if test "$GCC" = "yes" ; then
4662 # Enable many gcc warnings by default...
4663 CFLAGS
="$CFLAGS -Wall"
4664 # And disable the strict-aliasing optimization, since it breaks
4665 # our sockaddr-handling code in strange ways.
4666 if test x
$have_gcc295 = xyes
; then
4667 CFLAGS
="$CFLAGS -fno-strict-aliasing"
4671 # OS X Lion started deprecating the system openssl. Let's just disable
4672 # all deprecation warnings on OS X.
4676 CFLAGS
="$CFLAGS -Wno-deprecated-declarations"
4680 # Check whether --enable-gcc-warnings was given.
4681 if test "${enable_gcc_warnings+set}" = set; then :
4682 enableval
=$enable_gcc_warnings;
4685 # Check whether --enable-thread-support was given.
4686 if test "${enable_thread_support+set}" = set; then :
4687 enableval
=$enable_thread_support;
4689 enable_thread_support
=yes
4692 # Check whether --enable-malloc-replacement was given.
4693 if test "${enable_malloc_replacement+set}" = set; then :
4694 enableval
=$enable_malloc_replacement;
4696 enable_malloc_replacement
=yes
4699 # Check whether --enable-openssl was given.
4700 if test "${enable_openssl+set}" = set; then :
4701 enableval
=$enable_openssl;
4706 # Check whether --enable-debug-mode was given.
4707 if test "${enable_debug_mode+set}" = set; then :
4708 enableval
=$enable_debug_mode;
4710 enable_debug_mode
=yes
4713 # Check whether --enable-libevent-install was given.
4714 if test "${enable_libevent_install+set}" = set; then :
4715 enableval
=$enable_libevent_install;
4717 enable_libevent_install
=yes
4720 # Check whether --enable-libevent-regress was given.
4721 if test "${enable_libevent_regress+set}" = set; then :
4722 enableval
=$enable_libevent_regress;
4724 enable_libevent_regress
=yes
4727 # Check whether --enable-function-sections was given.
4728 if test "${enable_function_sections+set}" = set; then :
4729 enableval
=$enable_function_sections;
4731 enable_function_sections
=no
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4739 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4744 macro_version
='2.4.2'
4745 macro_revision
='1.3337'
4759 ltmain
="$ac_aux_dir/ltmain.sh"
4761 # Backslashify metacharacters that are still active within
4762 # double-quoted strings.
4763 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4765 # Same as above, but do not quote variable references.
4766 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4768 # Sed substitution to delay expansion of an escaped shell variable in a
4769 # double_quote_subst'ed string.
4770 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4772 # Sed substitution to delay expansion of an escaped single quote.
4773 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4775 # Sed substitution to avoid accidental globbing in evaled expressions
4776 no_glob_subst
='s/\*/\\\*/g'
4778 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4779 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4780 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4783 $as_echo_n "checking how to print strings... " >&6; }
4784 # Test print first, because it will be a builtin if present.
4785 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4786 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4788 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4791 # Use this function as a fallback that always works.
4792 func_fallback_echo ()
4794 eval 'cat <<_LTECHO_EOF
4798 ECHO='func_fallback_echo
'
4801 # func_echo_all arg...
4802 # Invoke $ECHO with all args, space-separated.
4809 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4810 $as_echo "printf" >&6; } ;;
4811 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4812 $as_echo "print -r" >&6; } ;;
4813 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4814 $as_echo "cat" >&6; } ;;
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4831 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4832 if ${ac_cv_path_SED+:} false; then :
4833 $as_echo_n "(cached) " >&6
4835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4836 for ac_i in 1 2 3 4 5 6 7; do
4837 ac_script="$ac_script$as_nl$ac_script"
4839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4840 { ac_script=; unset ac_script;}
4841 if test -z "$SED"; then
4842 ac_path_SED_found=false
4843 # Loop through the user's path and
test for each of PROGNAME-LIST
4844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4848 test -z "$as_dir" && as_dir
=.
4849 for ac_prog
in sed gsed
; do
4850 for ac_exec_ext
in '' $ac_executable_extensions; do
4851 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4852 as_fn_executable_p
"$ac_path_SED" ||
continue
4853 # Check for GNU ac_path_SED and select it if it is found.
4854 # Check for GNU $ac_path_SED
4855 case `"$ac_path_SED" --version 2>&1` in
4857 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4860 $as_echo_n 0123456789 >"conftest.in"
4863 cat "conftest.in" "conftest.in" >"conftest.tmp"
4864 mv "conftest.tmp" "conftest.in"
4865 cp "conftest.in" "conftest.nl"
4866 $as_echo '' >> "conftest.nl"
4867 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4868 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4869 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4870 if test $ac_count -gt ${ac_path_SED_max-0}; then
4871 # Best one so far, save it but keep looking for a better one
4872 ac_cv_path_SED
="$ac_path_SED"
4873 ac_path_SED_max
=$ac_count
4875 # 10*(2^10) chars as input seems more than enough
4876 test $ac_count -gt 10 && break
4878 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4881 $ac_path_SED_found && break 3
4886 if test -z "$ac_cv_path_SED"; then
4887 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4895 $as_echo "$ac_cv_path_SED" >&6; }
4896 SED
="$ac_cv_path_SED"
4899 test -z "$SED" && SED
=sed
4900 Xsed
="$SED -e 1s/^X//"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4913 $as_echo_n "checking for fgrep... " >&6; }
4914 if ${ac_cv_path_FGREP+:} false
; then :
4915 $as_echo_n "(cached) " >&6
4917 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4918 then ac_cv_path_FGREP
="$GREP -F"
4920 if test -z "$FGREP"; then
4921 ac_path_FGREP_found
=false
4922 # Loop through the user's path and test for each of PROGNAME-LIST
4923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4924 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4927 test -z "$as_dir" && as_dir
=.
4928 for ac_prog
in fgrep
; do
4929 for ac_exec_ext
in '' $ac_executable_extensions; do
4930 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4931 as_fn_executable_p
"$ac_path_FGREP" ||
continue
4932 # Check for GNU ac_path_FGREP and select it if it is found.
4933 # Check for GNU $ac_path_FGREP
4934 case `"$ac_path_FGREP" --version 2>&1` in
4936 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4939 $as_echo_n 0123456789 >"conftest.in"
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
4945 $as_echo 'FGREP' >> "conftest.nl"
4946 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4947 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4948 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4949 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4950 # Best one so far, save it but keep looking for a better one
4951 ac_cv_path_FGREP
="$ac_path_FGREP"
4952 ac_path_FGREP_max
=$ac_count
4954 # 10*(2^10) chars as input seems more than enough
4955 test $ac_count -gt 10 && break
4957 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4960 $ac_path_FGREP_found && break 3
4965 if test -z "$ac_cv_path_FGREP"; then
4966 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969 ac_cv_path_FGREP
=$FGREP
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4975 $as_echo "$ac_cv_path_FGREP" >&6; }
4976 FGREP
="$ac_cv_path_FGREP"
4979 test -z "$GREP" && GREP
=grep
4999 # Check whether --with-gnu-ld was given.
5000 if test "${with_gnu_ld+set}" = set; then :
5001 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5007 if test "$GCC" = yes; then
5008 # Check if gcc -print-prog-name=ld gives a path.
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5010 $as_echo_n "checking for ld used by $CC... " >&6; }
5013 # gcc leaves a trailing carriage return which upsets mingw
5014 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5016 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5019 # Accept absolute paths.
5021 re_direlt
='/[^/][^/]*/\.\./'
5022 # Canonicalize the pathname of ld
5023 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5024 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5025 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5027 test -z "$LD" && LD
="$ac_prog"
5030 # If it fails, then pretend we aren't using GCC.
5034 # If it is relative, then search for the first ld in PATH.
5038 elif test "$with_gnu_ld" = yes; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5040 $as_echo_n "checking for GNU ld... " >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5043 $as_echo_n "checking for non-GNU ld... " >&6; }
5045 if ${lt_cv_path_LD+:} false
; then :
5046 $as_echo_n "(cached) " >&6
5048 if test -z "$LD"; then
5049 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5050 for ac_dir
in $PATH; do
5052 test -z "$ac_dir" && ac_dir
=.
5053 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5054 lt_cv_path_LD
="$ac_dir/$ac_prog"
5055 # Check to see if the program is GNU ld. I'd rather use --version,
5056 # but apparently some variants of GNU ld only accept -v.
5057 # Break only if it was the GNU/non-GNU ld that we prefer.
5058 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5059 *GNU
* |
*'with BFD'*)
5060 test "$with_gnu_ld" != no
&& break
5063 test "$with_gnu_ld" != yes && break
5070 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5075 if test -n "$LD"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5077 $as_echo "$LD" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5082 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5084 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5085 if ${lt_cv_prog_gnu_ld+:} false
; then :
5086 $as_echo_n "(cached) " >&6
5088 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5089 case `$LD -v 2>&1 </dev/null` in
5090 *GNU
* |
*'with BFD'*)
5091 lt_cv_prog_gnu_ld
=yes
5094 lt_cv_prog_gnu_ld
=no
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5099 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5100 with_gnu_ld
=$lt_cv_prog_gnu_ld
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5111 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5112 if ${lt_cv_path_NM+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 if test -n "$NM"; then
5116 # Let the user override the test.
5119 lt_nm_to_check
="${ac_tool_prefix}nm"
5120 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5121 lt_nm_to_check
="$lt_nm_to_check nm"
5123 for lt_tmp_nm
in $lt_nm_to_check; do
5124 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5125 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5127 test -z "$ac_dir" && ac_dir
=.
5128 tmp_nm
="$ac_dir/$lt_tmp_nm"
5129 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
5130 # Check to see if the nm accepts a BSD-compat flag.
5131 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5132 # nm: unknown option "B" ignored
5133 # Tru64's nm complains that /dev/null is an invalid object file
5134 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5135 */dev
/null
* |
*'Invalid file or object type'*)
5136 lt_cv_path_NM
="$tmp_nm -B"
5140 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5142 lt_cv_path_NM
="$tmp_nm -p"
5146 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5147 continue # so that we can try to find one that supports BSD flags
5156 : ${lt_cv_path_NM=no}
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5160 $as_echo "$lt_cv_path_NM" >&6; }
5161 if test "$lt_cv_path_NM" != "no"; then
5164 # Didn't find any BSD compatible name lister, look for dumpbin.
5165 if test -n "$DUMPBIN"; then :
5166 # Let the user override the test.
5168 if test -n "$ac_tool_prefix"; then
5169 for ac_prog
in dumpbin
"link -dump"
5171 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5172 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5176 $as_echo_n "(cached) " >&6
5178 if test -n "$DUMPBIN"; then
5179 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 DUMPBIN
=$ac_cv_prog_DUMPBIN
5199 if test -n "$DUMPBIN"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5201 $as_echo "$DUMPBIN" >&6; }
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5208 test -n "$DUMPBIN" && break
5211 if test -z "$DUMPBIN"; then
5212 ac_ct_DUMPBIN
=$DUMPBIN
5213 for ac_prog
in dumpbin
"link -dump"
5215 # Extract the first word of "$ac_prog", so it can be a program name with args.
5216 set dummy
$ac_prog; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -n "$ac_ct_DUMPBIN"; then
5223 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 test -z "$as_dir" && as_dir
=.
5230 for ac_exec_ext
in '' $ac_executable_extensions; do
5231 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5243 if test -n "$ac_ct_DUMPBIN"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5245 $as_echo "$ac_ct_DUMPBIN" >&6; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 test -n "$ac_ct_DUMPBIN" && break
5255 if test "x$ac_ct_DUMPBIN" = x
; then
5258 case $cross_compiling:$ac_tool_warned in
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned
=yes ;;
5264 DUMPBIN
=$ac_ct_DUMPBIN
5268 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5270 DUMPBIN
="$DUMPBIN -symbols"
5278 if test "$DUMPBIN" != ":"; then
5282 test -z "$NM" && NM
=nm
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5290 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5291 if ${lt_cv_nm_interface+:} false
; then :
5292 $as_echo_n "(cached) " >&6
5294 lt_cv_nm_interface
="BSD nm"
5295 echo "int some_variable = 0;" > conftest.
$ac_ext
5296 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5297 (eval "$ac_compile" 2>conftest.err
)
5298 cat conftest.err
>&5
5299 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5300 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5301 cat conftest.err
>&5
5302 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5303 cat conftest.out
>&5
5304 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5305 lt_cv_nm_interface
="MS dumpbin"
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5310 $as_echo "$lt_cv_nm_interface" >&6; }
5312 # find the maximum length of command line arguments
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5314 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5315 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5316 $as_echo_n "(cached) " >&6
5323 # On DJGPP, this test can blow up pretty badly due to problems in libc
5324 # (any single argument exceeding 2000 bytes causes a buffer overrun
5325 # during glob expansion). Even if it were fixed, the result of this
5326 # check would be larger than it should be.
5327 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5331 # Under GNU Hurd, this test is not required because there is
5332 # no limit to the length of command line arguments.
5333 # Libtool will interpret -1 as no limit whatsoever
5334 lt_cv_sys_max_cmd_len
=-1;
5337 cygwin
* | mingw
* | cegcc
*)
5338 # On Win9x/ME, this test blows up -- it succeeds, but takes
5339 # about 5 minutes as the teststring grows exponentially.
5340 # Worse, since 9x/ME are not pre-emptively multitasking,
5341 # you end up with a "frozen" computer, even though with patience
5342 # the test eventually succeeds (with a max line length of 256k).
5343 # Instead, let's just punt: use the minimum linelength reported by
5344 # all of the supported platforms: 8192 (on NT/2K/XP).
5345 lt_cv_sys_max_cmd_len
=8192;
5349 # On MiNT this can take a long time and run out of memory.
5350 lt_cv_sys_max_cmd_len
=8192;
5354 # On AmigaOS with pdksh, this test takes hours, literally.
5355 # So we just punt and use a minimum line length of 8192.
5356 lt_cv_sys_max_cmd_len
=8192;
5359 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
* | bitrig
*)
5360 # This has been around since 386BSD, at least. Likely further.
5361 if test -x /sbin
/sysctl
; then
5362 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5363 elif test -x /usr
/sbin
/sysctl
; then
5364 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5366 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5368 # And add a safety zone
5369 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5370 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5374 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5375 lt_cv_sys_max_cmd_len
=196608
5379 # The test takes a long time on OS/2.
5380 lt_cv_sys_max_cmd_len
=8192
5384 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5385 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5386 # nice to cause kernel panics so lets avoid the loop below.
5387 # First set a reasonable default.
5388 lt_cv_sys_max_cmd_len
=16384
5390 if test -x /sbin
/sysconfig
; then
5391 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5392 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5397 lt_cv_sys_max_cmd_len
=102400
5399 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5400 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5401 if test -n "$kargmax"; then
5402 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5404 lt_cv_sys_max_cmd_len
=32768
5408 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5409 if test -n "$lt_cv_sys_max_cmd_len"; then
5410 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5413 # Make teststring a little bigger before we do anything with it.
5414 # a 1K string should be a reasonable start.
5415 for i
in 1 2 3 4 5 6 7 8 ; do
5416 teststring
=$teststring$teststring
5418 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5419 # If test is not a shell built-in, we'll probably end up computing a
5420 # maximum length that is only half of the actual maximum length, but
5422 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5423 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5424 test $i != 17 # 1/2 MB should be enough
5427 teststring
=$teststring$teststring
5429 # Only check the string length outside the loop.
5430 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5432 # Add a significant safety factor because C++ compilers can tack on
5433 # massive amounts of additional arguments before passing them to the
5434 # linker. It appears as though 1/2 is a usable value.
5435 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5442 if test -n $lt_cv_sys_max_cmd_len ; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5444 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5447 $as_echo "none" >&6; }
5449 max_cmd_len
=$lt_cv_sys_max_cmd_len
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5461 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5462 # Try some XSI features
5465 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 && eval 'test $(( 1 + 1 )) -eq 2 \
5468 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5471 $as_echo "$xsi_shell" >&6; }
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5475 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5477 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5479 && lt_shell_append=yes
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5481 $as_echo "$lt_shell_append" >&6; }
5484 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5494 # test EBCDIC or ASCII
5495 case `echo X|tr X '\101'` in
5496 A) # ASCII based system
5497 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5498 lt_SP2NL='tr \040 \012'
5499 lt_NL2SP='tr \015\012 \040\040'
5501 *) # EBCDIC based system
5502 lt_SP2NL='tr \100 \n'
5503 lt_NL2SP='tr \r\n \100\100'
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5516 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5517 if ${lt_cv_to_host_file_cmd+:} false; then :
5518 $as_echo_n "(cached
) " >&6
5523 *-*-mingw* ) # actually msys
5524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5527 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5529 * ) # otherwise, assume *nix
5530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5536 *-*-mingw* ) # actually msys
5537 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5540 lt_cv_to_host_file_cmd=func_convert_file_noop
5542 * ) # otherwise, assume *nix
5543 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5547 * ) # unhandled hosts (and "normal
" native builds)
5548 lt_cv_to_host_file_cmd=func_convert_file_noop
5554 to_host_file_cmd=$lt_cv_to_host_file_cmd
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5556 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5563 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5564 if ${lt_cv_to_tool_file_cmd+:} false; then :
5565 $as_echo_n "(cached
) " >&6
5567 #assume ordinary cross tools, or native build.
5568 lt_cv_to_tool_file_cmd=func_convert_file_noop
5572 *-*-mingw* ) # actually msys
5573 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5581 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5583 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5590 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5591 if ${lt_cv_ld_reload_flag+:} false; then :
5592 $as_echo_n "(cached
) " >&6
5594 lt_cv_ld_reload_flag='-r'
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5597 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5598 reload_flag=$lt_cv_ld_reload_flag
5599 case $reload_flag in
5601 *) reload_flag=" $reload_flag" ;;
5603 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605 cygwin* | mingw* | pw32* | cegcc*)
5606 if test "$GCC" != yes; then
5611 if test "$GCC" = yes; then
5612 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5614 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5631 $as_echo_n "checking
for $ac_word...
" >&6; }
5632 if ${ac_cv_prog_OBJDUMP+:} false; then :
5633 $as_echo_n "(cached
) " >&6
5635 if test -n "$OBJDUMP"; then
5636 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5655 OBJDUMP=$ac_cv_prog_OBJDUMP
5656 if test -n "$OBJDUMP"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5658 $as_echo "$OBJDUMP" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5661 $as_echo "no
" >&6; }
5666 if test -z "$ac_cv_prog_OBJDUMP"; then
5667 ac_ct_OBJDUMP=$OBJDUMP
5668 # Extract the first word of "objdump
", so it can be a program name with args.
5669 set dummy objdump; ac_word=$2
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5671 $as_echo_n "checking
for $ac_word...
" >&6; }
5672 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5673 $as_echo_n "(cached
) " >&6
5675 if test -n "$ac_ct_OBJDUMP"; then
5676 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 test -z "$as_dir" && as_dir=.
5683 for ac_exec_ext in '' $ac_executable_extensions; do
5684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5685 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5686 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5695 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5696 if test -n "$ac_ct_OBJDUMP"; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5698 $as_echo "$ac_ct_OBJDUMP" >&6; }
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5701 $as_echo "no
" >&6; }
5704 if test "x
$ac_ct_OBJDUMP" = x; then
5707 case $cross_compiling:$ac_tool_warned in
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5710 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5711 ac_tool_warned=yes ;;
5713 OBJDUMP=$ac_ct_OBJDUMP
5716 OBJDUMP="$ac_cv_prog_OBJDUMP"
5719 test -z "$OBJDUMP" && OBJDUMP=objdump
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5730 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5731 if ${lt_cv_deplibs_check_method+:} false; then :
5732 $as_echo_n "(cached
) " >&6
5734 lt_cv_file_magic_cmd='$MAGIC_CMD'
5735 lt_cv_file_magic_test_file=
5736 lt_cv_deplibs_check_method='unknown'
5737 # Need to set the preceding variable on all platforms that support
5738 # interlibrary dependencies.
5739 # 'none' -- dependencies not supported.
5740 # `unknown' -- same as none, but documents that we really don't know.
5741 # 'pass_all' -- all dependencies passed with no checks.
5742 # 'test_compile' -- check by making test program.
5743 # 'file_magic [[regex]]' -- check by looking for files in library path
5744 # which responds to the $file_magic_cmd with a given extended regex.
5745 # If you have `file' or equivalent on your system and you're not sure
5746 # whether `pass_all' will *always* work, you probably want this one.
5750 lt_cv_deplibs_check_method=pass_all
5754 lt_cv_deplibs_check_method=pass_all
5758 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5759 lt_cv_file_magic_cmd='/usr/bin/file -L'
5760 lt_cv_file_magic_test_file=/shlib/libc.so
5764 # func_win32_libid is a shell function defined in ltmain.sh
5765 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5766 lt_cv_file_magic_cmd='func_win32_libid'
5770 # Base MSYS/MinGW do not provide the 'file' command needed by
5771 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5772 # unless we find 'file', for example because we are cross-compiling.
5773 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5774 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5775 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5776 lt_cv_file_magic_cmd='func_win32_libid'
5778 # Keep this pattern in sync with the one in func_win32_libid.
5779 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5780 lt_cv_file_magic_cmd='$OBJDUMP -f'
5785 # use the weaker test based on 'objdump'. See mingw*.
5786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5787 lt_cv_file_magic_cmd='$OBJDUMP -f'
5790 darwin* | rhapsody*)
5791 lt_cv_deplibs_check_method=pass_all
5794 freebsd* | dragonfly*)
5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5798 # Not sure whether the presence of OpenBSD here was a mistake.
5799 # Let's accept both of them until this is cleared up.
5800 lt_cv_deplibs_check_method='file_magic (Bitrig|FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5801 lt_cv_file_magic_cmd=/usr/bin/file
5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5806 lt_cv_deplibs_check_method=pass_all
5811 lt_cv_deplibs_check_method=pass_all
5815 lt_cv_deplibs_check_method=pass_all
5818 hpux10.20* | hpux11*)
5819 lt_cv_file_magic_cmd=/usr/bin/file
5822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5823 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5826 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]'
5827 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5831 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5837 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5841 irix5* | irix6* | nonstopux*)
5843 *-32|*"-32 ") libmagic=32-bit;;
5844 *-n32|*"-n32 ") libmagic=N32;;
5845 *-64|*"-64 ") libmagic=64-bit;;
5846 *) libmagic=never-match;;
5848 lt_cv_deplibs_check_method=pass_all
5851 # This must be glibc/ELF.
5852 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5853 lt_cv_deplibs_check_method=pass_all
5857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5866 lt_cv_file_magic_cmd=/usr/bin/file
5867 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5871 lt_cv_deplibs_check_method=pass_all
5875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5882 osf3* | osf4* | osf5*)
5883 lt_cv_deplibs_check_method=pass_all
5887 lt_cv_deplibs_check_method=pass_all
5891 lt_cv_deplibs_check_method=pass_all
5894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5895 lt_cv_deplibs_check_method=pass_all
5899 case $host_vendor in
5901 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]'
5902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5905 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_file_magic_cmd='/bin/file'
5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5912 lt_cv_file_magic_cmd='/bin/file'
5913 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5914 lt_cv_file_magic_test_file=/lib/libc.so
5917 lt_cv_deplibs_check_method=pass_all
5920 lt_cv_deplibs_check_method=pass_all
5926 lt_cv_deplibs_check_method=pass_all
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5932 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5936 if test "$build" = "$host"; then
5939 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5942 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5948 file_magic_cmd=$lt_cv_file_magic_cmd
5949 deplibs_check_method=$lt_cv_deplibs_check_method
5950 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5973 if test -n "$ac_tool_prefix"; then
5974 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5975 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5977 $as_echo_n "checking
for $ac_word...
" >&6; }
5978 if ${ac_cv_prog_DLLTOOL+:} false; then :
5979 $as_echo_n "(cached
) " >&6
5981 if test -n "$DLLTOOL"; then
5982 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6001 DLLTOOL=$ac_cv_prog_DLLTOOL
6002 if test -n "$DLLTOOL"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
6004 $as_echo "$DLLTOOL" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6007 $as_echo "no
" >&6; }
6012 if test -z "$ac_cv_prog_DLLTOOL"; then
6013 ac_ct_DLLTOOL=$DLLTOOL
6014 # Extract the first word of "dlltool
", so it can be a program name with args.
6015 set dummy dlltool; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6017 $as_echo_n "checking
for $ac_word...
" >&6; }
6018 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6019 $as_echo_n "(cached
) " >&6
6021 if test -n "$ac_ct_DLLTOOL"; then
6022 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6041 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6042 if test -n "$ac_ct_DLLTOOL"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
6044 $as_echo "$ac_ct_DLLTOOL" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6047 $as_echo "no
" >&6; }
6050 if test "x
$ac_ct_DLLTOOL" = x; then
6053 case $cross_compiling:$ac_tool_warned in
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6056 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6057 ac_tool_warned=yes ;;
6059 DLLTOOL=$ac_ct_DLLTOOL
6062 DLLTOOL="$ac_cv_prog_DLLTOOL"
6065 test -z "$DLLTOOL" && DLLTOOL=dlltool
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
6077 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
6078 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6079 $as_echo_n "(cached
) " >&6
6081 lt_cv_sharedlib_from_linklib_cmd='unknown'
6084 cygwin* | mingw* | pw32* | cegcc*)
6085 # two different shell functions defined in ltmain.sh
6086 # decide which to use based on capabilities of $DLLTOOL
6087 case `$DLLTOOL --help 2>&1` in
6088 *--identify-strict*)
6089 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6092 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6097 # fallback: assume linklib IS sharedlib
6098 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
6104 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6105 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6106 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6114 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6120 $as_echo_n "checking
for $ac_word...
" >&6; }
6121 if ${ac_cv_prog_AR+:} false; then :
6122 $as_echo_n "(cached
) " >&6
6124 if test -n "$AR"; then
6125 ac_cv_prog_AR="$AR" # Let the user override the test.
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6145 if test -n "$AR"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6147 $as_echo "$AR" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6150 $as_echo "no
" >&6; }
6154 test -n "$AR" && break
6157 if test -z "$AR"; then
6161 # Extract the first word of "$ac_prog", so it can be a program name with args.
6162 set dummy $ac_prog; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6164 $as_echo_n "checking
for $ac_word...
" >&6; }
6165 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6166 $as_echo_n "(cached
) " >&6
6168 if test -n "$ac_ct_AR"; then
6169 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178 ac_cv_prog_ac_ct_AR="$ac_prog"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6188 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6189 if test -n "$ac_ct_AR"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6191 $as_echo "$ac_ct_AR" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6194 $as_echo "no
" >&6; }
6198 test -n "$ac_ct_AR" && break
6201 if test "x
$ac_ct_AR" = x; then
6204 case $cross_compiling:$ac_tool_warned in
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6207 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6208 ac_tool_warned=yes ;;
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
6228 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
6229 if ${lt_cv_ar_at_file+:} false; then :
6230 $as_echo_n "(cached
) " >&6
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6244 if ac_fn_c_try_compile "$LINENO"; then :
6245 echo conftest.$ac_objext > conftest.lst
6246 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6247 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6248 (eval $lt_ar_try) 2>&5
6250 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6251 test $ac_status = 0; }
6252 if test "$ac_status" -eq 0; then
6253 # Ensure the archiver fails upon bogus file names.
6254 rm -f conftest.$ac_objext libconftest.a
6255 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6256 (eval $lt_ar_try) 2>&5
6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6259 test $ac_status = 0; }
6260 if test "$ac_status" -ne 0; then
6264 rm -f conftest.* libconftest.a
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
6271 $as_echo "$lt_cv_ar_at_file" >&6; }
6273 if test "x
$lt_cv_ar_at_file" = xno; then
6276 archiver_list_spec=$lt_cv_ar_at_file
6285 if test -n "$ac_tool_prefix"; then
6286 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6287 set dummy ${ac_tool_prefix}strip; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6289 $as_echo_n "checking
for $ac_word...
" >&6; }
6290 if ${ac_cv_prog_STRIP+:} false; then :
6291 $as_echo_n "(cached
) " >&6
6293 if test -n "$STRIP"; then
6294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6313 STRIP=$ac_cv_prog_STRIP
6314 if test -n "$STRIP"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6316 $as_echo "$STRIP" >&6; }
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6319 $as_echo "no
" >&6; }
6324 if test -z "$ac_cv_prog_STRIP"; then
6326 # Extract the first word of "strip
", so it can be a program name with args.
6327 set dummy strip; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6329 $as_echo_n "checking
for $ac_word...
" >&6; }
6330 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6331 $as_echo_n "(cached
) " >&6
6333 if test -n "$ac_ct_STRIP"; then
6334 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6343 ac_cv_prog_ac_ct_STRIP="strip
"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6353 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6354 if test -n "$ac_ct_STRIP"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6356 $as_echo "$ac_ct_STRIP" >&6; }
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6359 $as_echo "no
" >&6; }
6362 if test "x
$ac_ct_STRIP" = x; then
6365 case $cross_compiling:$ac_tool_warned in
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6368 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6369 ac_tool_warned=yes ;;
6374 STRIP="$ac_cv_prog_STRIP"
6377 test -z "$STRIP" && STRIP=:
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6388 $as_echo_n "checking
for $ac_word...
" >&6; }
6389 if ${ac_cv_prog_RANLIB+:} false; then :
6390 $as_echo_n "(cached
) " >&6
6392 if test -n "$RANLIB"; then
6393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6412 RANLIB=$ac_cv_prog_RANLIB
6413 if test -n "$RANLIB"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6415 $as_echo "$RANLIB" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6418 $as_echo "no
" >&6; }
6423 if test -z "$ac_cv_prog_RANLIB"; then
6424 ac_ct_RANLIB=$RANLIB
6425 # Extract the first word of "ranlib
", so it can be a program name with args.
6426 set dummy ranlib; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6428 $as_echo_n "checking
for $ac_word...
" >&6; }
6429 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6430 $as_echo_n "(cached
) " >&6
6432 if test -n "$ac_ct_RANLIB"; then
6433 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6452 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6453 if test -n "$ac_ct_RANLIB"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6455 $as_echo "$ac_ct_RANLIB" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6458 $as_echo "no
" >&6; }
6461 if test "x
$ac_ct_RANLIB" = x; then
6464 case $cross_compiling:$ac_tool_warned in
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6467 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6468 ac_tool_warned=yes ;;
6470 RANLIB=$ac_ct_RANLIB
6473 RANLIB="$ac_cv_prog_RANLIB"
6476 test -z "$RANLIB" && RANLIB=:
6483 # Determine commands to create old-style static archives.
6484 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6485 old_postinstall_cmds='chmod 644 $oldlib'
6486 old_postuninstall_cmds=
6488 if test -n "$RANLIB"; then
6491 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6494 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6497 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6502 lock_old_archive_extraction=yes ;;
6504 lock_old_archive_extraction=no ;;
6545 # If no C compiler was specified, use CC.
6548 # If no C compiler flags were specified, use CFLAGS.
6549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6551 # Allow CC to be a program name with arguments.
6555 # Check for command to grab the raw symbol name followed by C symbol from nm.
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6557 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6558 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6559 $as_echo_n "(cached
) " >&6
6562 # These are sane defaults that work on at least a few old systems.
6563 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6565 # Character class describing NM global symbol codes.
6566 symcode='[BCDEGRST]'
6568 # Regexp to match symbols that can be accessed directly from C.
6569 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6571 # Define system-specific variables.
6576 cygwin* | mingw* | pw32* | cegcc*)
6577 symcode='[ABCDGISTW]'
6580 if test "$host_cpu" = ia64; then
6581 symcode='[ABCDEGRST]'
6585 symcode='[BCDEGRST]'
6588 symcode='[BCDEGQRST]'
6599 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6607 # If we're using GNU nm, then use its standard symbol codes.
6608 case `$NM -V 2>&1` in
6609 *GNU* | *'with BFD'*)
6610 symcode='[ABCDGIRSTW]' ;;
6613 # Transform an extracted symbol line into a proper C declaration.
6614 # Some systems (esp. on ia64) link data and code symbols differently,
6615 # so use this general approach.
6616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6618 # Transform an extracted symbol line into symbol name and symbol address
6619 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6620 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'"
6622 # Handle CRLF in mingw tool chain
6626 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6630 # Try without a prefix underscore, then with it.
6631 for ac_symprfx in "" "_
"; do
6633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6634 symxfrm="\\1 $ac_symprfx\\2 \\2"
6636 # Write the raw and C identifiers.
6637 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6638 # Fake it for dumpbin and say T for any non-static function
6639 # and D for any global variable.
6640 # Also find C++ and __fastcall symbols from MSVC++,
6641 # which start with @ or ?.
6642 lt_cv_sys_global_symbol_pipe="$AWK '"\
6643 " {last_section=section; section=\$ 3};"\
6644 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6646 " \$ 0!~/External *\|/{next};"\
6647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6648 " {if(hide[section]) next};"\
6649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6653 " ' prfx
=^
$ac_symprfx"
6655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6657 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6659 # Check to see that the pipe works correctly.
6663 cat > conftest.$ac_ext <<_LT_EOF
6668 void nm_test_func(void);
6669 void nm_test_func(void){}
6673 int main(){nm_test_var='a';nm_test_func();return(0);}
6676 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6677 (eval $ac_compile) 2>&5
6679 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6680 test $ac_status = 0; }; then
6681 # Now try to grab the symbols.
6683 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6684 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6686 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6687 test $ac_status = 0; } && test -s "$nlist"; then
6688 # Try sorting and uniquifying the output.
6689 if sort "$nlist" | uniq > "$nlist"T; then
6690 mv -f "$nlist"T "$nlist"
6695 # Make sure that we snagged all the symbols we need.
6696 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6697 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6698 cat <<_LT_EOF > conftest.$ac_ext
6699 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6700 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6701 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6702 relocations are performed -- see ld's documentation on pseudo-relocs. */
6703 # define LT_DLSYM_CONST
6704 #elif defined(__osf__)
6705 /* This system does not cope well with relocations in const data. */
6706 # define LT_DLSYM_CONST
6708 # define LT_DLSYM_CONST const
6716 # Now generate the symbol file.
6717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6719 cat <<_LT_EOF >> conftest.$ac_ext
6721 /* The mapping between symbol names and symbols. */
6722 LT_DLSYM_CONST struct {
6726 lt__PROGRAM__LTX_preloaded_symbols[] =
6728 { "@PROGRAM@
", (void *) 0 },
6730 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6731 cat <<\_LT_EOF >> conftest.$ac_ext
6735 /* This works around a problem in FreeBSD linker */
6736 #ifdef FREEBSD_WORKAROUND
6737 static const void *lt_preloaded_setup() {
6738 return lt__PROGRAM__LTX_preloaded_symbols;
6746 # Now try linking the two files.
6747 mv conftest.$ac_objext conftstm.$ac_objext
6748 lt_globsym_save_LIBS=$LIBS
6749 lt_globsym_save_CFLAGS=$CFLAGS
6750 LIBS="conftstm.
$ac_objext"
6751 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6752 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6753 (eval $ac_link) 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6756 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6759 LIBS=$lt_globsym_save_LIBS
6760 CFLAGS=$lt_globsym_save_CFLAGS
6762 echo "cannot
find nm_test_func
in $nlist" >&5
6765 echo "cannot
find nm_test_var
in $nlist" >&5
6768 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6771 echo "$progname: failed program was
:" >&5
6772 cat conftest.$ac_ext >&5
6774 rm -rf conftest* conftst*
6776 # Do not use the global_symbol_pipe unless it works.
6777 if test "$pipe_works" = yes; then
6780 lt_cv_sys_global_symbol_pipe=
6786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6787 lt_cv_sys_global_symbol_to_cdecl=
6789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6791 $as_echo "failed
" >&6; }
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6794 $as_echo "ok
" >&6; }
6797 # Response file support.
6798 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6799 nm_file_list_spec='@'
6800 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6801 nm_file_list_spec='@'
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6831 $as_echo_n "checking
for sysroot...
" >&6; }
6833 # Check whether --with-sysroot was given.
6834 if test "${with_sysroot+set}" = set; then :
6835 withval=$with_sysroot;
6842 case ${with_sysroot} in #(
6844 if test "$GCC" = yes; then
6845 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6849 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6855 $as_echo "${with_sysroot}" >&6; }
6856 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6861 $as_echo "${lt_sysroot:-no}" >&6; }
6867 # Check whether --enable-libtool-lock was given.
6868 if test "${enable_libtool_lock+set}" = set; then :
6869 enableval=$enable_libtool_lock;
6872 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874 # Some flags need to be propagated to the compiler or linker for good
6878 # Find out which ABI we are using.
6879 echo 'int i;' > conftest.$ac_ext
6880 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6881 (eval $ac_compile) 2>&5
6883 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6884 test $ac_status = 0; }; then
6885 case `/usr/bin/file conftest.$ac_objext` in
6897 # Find out which ABI we are using.
6898 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6899 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6900 (eval $ac_compile) 2>&5
6902 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6903 test $ac_status = 0; }; then
6904 if test "$lt_cv_prog_gnu_ld" = yes; then
6905 case `/usr/bin/file conftest.$ac_objext` in
6907 LD="${LD-ld} -melf32bsmip"
6910 LD="${LD-ld} -melf32bmipn32"
6913 LD="${LD-ld} -melf64bmip"
6917 case `/usr/bin/file conftest.$ac_objext` in
6933 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6934 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6935 # Find out which ABI we are using.
6936 echo 'int i;' > conftest.$ac_ext
6937 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 case `/usr/bin/file conftest.o` in
6945 x86_64-*kfreebsd*-gnu)
6946 LD="${LD-ld} -m elf_i386_fbsd
"
6949 LD="${LD-ld} -m elf_i386
"
6951 ppc64-*linux*|powerpc64-*linux*)
6952 LD="${LD-ld} -m elf32ppclinux
"
6955 LD="${LD-ld} -m elf_s390
"
6958 LD="${LD-ld} -m elf32_sparc
"
6964 x86_64-*kfreebsd*-gnu)
6965 LD="${LD-ld} -m elf_x86_64_fbsd
"
6968 LD="${LD-ld} -m elf_x86_64
"
6970 ppc*-*linux*|powerpc*-*linux*)
6971 LD="${LD-ld} -m elf64ppc
"
6973 s390*-*linux*|s390*-*tpf*)
6974 LD="${LD-ld} -m elf64_s390
"
6977 LD="${LD-ld} -m elf64_sparc
"
6987 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6988 SAVE_CFLAGS="$CFLAGS"
6989 CFLAGS="$CFLAGS -belf"
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6991 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6992 if ${lt_cv_cc_needs_belf+:} false; then :
6993 $as_echo_n "(cached
) " >&6
6996 ac_cpp='$CPP $CPPFLAGS'
6997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7012 if ac_fn_c_try_link "$LINENO"; then :
7013 lt_cv_cc_needs_belf=yes
7015 lt_cv_cc_needs_belf=no
7017 rm -f core conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7020 ac_cpp='$CPP $CPPFLAGS'
7021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7027 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7028 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7029 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7030 CFLAGS="$SAVE_CFLAGS"
7034 # Find out which ABI we are using.
7035 echo 'int i;' > conftest.$ac_ext
7036 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037 (eval $ac_compile) 2>&5
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7040 test $ac_status = 0; }; then
7041 case `/usr/bin/file conftest.o` in
7043 case $lt_cv_prog_gnu_ld in
7047 LD="${LD-ld} -m elf_x86_64
"
7050 LD="${LD-ld} -m elf64_sparc
"
7053 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7054 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7059 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7071 need_locks="$enable_libtool_lock"
7073 if test -n "$ac_tool_prefix"; then
7074 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
7075 set dummy ${ac_tool_prefix}mt; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7077 $as_echo_n "checking
for $ac_word...
" >&6; }
7078 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7079 $as_echo_n "(cached
) " >&6
7081 if test -n "$MANIFEST_TOOL"; then
7082 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7091 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
7092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7101 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7102 if test -n "$MANIFEST_TOOL"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7104 $as_echo "$MANIFEST_TOOL" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7107 $as_echo "no
" >&6; }
7112 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7113 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7114 # Extract the first word of "mt
", so it can be a program name with args.
7115 set dummy mt; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7117 $as_echo_n "checking
for $ac_word...
" >&6; }
7118 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7119 $as_echo_n "(cached
) " >&6
7121 if test -n "$ac_ct_MANIFEST_TOOL"; then
7122 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7141 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7142 if test -n "$ac_ct_MANIFEST_TOOL"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7144 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7147 $as_echo "no
" >&6; }
7150 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7153 case $cross_compiling:$ac_tool_warned in
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7156 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7157 ac_tool_warned=yes ;;
7159 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7162 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7165 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7167 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7168 if ${lt_cv_path_mainfest_tool+:} false; then :
7169 $as_echo_n "(cached
) " >&6
7171 lt_cv_path_mainfest_tool=no
7172 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7173 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7174 cat conftest.err >&5
7175 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7176 lt_cv_path_mainfest_tool=yes
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7181 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7182 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
7192 rhapsody* | darwin*)
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7197 $as_echo_n "checking
for $ac_word...
" >&6; }
7198 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7199 $as_echo_n "(cached
) " >&6
7201 if test -n "$DSYMUTIL"; then
7202 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7221 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7222 if test -n "$DSYMUTIL"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7224 $as_echo "$DSYMUTIL" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7227 $as_echo "no
" >&6; }
7232 if test -z "$ac_cv_prog_DSYMUTIL"; then
7233 ac_ct_DSYMUTIL=$DSYMUTIL
7234 # Extract the first word of "dsymutil
", so it can be a program name with args.
7235 set dummy dsymutil; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7237 $as_echo_n "checking
for $ac_word...
" >&6; }
7238 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7239 $as_echo_n "(cached
) " >&6
7241 if test -n "$ac_ct_DSYMUTIL"; then
7242 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7261 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7262 if test -n "$ac_ct_DSYMUTIL"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7264 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7267 $as_echo "no
" >&6; }
7270 if test "x
$ac_ct_DSYMUTIL" = x; then
7273 case $cross_compiling:$ac_tool_warned in
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7276 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7277 ac_tool_warned=yes ;;
7279 DSYMUTIL=$ac_ct_DSYMUTIL
7282 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7289 $as_echo_n "checking
for $ac_word...
" >&6; }
7290 if ${ac_cv_prog_NMEDIT+:} false; then :
7291 $as_echo_n "(cached
) " >&6
7293 if test -n "$NMEDIT"; then
7294 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7313 NMEDIT=$ac_cv_prog_NMEDIT
7314 if test -n "$NMEDIT"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7316 $as_echo "$NMEDIT" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7319 $as_echo "no
" >&6; }
7324 if test -z "$ac_cv_prog_NMEDIT"; then
7325 ac_ct_NMEDIT=$NMEDIT
7326 # Extract the first word of "nmedit
", so it can be a program name with args.
7327 set dummy nmedit; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7329 $as_echo_n "checking
for $ac_word...
" >&6; }
7330 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7331 $as_echo_n "(cached
) " >&6
7333 if test -n "$ac_ct_NMEDIT"; then
7334 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7354 if test -n "$ac_ct_NMEDIT"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7356 $as_echo "$ac_ct_NMEDIT" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7359 $as_echo "no
" >&6; }
7362 if test "x
$ac_ct_NMEDIT" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7368 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7369 ac_tool_warned=yes ;;
7371 NMEDIT=$ac_ct_NMEDIT
7374 NMEDIT="$ac_cv_prog_NMEDIT"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7381 $as_echo_n "checking
for $ac_word...
" >&6; }
7382 if ${ac_cv_prog_LIPO+:} false; then :
7383 $as_echo_n "(cached
) " >&6
7385 if test -n "$LIPO"; then
7386 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7405 LIPO=$ac_cv_prog_LIPO
7406 if test -n "$LIPO"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7408 $as_echo "$LIPO" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7411 $as_echo "no
" >&6; }
7416 if test -z "$ac_cv_prog_LIPO"; then
7418 # Extract the first word of "lipo
", so it can be a program name with args.
7419 set dummy lipo; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7421 $as_echo_n "checking
for $ac_word...
" >&6; }
7422 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7423 $as_echo_n "(cached
) " >&6
7425 if test -n "$ac_ct_LIPO"; then
7426 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_LIPO="lipo
"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7446 if test -n "$ac_ct_LIPO"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7448 $as_echo "$ac_ct_LIPO" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7451 $as_echo "no
" >&6; }
7454 if test "x
$ac_ct_LIPO" = x; then
7457 case $cross_compiling:$ac_tool_warned in
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7460 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7461 ac_tool_warned=yes ;;
7466 LIPO="$ac_cv_prog_LIPO"
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}otool; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7473 $as_echo_n "checking
for $ac_word...
" >&6; }
7474 if ${ac_cv_prog_OTOOL+:} false; then :
7475 $as_echo_n "(cached
) " >&6
7477 if test -n "$OTOOL"; then
7478 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7497 OTOOL=$ac_cv_prog_OTOOL
7498 if test -n "$OTOOL"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7500 $as_echo "$OTOOL" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7503 $as_echo "no
" >&6; }
7508 if test -z "$ac_cv_prog_OTOOL"; then
7510 # Extract the first word of "otool
", so it can be a program name with args.
7511 set dummy otool; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7513 $as_echo_n "checking
for $ac_word...
" >&6; }
7514 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7515 $as_echo_n "(cached
) " >&6
7517 if test -n "$ac_ct_OTOOL"; then
7518 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_OTOOL="otool
"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7538 if test -n "$ac_ct_OTOOL"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7540 $as_echo "$ac_ct_OTOOL" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7543 $as_echo "no
" >&6; }
7546 if test "x
$ac_ct_OTOOL" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7553 ac_tool_warned=yes ;;
7558 OTOOL="$ac_cv_prog_OTOOL"
7561 if test -n "$ac_tool_prefix"; then
7562 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7563 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7565 $as_echo_n "checking
for $ac_word...
" >&6; }
7566 if ${ac_cv_prog_OTOOL64+:} false; then :
7567 $as_echo_n "(cached
) " >&6
7569 if test -n "$OTOOL64"; then
7570 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7579 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7589 OTOOL64=$ac_cv_prog_OTOOL64
7590 if test -n "$OTOOL64"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7592 $as_echo "$OTOOL64" >&6; }
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7595 $as_echo "no
" >&6; }
7600 if test -z "$ac_cv_prog_OTOOL64"; then
7601 ac_ct_OTOOL64=$OTOOL64
7602 # Extract the first word of "otool64
", so it can be a program name with args.
7603 set dummy otool64; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7605 $as_echo_n "checking
for $ac_word...
" >&6; }
7606 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7607 $as_echo_n "(cached
) " >&6
7609 if test -n "$ac_ct_OTOOL64"; then
7610 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7629 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7630 if test -n "$ac_ct_OTOOL64"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7632 $as_echo "$ac_ct_OTOOL64" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7635 $as_echo "no
" >&6; }
7638 if test "x
$ac_ct_OTOOL64" = x; then
7641 case $cross_compiling:$ac_tool_warned in
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7644 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7645 ac_tool_warned=yes ;;
7647 OTOOL64=$ac_ct_OTOOL64
7650 OTOOL64="$ac_cv_prog_OTOOL64"
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7680 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7681 if ${lt_cv_apple_cc_single_mod+:} false; then :
7682 $as_echo_n "(cached
) " >&6
7684 lt_cv_apple_cc_single_mod=no
7685 if test -z "${LT_MULTI_MODULE}"; then
7686 # By default we will add the -single_module flag. You can override
7687 # by either setting the environment variable LT_MULTI_MODULE
7688 # non-empty at configure time, or by adding -multi_module to the
7690 rm -rf libconftest.dylib*
7691 echo "int foo
(void
){return 1;}" > conftest.c
7692 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7693 -dynamiclib -Wl,-single_module conftest.c
" >&5
7694 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7695 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7697 # If there is a non-empty error log, and "single_module
"
7698 # appears in it, assume the flag caused a linker warning
7699 if test -s conftest.err && $GREP single_module conftest.err; then
7700 cat conftest.err >&5
7701 # Otherwise, if the output was created with a 0 exit code from
7702 # the compiler, it worked.
7703 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7704 lt_cv_apple_cc_single_mod=yes
7706 cat conftest.err >&5
7708 rm -rf libconftest.dylib*
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7713 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7716 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7717 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7718 $as_echo_n "(cached
) " >&6
7720 lt_cv_ld_exported_symbols_list=no
7721 save_LDFLAGS=$LDFLAGS
7722 echo "_main
" > conftest.sym
7723 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 lt_cv_ld_exported_symbols_list=yes
7738 lt_cv_ld_exported_symbols_list=no
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 LDFLAGS="$save_LDFLAGS"
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7746 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7749 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7750 if ${lt_cv_ld_force_load+:} false; then :
7751 $as_echo_n "(cached
) " >&6
7753 lt_cv_ld_force_load=no
7754 cat > conftest.c << _LT_EOF
7755 int forced_loaded() { return 2;}
7757 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7758 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7759 echo "$AR cru libconftest.a conftest.o
" >&5
7760 $AR cru libconftest.a conftest.o 2>&5
7761 echo "$RANLIB libconftest.a
" >&5
7762 $RANLIB libconftest.a 2>&5
7763 cat > conftest.c << _LT_EOF
7764 int main() { return 0;}
7766 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7767 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7769 if test -s conftest.err && $GREP force_load conftest.err; then
7770 cat conftest.err >&5
7771 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7772 lt_cv_ld_force_load=yes
7774 cat conftest.err >&5
7776 rm -f conftest.err libconftest.a conftest conftest.c
7777 rm -rf conftest.dSYM
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7781 $as_echo "$lt_cv_ld_force_load" >&6; }
7783 rhapsody* | darwin1.[012])
7784 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7787 darwin*) # darwin 5.x on
7788 # if running on 10.5 or later, the deployment target defaults
7789 # to the OS version, if on x86, and 10.4, the deployment
7790 # target defaults to 10.4. Don't you love it?
7791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7801 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7802 _lt_dar_single_mod='$single_module'
7804 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7805 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7810 _lt_dsymutil='~$DSYMUTIL $lib || :'
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7818 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7819 if ${ac_cv_header_stdc+:} false; then :
7820 $as_echo_n "(cached
) " >&6
7822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h. */
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 ac_cv_header_stdc=yes
7840 ac_cv_header_stdc=no
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 if test $ac_cv_header_stdc = yes; then
7845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7851 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7852 $EGREP "memchr
" >/dev/null 2>&1; then :
7855 ac_cv_header_stdc=no
7861 if test $ac_cv_header_stdc = yes; then
7862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7868 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7869 $EGREP "free
" >/dev/null 2>&1; then :
7872 ac_cv_header_stdc=no
7878 if test $ac_cv_header_stdc = yes; then
7879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7880 if test "$cross_compiling" = yes; then :
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7887 #if ((' ' & 0x0FF) == 0x020)
7888 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7889 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7891 # define ISLOWER(c) \
7892 (('a' <= (c) && (c) <= 'i') \
7893 || ('j' <= (c) && (c) <= 'r') \
7894 || ('s' <= (c) && (c) <= 'z'))
7895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7903 for (i = 0; i < 256; i++)
7904 if (XOR (islower (i), ISLOWER (i))
7905 || toupper (i) != TOUPPER (i))
7910 if ac_fn_c_try_run "$LINENO"; then :
7913 ac_cv_header_stdc=no
7915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7916 conftest.$ac_objext conftest.beam conftest.$ac_ext
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7922 $as_echo "$ac_cv_header_stdc" >&6; }
7923 if test $ac_cv_header_stdc = yes; then
7925 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7929 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7930 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7931 inttypes.h stdint.h unistd.h
7933 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7934 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7936 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7937 cat >>confdefs.h
<<_ACEOF
7938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 for ac_header
in dlfcn.h
7948 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7950 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7951 cat >>confdefs.h
<<_ACEOF
7952 #define HAVE_DLFCN_H 1
7973 # Check whether --enable-shared was given.
7974 if test "${enable_shared+set}" = set; then :
7975 enableval
=$enable_shared; p
=${PACKAGE-default}
7977 yes) enable_shared
=yes ;;
7978 no
) enable_shared
=no
;;
7981 # Look at the argument we got. We use all the common list separators.
7982 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7983 for pkg
in $enableval; do
7985 if test "X$pkg" = "X$p"; then
8004 # Check whether --enable-static was given.
8005 if test "${enable_static+set}" = set; then :
8006 enableval
=$enable_static; p
=${PACKAGE-default}
8008 yes) enable_static
=yes ;;
8009 no
) enable_static
=no
;;
8012 # Look at the argument we got. We use all the common list separators.
8013 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8014 for pkg
in $enableval; do
8016 if test "X$pkg" = "X$p"; then
8036 # Check whether --with-pic was given.
8037 if test "${with_pic+set}" = set; then :
8038 withval
=$with_pic; lt_p
=${PACKAGE-default}
8040 yes|no
) pic_mode
=$withval ;;
8043 # Look at the argument we got. We use all the common list separators.
8044 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8045 for lt_pkg
in $withval; do
8047 if test "X$lt_pkg" = "X$lt_p"; then
8059 test -z "$pic_mode" && pic_mode
=default
8067 # Check whether --enable-fast-install was given.
8068 if test "${enable_fast_install+set}" = set; then :
8069 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8071 yes) enable_fast_install
=yes ;;
8072 no
) enable_fast_install
=no
;;
8074 enable_fast_install
=no
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8077 for pkg
in $enableval; do
8079 if test "X$pkg" = "X$p"; then
8080 enable_fast_install
=yes
8087 enable_fast_install
=yes
8100 # This can be used to rebuild libtool when needed
8101 LIBTOOL_DEPS
="$ltmain"
8103 # Always use our own libtool.
8104 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8135 test -z "$LN_S" && LN_S
="ln -s"
8150 if test -n "${ZSH_VERSION+set}" ; then
8151 setopt NO_GLOB_SUBST
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8155 $as_echo_n "checking for objdir... " >&6; }
8156 if ${lt_cv_objdir+:} false
; then :
8157 $as_echo_n "(cached) " >&6
8159 rm -f .libs
2>/dev
/null
8160 mkdir .libs
2>/dev
/null
8161 if test -d .libs
; then
8164 # MS-DOS does not allow filenames that begin with a dot.
8167 rmdir .libs
2>/dev
/null
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8170 $as_echo "$lt_cv_objdir" >&6; }
8171 objdir
=$lt_cv_objdir
8177 cat >>confdefs.h
<<_ACEOF
8178 #define LT_OBJDIR "$lt_cv_objdir/"
8186 # AIX sometimes has problems with the GCC collect2 program. For some
8187 # reason, if we set the COLLECT_NAMES environment variable, the problems
8188 # vanish in a puff of smoke.
8189 if test "X${COLLECT_NAMES+set}" != Xset
; then
8191 export COLLECT_NAMES
8198 can_build_shared
=yes
8200 # All known linkers require a `.a' archive for static linking (except MSVC,
8201 # which needs '.lib').
8204 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8207 old_CFLAGS
="$CFLAGS"
8209 # Set sane defaults for various variables
8210 test -z "$CC" && CC
=cc
8211 test -z "$LTCC" && LTCC
=$CC
8212 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8213 test -z "$LD" && LD
=ld
8214 test -z "$ac_objext" && ac_objext
=o
8216 for cc_temp
in $compiler""; do
8218 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8219 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8224 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8227 # Only perform the check for file, if the check method requires it
8228 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8229 case $deplibs_check_method in
8231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8233 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8234 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8235 $as_echo_n "(cached) " >&6
8239 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8242 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8243 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8244 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8245 for ac_dir
in $ac_dummy; do
8247 test -z "$ac_dir" && ac_dir
=.
8248 if test -f $ac_dir/${ac_tool_prefix}file; then
8249 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8250 if test -n "$file_magic_test_file"; then
8251 case $deplibs_check_method in
8253 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8254 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8255 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8256 $EGREP "$file_magic_regex" > /dev
/null
; then
8261 *** Warning: the command libtool uses to detect shared libraries,
8262 *** $file_magic_cmd, produces output that libtool cannot recognize.
8263 *** The result is that libtool may fail to recognize shared libraries
8264 *** as such. This will affect the creation of libtool libraries that
8265 *** depend on shared libraries, but programs linked with such libtool
8266 *** libraries will work regardless of this problem. Nevertheless, you
8267 *** may want to report the problem to your system manager and/or to
8268 *** bug-libtool@gnu.org
8278 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8283 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8284 if test -n "$MAGIC_CMD"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8286 $as_echo "$MAGIC_CMD" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8296 if test -z "$lt_cv_path_MAGIC_CMD"; then
8297 if test -n "$ac_tool_prefix"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8299 $as_echo_n "checking for file... " >&6; }
8300 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8301 $as_echo_n "(cached) " >&6
8305 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8308 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8309 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8310 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8311 for ac_dir
in $ac_dummy; do
8313 test -z "$ac_dir" && ac_dir
=.
8314 if test -f $ac_dir/file; then
8315 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8316 if test -n "$file_magic_test_file"; then
8317 case $deplibs_check_method in
8319 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8320 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8321 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8322 $EGREP "$file_magic_regex" > /dev
/null
; then
8327 *** Warning: the command libtool uses to detect shared libraries,
8328 *** $file_magic_cmd, produces output that libtool cannot recognize.
8329 *** The result is that libtool may fail to recognize shared libraries
8330 *** as such. This will affect the creation of libtool libraries that
8331 *** depend on shared libraries, but programs linked with such libtool
8332 *** libraries will work regardless of this problem. Nevertheless, you
8333 *** may want to report the problem to your system manager and/or to
8334 *** bug-libtool@gnu.org
8344 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8349 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8350 if test -n "$MAGIC_CMD"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8352 $as_echo "$MAGIC_CMD" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8368 # Use C for the default configuration in the libtool script
8372 ac_cpp
='$CPP $CPPFLAGS'
8373 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8378 # Source file extension for C test sources.
8381 # Object file extension for compiled C test sources.
8385 # Code to be used in simple compile tests
8386 lt_simple_compile_test_code
="int some_variable = 0;"
8388 # Code to be used in simple link tests
8389 lt_simple_link_test_code
='int main(){return(0);}'
8397 # If no C compiler was specified, use CC.
8400 # If no C compiler flags were specified, use CFLAGS.
8401 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8403 # Allow CC to be a program name with arguments.
8406 # Save the default compiler, since it gets overwritten when the other
8407 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8408 compiler_DEFAULT
=$CC
8410 # save warnings/boilerplate of simple test code
8411 ac_outfile
=conftest.
$ac_objext
8412 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8413 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8414 _lt_compiler_boilerplate
=`cat conftest.err`
8417 ac_outfile
=conftest.
$ac_objext
8418 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8419 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8420 _lt_linker_boilerplate
=`cat conftest.err`
8425 ## There is no encapsulation within the following macros, do not change
8426 ## the running order or otherwise move them around unless you know exactly
8427 ## what you are doing...
8428 if test -n "$compiler"; then
8430 lt_prog_compiler_no_builtin_flag
=
8432 if test "$GCC" = yes; then
8433 case $cc_basename in
8435 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8437 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8441 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8442 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8443 $as_echo_n "(cached) " >&6
8445 lt_cv_prog_compiler_rtti_exceptions
=no
8446 ac_outfile
=conftest.
$ac_objext
8447 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8448 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8449 # Insert the option either (1) after the last *FLAGS variable, or
8450 # (2) before a word containing "conftest.", or (3) at the end.
8451 # Note that $ac_compile itself does not contain backslashes and begins
8452 # with a dollar sign (not a hyphen), so the echo should work correctly.
8453 # The option is referenced via a variable to avoid confusing sed.
8454 lt_compile
=`echo "$ac_compile" | $SED \
8455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457 -e 's:$: $lt_compiler_flag:'`
8458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459 (eval "$lt_compile" 2>conftest.err
)
8461 cat conftest.err
>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 if (exit $ac_status) && test -s "$ac_outfile"; then
8464 # The compiler can only warn and ignore the option if not recognized
8465 # So say no if there are warnings other than the usual output.
8466 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8467 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8468 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8469 lt_cv_prog_compiler_rtti_exceptions
=yes
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8476 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8478 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8479 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8491 lt_prog_compiler_wl
=
8492 lt_prog_compiler_pic
=
8493 lt_prog_compiler_static
=
8496 if test "$GCC" = yes; then
8497 lt_prog_compiler_wl
='-Wl,'
8498 lt_prog_compiler_static
='-static'
8502 # All AIX code is PIC.
8503 if test "$host_cpu" = ia64
; then
8504 # AIX 5 now supports IA64 processor
8505 lt_prog_compiler_static
='-Bstatic'
8512 # see comment about AmigaOS4 .so support
8513 lt_prog_compiler_pic
='-fPIC'
8516 # FIXME: we need at least 68020 code to build shared libraries, but
8517 # adding the `-m68020' flag to GCC prevents building anything better,
8519 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8524 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8525 # PIC is the default for these OSes.
8528 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8529 # This hack is so that the source file can tell whether it is being
8530 # built for inclusion in a dll (and should export symbols for example).
8531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8532 # (--disable-auto-import) libraries
8533 lt_prog_compiler_pic
='-DDLL_EXPORT'
8536 darwin
* | rhapsody
*)
8537 # PIC is the default on this platform
8538 # Common symbols not allowed in MH_DYLIB files
8539 lt_prog_compiler_pic
='-fno-common'
8543 # PIC is the default for Haiku.
8544 # The "-static" flag exists, but is broken.
8545 lt_prog_compiler_static
=
8549 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8550 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8551 # sets the default TLS model and affects inlining.
8557 lt_prog_compiler_pic
='-fPIC'
8563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8564 # Instead, we relocate shared libraries at runtime.
8568 # Just because we use GCC doesn't mean we suddenly get shared libraries
8569 # on systems that don't support them.
8570 lt_prog_compiler_can_build_shared
=no
8575 # QNX uses GNU C++, but need to define -shared option too, otherwise
8577 lt_prog_compiler_pic
='-fPIC -shared'
8581 if test -d /usr
/nec
; then
8582 lt_prog_compiler_pic
=-Kconform_pic
8587 lt_prog_compiler_pic
='-fPIC'
8591 case $cc_basename in
8592 nvcc
*) # Cuda Compiler Driver 2.2
8593 lt_prog_compiler_wl
='-Xlinker '
8594 if test -n "$lt_prog_compiler_pic"; then
8595 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8600 # PORTME Check for flag to pass linker flags through the system compiler.
8603 lt_prog_compiler_wl
='-Wl,'
8604 if test "$host_cpu" = ia64
; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static
='-Bstatic'
8608 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8612 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8613 # This hack is so that the source file can tell whether it is being
8614 # built for inclusion in a dll (and should export symbols for example).
8615 lt_prog_compiler_pic
='-DDLL_EXPORT'
8618 hpux9
* | hpux10
* | hpux11
*)
8619 lt_prog_compiler_wl
='-Wl,'
8620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8627 lt_prog_compiler_pic
='+Z'
8630 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8631 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8634 irix5
* | irix6
* | nonstopux
*)
8635 lt_prog_compiler_wl
='-Wl,'
8636 # PIC (with -KPIC) is the default.
8637 lt_prog_compiler_static
='-non_shared'
8640 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8641 case $cc_basename in
8642 # old Intel for x86_64 which still supported -KPIC.
8644 lt_prog_compiler_wl
='-Wl,'
8645 lt_prog_compiler_pic
='-KPIC'
8646 lt_prog_compiler_static
='-static'
8648 # icc used to be incompatible with GCC.
8649 # ICC 10 doesn't accept -KPIC any more.
8651 lt_prog_compiler_wl
='-Wl,'
8652 lt_prog_compiler_pic
='-fPIC'
8653 lt_prog_compiler_static
='-static'
8655 # Lahey Fortran 8.1.
8657 lt_prog_compiler_wl
='-Wl,'
8658 lt_prog_compiler_pic
='--shared'
8659 lt_prog_compiler_static
='--static'
8662 # NAG Fortran compiler
8663 lt_prog_compiler_wl
='-Wl,-Wl,,'
8664 lt_prog_compiler_pic
='-PIC'
8665 lt_prog_compiler_static
='-Bstatic'
8667 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8668 # Portland Group compilers (*not* the Pentium gcc compiler,
8669 # which looks to be a dead project)
8670 lt_prog_compiler_wl
='-Wl,'
8671 lt_prog_compiler_pic
='-fpic'
8672 lt_prog_compiler_static
='-Bstatic'
8675 lt_prog_compiler_wl
='-Wl,'
8676 # All Alpha code is PIC.
8677 lt_prog_compiler_static
='-non_shared'
8679 xl
* | bgxl
* | bgf
* | mpixl
*)
8680 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8681 lt_prog_compiler_wl
='-Wl,'
8682 lt_prog_compiler_pic
='-qpic'
8683 lt_prog_compiler_static
='-qstaticlink'
8686 case `$CC -V 2>&1 | sed 5q` in
8687 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8688 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8689 lt_prog_compiler_pic
='-KPIC'
8690 lt_prog_compiler_static
='-Bstatic'
8691 lt_prog_compiler_wl
=''
8693 *Sun\ F
* |
*Sun
*Fortran
*)
8694 lt_prog_compiler_pic
='-KPIC'
8695 lt_prog_compiler_static
='-Bstatic'
8696 lt_prog_compiler_wl
='-Qoption ld '
8700 lt_prog_compiler_pic
='-KPIC'
8701 lt_prog_compiler_static
='-Bstatic'
8702 lt_prog_compiler_wl
='-Wl,'
8704 *Intel
*\
[CF
]*Compiler
*)
8705 lt_prog_compiler_wl
='-Wl,'
8706 lt_prog_compiler_pic
='-fPIC'
8707 lt_prog_compiler_static
='-static'
8710 lt_prog_compiler_wl
='-Wl,'
8711 lt_prog_compiler_pic
='-fpic'
8712 lt_prog_compiler_static
='-Bstatic'
8720 lt_prog_compiler_pic
='-KPIC'
8721 lt_prog_compiler_static
='-Bstatic'
8725 # QNX uses GNU C++, but need to define -shared option too, otherwise
8727 lt_prog_compiler_pic
='-fPIC -shared'
8730 osf3
* | osf4
* | osf5
*)
8731 lt_prog_compiler_wl
='-Wl,'
8732 # All OSF/1 code is PIC.
8733 lt_prog_compiler_static
='-non_shared'
8737 lt_prog_compiler_static
='-non_shared'
8741 lt_prog_compiler_pic
='-KPIC'
8742 lt_prog_compiler_static
='-Bstatic'
8743 case $cc_basename in
8744 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8745 lt_prog_compiler_wl
='-Qoption ld ';;
8747 lt_prog_compiler_wl
='-Wl,';;
8752 lt_prog_compiler_wl
='-Qoption ld '
8753 lt_prog_compiler_pic
='-PIC'
8754 lt_prog_compiler_static
='-Bstatic'
8757 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8758 lt_prog_compiler_wl
='-Wl,'
8759 lt_prog_compiler_pic
='-KPIC'
8760 lt_prog_compiler_static
='-Bstatic'
8764 if test -d /usr
/nec
;then
8765 lt_prog_compiler_pic
='-Kconform_pic'
8766 lt_prog_compiler_static
='-Bstatic'
8770 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8771 lt_prog_compiler_wl
='-Wl,'
8772 lt_prog_compiler_pic
='-KPIC'
8773 lt_prog_compiler_static
='-Bstatic'
8777 lt_prog_compiler_wl
='-Wl,'
8778 lt_prog_compiler_can_build_shared
=no
8782 lt_prog_compiler_pic
='-pic'
8783 lt_prog_compiler_static
='-Bstatic'
8787 lt_prog_compiler_can_build_shared
=no
8793 # For platforms which do not support PIC, -DPIC is meaningless:
8795 lt_prog_compiler_pic
=
8798 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8803 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8804 if ${lt_cv_prog_compiler_pic+:} false
; then :
8805 $as_echo_n "(cached) " >&6
8807 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8810 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8811 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8814 # Check to make sure the PIC flag actually works.
8816 if test -n "$lt_prog_compiler_pic"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8818 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8819 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8820 $as_echo_n "(cached) " >&6
8822 lt_cv_prog_compiler_pic_works
=no
8823 ac_outfile
=conftest.
$ac_objext
8824 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8825 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8826 # Insert the option either (1) after the last *FLAGS variable, or
8827 # (2) before a word containing "conftest.", or (3) at the end.
8828 # Note that $ac_compile itself does not contain backslashes and begins
8829 # with a dollar sign (not a hyphen), so the echo should work correctly.
8830 # The option is referenced via a variable to avoid confusing sed.
8831 lt_compile
=`echo "$ac_compile" | $SED \
8832 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8833 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8834 -e 's:$: $lt_compiler_flag:'`
8835 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8836 (eval "$lt_compile" 2>conftest.err
)
8838 cat conftest.err
>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 if (exit $ac_status) && test -s "$ac_outfile"; then
8841 # The compiler can only warn and ignore the option if not recognized
8842 # So say no if there are warnings other than the usual output.
8843 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8844 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8845 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8846 lt_cv_prog_compiler_pic_works
=yes
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8853 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8855 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8856 case $lt_prog_compiler_pic in
8858 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8861 lt_prog_compiler_pic
=
8862 lt_prog_compiler_can_build_shared
=no
8878 # Check to make sure the static flag actually works.
8880 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8883 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8884 $as_echo_n "(cached) " >&6
8886 lt_cv_prog_compiler_static_works
=no
8887 save_LDFLAGS
="$LDFLAGS"
8888 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8889 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8890 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8891 # The linker can only warn and ignore the option if not recognized
8892 # So say no if there are warnings
8893 if test -s conftest.err
; then
8894 # Append any errors to the config.log.
8895 cat conftest.err
1>&5
8896 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8897 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8898 if diff conftest.exp conftest.er2
>/dev
/null
; then
8899 lt_cv_prog_compiler_static_works
=yes
8902 lt_cv_prog_compiler_static_works
=yes
8906 LDFLAGS
="$save_LDFLAGS"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8910 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8912 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8915 lt_prog_compiler_static
=
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8926 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8927 $as_echo_n "(cached) " >&6
8929 lt_cv_prog_compiler_c_o
=no
8930 $RM -r conftest
2>/dev
/null
8934 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8936 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 lt_compile
=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>out
/conftest.err
)
8948 cat out
/conftest.err
>&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings
8954 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8955 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8956 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8957 lt_cv_prog_compiler_c_o
=yes
8962 # SGI C++ compiler will create directory out/ii_files/ for
8963 # template instantiation
8964 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8965 $RM out
/* && rmdir out
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8980 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8981 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8982 $as_echo_n "(cached) " >&6
8984 lt_cv_prog_compiler_c_o
=no
8985 $RM -r conftest
2>/dev
/null
8989 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8991 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8992 # Insert the option either (1) after the last *FLAGS variable, or
8993 # (2) before a word containing "conftest.", or (3) at the end.
8994 # Note that $ac_compile itself does not contain backslashes and begins
8995 # with a dollar sign (not a hyphen), so the echo should work correctly.
8996 lt_compile
=`echo "$ac_compile" | $SED \
8997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999 -e 's:$: $lt_compiler_flag:'`
9000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001 (eval "$lt_compile" 2>out
/conftest.err
)
9003 cat out
/conftest.err
>&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9007 # The compiler can only warn and ignore the option if not recognized
9008 # So say no if there are warnings
9009 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9010 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9011 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9012 lt_cv_prog_compiler_c_o
=yes
9017 # SGI C++ compiler will create directory out/ii_files/ for
9018 # template instantiation
9019 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9020 $RM out
/* && rmdir out
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9027 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032 hard_links
="nottested"
9033 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9034 # do not overwrite the value of need_locks provided by the user
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9036 $as_echo_n "checking if we can lock with hard links... " >&6; }
9039 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9041 ln conftest.a conftest.b
2>&5 || hard_links
=no
9042 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9044 $as_echo "$hard_links" >&6; }
9045 if test "$hard_links" = no
; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9047 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9060 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9063 allow_undefined_flag
=
9064 always_export_symbols
=no
9066 archive_expsym_cmds
=
9067 compiler_needs_object
=no
9068 enable_shared_with_static_runtimes
=no
9069 export_dynamic_flag_spec
=
9070 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9071 hardcode_automatic
=no
9073 hardcode_direct_absolute
=no
9074 hardcode_libdir_flag_spec
=
9075 hardcode_libdir_separator
=
9077 hardcode_shlibpath_var
=unsupported
9079 link_all_deplibs
=unknown
9082 old_archive_from_new_cmds
=
9083 old_archive_from_expsyms_cmds
=
9084 thread_safe_flag_spec
=
9085 whole_archive_flag_spec
=
9086 # include_expsyms should be a list of space-separated symbols to be *always*
9087 # included in the symbol list
9089 # exclude_expsyms can be an extended regexp of symbols to exclude
9090 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9091 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9092 # as well as any symbol that contains `d'.
9093 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9094 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9095 # platforms (ab)use it in PIC code, but their linkers get confused if
9096 # the symbol is explicitly referenced. Since portable code cannot
9097 # rely on this symbol name, it's probably fine to never include it in
9098 # preloaded symbol tables.
9099 # Exclude shared library initialization/finalization symbols.
9100 extract_expsyms_cmds
=
9103 cygwin
* | mingw
* | pw32
* | cegcc
*)
9104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9105 # When not using gcc, we currently assume that we are using
9106 # Microsoft Visual C++.
9107 if test "$GCC" != yes; then
9112 # we just hope/assume this is gcc and not c89 (= MSVC++)
9122 # On some targets, GNU ld is compatible enough with the native linker
9123 # that we're better off using the native interface for both.
9124 lt_use_gnu_ld_interface
=no
9125 if test "$with_gnu_ld" = yes; then
9128 # The AIX port of GNU ld has always aspired to compatibility
9129 # with the native linker. However, as the warning in the GNU ld
9130 # block says, versions before 2.19.5* couldn't really create working
9131 # shared libraries, regardless of the interface used.
9132 case `$LD -v 2>&1` in
9133 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9134 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9135 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9137 lt_use_gnu_ld_interface
=yes
9142 lt_use_gnu_ld_interface
=yes
9147 if test "$lt_use_gnu_ld_interface" = yes; then
9148 # If archive_cmds runs LD, not CC, wlarc should be empty
9151 # Set some defaults for GNU ld with shared library support. These
9152 # are reset later if shared libraries are not supported. Putting them
9153 # here allows them to be overridden if necessary.
9154 runpath_var
=LD_RUN_PATH
9155 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9156 export_dynamic_flag_spec
='${wl}--export-dynamic'
9157 # ancient GNU ld didn't support --whole-archive et. al.
9158 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9159 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9161 whole_archive_flag_spec
=
9163 supports_anon_versioning
=no
9164 case `$LD -v 2>&1` in
9165 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9166 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9167 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9168 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9169 *\
2.11.
*) ;; # other 2.11 versions
9170 *) supports_anon_versioning
=yes ;;
9173 # See if GNU ld supports shared libraries.
9176 # On AIX/PPC, the GNU linker is very broken
9177 if test "$host_cpu" != ia64
; then
9181 *** Warning: the GNU linker, at least up to release 2.19, is reported
9182 *** to be unable to reliably create shared libraries on AIX.
9183 *** Therefore, libtool is disabling shared libraries support. If you
9184 *** really care for shared libraries, you may want to install binutils
9185 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9186 *** You will then need to restart the configuration process.
9195 # see comment about AmigaOS4 .so support
9196 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9197 archive_expsym_cmds
=''
9200 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)'
9201 hardcode_libdir_flag_spec
='-L$libdir'
9202 hardcode_minus_L
=yes
9208 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9209 allow_undefined_flag
=unsupported
9210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9211 # support --undefined. This deserves some investigation. FIXME
9212 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 cygwin
* | mingw
* | pw32
* | cegcc
*)
9219 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9220 # as there is no search path for DLLs.
9221 hardcode_libdir_flag_spec
='-L$libdir'
9222 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9223 allow_undefined_flag
=unsupported
9224 always_export_symbols
=no
9225 enable_shared_with_static_runtimes
=yes
9226 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'
9227 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9229 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9230 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9231 # If the export-symbols file already is a .def file (1st line
9232 # is EXPORTS), use it as is; otherwise, prepend...
9233 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9234 cp $export_symbols $output_objdir/$soname.def;
9236 echo EXPORTS > $output_objdir/$soname.def;
9237 cat $export_symbols >> $output_objdir/$soname.def;
9239 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9246 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 link_all_deplibs
=yes
9252 hardcode_shlibpath_var
=no
9253 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9254 export_dynamic_flag_spec
='${wl}-E'
9255 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9256 # Instead, shared libraries are loaded at an image base (0x10000000 by
9257 # default) and relocated if they conflict, which is a slow very memory
9258 # consuming and fragmenting process. To avoid this, we pick a random,
9259 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9260 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9261 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9262 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'
9265 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9267 if test "$host_os" = linux-dietlibc
; then
9268 case $cc_basename in
9269 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9272 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9273 && test "$tmp_diet" = no
9275 tmp_addflag
=' $pic_flag'
9276 tmp_sharedflag
='-shared'
9277 case $cc_basename,$host_cpu in
9278 pgcc
*) # Portland Group C compiler
9279 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'
9280 tmp_addflag
=' $pic_flag'
9282 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9283 # Portland Group f77 and f90 compilers
9284 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'
9285 tmp_addflag
=' $pic_flag -Mnomain' ;;
9286 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9287 tmp_addflag
=' -i_dynamic' ;;
9288 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9289 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9290 ifc
* | ifort
*) # Intel Fortran compiler
9291 tmp_addflag
=' -nofor_main' ;;
9292 lf95
*) # Lahey Fortran 8.1
9293 whole_archive_flag_spec
=
9294 tmp_sharedflag
='--shared' ;;
9295 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9296 tmp_sharedflag
='-qmkshrobj'
9298 nvcc
*) # Cuda Compiler Driver 2.2
9299 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'
9300 compiler_needs_object
=yes
9303 case `$CC -V 2>&1 | sed 5q` in
9304 *Sun\ C
*) # Sun C 5.9
9305 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'
9306 compiler_needs_object
=yes
9307 tmp_sharedflag
='-G' ;;
9308 *Sun\ F
*) # Sun Fortran 8.3
9309 tmp_sharedflag
='-G' ;;
9311 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313 if test "x$supports_anon_versioning" = xyes
; then
9314 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9315 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9316 echo "local: *; };" >> $output_objdir/$libname.ver~
9317 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9320 case $cc_basename in
9321 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9322 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9323 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9324 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9325 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9326 if test "x$supports_anon_versioning" = xyes
; then
9327 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9329 echo "local: *; };" >> $output_objdir/$libname.ver~
9330 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9340 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9341 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9344 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9345 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9355 *** create shared libraries on Solaris systems. Therefore, libtool
9356 *** is disabling shared libraries support. We urge you to upgrade GNU
9357 *** binutils to release 2.9.1 or newer. Another option is to modify
9358 *** your PATH or compiler configuration so that the native linker is
9359 *** used, and then restart.
9362 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9363 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9371 case `$LD -v 2>&1` in
9372 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9376 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9377 *** reliably create shared libraries on SCO systems. Therefore, libtool
9378 *** is disabling shared libraries support. We urge you to upgrade GNU
9379 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9380 *** your PATH or compiler configuration so that the native linker is
9381 *** used, and then restart.
9386 # For security reasons, it is highly recommended that you always
9387 # use absolute paths for naming shared libraries, and exclude the
9388 # DT_RUNPATH tag from executables and libraries. But doing so
9389 # requires that you compile everything twice, which is a pain.
9390 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9391 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9392 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9405 hardcode_shlibpath_var
=no
9409 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9410 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418 if test "$ld_shlibs" = no
; then
9420 hardcode_libdir_flag_spec
=
9421 export_dynamic_flag_spec
=
9422 whole_archive_flag_spec
=
9425 # PORTME fill in a description of your system's linker (not GNU ld)
9428 allow_undefined_flag
=unsupported
9429 always_export_symbols
=yes
9430 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'
9431 # Note: this linker hardcodes the directories in LIBPATH if there
9432 # are no directories specified by -L.
9433 hardcode_minus_L
=yes
9434 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9435 # Neither direct hardcoding nor static linking is supported with a
9437 hardcode_direct
=unsupported
9442 if test "$host_cpu" = ia64
; then
9443 # On IA64, the linker does run time linking by default, so we don't
9444 # have to do anything special.
9445 aix_use_runtimelinking
=no
9446 exp_sym_flag
='-Bexport'
9449 # If we're using GNU nm, then we don't want the "-C" option.
9450 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9451 # Also, AIX nm treats weak defined symbols like other global
9452 # defined symbols, whereas GNU nm marks them as "W".
9453 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9454 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'
9456 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'
9458 aix_use_runtimelinking
=no
9460 # Test if we are trying to use run time linking or normal
9461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9462 # need to do runtime linking.
9463 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9464 for ld_flag
in $LDFLAGS; do
9465 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9466 aix_use_runtimelinking
=yes
9473 exp_sym_flag
='-bexport'
9474 no_entry_flag
='-bnoentry'
9477 # When large executables or shared objects are built, AIX ld can
9478 # have problems creating the table of contents. If linking a library
9479 # or program results in "error TOC overflow" add -mminimal-toc to
9480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9485 hardcode_direct_absolute
=yes
9486 hardcode_libdir_separator
=':'
9487 link_all_deplibs
=yes
9488 file_list_spec
='${wl}-f,'
9490 if test "$GCC" = yes; then
9491 case $host_os in aix4.
[012]|aix4.
[012].
*)
9492 # We only want to do this on AIX 4.2 and lower, the check
9493 # below for broken collect2 doesn't work under 4.3+
9494 collect2name
=`${CC} -print-prog-name=collect2`
9495 if test -f "$collect2name" &&
9496 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9498 # We have reworked collect2
9501 # We have old collect2
9502 hardcode_direct
=unsupported
9503 # It fails to find uninstalled libraries when the uninstalled
9504 # path is not listed in the libpath. Setting hardcode_minus_L
9505 # to unsupported forces relinking
9506 hardcode_minus_L
=yes
9507 hardcode_libdir_flag_spec
='-L$libdir'
9508 hardcode_libdir_separator
=
9512 shared_flag
='-shared'
9513 if test "$aix_use_runtimelinking" = yes; then
9514 shared_flag
="$shared_flag "'${wl}-G'
9518 if test "$host_cpu" = ia64
; then
9519 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9520 # chokes on -Wl,-G. The following line is correct:
9523 if test "$aix_use_runtimelinking" = yes; then
9524 shared_flag
='${wl}-G'
9526 shared_flag
='${wl}-bM:SRE'
9531 export_dynamic_flag_spec
='${wl}-bexpall'
9532 # It seems that -bexpall does not export symbols beginning with
9533 # underscore (_), so it is better to generate a list of symbols to export.
9534 always_export_symbols
=yes
9535 if test "$aix_use_runtimelinking" = yes; then
9536 # Warning - without using the other runtime loading flags (-brtl),
9537 # -berok will link without error, but may produce a broken library.
9538 allow_undefined_flag
='-berok'
9539 # Determine the default libpath from the value encoded in an
9541 if test "${lt_cv_aix_libpath+set}" = set; then
9542 aix_libpath
=$lt_cv_aix_libpath
9544 if ${lt_cv_aix_libpath_+:} false
; then :
9545 $as_echo_n "(cached) " >&6
9547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9558 if ac_fn_c_try_link
"$LINENO"; then :
9560 lt_aix_libpath_sed
='
9561 /Import File Strings/,/^$/ {
9563 s/^0 *\([^ ]*\) *$/\1/
9567 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9568 # Check for a 64-bit object if we didn't find anything.
9569 if test -z "$lt_cv_aix_libpath_"; then
9570 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9573 rm -f core conftest.err conftest.
$ac_objext \
9574 conftest
$ac_exeext conftest.
$ac_ext
9575 if test -z "$lt_cv_aix_libpath_"; then
9576 lt_cv_aix_libpath_
="/usr/lib:/lib"
9581 aix_libpath
=$lt_cv_aix_libpath_
9584 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9585 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"
9587 if test "$host_cpu" = ia64
; then
9588 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9589 allow_undefined_flag
="-z nodefs"
9590 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"
9592 # Determine the default libpath from the value encoded in an
9594 if test "${lt_cv_aix_libpath+set}" = set; then
9595 aix_libpath
=$lt_cv_aix_libpath
9597 if ${lt_cv_aix_libpath_+:} false
; then :
9598 $as_echo_n "(cached) " >&6
9600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9611 if ac_fn_c_try_link
"$LINENO"; then :
9613 lt_aix_libpath_sed
='
9614 /Import File Strings/,/^$/ {
9616 s/^0 *\([^ ]*\) *$/\1/
9620 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621 # Check for a 64-bit object if we didn't find anything.
9622 if test -z "$lt_cv_aix_libpath_"; then
9623 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9626 rm -f core conftest.err conftest.
$ac_objext \
9627 conftest
$ac_exeext conftest.
$ac_ext
9628 if test -z "$lt_cv_aix_libpath_"; then
9629 lt_cv_aix_libpath_
="/usr/lib:/lib"
9634 aix_libpath
=$lt_cv_aix_libpath_
9637 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9638 # Warning - without using the other run time loading flags,
9639 # -berok will link without error, but may produce a broken library.
9640 no_undefined_flag
=' ${wl}-bernotok'
9641 allow_undefined_flag
=' ${wl}-berok'
9642 if test "$with_gnu_ld" = yes; then
9643 # We only use this code for GNU lds that support --whole-archive.
9644 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9646 # Exported symbols can be pulled into shared objects from archives
9647 whole_archive_flag_spec
='$convenience'
9649 archive_cmds_need_lc
=yes
9650 # This is similar to how AIX traditionally builds its shared libraries.
9651 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'
9659 # see comment about AmigaOS4 .so support
9660 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661 archive_expsym_cmds
=''
9664 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)'
9665 hardcode_libdir_flag_spec
='-L$libdir'
9666 hardcode_minus_L
=yes
9672 export_dynamic_flag_spec
=-rdynamic
9675 cygwin
* | mingw
* | pw32
* | cegcc
*)
9676 # When not using gcc, we currently assume that we are using
9677 # Microsoft Visual C++.
9678 # hardcode_libdir_flag_spec is actually meaningless, as there is
9679 # no search path for DLLs.
9680 case $cc_basename in
9683 hardcode_libdir_flag_spec
=' '
9684 allow_undefined_flag
=unsupported
9685 always_export_symbols
=yes
9687 # Tell ltmain to make .lib files, not .a files.
9689 # Tell ltmain to make .dll files, not .so files.
9691 # FIXME: Setting linknames here is a bad hack.
9692 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9693 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9694 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9696 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9698 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9700 # The linker will not automatically build a static lib if we build a DLL.
9701 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9702 enable_shared_with_static_runtimes
=yes
9703 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9704 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9706 old_postinstall_cmds
='chmod 644 $oldlib'
9707 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9708 lt_tool_outputfile="@TOOL_OUTPUT@"~
9709 case $lt_outputfile in
9712 lt_outputfile="$lt_outputfile.exe"
9713 lt_tool_outputfile="$lt_tool_outputfile.exe"
9716 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9717 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9718 $RM "$lt_outputfile.manifest";
9722 # Assume MSVC wrapper
9723 hardcode_libdir_flag_spec
=' '
9724 allow_undefined_flag
=unsupported
9725 # Tell ltmain to make .lib files, not .a files.
9727 # Tell ltmain to make .dll files, not .so files.
9729 # FIXME: Setting linknames here is a bad hack.
9730 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9731 # The linker will automatically build a .lib file if we build a DLL.
9732 old_archive_from_new_cmds
='true'
9733 # FIXME: Should let the user specify the lib program.
9734 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9735 enable_shared_with_static_runtimes
=yes
9740 darwin
* | rhapsody
*)
9743 archive_cmds_need_lc
=no
9745 hardcode_automatic
=yes
9746 hardcode_shlibpath_var
=unsupported
9747 if test "$lt_cv_ld_force_load" = "yes"; then
9748 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\"`'
9751 whole_archive_flag_spec
=''
9753 link_all_deplibs
=yes
9754 allow_undefined_flag
="$_lt_dar_allow_undefined"
9755 case $cc_basename in
9756 ifort
*) _lt_dar_can_shared
=yes ;;
9757 *) _lt_dar_can_shared
=$GCC ;;
9759 if test "$_lt_dar_can_shared" = "yes"; then
9760 output_verbose_link_cmd
=func_echo_all
9761 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9762 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9763 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}"
9764 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}"
9773 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec
='-L$libdir'
9775 hardcode_shlibpath_var
=no
9778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9779 # support. Future versions do this automatically, but an explicit c++rt0.o
9780 # does not break anything, and helps significantly (at the cost of a little
9783 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9784 hardcode_libdir_flag_spec
='-R$libdir'
9786 hardcode_shlibpath_var
=no
9789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9791 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9793 hardcode_minus_L
=yes
9794 hardcode_shlibpath_var
=no
9797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9798 freebsd
* | dragonfly
*)
9799 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9800 hardcode_libdir_flag_spec
='-R$libdir'
9802 hardcode_shlibpath_var
=no
9806 if test "$GCC" = yes; then
9807 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'
9809 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'
9811 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_separator
=:
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L
=yes
9818 export_dynamic_flag_spec
='${wl}-E'
9822 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9823 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 if test "$with_gnu_ld" = no
; then
9828 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_separator
=:
9831 hardcode_direct_absolute
=yes
9832 export_dynamic_flag_spec
='${wl}-E'
9833 # hardcode_minus_L: Not really in the search PATH,
9834 # but as the default location of the library.
9835 hardcode_minus_L
=yes
9840 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9843 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862 # Older versions of the 11.00 compiler do not understand -b yet
9863 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9865 $as_echo_n "checking if $CC understands -b... " >&6; }
9866 if ${lt_cv_prog_compiler__b+:} false
; then :
9867 $as_echo_n "(cached) " >&6
9869 lt_cv_prog_compiler__b
=no
9870 save_LDFLAGS
="$LDFLAGS"
9871 LDFLAGS
="$LDFLAGS -b"
9872 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9873 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9874 # The linker can only warn and ignore the option if not recognized
9875 # So say no if there are warnings
9876 if test -s conftest.err
; then
9877 # Append any errors to the config.log.
9878 cat conftest.err
1>&5
9879 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9880 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9881 if diff conftest.exp conftest.er2
>/dev
/null
; then
9882 lt_cv_prog_compiler__b
=yes
9885 lt_cv_prog_compiler__b
=yes
9889 LDFLAGS
="$save_LDFLAGS"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9893 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9895 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9896 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 if test "$with_gnu_ld" = no
; then
9905 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9906 hardcode_libdir_separator
=:
9911 hardcode_shlibpath_var
=no
9915 hardcode_direct_absolute
=yes
9916 export_dynamic_flag_spec
='${wl}-E'
9918 # hardcode_minus_L: Not really in the search PATH,
9919 # but as the default location of the library.
9920 hardcode_minus_L
=yes
9926 irix5
* | irix6
* | nonstopux
*)
9927 if test "$GCC" = yes; then
9928 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'
9929 # Try to use the -exported_symbol ld option, if it does not
9930 # work, assume that -exports_file does not work either and
9931 # implicitly export all symbols.
9932 # This should be the same for all languages, so no per-tag cache variable.
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9934 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9935 if ${lt_cv_irix_exported_symbol+:} false
; then :
9936 $as_echo_n "(cached) " >&6
9938 save_LDFLAGS
="$LDFLAGS"
9939 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 int foo (void) { return 0; }
9944 if ac_fn_c_try_link
"$LINENO"; then :
9945 lt_cv_irix_exported_symbol
=yes
9947 lt_cv_irix_exported_symbol
=no
9949 rm -f core conftest.err conftest.
$ac_objext \
9950 conftest
$ac_exeext conftest.
$ac_ext
9951 LDFLAGS
="$save_LDFLAGS"
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9954 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9955 if test "$lt_cv_irix_exported_symbol" = yes; then
9956 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'
9959 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'
9960 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'
9962 archive_cmds_need_lc
='no'
9963 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator
=:
9966 link_all_deplibs
=yes
9970 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9971 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9973 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9975 hardcode_libdir_flag_spec
='-R$libdir'
9977 hardcode_shlibpath_var
=no
9981 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9984 hardcode_libdir_separator
=:
9985 hardcode_shlibpath_var
=no
9992 if test -f /usr
/libexec
/ld.so
; then
9994 hardcode_shlibpath_var
=no
9995 hardcode_direct_absolute
=yes
9996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9997 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9999 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10000 export_dynamic_flag_spec
='${wl}-E'
10003 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10004 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_libdir_flag_spec
='-R$libdir'
10008 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10009 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10019 hardcode_libdir_flag_spec
='-L$libdir'
10020 hardcode_minus_L
=yes
10021 allow_undefined_flag
=unsupported
10022 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'
10023 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10027 if test "$GCC" = yes; then
10028 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10029 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'
10031 allow_undefined_flag
=' -expect_unresolved \*'
10032 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'
10034 archive_cmds_need_lc
='no'
10035 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator
=:
10039 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10040 if test "$GCC" = yes; then
10041 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10042 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'
10043 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10045 allow_undefined_flag
=' -expect_unresolved \*'
10046 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'
10047 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~
10048 $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'
10050 # Both c and cxx compiler support -rpath directly
10051 hardcode_libdir_flag_spec
='-rpath $libdir'
10053 archive_cmds_need_lc
='no'
10054 hardcode_libdir_separator
=:
10058 no_undefined_flag
=' -z defs'
10059 if test "$GCC" = yes; then
10061 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10062 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10063 $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'
10065 case `$CC -V 2>&1` in
10068 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10074 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10076 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10080 hardcode_libdir_flag_spec
='-R$libdir'
10081 hardcode_shlibpath_var
=no
10083 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10085 # The compiler driver will combine and reorder linker options,
10086 # but understands `-z linker_flag'. GCC discards it without `$wl',
10087 # but is careful enough not to reorder.
10088 # Supported since Solaris 2.6 (maybe 2.5.1?)
10089 if test "$GCC" = yes; then
10090 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10092 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10096 link_all_deplibs
=yes
10100 if test "x$host_vendor" = xsequent
; then
10101 # Use $CC to link under sequent, because it throws in some extra .o
10102 # files that make .init and .fini sections work.
10103 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_libdir_flag_spec
='-L$libdir'
10108 hardcode_direct
=yes
10109 hardcode_minus_L
=yes
10110 hardcode_shlibpath_var
=no
10114 case $host_vendor in
10116 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_direct
=yes # is this really true???
10120 ## LD is ld it makes a PLAMLIB
10121 ## CC just makes a GrossModule.
10122 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10123 reload_cmds
='$CC -r -o $output$reload_objs'
10127 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10131 runpath_var
='LD_RUN_PATH'
10132 hardcode_shlibpath_var
=no
10136 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_shlibpath_var
=no
10138 export_dynamic_flag_spec
='-Bexport'
10142 if test -d /usr
/nec
; then
10143 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_shlibpath_var
=no
10145 runpath_var
=LD_RUN_PATH
10146 hardcode_runpath_var
=yes
10151 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10152 no_undefined_flag
='${wl}-z,text'
10153 archive_cmds_need_lc
=no
10154 hardcode_shlibpath_var
=no
10155 runpath_var
='LD_RUN_PATH'
10157 if test "$GCC" = yes; then
10158 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 sysv5
* | sco3.2v5
* | sco5v6
*)
10167 # Note: We can NOT use -z defs as we might desire, because we do not
10168 # link with -lc, and that would cause any symbols used from libc to
10169 # always be unresolved, which means just about no library would
10170 # ever link correctly. If we're not using GNU ld we use -z text
10171 # though, which does catch some bad symbols but isn't as heavy-handed
10173 no_undefined_flag
='${wl}-z,text'
10174 allow_undefined_flag
='${wl}-z,nodefs'
10175 archive_cmds_need_lc
=no
10176 hardcode_shlibpath_var
=no
10177 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10178 hardcode_libdir_separator
=':'
10179 link_all_deplibs
=yes
10180 export_dynamic_flag_spec
='${wl}-Bexport'
10181 runpath_var
='LD_RUN_PATH'
10183 if test "$GCC" = yes; then
10184 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10185 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10188 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 hardcode_libdir_flag_spec
='-L$libdir'
10195 hardcode_shlibpath_var
=no
10203 if test x
$host_vendor = xsni
; then
10205 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10206 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10213 $as_echo "$ld_shlibs" >&6; }
10214 test "$ld_shlibs" = no
&& can_build_shared
=no
10216 with_gnu_ld
=$with_gnu_ld
10233 # Do we need to explicitly link libc?
10235 case "x$archive_cmds_need_lc" in
10237 # Assume -lc should be added
10238 archive_cmds_need_lc
=yes
10240 if test "$enable_shared" = yes && test "$GCC" = yes; then
10241 case $archive_cmds in
10243 # FIXME: we may have to deal with multi-command sequences.
10246 # Test whether the compiler implicitly links with -lc since on some
10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10248 # to ld, don't add -lc before -lgcc.
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10250 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10251 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10252 $as_echo_n "(cached) " >&6
10255 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10258 (eval $ac_compile) 2>&5
10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10261 test $ac_status = 0; } 2>conftest.err
; then
10264 libobjs
=conftest.
$ac_objext
10266 wl
=$lt_prog_compiler_wl
10267 pic_flag
=$lt_prog_compiler_pic
10273 lt_save_allow_undefined_flag
=$allow_undefined_flag
10274 allow_undefined_flag
=
10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10276 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10279 test $ac_status = 0; }
10281 lt_cv_archive_cmds_need_lc
=no
10283 lt_cv_archive_cmds_need_lc
=yes
10285 allow_undefined_flag
=$lt_save_allow_undefined_flag
10287 cat conftest.err
1>&5
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10293 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10294 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10453 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10455 if test "$GCC" = yes; then
10457 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10458 *) lt_awk_arg
="/^libraries:/" ;;
10461 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10462 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10464 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10465 case $lt_search_path_spec in
10467 # if the path contains ";" then we assume it to be the separator
10468 # otherwise default to the standard path separator (i.e. ":") - it is
10469 # assumed that no part of a normal pathname contains ";" but that should
10470 # okay in the real world where ";" in dirpaths is itself problematic.
10471 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10474 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10477 # Ok, now we have the path, separated by spaces, we can step through it
10478 # and add multilib dir if necessary.
10479 lt_tmp_lt_search_path_spec
=
10480 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10481 for lt_sys_path
in $lt_search_path_spec; do
10482 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10483 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10485 test -d "$lt_sys_path" && \
10486 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10489 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10490 BEGIN {RS=" "; FS="/|\n";} {
10493 for (lt_i = NF; lt_i > 0; lt_i--) {
10494 if ($lt_i != "" && $lt_i != ".") {
10495 if ($lt_i == "..") {
10498 if (lt_count == 0) {
10499 lt_foo="/" $lt_i lt_foo;
10506 if (lt_foo != "") { lt_freq[lt_foo]++; }
10507 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10509 # AWK program above erroneously prepends '/' to C:/dos/paths
10512 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10513 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10515 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10517 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10519 library_names_spec
=
10520 libname_spec
='lib$name'
10524 postuninstall_cmds
=
10528 shlibpath_overrides_runpath
=unknown
10530 dynamic_linker
="$host_os ld.so"
10531 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10532 need_lib_prefix
=unknown
10533 hardcode_into_libs
=no
10535 # when you set need_version to no, make sure it does not cause -set_version
10536 # flags to be left without arguments
10537 need_version
=unknown
10541 version_type
=linux
# correct to gnu/linux during the next big refactor
10542 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10543 shlibpath_var
=LIBPATH
10545 # AIX 3 has no versioning support, so we append a major version to the name.
10546 soname_spec
='${libname}${release}${shared_ext}$major'
10550 version_type
=linux
# correct to gnu/linux during the next big refactor
10553 hardcode_into_libs
=yes
10554 if test "$host_cpu" = ia64
; then
10555 # AIX 5 supports IA64
10556 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10557 shlibpath_var
=LD_LIBRARY_PATH
10559 # With GCC up to 2.95.x, collect2 would create an import file
10560 # for dependence libraries. The import file would start with
10561 # the line `#! .'. This would cause the generated library to
10562 # depend on `.', always an invalid library. This was fixed in
10563 # development snapshots of GCC prior to 3.0.
10565 aix4 | aix4.
[01] | aix4.
[01].
*)
10566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10568 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10571 can_build_shared
=no
10575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10576 # soname into executable. Probably we can add versioning support to
10577 # collect2, so additional links can be useful in future.
10578 if test "$aix_use_runtimelinking" = yes; then
10579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10580 # instead of lib<name>.a to let people know that these are not
10581 # typical AIX shared libraries.
10582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 # We preserve .a as extension for shared libraries through AIX4.2
10585 # and later when we are not doing run time linking.
10586 library_names_spec
='${libname}${release}.a $libname.a'
10587 soname_spec
='${libname}${release}${shared_ext}$major'
10589 shlibpath_var
=LIBPATH
10596 # Since July 2007 AmigaOS4 officially supports .so libraries.
10597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 library_names_spec
='$libname.ixlibrary $libname.a'
10602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10603 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'
10609 library_names_spec
='${libname}${shared_ext}'
10610 dynamic_linker
="$host_os ld.so"
10611 shlibpath_var
=LIBRARY_PATH
10615 version_type
=linux
# correct to gnu/linux during the next big refactor
10617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 soname_spec
='${libname}${release}${shared_ext}$major'
10619 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10620 shlibpath_var
=LD_LIBRARY_PATH
10621 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10622 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10623 # the default ld.so.conf also contains /usr/contrib/lib and
10624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10625 # libtool to hard-code these into programs
10628 cygwin
* | mingw
* | pw32
* | cegcc
*)
10629 version_type
=windows
10634 case $GCC,$cc_basename in
10637 library_names_spec
='$libname.dll.a'
10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639 postinstall_cmds
='base_file=`basename \${file}`~
10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641 dldir=$destdir/`dirname \$dlpath`~
10642 test -d \$dldir || mkdir -p \$dldir~
10643 $install_prog $dir/$dlname \$dldir/$dlname~
10644 chmod a+x \$dldir/$dlname~
10645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10648 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10649 dlpath=$dir/\$dldll~
10651 shlibpath_overrides_runpath
=yes
10655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10656 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10658 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10661 # MinGW DLLs use traditional 'lib' prefix
10662 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10665 # pw32 DLLs use 'pw' prefix rather than 'lib'
10666 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10669 dynamic_linker
='Win32 ld.exe'
10674 libname_spec
='$name'
10675 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10676 library_names_spec
='${libname}.dll.lib'
10680 sys_lib_search_path_spec
=
10683 for lt_path
in $LIB
10686 # Let DOS variable expansion print the short 8.3 style file name.
10687 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10688 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10691 # Convert to MSYS style.
10692 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10695 # Convert to unix form, then to dos form, then back to unix form
10696 # but this time dos style (no spaces!) so that the unix form looks
10697 # like /cygdrive/c/PROGRA~1:/cygdr...
10698 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10699 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10700 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10703 sys_lib_search_path_spec
="$LIB"
10704 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10705 # It is most probably a Windows format PATH.
10706 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10708 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10710 # FIXME: find the short name or the path components, as spaces are
10711 # common. (e.g. "Program Files" -> "PROGRA~1")
10715 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10716 postinstall_cmds
='base_file=`basename \${file}`~
10717 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10718 dldir=$destdir/`dirname \$dlpath`~
10719 test -d \$dldir || mkdir -p \$dldir~
10720 $install_prog $dir/$dlname \$dldir/$dlname'
10721 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10722 dlpath=$dir/\$dldll~
10724 shlibpath_overrides_runpath
=yes
10725 dynamic_linker
='Win32 link.exe'
10729 # Assume MSVC wrapper
10730 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10731 dynamic_linker
='Win32 ld.exe'
10734 # FIXME: first we should search . and the directory the executable is in
10738 darwin
* | rhapsody
*)
10739 dynamic_linker
="$host_os dyld"
10740 version_type
=darwin
10743 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10744 soname_spec
='${libname}${release}${major}$shared_ext'
10745 shlibpath_overrides_runpath
=yes
10746 shlibpath_var
=DYLD_LIBRARY_PATH
10747 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10749 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10750 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10754 version_type
=linux
# correct to gnu/linux during the next big refactor
10757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758 soname_spec
='${libname}${release}${shared_ext}$major'
10759 shlibpath_var
=LD_LIBRARY_PATH
10762 freebsd
* | dragonfly
*)
10763 # DragonFly does not have aout. When/if they implement a new
10764 # versioning mechanism, adjust this.
10765 if test -x /usr
/bin
/objformat
; then
10766 objformat
=`/usr/bin/objformat`
10769 freebsd
[23].
*) objformat
=aout
;;
10770 *) objformat
=elf
;;
10773 version_type
=freebsd-
$objformat
10774 case $version_type in
10776 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10781 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10785 shlibpath_var
=LD_LIBRARY_PATH
10788 shlibpath_overrides_runpath
=yes
10790 freebsd3.
[01]* | freebsdelf3.
[01]*)
10791 shlibpath_overrides_runpath
=yes
10792 hardcode_into_libs
=yes
10794 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10795 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10796 shlibpath_overrides_runpath
=no
10797 hardcode_into_libs
=yes
10799 *) # from 4.6 on, and DragonFly
10800 shlibpath_overrides_runpath
=yes
10801 hardcode_into_libs
=yes
10807 version_type
=linux
# correct to gnu/linux during the next big refactor
10810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10811 soname_spec
='${libname}${release}${shared_ext}$major'
10812 shlibpath_var
=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath
=no
10814 hardcode_into_libs
=yes
10818 version_type
=linux
# correct to gnu/linux during the next big refactor
10821 dynamic_linker
="$host_os runtime_loader"
10822 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10823 soname_spec
='${libname}${release}${shared_ext}$major'
10824 shlibpath_var
=LIBRARY_PATH
10825 shlibpath_overrides_runpath
=yes
10826 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10827 hardcode_into_libs
=yes
10830 hpux9
* | hpux10
* | hpux11
*)
10831 # Give a soname corresponding to the major version so that dld.sl refuses to
10832 # link against other versions.
10839 hardcode_into_libs
=yes
10840 dynamic_linker
="$host_os dld.so"
10841 shlibpath_var
=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10844 soname_spec
='${libname}${release}${shared_ext}$major'
10845 if test "X$HPUX_IA64_MODE" = X32
; then
10846 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10848 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10850 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10854 hardcode_into_libs
=yes
10855 dynamic_linker
="$host_os dld.sl"
10856 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10857 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 soname_spec
='${libname}${release}${shared_ext}$major'
10860 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10861 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10865 dynamic_linker
="$host_os dld.sl"
10866 shlibpath_var
=SHLIB_PATH
10867 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10868 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869 soname_spec
='${libname}${release}${shared_ext}$major'
10872 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10873 postinstall_cmds
='chmod 555 $lib'
10874 # or fails outright, so override atomically:
10875 install_override_mode
=555
10879 version_type
=linux
# correct to gnu/linux during the next big refactor
10882 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10883 soname_spec
='${libname}${release}${shared_ext}$major'
10884 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10885 shlibpath_var
=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath
=no
10887 hardcode_into_libs
=yes
10890 irix5
* | irix6
* | nonstopux
*)
10892 nonstopux
*) version_type
=nonstopux
;;
10894 if test "$lt_cv_prog_gnu_ld" = yes; then
10895 version_type
=linux
# correct to gnu/linux during the next big refactor
10902 soname_spec
='${libname}${release}${shared_ext}$major'
10903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10905 irix5
* | nonstopux
*)
10906 libsuff
= shlibsuff
=
10909 case $LD in # libtool.m4 will add one of these switches to LD
10910 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10911 libsuff
= shlibsuff
= libmagic
=32-bit;;
10912 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10913 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10914 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10915 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10916 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10920 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10921 shlibpath_overrides_runpath
=no
10922 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10923 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10924 hardcode_into_libs
=yes
10927 # No shared lib support for Linux oldld, aout, or coff.
10928 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10932 # This must be glibc/ELF.
10933 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10934 version_type
=linux
# correct to gnu/linux during the next big refactor
10937 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec
='${libname}${release}${shared_ext}$major'
10939 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10940 shlibpath_var
=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath
=no
10943 # Some binutils ld are patched to set DT_RUNPATH
10944 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10945 $as_echo_n "(cached) " >&6
10947 lt_cv_shlibpath_overrides_runpath
=no
10948 save_LDFLAGS
=$LDFLAGS
10949 save_libdir
=$libdir
10950 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10951 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10963 if ac_fn_c_try_link
"$LINENO"; then :
10964 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10965 lt_cv_shlibpath_overrides_runpath
=yes
10968 rm -f core conftest.err conftest.
$ac_objext \
10969 conftest
$ac_exeext conftest.
$ac_ext
10970 LDFLAGS
=$save_LDFLAGS
10971 libdir
=$save_libdir
10975 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10977 # This implies no fast_install, which is unacceptable.
10978 # Some rework will be needed to allow for fast_install
10979 # before this can be enabled.
10980 hardcode_into_libs
=yes
10982 # Append ld.so.conf contents to the search path
10983 if test -f /etc
/ld.so.conf
; then
10984 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' ' '`
10985 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10988 # We used to test for /lib/ld.so.1 and disable shared libraries on
10989 # powerpc, because MkLinux only supported shared libraries with the
10990 # GNU dynamic linker. Since this was broken with cross compilers,
10991 # most powerpc-linux boxes support dynamic linking these days and
10992 # people can always --disable-shared, the test was removed, and we
10993 # assume the GNU/Linux dynamic linker is in use.
10994 dynamic_linker
='GNU/Linux ld.so'
11001 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11004 dynamic_linker
='NetBSD (a.out) ld.so'
11006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11007 soname_spec
='${libname}${release}${shared_ext}$major'
11008 dynamic_linker
='NetBSD ld.elf_so'
11010 shlibpath_var
=LD_LIBRARY_PATH
11011 shlibpath_overrides_runpath
=yes
11012 hardcode_into_libs
=yes
11016 version_type
=linux
# correct to gnu/linux during the next big refactor
11017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11018 shlibpath_var
=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath
=yes
11026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec
='${libname}${release}${shared_ext}$major'
11028 shlibpath_var
=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath
=no
11030 hardcode_into_libs
=yes
11031 dynamic_linker
='ldqnx.so'
11034 openbsd
* | bitrig
*)
11036 sys_lib_dlsearch_path_spec
="/usr/lib"
11038 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11040 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11041 *) need_version
=no
;;
11043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11045 shlibpath_var
=LD_LIBRARY_PATH
11046 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11048 openbsd2.
[89] | openbsd2.
[89].
*)
11049 shlibpath_overrides_runpath
=no
11052 shlibpath_overrides_runpath
=yes
11056 shlibpath_overrides_runpath
=yes
11061 libname_spec
='$name'
11064 library_names_spec
='$libname${shared_ext} $libname.a'
11065 dynamic_linker
='OS/2 ld.exe'
11066 shlibpath_var
=LIBPATH
11069 osf3
* | osf4
* | osf5
*)
11073 soname_spec
='${libname}${release}${shared_ext}$major'
11074 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 shlibpath_var
=LD_LIBRARY_PATH
11076 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11077 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11085 version_type
=linux
# correct to gnu/linux during the next big refactor
11088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec
='${libname}${release}${shared_ext}$major'
11090 shlibpath_var
=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath
=yes
11092 hardcode_into_libs
=yes
11093 # ldd complains unless libraries are executable
11094 postinstall_cmds
='chmod +x $lib'
11099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11100 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11101 shlibpath_var
=LD_LIBRARY_PATH
11102 shlibpath_overrides_runpath
=yes
11103 if test "$with_gnu_ld" = yes; then
11110 version_type
=linux
# correct to gnu/linux during the next big refactor
11111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 soname_spec
='${libname}${release}${shared_ext}$major'
11113 shlibpath_var
=LD_LIBRARY_PATH
11114 case $host_vendor in
11116 shlibpath_overrides_runpath
=no
11118 runpath_var
=LD_RUN_PATH
11126 shlibpath_overrides_runpath
=no
11127 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11133 if test -d /usr
/nec
;then
11134 version_type
=linux
# correct to gnu/linux during the next big refactor
11135 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11136 soname_spec
='$libname${shared_ext}.$major'
11137 shlibpath_var
=LD_LIBRARY_PATH
11141 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11142 version_type
=freebsd-elf
11145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 soname_spec
='${libname}${release}${shared_ext}$major'
11147 shlibpath_var
=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath
=yes
11149 hardcode_into_libs
=yes
11150 if test "$with_gnu_ld" = yes; then
11151 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11153 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11156 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11160 sys_lib_dlsearch_path_spec
='/usr/lib'
11164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11165 version_type
=linux
# correct to gnu/linux during the next big refactor
11168 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var
=LD_LIBRARY_PATH
11170 shlibpath_overrides_runpath
=no
11171 hardcode_into_libs
=yes
11175 version_type
=linux
# correct to gnu/linux during the next big refactor
11176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 soname_spec
='${libname}${release}${shared_ext}$major'
11178 shlibpath_var
=LD_LIBRARY_PATH
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11186 $as_echo "$dynamic_linker" >&6; }
11187 test "$dynamic_linker" = no
&& can_build_shared
=no
11189 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11190 if test "$GCC" = yes; then
11191 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11194 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11195 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11197 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11198 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11293 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11295 if test -n "$hardcode_libdir_flag_spec" ||
11296 test -n "$runpath_var" ||
11297 test "X$hardcode_automatic" = "Xyes" ; then
11299 # We can hardcode non-existent directories.
11300 if test "$hardcode_direct" != no
&&
11301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11302 # have to relink, otherwise we might link with an installed library
11303 # when we should be linking with a yet-to-be-installed one
11304 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11305 test "$hardcode_minus_L" != no
; then
11306 # Linking always hardcodes the temporary library directory.
11307 hardcode_action
=relink
11309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11310 hardcode_action
=immediate
11313 # We cannot hardcode anything, or else we can only hardcode existing
11315 hardcode_action
=unsupported
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11318 $as_echo "$hardcode_action" >&6; }
11320 if test "$hardcode_action" = relink ||
11321 test "$inherit_rpath" = yes; then
11322 # Fast installation is not supported
11323 enable_fast_install
=no
11324 elif test "$shlibpath_overrides_runpath" = yes ||
11325 test "$enable_shared" = no
; then
11326 # Fast installation is not necessary
11327 enable_fast_install
=needless
11335 if test "x$enable_dlopen" != xyes
; then
11336 enable_dlopen
=unknown
11337 enable_dlopen_self
=unknown
11338 enable_dlopen_self_static
=unknown
11345 lt_cv_dlopen
="load_add_on"
11347 lt_cv_dlopen_self
=yes
11350 mingw
* | pw32
* | cegcc
*)
11351 lt_cv_dlopen
="LoadLibrary"
11356 lt_cv_dlopen
="dlopen"
11361 # if libdl is installed we need to link against it
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11363 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11364 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11365 $as_echo_n "(cached) " >&6
11367 ac_check_lib_save_LIBS
=$LIBS
11369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11387 if ac_fn_c_try_link
"$LINENO"; then :
11388 ac_cv_lib_dl_dlopen
=yes
11390 ac_cv_lib_dl_dlopen
=no
11392 rm -f core conftest.err conftest.
$ac_objext \
11393 conftest
$ac_exeext conftest.
$ac_ext
11394 LIBS
=$ac_check_lib_save_LIBS
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11397 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11398 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11399 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11402 lt_cv_dlopen
="dyld"
11404 lt_cv_dlopen_self
=yes
11411 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11412 if test "x$ac_cv_func_shl_load" = xyes
; then :
11413 lt_cv_dlopen
="shl_load"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11416 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11417 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11418 $as_echo_n "(cached) " >&6
11420 ac_check_lib_save_LIBS
=$LIBS
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11435 return shl_load ();
11440 if ac_fn_c_try_link
"$LINENO"; then :
11441 ac_cv_lib_dld_shl_load
=yes
11443 ac_cv_lib_dld_shl_load
=no
11445 rm -f core conftest.err conftest.
$ac_objext \
11446 conftest
$ac_exeext conftest.
$ac_ext
11447 LIBS
=$ac_check_lib_save_LIBS
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11450 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11451 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11452 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11454 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11455 if test "x$ac_cv_func_dlopen" = xyes
; then :
11456 lt_cv_dlopen
="dlopen"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11461 $as_echo_n "(cached) " >&6
11463 ac_check_lib_save_LIBS
=$LIBS
11465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11483 if ac_fn_c_try_link
"$LINENO"; then :
11484 ac_cv_lib_dl_dlopen
=yes
11486 ac_cv_lib_dl_dlopen
=no
11488 rm -f core conftest.err conftest.
$ac_objext \
11489 conftest
$ac_exeext conftest.
$ac_ext
11490 LIBS
=$ac_check_lib_save_LIBS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11495 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11498 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11499 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11500 $as_echo_n "(cached) " >&6
11502 ac_check_lib_save_LIBS
=$LIBS
11503 LIBS
="-lsvld $LIBS"
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11522 if ac_fn_c_try_link
"$LINENO"; then :
11523 ac_cv_lib_svld_dlopen
=yes
11525 ac_cv_lib_svld_dlopen
=no
11527 rm -f core conftest.err conftest.
$ac_objext \
11528 conftest
$ac_exeext conftest.
$ac_ext
11529 LIBS
=$ac_check_lib_save_LIBS
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11532 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11533 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11534 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11537 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11538 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11539 $as_echo_n "(cached) " >&6
11541 ac_check_lib_save_LIBS
=$LIBS
11543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11546 /* Override any GCC internal prototype to avoid an error.
11547 Use char because int might match the return type of a GCC
11548 builtin and then its argument prototype would still apply. */
11556 return dld_link ();
11561 if ac_fn_c_try_link
"$LINENO"; then :
11562 ac_cv_lib_dld_dld_link
=yes
11564 ac_cv_lib_dld_dld_link
=no
11566 rm -f core conftest.err conftest.
$ac_objext \
11567 conftest
$ac_exeext conftest.
$ac_ext
11568 LIBS
=$ac_check_lib_save_LIBS
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11571 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11572 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11573 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11594 if test "x$lt_cv_dlopen" != xno
; then
11600 case $lt_cv_dlopen in
11602 save_CPPFLAGS
="$CPPFLAGS"
11603 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11605 save_LDFLAGS
="$LDFLAGS"
11606 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11609 LIBS
="$lt_cv_dlopen_libs $LIBS"
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11612 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11613 if ${lt_cv_dlopen_self+:} false
; then :
11614 $as_echo_n "(cached) " >&6
11616 if test "$cross_compiling" = yes; then :
11617 lt_cv_dlopen_self
=cross
11619 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11620 lt_status
=$lt_dlunknown
11621 cat > conftest.
$ac_ext <<_LT_EOF
11622 #line $LINENO "configure"
11623 #include "confdefs.h"
11632 # define LT_DLGLOBAL RTLD_GLOBAL
11635 # define LT_DLGLOBAL DL_GLOBAL
11637 # define LT_DLGLOBAL 0
11641 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11642 find out it does not work in some platform. */
11643 #ifndef LT_DLLAZY_OR_NOW
11645 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11648 # define LT_DLLAZY_OR_NOW DL_LAZY
11651 # define LT_DLLAZY_OR_NOW RTLD_NOW
11654 # define LT_DLLAZY_OR_NOW DL_NOW
11656 # define LT_DLLAZY_OR_NOW 0
11663 /* When -fvisbility=hidden is used, assume the code has been annotated
11664 correspondingly for the symbols needed. */
11665 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11666 int fnord () __attribute__((visibility("default")));
11669 int fnord () { return 42; }
11672 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11673 int status = $lt_dlunknown;
11677 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11680 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11681 else puts (dlerror ());
11683 /* dlclose (self); */
11691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11692 (eval $ac_link) 2>&5
11694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11695 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11696 (.
/conftest
; exit; ) >&5 2>/dev
/null
11698 case x
$lt_status in
11699 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11700 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11701 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11704 # compilation failed
11705 lt_cv_dlopen_self
=no
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11713 $as_echo "$lt_cv_dlopen_self" >&6; }
11715 if test "x$lt_cv_dlopen_self" = xyes
; then
11716 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11718 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self_static+:} false
; then :
11720 $as_echo_n "(cached) " >&6
11722 if test "$cross_compiling" = yes; then :
11723 lt_cv_dlopen_self_static
=cross
11725 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11726 lt_status
=$lt_dlunknown
11727 cat > conftest.
$ac_ext <<_LT_EOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11738 # define LT_DLGLOBAL RTLD_GLOBAL
11741 # define LT_DLGLOBAL DL_GLOBAL
11743 # define LT_DLGLOBAL 0
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748 find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11754 # define LT_DLLAZY_OR_NOW DL_LAZY
11757 # define LT_DLLAZY_OR_NOW RTLD_NOW
11760 # define LT_DLLAZY_OR_NOW DL_NOW
11762 # define LT_DLLAZY_OR_NOW 0
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770 correspondingly for the symbols needed. */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 int fnord () __attribute__((visibility("default")));
11775 int fnord () { return 42; }
11778 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779 int status = $lt_dlunknown;
11783 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11786 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11787 else puts (dlerror ());
11789 /* dlclose (self); */
11797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798 (eval $ac_link) 2>&5
11800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11802 (.
/conftest
; exit; ) >&5 2>/dev
/null
11804 case x
$lt_status in
11805 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11806 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11807 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11810 # compilation failed
11811 lt_cv_dlopen_self_static
=no
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11819 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11822 CPPFLAGS
="$save_CPPFLAGS"
11823 LDFLAGS
="$save_LDFLAGS"
11828 case $lt_cv_dlopen_self in
11829 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11830 *) enable_dlopen_self
=unknown
;;
11833 case $lt_cv_dlopen_self_static in
11834 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11835 *) enable_dlopen_self_static
=unknown
;;
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11858 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11859 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11860 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11861 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11865 # FIXME - insert some real tests, host_os isn't really good enough
11868 if test -n "$STRIP" ; then
11869 striplib
="$STRIP -x"
11870 old_striplib
="$STRIP -S"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11872 $as_echo "yes" >&6; }
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11896 # Report which library types will actually be built
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11898 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11900 $as_echo "$can_build_shared" >&6; }
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11903 $as_echo_n "checking whether to build shared libraries... " >&6; }
11904 test "$can_build_shared" = "no" && enable_shared
=no
11906 # On AIX, shared libraries and static libraries use the same namespace, and
11907 # are all built from PIC.
11910 test "$enable_shared" = yes && enable_static
=no
11911 if test -n "$RANLIB"; then
11912 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11913 postinstall_cmds
='$RANLIB $lib'
11918 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11919 test "$enable_shared" = yes && enable_static
=no
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11924 $as_echo "$enable_shared" >&6; }
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11927 $as_echo_n "checking whether to build static libraries... " >&6; }
11928 # Make sure either enable_shared or enable_static is yes.
11929 test "$enable_shared" = yes || enable_static
=yes
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11931 $as_echo "$enable_static" >&6; }
11938 ac_cpp
='$CPP $CPPFLAGS'
11939 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11959 ac_config_commands
="$ac_config_commands libtool"
11964 # Only expand once:
11970 if test "$enable_libevent_regress" = "yes"; then
11971 BUILD_REGRESS_TRUE
=
11972 BUILD_REGRESS_FALSE
='#'
11974 BUILD_REGRESS_TRUE
='#'
11975 BUILD_REGRESS_FALSE
=
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11980 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
11981 if ${ac_cv_search_inet_ntoa+:} false
; then :
11982 $as_echo_n "(cached) " >&6
11984 ac_func_search_save_LIBS
=$LIBS
11985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h. */
11988 /* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
11998 return inet_ntoa ();
12003 for ac_lib
in '' nsl
; do
12004 if test -z "$ac_lib"; then
12005 ac_res
="none required"
12008 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12010 if ac_fn_c_try_link
"$LINENO"; then :
12011 ac_cv_search_inet_ntoa
=$ac_res
12013 rm -f core conftest.err conftest.
$ac_objext \
12015 if ${ac_cv_search_inet_ntoa+:} false
; then :
12019 if ${ac_cv_search_inet_ntoa+:} false
; then :
12022 ac_cv_search_inet_ntoa
=no
12024 rm conftest.
$ac_ext
12025 LIBS
=$ac_func_search_save_LIBS
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12028 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12029 ac_res
=$ac_cv_search_inet_ntoa
12030 if test "$ac_res" != no
; then :
12031 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12036 $as_echo_n "checking for library containing socket... " >&6; }
12037 if ${ac_cv_search_socket+:} false
; then :
12038 $as_echo_n "(cached) " >&6
12040 ac_func_search_save_LIBS
=$LIBS
12041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12059 for ac_lib
in '' socket
; do
12060 if test -z "$ac_lib"; then
12061 ac_res
="none required"
12064 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12066 if ac_fn_c_try_link
"$LINENO"; then :
12067 ac_cv_search_socket
=$ac_res
12069 rm -f core conftest.err conftest.
$ac_objext \
12071 if ${ac_cv_search_socket+:} false
; then :
12075 if ${ac_cv_search_socket+:} false
; then :
12078 ac_cv_search_socket
=no
12080 rm conftest.
$ac_ext
12081 LIBS
=$ac_func_search_save_LIBS
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12084 $as_echo "$ac_cv_search_socket" >&6; }
12085 ac_res
=$ac_cv_search_socket
12086 if test "$ac_res" != no
; then :
12087 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12092 $as_echo_n "checking for library containing inet_aton... " >&6; }
12093 if ${ac_cv_search_inet_aton+:} false
; then :
12094 $as_echo_n "(cached) " >&6
12096 ac_func_search_save_LIBS
=$LIBS
12097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12100 /* Override any GCC internal prototype to avoid an error.
12101 Use char because int might match the return type of a GCC
12102 builtin and then its argument prototype would still apply. */
12110 return inet_aton ();
12115 for ac_lib
in '' resolv
; do
12116 if test -z "$ac_lib"; then
12117 ac_res
="none required"
12120 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12122 if ac_fn_c_try_link
"$LINENO"; then :
12123 ac_cv_search_inet_aton
=$ac_res
12125 rm -f core conftest.err conftest.
$ac_objext \
12127 if ${ac_cv_search_inet_aton+:} false
; then :
12131 if ${ac_cv_search_inet_aton+:} false
; then :
12134 ac_cv_search_inet_aton
=no
12136 rm conftest.
$ac_ext
12137 LIBS
=$ac_func_search_save_LIBS
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12140 $as_echo "$ac_cv_search_inet_aton" >&6; }
12141 ac_res
=$ac_cv_search_inet_aton
12142 if test "$ac_res" != no
; then :
12143 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12148 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12149 if ${ac_cv_search_clock_gettime+:} false
; then :
12150 $as_echo_n "(cached) " >&6
12152 ac_func_search_save_LIBS
=$LIBS
12153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12156 /* Override any GCC internal prototype to avoid an error.
12157 Use char because int might match the return type of a GCC
12158 builtin and then its argument prototype would still apply. */
12162 char clock_gettime ();
12166 return clock_gettime ();
12171 for ac_lib
in '' rt
; do
12172 if test -z "$ac_lib"; then
12173 ac_res
="none required"
12176 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12178 if ac_fn_c_try_link
"$LINENO"; then :
12179 ac_cv_search_clock_gettime
=$ac_res
12181 rm -f core conftest.err conftest.
$ac_objext \
12183 if ${ac_cv_search_clock_gettime+:} false
; then :
12187 if ${ac_cv_search_clock_gettime+:} false
; then :
12190 ac_cv_search_clock_gettime
=no
12192 rm conftest.
$ac_ext
12193 LIBS
=$ac_func_search_save_LIBS
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12196 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12197 ac_res
=$ac_cv_search_clock_gettime
12198 if test "$ac_res" != no
; then :
12199 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12204 $as_echo_n "checking for library containing sendfile... " >&6; }
12205 if ${ac_cv_search_sendfile+:} false
; then :
12206 $as_echo_n "(cached) " >&6
12208 ac_func_search_save_LIBS
=$LIBS
12209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12212 /* Override any GCC internal prototype to avoid an error.
12213 Use char because int might match the return type of a GCC
12214 builtin and then its argument prototype would still apply. */
12222 return sendfile ();
12227 for ac_lib
in '' sendfile
; do
12228 if test -z "$ac_lib"; then
12229 ac_res
="none required"
12232 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12234 if ac_fn_c_try_link
"$LINENO"; then :
12235 ac_cv_search_sendfile
=$ac_res
12237 rm -f core conftest.err conftest.
$ac_objext \
12239 if ${ac_cv_search_sendfile+:} false
; then :
12243 if ${ac_cv_search_sendfile+:} false
; then :
12246 ac_cv_search_sendfile
=no
12248 rm conftest.
$ac_ext
12249 LIBS
=$ac_func_search_save_LIBS
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12252 $as_echo "$ac_cv_search_sendfile" >&6; }
12253 ac_res
=$ac_cv_search_sendfile
12254 if test "$ac_res" != no
; then :
12255 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12261 $as_echo_n "checking for WIN32... " >&6; }
12262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12277 if ac_fn_c_try_compile
"$LINENO"; then :
12278 bwin32
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12281 bwin32
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12287 $as_echo_n "checking for CYGWIN... " >&6; }
12288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12303 if ac_fn_c_try_compile
"$LINENO"; then :
12304 cygwin
=true
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12305 $as_echo "yes" >&6; }
12307 cygwin
=false
; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12312 for ac_header
in zlib.h
12314 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12315 if test "x$ac_cv_header_zlib_h" = xyes
; then :
12316 cat >>confdefs.h
<<_ACEOF
12317 #define HAVE_ZLIB_H 1
12325 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12331 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12332 if ${ac_cv_search_inflateEnd+:} false
; then :
12333 $as_echo_n "(cached) " >&6
12335 ac_func_search_save_LIBS
=$LIBS
12336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h. */
12339 /* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
12345 char inflateEnd ();
12349 return inflateEnd ();
12354 for ac_lib
in '' z
; do
12355 if test -z "$ac_lib"; then
12356 ac_res
="none required"
12359 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12361 if ac_fn_c_try_link
"$LINENO"; then :
12362 ac_cv_search_inflateEnd
=$ac_res
12364 rm -f core conftest.err conftest.
$ac_objext \
12366 if ${ac_cv_search_inflateEnd+:} false
; then :
12370 if ${ac_cv_search_inflateEnd+:} false
; then :
12373 ac_cv_search_inflateEnd
=no
12375 rm conftest.
$ac_ext
12376 LIBS
=$ac_func_search_save_LIBS
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12379 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12380 ac_res
=$ac_cv_search_inflateEnd
12381 if test "$ac_res" != no
; then :
12382 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12386 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12393 if test "$have_zlib" = "yes"; then
12395 ZLIB_REGRESS_FALSE
='#'
12397 ZLIB_REGRESS_TRUE
='#'
12398 ZLIB_REGRESS_FALSE
=
12402 if test "$bwin32" = true
; then
12403 EV_LIB_WS32
=-lws2_32
12413 for ac_header
in openssl
/bio.h
12415 ac_fn_c_check_header_mongrel
"$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12416 if test "x$ac_cv_header_openssl_bio_h" = xyes
; then :
12417 cat >>confdefs.h
<<_ACEOF
12418 #define HAVE_OPENSSL_BIO_H 1
12426 if test "$enable_openssl" = "yes"; then
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12432 $as_echo_n "checking for library containing SSL_new... " >&6; }
12433 if ${ac_cv_search_SSL_new+:} false
; then :
12434 $as_echo_n "(cached) " >&6
12436 ac_func_search_save_LIBS
=$LIBS
12437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12455 for ac_lib
in '' ssl
; do
12456 if test -z "$ac_lib"; then
12457 ac_res
="none required"
12460 LIBS
="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12462 if ac_fn_c_try_link
"$LINENO"; then :
12463 ac_cv_search_SSL_new
=$ac_res
12465 rm -f core conftest.err conftest.
$ac_objext \
12467 if ${ac_cv_search_SSL_new+:} false
; then :
12471 if ${ac_cv_search_SSL_new+:} false
; then :
12474 ac_cv_search_SSL_new
=no
12476 rm conftest.
$ac_ext
12477 LIBS
=$ac_func_search_save_LIBS
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12480 $as_echo "$ac_cv_search_SSL_new" >&6; }
12481 ac_res
=$ac_cv_search_SSL_new
12482 if test "$ac_res" != no
; then :
12483 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12485 OPENSSL_LIBS
="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12487 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12498 $as_echo_n "checking for ANSI C header files... " >&6; }
12499 if ${ac_cv_header_stdc+:} false
; then :
12500 $as_echo_n "(cached) " >&6
12502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 #include <stdlib.h>
12505 #include <stdarg.h>
12506 #include <string.h>
12517 if ac_fn_c_try_compile
"$LINENO"; then :
12518 ac_cv_header_stdc
=yes
12520 ac_cv_header_stdc
=no
12522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12524 if test $ac_cv_header_stdc = yes; then
12525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 #include <string.h>
12531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12532 $EGREP "memchr" >/dev
/null
2>&1; then :
12535 ac_cv_header_stdc
=no
12541 if test $ac_cv_header_stdc = yes; then
12542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545 #include <stdlib.h>
12548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12549 $EGREP "free" >/dev
/null
2>&1; then :
12552 ac_cv_header_stdc
=no
12558 if test $ac_cv_header_stdc = yes; then
12559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12560 if test "$cross_compiling" = yes; then :
12563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h. */
12566 #include <stdlib.h>
12567 #if ((' ' & 0x0FF) == 0x020)
12568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12571 # define ISLOWER(c) \
12572 (('a' <= (c) && (c) <= 'i') \
12573 || ('j' <= (c) && (c) <= 'r') \
12574 || ('s' <= (c) && (c) <= 'z'))
12575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12583 for (i = 0; i < 256; i++)
12584 if (XOR (islower (i), ISLOWER (i))
12585 || toupper (i) != TOUPPER (i))
12590 if ac_fn_c_try_run
"$LINENO"; then :
12593 ac_cv_header_stdc
=no
12595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12602 $as_echo "$ac_cv_header_stdc" >&6; }
12603 if test $ac_cv_header_stdc = yes; then
12605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12609 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
12611 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12612 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12613 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12614 cat >>confdefs.h
<<_ACEOF
12615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12622 for ac_header
in sys
/sysctl.h
12624 ac_fn_c_check_header_compile
"$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12625 #ifdef HAVE_SYS_PARAM_H
12626 #include <sys/param.h>
12630 if test "x$ac_cv_header_sys_sysctl_h" = xyes
; then :
12631 cat >>confdefs.h
<<_ACEOF
12632 #define HAVE_SYS_SYSCTL_H 1
12639 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12641 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 #include <sys/queue.h>
12646 #ifdef TAILQ_FOREACH
12651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12652 $EGREP "yes" >/dev
/null
2>&1; then :
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12654 $as_echo "yes" >&6; }
12656 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12667 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12669 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include <sys/time.h>
12679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12680 $EGREP "yes" >/dev
/null
2>&1; then :
12682 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685 $as_echo "yes" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12688 $as_echo "no" >&6; }
12695 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12697 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12701 #include <sys/time.h>
12707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12708 $EGREP "yes" >/dev
/null
2>&1; then :
12710 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12713 $as_echo "yes" >&6; }
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12723 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12725 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12729 #include <sys/time.h>
12735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12736 $EGREP "yes" >/dev
/null
2>&1; then :
12738 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741 $as_echo "yes" >&6; }
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12744 $as_echo "no" >&6; }
12751 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12753 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 #include <sys/time.h>
12763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12764 $EGREP "yes" >/dev
/null
2>&1; then :
12766 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769 $as_echo "yes" >&6; }
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12779 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12780 ac_fn_c_check_decl
"$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12781 #include <sys/sysctl.h>
12784 if test "x$ac_cv_have_decl_CTL_KERN" = xyes
; then :
12790 cat >>confdefs.h
<<_ACEOF
12791 #define HAVE_DECL_CTL_KERN $ac_have_decl
12793 ac_fn_c_check_decl
"$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12794 #include <sys/sysctl.h>
12797 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes
; then :
12803 cat >>confdefs.h
<<_ACEOF
12804 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12806 ac_fn_c_check_decl
"$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12807 #include <sys/sysctl.h>
12810 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes
; then :
12816 cat >>confdefs.h
<<_ACEOF
12817 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12819 ac_fn_c_check_decl
"$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12820 #include <sys/sysctl.h>
12823 if test "x$ac_cv_have_decl_KERN_ARND" = xyes
; then :
12829 cat >>confdefs.h
<<_ACEOF
12830 #define HAVE_DECL_KERN_ARND $ac_have_decl
12835 if test x
$bwin32 = xtrue
; then
12837 BUILD_WIN32_FALSE
='#'
12839 BUILD_WIN32_TRUE
='#'
12843 if test x
$cygwin = xtrue
; then
12845 BUILD_CYGWIN_FALSE
='#'
12847 BUILD_CYGWIN_TRUE
='#'
12848 BUILD_CYGWIN_FALSE
=
12851 if test x
$bwin32 = xtrue ||
test x
$cygwin = xtrue
; then
12852 BUILD_WITH_NO_UNDEFINED_TRUE
=
12853 BUILD_WITH_NO_UNDEFINED_FALSE
='#'
12855 BUILD_WITH_NO_UNDEFINED_TRUE
='#'
12856 BUILD_WITH_NO_UNDEFINED_FALSE
=
12860 if test x
$bwin32 = xtrue
; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12862 $as_echo_n "checking for library containing getservbyname... " >&6; }
12863 if ${ac_cv_search_getservbyname+:} false
; then :
12864 $as_echo_n "(cached) " >&6
12866 ac_func_search_save_LIBS
=$LIBS
12867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12870 /* Override any GCC internal prototype to avoid an error.
12871 Use char because int might match the return type of a GCC
12872 builtin and then its argument prototype would still apply. */
12876 char getservbyname ();
12880 return getservbyname ();
12885 for ac_lib
in '' ws2_32
; do
12886 if test -z "$ac_lib"; then
12887 ac_res
="none required"
12890 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12892 if ac_fn_c_try_link
"$LINENO"; then :
12893 ac_cv_search_getservbyname
=$ac_res
12895 rm -f core conftest.err conftest.
$ac_objext \
12897 if ${ac_cv_search_getservbyname+:} false
; then :
12901 if ${ac_cv_search_getservbyname+:} false
; then :
12904 ac_cv_search_getservbyname
=no
12906 rm conftest.
$ac_ext
12907 LIBS
=$ac_func_search_save_LIBS
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12910 $as_echo "$ac_cv_search_getservbyname" >&6; }
12911 ac_res
=$ac_cv_search_getservbyname
12912 if test "$ac_res" != no
; then :
12913 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12920 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12921 if ${ac_cv_c_const+:} false
; then :
12922 $as_echo_n "(cached) " >&6
12924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12931 #ifndef __cplusplus
12932 /* Ultrix mips cc rejects this sort of thing. */
12933 typedef int charset[2];
12934 const charset cs = { 0, 0 };
12935 /* SunOS 4.1.1 cc rejects this. */
12936 char const *const *pcpcc;
12938 /* NEC SVR4.0.2 mips cc rejects this. */
12939 struct point {int x, y;};
12940 static struct point const zero = {0,0};
12941 /* AIX XL C 1.02.0.0 rejects this.
12942 It does not let you subtract one const X* pointer from another in
12943 an arm of an if-expression whose if-part is not a constant
12945 const char *g = "string";
12946 pcpcc = &g + (g ? g-g : 0);
12947 /* HPUX 7.0 cc rejects these. */
12949 ppc = (char**) pcpcc;
12950 pcpcc = (char const *const *) ppc;
12951 { /* SCO 3.2v4 cc rejects this sort of thing. */
12954 char const *s = 0 ? (char *) 0 : (char const *) 0;
12959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12960 int x[] = {25, 17};
12961 const int *foo = &x[0];
12964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12965 typedef const int *iptr;
12969 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12971 struct s { int j; const int *ap[3]; } bx;
12972 struct s *b = &bx; b->j = 5;
12974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12975 const int foo = 10;
12976 if (!foo) return 0;
12978 return !cs[0] && !zero.x;
12985 if ac_fn_c_try_compile
"$LINENO"; then :
12990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12993 $as_echo "$ac_cv_c_const" >&6; }
12994 if test $ac_cv_c_const = no
; then
12996 $as_echo "#define const /**/" >>confdefs.h
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13001 $as_echo_n "checking for inline... " >&6; }
13002 if ${ac_cv_c_inline+:} false
; then :
13003 $as_echo_n "(cached) " >&6
13006 for ac_kw
in inline __inline__ __inline
; do
13007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 #ifndef __cplusplus
13011 static $ac_kw foo_t static_foo () {return 0; }
13012 $ac_kw foo_t foo () {return 0; }
13016 if ac_fn_c_try_compile
"$LINENO"; then :
13017 ac_cv_c_inline
=$ac_kw
13019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13020 test "$ac_cv_c_inline" != no
&& break
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13025 $as_echo "$ac_cv_c_inline" >&6; }
13027 case $ac_cv_c_inline in
13030 case $ac_cv_c_inline in
13032 *) ac_val
=$ac_cv_c_inline;;
13034 cat >>confdefs.h
<<_ACEOF
13035 #ifndef __cplusplus
13036 #define inline $ac_val
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13043 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13044 if ${ac_cv_header_time+:} false
; then :
13045 $as_echo_n "(cached) " >&6
13047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 #include <sys/types.h>
13050 #include <sys/time.h>
13056 if ((struct tm *) 0)
13062 if ac_fn_c_try_compile
"$LINENO"; then :
13063 ac_cv_header_time
=yes
13065 ac_cv_header_time
=no
13067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13070 $as_echo "$ac_cv_header_time" >&6; }
13071 if test $ac_cv_header_time = yes; then
13073 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13078 for ac_func
in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13080 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13081 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13082 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13083 cat >>confdefs.h
<<_ACEOF
13084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13090 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
13092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13093 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13094 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13095 cat >>confdefs.h
<<_ACEOF
13096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13104 $as_echo_n "checking for getaddrinfo... " >&6; }
13105 if ${libevent_cv_getaddrinfo+:} false
; then :
13106 $as_echo_n "(cached) " >&6
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13111 #ifdef HAVE_NETDB_H
13126 if ac_fn_c_try_link
"$LINENO"; then :
13127 libevent_cv_getaddrinfo
=yes
13129 libevent_cv_getaddrinfo
=no
13132 rm -f core conftest.err conftest.
$ac_objext \
13133 conftest
$ac_exeext conftest.
$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13137 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13138 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13140 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13144 for ac_func
in getservbyname
13146 ac_fn_c_check_func
"$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13147 if test "x$ac_cv_func_getservbyname" = xyes
; then :
13148 cat >>confdefs.h
<<_ACEOF
13149 #define HAVE_GETSERVBYNAME 1
13155 # Check for gethostbyname_r in all its glorious incompatible versions.
13156 # (This is cut-and-pasted from Tor, which based its logic on
13157 # Python's configure.in.)
13160 ac_fn_c_check_func
"$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13161 if test "x$ac_cv_func_gethostbyname_r" = xyes
; then :
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13164 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13166 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13177 struct hostent *h1, *h2;
13179 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13185 if ac_fn_c_try_compile
"$LINENO"; then :
13187 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13190 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13193 $as_echo "6" >&6; }
13197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13207 struct hostent *h1;
13209 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13215 if ac_fn_c_try_compile
"$LINENO"; then :
13217 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13220 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13223 $as_echo "5" >&6; }
13227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13237 struct hostent *h1;
13238 struct hostent_data hd;
13239 (void) gethostbyname_r(cp1,h1,&hd);
13245 if ac_fn_c_try_compile
"$LINENO"; then :
13247 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13250 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13253 $as_echo "3" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13258 $as_echo "0" >&6; }
13261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 # The cast to long int works around a bug in the HP C Compiler
13276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13278 # This bug is HP SR number 8606223364.
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13280 $as_echo_n "checking size of long... " >&6; }
13281 if ${ac_cv_sizeof_long+:} false
; then :
13282 $as_echo_n "(cached) " >&6
13284 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13287 if test "$ac_cv_type_long" = yes; then
13288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13290 as_fn_error
77 "cannot compute sizeof (long)
13291 See \`config.log' for more details" "$LINENO" 5; }
13293 ac_cv_sizeof_long
=0
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13299 $as_echo "$ac_cv_sizeof_long" >&6; }
13303 cat >>confdefs.h
<<_ACEOF
13304 #define SIZEOF_LONG $ac_cv_sizeof_long
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13310 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13314 #define _GNU_SOURCE
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "yes" >/dev
/null
2>&1; then :
13324 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13327 $as_echo "yes" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13337 if test x
$bwin32 != xtrue
; then
13338 for ac_func
in select
13340 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
13341 if test "x$ac_cv_func_select" = xyes
; then :
13342 cat >>confdefs.h
<<_ACEOF
13343 #define HAVE_SELECT 1
13349 if test "x$haveselect" = "xyes" ; then
13353 if test "x$haveselect" = "xyes"; then
13354 SELECT_BACKEND_TRUE
=
13355 SELECT_BACKEND_FALSE
='#'
13357 SELECT_BACKEND_TRUE
='#'
13358 SELECT_BACKEND_FALSE
=
13363 for ac_func
in poll
13365 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
13366 if test "x$ac_cv_func_poll" = xyes
; then :
13367 cat >>confdefs.h
<<_ACEOF
13368 #define HAVE_POLL 1
13374 if test "x$havepoll" = "xyes" ; then
13377 if test "x$havepoll" = "xyes"; then
13379 POLL_BACKEND_FALSE
='#'
13381 POLL_BACKEND_TRUE
='#'
13382 POLL_BACKEND_FALSE
=
13387 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13389 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13392 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13393 DEVPOLL_BACKEND_TRUE
=
13394 DEVPOLL_BACKEND_FALSE
='#'
13396 DEVPOLL_BACKEND_TRUE
='#'
13397 DEVPOLL_BACKEND_FALSE
=
13402 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13403 for ac_func
in kqueue
13405 ac_fn_c_check_func
"$LINENO" "kqueue" "ac_cv_func_kqueue"
13406 if test "x$ac_cv_func_kqueue" = xyes
; then :
13407 cat >>confdefs.h
<<_ACEOF
13408 #define HAVE_KQUEUE 1
13414 if test "x$havekqueue" = "xyes" ; then
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13416 $as_echo_n "checking for working kqueue... " >&6; }
13417 if test "$cross_compiling" = yes; then :
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13423 #include <sys/types.h>
13424 #include <sys/time.h>
13425 #include <sys/event.h>
13427 #include <unistd.h>
13431 main(int argc, char **argv)
13437 struct timespec ts;
13440 if (pipe(fd) == -1)
13442 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13445 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13448 if ((kq = kqueue()) == -1)
13451 memset(&ev, 0, sizeof(ev));
13453 ev.filter = EVFILT_WRITE;
13454 ev.flags = EV_ADD | EV_ENABLE;
13455 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13459 read(fd[0], buf, sizeof(buf));
13463 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13464 if (n == -1 || n == 0)
13470 if ac_fn_c_try_run
"$LINENO"; then :
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13472 $as_echo "yes" >&6; }
13474 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13480 $as_echo "no" >&6; }
13482 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13483 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13488 if test "x$havekqueue" = "xyes"; then
13489 KQUEUE_BACKEND_TRUE
=
13490 KQUEUE_BACKEND_FALSE
='#'
13492 KQUEUE_BACKEND_TRUE
='#'
13493 KQUEUE_BACKEND_FALSE
=
13497 haveepollsyscall
=no
13499 for ac_func
in epoll_ctl
13501 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13502 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
13503 cat >>confdefs.h
<<_ACEOF
13504 #define HAVE_EPOLL_CTL 1
13510 if test "x$haveepoll" = "xyes" ; then
13512 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13516 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13517 if test "x$haveepoll" = "xno" ; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13519 $as_echo_n "checking for epoll system call... " >&6; }
13520 if test "$cross_compiling" = yes; then :
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13522 $as_echo "no" >&6; }
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 #include <stdint.h>
13527 #include <sys/param.h>
13528 #include <sys/types.h>
13529 #include <sys/syscall.h>
13530 #include <sys/epoll.h>
13531 #include <unistd.h>
13534 epoll_create(int size)
13536 return (syscall(__NR_epoll_create, size));
13540 main(int argc, char **argv)
13544 epfd = epoll_create(256);
13545 exit (epfd == -1 ? 1 : 0);
13548 if ac_fn_c_try_run
"$LINENO"; then :
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13550 $as_echo "yes" >&6; }
13552 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13556 case " $LIBOBJS " in
13557 *" epoll_sub.$ac_objext "* ) ;;
13558 *) LIBOBJS
="$LIBOBJS epoll_sub.$ac_objext"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13573 if test "x$haveepoll" = "xyes"; then
13574 EPOLL_BACKEND_TRUE
=
13575 EPOLL_BACKEND_FALSE
='#'
13577 EPOLL_BACKEND_TRUE
='#'
13578 EPOLL_BACKEND_FALSE
=
13583 for ac_func
in port_create
13585 ac_fn_c_check_func
"$LINENO" "port_create" "ac_cv_func_port_create"
13586 if test "x$ac_cv_func_port_create" = xyes
; then :
13587 cat >>confdefs.h
<<_ACEOF
13588 #define HAVE_PORT_CREATE 1
13594 if test "x$haveeventports" = "xyes" ; then
13596 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13600 if test "x$haveeventports" = "xyes"; then
13601 EVPORT_BACKEND_TRUE
=
13602 EVPORT_BACKEND_FALSE
='#'
13604 EVPORT_BACKEND_TRUE
='#'
13605 EVPORT_BACKEND_FALSE
=
13609 if test "x$bwin32" = "xtrue"; then
13613 if test "x$needsignal" = "xyes"; then
13614 SIGNAL_SUPPORT_TRUE
=
13615 SIGNAL_SUPPORT_FALSE
='#'
13617 SIGNAL_SUPPORT_TRUE
='#'
13618 SIGNAL_SUPPORT_FALSE
=
13622 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13623 if test "x$ac_cv_type_pid_t" = xyes
; then :
13627 cat >>confdefs.h
<<_ACEOF
13633 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13634 if test "x$ac_cv_type_size_t" = xyes
; then :
13638 cat >>confdefs.h
<<_ACEOF
13639 #define size_t unsigned int
13644 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13645 if test "x$ac_cv_type_ssize_t" = xyes
; then :
13649 cat >>confdefs.h
<<_ACEOF
13650 #define ssize_t int
13656 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13657 #include <stdint.h>
13658 #elif defined(HAVE_INTTYPES_H)
13659 #include <inttypes.h>
13661 #ifdef HAVE_SYS_TYPES_H
13662 #include <sys/types.h>
13665 if test "x$ac_cv_type_uint64_t" = xyes
; then :
13667 cat >>confdefs.h
<<_ACEOF
13668 #define HAVE_UINT64_T 1
13673 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13674 #include <stdint.h>
13675 #elif defined(HAVE_INTTYPES_H)
13676 #include <inttypes.h>
13678 #ifdef HAVE_SYS_TYPES_H
13679 #include <sys/types.h>
13682 if test "x$ac_cv_type_uint32_t" = xyes
; then :
13684 cat >>confdefs.h
<<_ACEOF
13685 #define HAVE_UINT32_T 1
13690 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13691 #include <stdint.h>
13692 #elif defined(HAVE_INTTYPES_H)
13693 #include <inttypes.h>
13695 #ifdef HAVE_SYS_TYPES_H
13696 #include <sys/types.h>
13699 if test "x$ac_cv_type_uint16_t" = xyes
; then :
13701 cat >>confdefs.h
<<_ACEOF
13702 #define HAVE_UINT16_T 1
13707 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13708 #include <stdint.h>
13709 #elif defined(HAVE_INTTYPES_H)
13710 #include <inttypes.h>
13712 #ifdef HAVE_SYS_TYPES_H
13713 #include <sys/types.h>
13716 if test "x$ac_cv_type_uint8_t" = xyes
; then :
13718 cat >>confdefs.h
<<_ACEOF
13719 #define HAVE_UINT8_T 1
13724 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13725 #include <stdint.h>
13726 #elif defined(HAVE_INTTYPES_H)
13727 #include <inttypes.h>
13729 #ifdef HAVE_SYS_TYPES_H
13730 #include <sys/types.h>
13733 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
13735 cat >>confdefs.h
<<_ACEOF
13736 #define HAVE_UINTPTR_T 1
13743 ac_fn_c_check_type
"$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13744 #include <sys/types.h>
13746 #ifdef HAVE_SYS_SELECT_H
13747 #include <sys/select.h>
13750 if test "x$ac_cv_type_fd_mask" = xyes
; then :
13752 cat >>confdefs.h
<<_ACEOF
13753 #define HAVE_FD_MASK 1
13760 # The cast to long int works around a bug in the HP C Compiler
13761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13763 # This bug is HP SR number 8606223364.
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13765 $as_echo_n "checking size of long long... " >&6; }
13766 if ${ac_cv_sizeof_long_long+:} false
; then :
13767 $as_echo_n "(cached) " >&6
13769 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13772 if test "$ac_cv_type_long_long" = yes; then
13773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13775 as_fn_error
77 "cannot compute sizeof (long long)
13776 See \`config.log' for more details" "$LINENO" 5; }
13778 ac_cv_sizeof_long_long
=0
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13784 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13788 cat >>confdefs.h
<<_ACEOF
13789 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13793 # The cast to long int works around a bug in the HP C Compiler
13794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13796 # This bug is HP SR number 8606223364.
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13798 $as_echo_n "checking size of long... " >&6; }
13799 if ${ac_cv_sizeof_long+:} false
; then :
13800 $as_echo_n "(cached) " >&6
13802 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13805 if test "$ac_cv_type_long" = yes; then
13806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13808 as_fn_error
77 "cannot compute sizeof (long)
13809 See \`config.log' for more details" "$LINENO" 5; }
13811 ac_cv_sizeof_long
=0
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13817 $as_echo "$ac_cv_sizeof_long" >&6; }
13821 cat >>confdefs.h
<<_ACEOF
13822 #define SIZEOF_LONG $ac_cv_sizeof_long
13826 # The cast to long int works around a bug in the HP C Compiler
13827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13829 # This bug is HP SR number 8606223364.
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13831 $as_echo_n "checking size of int... " >&6; }
13832 if ${ac_cv_sizeof_int+:} false
; then :
13833 $as_echo_n "(cached) " >&6
13835 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13838 if test "$ac_cv_type_int" = yes; then
13839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13841 as_fn_error
77 "cannot compute sizeof (int)
13842 See \`config.log' for more details" "$LINENO" 5; }
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13850 $as_echo "$ac_cv_sizeof_int" >&6; }
13854 cat >>confdefs.h
<<_ACEOF
13855 #define SIZEOF_INT $ac_cv_sizeof_int
13859 # The cast to long int works around a bug in the HP C Compiler
13860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13862 # This bug is HP SR number 8606223364.
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13864 $as_echo_n "checking size of short... " >&6; }
13865 if ${ac_cv_sizeof_short+:} false
; then :
13866 $as_echo_n "(cached) " >&6
13868 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13871 if test "$ac_cv_type_short" = yes; then
13872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13874 as_fn_error
77 "cannot compute sizeof (short)
13875 See \`config.log' for more details" "$LINENO" 5; }
13877 ac_cv_sizeof_short
=0
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13883 $as_echo "$ac_cv_sizeof_short" >&6; }
13887 cat >>confdefs.h
<<_ACEOF
13888 #define SIZEOF_SHORT $ac_cv_sizeof_short
13892 # The cast to long int works around a bug in the HP C Compiler
13893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13895 # This bug is HP SR number 8606223364.
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13897 $as_echo_n "checking size of size_t... " >&6; }
13898 if ${ac_cv_sizeof_size_t+:} false
; then :
13899 $as_echo_n "(cached) " >&6
13901 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13904 if test "$ac_cv_type_size_t" = yes; then
13905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13907 as_fn_error
77 "cannot compute sizeof (size_t)
13908 See \`config.log' for more details" "$LINENO" 5; }
13910 ac_cv_sizeof_size_t
=0
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13916 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13920 cat >>confdefs.h
<<_ACEOF
13921 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13925 # The cast to long int works around a bug in the HP C Compiler
13926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13928 # This bug is HP SR number 8606223364.
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13930 $as_echo_n "checking size of void *... " >&6; }
13931 if ${ac_cv_sizeof_void_p+:} false
; then :
13932 $as_echo_n "(cached) " >&6
13934 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13937 if test "$ac_cv_type_void_p" = yes; then
13938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13940 as_fn_error
77 "cannot compute sizeof (void *)
13941 See \`config.log' for more details" "$LINENO" 5; }
13943 ac_cv_sizeof_void_p
=0
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13949 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13953 cat >>confdefs.h
<<_ACEOF
13954 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13959 ac_fn_c_check_type
"$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13960 #include <sys/types.h>
13961 #ifdef HAVE_NETINET_IN_H
13962 #include <netinet/in.h>
13964 #ifdef HAVE_NETINET_IN6_H
13965 #include <netinet/in6.h>
13967 #ifdef HAVE_SYS_SOCKET_H
13968 #include <sys/socket.h>
13970 #ifdef HAVE_NETDB_H
13974 #define WIN32_WINNT 0x400
13975 #define _WIN32_WINNT 0x400
13976 #define WIN32_LEAN_AND_MEAN
13977 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13978 #include <winsock.h>
13980 #include <winsock2.h>
13981 #include <ws2tcpip.h>
13986 if test "x$ac_cv_type_struct_in6_addr" = xyes
; then :
13988 cat >>confdefs.h
<<_ACEOF
13989 #define HAVE_STRUCT_IN6_ADDR 1
13994 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13995 #include <sys/types.h>
13996 #ifdef HAVE_NETINET_IN_H
13997 #include <netinet/in.h>
13999 #ifdef HAVE_NETINET_IN6_H
14000 #include <netinet/in6.h>
14002 #ifdef HAVE_SYS_SOCKET_H
14003 #include <sys/socket.h>
14005 #ifdef HAVE_NETDB_H
14009 #define WIN32_WINNT 0x400
14010 #define _WIN32_WINNT 0x400
14011 #define WIN32_LEAN_AND_MEAN
14012 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14013 #include <winsock.h>
14015 #include <winsock2.h>
14016 #include <ws2tcpip.h>
14021 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
14023 cat >>confdefs.h
<<_ACEOF
14024 #define HAVE_STRUCT_SOCKADDR_IN6 1
14029 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14030 #include <sys/types.h>
14031 #ifdef HAVE_NETINET_IN_H
14032 #include <netinet/in.h>
14034 #ifdef HAVE_NETINET_IN6_H
14035 #include <netinet/in6.h>
14037 #ifdef HAVE_SYS_SOCKET_H
14038 #include <sys/socket.h>
14040 #ifdef HAVE_NETDB_H
14044 #define WIN32_WINNT 0x400
14045 #define _WIN32_WINNT 0x400
14046 #define WIN32_LEAN_AND_MEAN
14047 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14048 #include <winsock.h>
14050 #include <winsock2.h>
14051 #include <ws2tcpip.h>
14056 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
14058 cat >>confdefs.h
<<_ACEOF
14059 #define HAVE_SA_FAMILY_T 1
14064 ac_fn_c_check_type
"$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14065 #include <sys/types.h>
14066 #ifdef HAVE_NETINET_IN_H
14067 #include <netinet/in.h>
14069 #ifdef HAVE_NETINET_IN6_H
14070 #include <netinet/in6.h>
14072 #ifdef HAVE_SYS_SOCKET_H
14073 #include <sys/socket.h>
14075 #ifdef HAVE_NETDB_H
14079 #define WIN32_WINNT 0x400
14080 #define _WIN32_WINNT 0x400
14081 #define WIN32_LEAN_AND_MEAN
14082 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14083 #include <winsock.h>
14085 #include <winsock2.h>
14086 #include <ws2tcpip.h>
14091 if test "x$ac_cv_type_struct_addrinfo" = xyes
; then :
14093 cat >>confdefs.h
<<_ACEOF
14094 #define HAVE_STRUCT_ADDRINFO 1
14099 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14100 #include <sys/types.h>
14101 #ifdef HAVE_NETINET_IN_H
14102 #include <netinet/in.h>
14104 #ifdef HAVE_NETINET_IN6_H
14105 #include <netinet/in6.h>
14107 #ifdef HAVE_SYS_SOCKET_H
14108 #include <sys/socket.h>
14110 #ifdef HAVE_NETDB_H
14114 #define WIN32_WINNT 0x400
14115 #define _WIN32_WINNT 0x400
14116 #define WIN32_LEAN_AND_MEAN
14117 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14118 #include <winsock.h>
14120 #include <winsock2.h>
14121 #include <ws2tcpip.h>
14126 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
14128 cat >>confdefs.h
<<_ACEOF
14129 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14135 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14136 #ifdef HAVE_NETINET_IN_H
14137 #include <netinet/in.h>
14139 #ifdef HAVE_NETINET_IN6_H
14140 #include <netinet/in6.h>
14142 #ifdef HAVE_SYS_SOCKET_H
14143 #include <sys/socket.h>
14146 #define WIN32_WINNT 0x400
14147 #define _WIN32_WINNT 0x400
14148 #define WIN32_LEAN_AND_MEAN
14149 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14150 #include <winsock.h>
14152 #include <winsock2.h>
14153 #include <ws2tcpip.h>
14158 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes
; then :
14160 cat >>confdefs.h
<<_ACEOF
14161 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14166 ac_fn_c_check_member
"$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14167 #ifdef HAVE_NETINET_IN_H
14168 #include <netinet/in.h>
14170 #ifdef HAVE_NETINET_IN6_H
14171 #include <netinet/in6.h>
14173 #ifdef HAVE_SYS_SOCKET_H
14174 #include <sys/socket.h>
14177 #define WIN32_WINNT 0x400
14178 #define _WIN32_WINNT 0x400
14179 #define WIN32_LEAN_AND_MEAN
14180 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14181 #include <winsock.h>
14183 #include <winsock2.h>
14184 #include <ws2tcpip.h>
14189 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes
; then :
14191 cat >>confdefs.h
<<_ACEOF
14192 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14197 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14198 #ifdef HAVE_NETINET_IN_H
14199 #include <netinet/in.h>
14201 #ifdef HAVE_NETINET_IN6_H
14202 #include <netinet/in6.h>
14204 #ifdef HAVE_SYS_SOCKET_H
14205 #include <sys/socket.h>
14208 #define WIN32_WINNT 0x400
14209 #define _WIN32_WINNT 0x400
14210 #define WIN32_LEAN_AND_MEAN
14211 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14212 #include <winsock.h>
14214 #include <winsock2.h>
14215 #include <ws2tcpip.h>
14220 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
; then :
14222 cat >>confdefs.h
<<_ACEOF
14223 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14228 ac_fn_c_check_member
"$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14229 #ifdef HAVE_NETINET_IN_H
14230 #include <netinet/in.h>
14232 #ifdef HAVE_NETINET_IN6_H
14233 #include <netinet/in6.h>
14235 #ifdef HAVE_SYS_SOCKET_H
14236 #include <sys/socket.h>
14239 #define WIN32_WINNT 0x400
14240 #define _WIN32_WINNT 0x400
14241 #define WIN32_LEAN_AND_MEAN
14242 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14243 #include <winsock.h>
14245 #include <winsock2.h>
14246 #include <ws2tcpip.h>
14251 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
; then :
14253 cat >>confdefs.h
<<_ACEOF
14254 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14259 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14260 #ifdef HAVE_NETINET_IN_H
14261 #include <netinet/in.h>
14263 #ifdef HAVE_NETINET_IN6_H
14264 #include <netinet/in6.h>
14266 #ifdef HAVE_SYS_SOCKET_H
14267 #include <sys/socket.h>
14270 #define WIN32_WINNT 0x400
14271 #define _WIN32_WINNT 0x400
14272 #define WIN32_LEAN_AND_MEAN
14273 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14274 #include <winsock.h>
14276 #include <winsock2.h>
14277 #include <ws2tcpip.h>
14282 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
; then :
14284 cat >>confdefs.h
<<_ACEOF
14285 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14290 ac_fn_c_check_member
"$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14291 #ifdef HAVE_NETINET_IN_H
14292 #include <netinet/in.h>
14294 #ifdef HAVE_NETINET_IN6_H
14295 #include <netinet/in6.h>
14297 #ifdef HAVE_SYS_SOCKET_H
14298 #include <sys/socket.h>
14301 #define WIN32_WINNT 0x400
14302 #define _WIN32_WINNT 0x400
14303 #define WIN32_LEAN_AND_MEAN
14304 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14305 #include <winsock.h>
14307 #include <winsock2.h>
14308 #include <ws2tcpip.h>
14313 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14324 $as_echo_n "checking for socklen_t... " >&6; }
14325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14328 #include <sys/types.h>
14329 #include <sys/socket.h>
14338 if ac_fn_c_try_compile
"$LINENO"; then :
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14345 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14352 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14359 const char *cp = __func__;
14364 if ac_fn_c_try_compile
"$LINENO"; then :
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366 $as_echo "yes" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369 $as_echo "no" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14371 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14378 const char *cp = __FUNCTION__;
14383 if ac_fn_c_try_compile
"$LINENO"; then :
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14385 $as_echo "yes" >&6; }
14387 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14393 $as_echo "#define __func__ __FILE__" >>confdefs.h
14396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14401 # check if we can compile with pthreads
14403 if test x
$bwin32 != xtrue
&& test "$enable_thread_support" != "no"; then
14408 ac_cpp
='$CPP $CPPFLAGS'
14409 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14410 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14411 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14415 # We used to check for pthread.h first, but this fails if pthread.h
14416 # requires special compiler flags (e.g. on True64 or Sequent).
14417 # It gets checked for in the link test anyway.
14419 # First of all, check if the user has set any of the PTHREAD_LIBS,
14420 # etcetera environment variables, and if threads linking works using
14422 if test x
"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x
; then
14423 save_CFLAGS
="$CFLAGS"
14424 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14426 LIBS
="$PTHREAD_LIBS $LIBS"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14428 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14432 /* Override any GCC internal prototype to avoid an error.
14433 Use char because int might match the return type of a GCC
14434 builtin and then its argument prototype would still apply. */
14438 char pthread_join ();
14442 return pthread_join ();
14447 if ac_fn_c_try_link
"$LINENO"; then :
14450 rm -f core conftest.err conftest.
$ac_objext \
14451 conftest
$ac_exeext conftest.
$ac_ext
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14453 $as_echo "$acx_pthread_ok" >&6; }
14454 if test x
"$acx_pthread_ok" = xno
; then
14459 CFLAGS
="$save_CFLAGS"
14462 # We must check for the threads library under a number of different
14463 # names; the ordering is very important because some systems
14464 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14465 # libraries is broken (non-POSIX).
14467 # Create a list of thread flags to try. Items starting with a "-" are
14468 # C compiler flags, and other items are library names, except for "none"
14469 # which indicates that we try without any flags at all, and "pthread-config"
14470 # which is a program returning the flags for the Pth emulation library.
14472 acx_pthread_flags
="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14474 # The ordering *is* (sometimes) important. Some notes on the
14475 # individual items follow:
14477 # pthreads: AIX (must check this before -lpthread)
14478 # none: in case threads are in libc; should be tried before -Kthread and
14479 # other compiler flags to prevent continual compiler warnings
14480 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14481 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14482 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14483 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14484 # -pthreads: Solaris/gcc
14485 # -mthreads: Mingw32/gcc, Lynx/gcc
14486 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14487 # doesn't hurt to check since this sometimes defines pthreads too;
14488 # also defines -D_REENTRANT)
14489 # ... -mt is also the pthreads flag for HP/aCC
14490 # pthread: Linux, etcetera
14491 # --thread-safe: KAI C++
14492 # pthread-config: use pthread-config program (for GNU Pth library)
14494 case "${host_cpu}-${host_os}" in
14497 # On Solaris (at least, for some versions), libc contains stubbed
14498 # (non-functional) versions of the pthreads routines, so link-based
14499 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14500 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14501 # a function called by this macro, so we could check for that, but
14502 # who knows whether they'll stub that too in a future libc.) So,
14503 # we'll just look for -pthreads and -lpthread first:
14505 acx_pthread_flags
="-pthreads pthread -mt -pthread $acx_pthread_flags"
14509 if test x
"$acx_pthread_ok" = xno
; then
14510 for flag
in $acx_pthread_flags; do
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14515 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14520 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14521 PTHREAD_CFLAGS
="$flag"
14525 # Extract the first word of "pthread-config", so it can be a program name with args.
14526 set dummy pthread-config
; ac_word
=$2
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528 $as_echo_n "checking for $ac_word... " >&6; }
14529 if ${ac_cv_prog_acx_pthread_config+:} false
; then :
14530 $as_echo_n "(cached) " >&6
14532 if test -n "$acx_pthread_config"; then
14533 ac_cv_prog_acx_pthread_config
="$acx_pthread_config" # Let the user override the test.
14535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14536 for as_dir
in $PATH
14539 test -z "$as_dir" && as_dir
=.
14540 for ac_exec_ext
in '' $ac_executable_extensions; do
14541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14542 ac_cv_prog_acx_pthread_config
="yes"
14543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14550 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config
="no"
14553 acx_pthread_config
=$ac_cv_prog_acx_pthread_config
14554 if test -n "$acx_pthread_config"; then
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14556 $as_echo "$acx_pthread_config" >&6; }
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14563 if test x
"$acx_pthread_config" = xno
; then continue; fi
14564 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14565 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14570 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14571 PTHREAD_LIBS
="-l$flag"
14576 save_CFLAGS
="$CFLAGS"
14577 LIBS
="$PTHREAD_LIBS $LIBS"
14578 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14580 # Check for various functions. We must include pthread.h,
14581 # since some functions may be macros. (On the Sequent, we
14582 # need a special flag -Kthread to make this header compile.)
14583 # We check for pthread_join because it is in -lpthread on IRIX
14584 # while pthread_create is in libc. We check for pthread_attr_init
14585 # due to DEC craziness with -lpthreads. We check for
14586 # pthread_cleanup_push because it is one of the few pthread
14587 # functions on Solaris that doesn't have a non-functional libc stub.
14588 # We try pthread_create on general principles.
14589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 #include <pthread.h>
14595 pthread_t th; pthread_join(th, 0);
14596 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14597 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14602 if ac_fn_c_try_link
"$LINENO"; then :
14605 rm -f core conftest.err conftest.
$ac_objext \
14606 conftest
$ac_exeext conftest.
$ac_ext
14609 CFLAGS
="$save_CFLAGS"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14612 $as_echo "$acx_pthread_ok" >&6; }
14613 if test "x$acx_pthread_ok" = xyes
; then
14622 # Various other checks:
14623 if test "x$acx_pthread_ok" = xyes
; then
14625 LIBS
="$PTHREAD_LIBS $LIBS"
14626 save_CFLAGS
="$CFLAGS"
14627 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14629 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14631 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14633 for attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 #include <pthread.h>
14640 int attr=$attr; return attr;
14645 if ac_fn_c_try_link
"$LINENO"; then :
14646 attr_name
=$attr; break
14648 rm -f core conftest.err conftest.
$ac_objext \
14649 conftest
$ac_exeext conftest.
$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14652 $as_echo "$attr_name" >&6; }
14653 if test "$attr_name" != PTHREAD_CREATE_JOINABLE
; then
14655 cat >>confdefs.h
<<_ACEOF
14656 #define PTHREAD_CREATE_JOINABLE $attr_name
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14662 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14664 case "${host_cpu}-${host_os}" in
14665 *-aix* |
*-freebsd* |
*-darwin*) flag
="-D_THREAD_SAFE";;
14666 *solaris
* |
*-osf* |
*-hpux*) flag
="-D_REENTRANT";;
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14669 $as_echo "${flag}" >&6; }
14670 if test "x$flag" != xno
; then
14671 PTHREAD_CFLAGS
="$flag $PTHREAD_CFLAGS"
14675 CFLAGS
="$save_CFLAGS"
14677 # More AIX lossage: must compile with xlc_r or cc_r
14678 if test x
"$GCC" != xyes
; then
14679 for ac_prog
in xlc_r cc_r
14681 # Extract the first word of "$ac_prog", so it can be a program name with args.
14682 set dummy
$ac_prog; ac_word
=$2
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14684 $as_echo_n "checking for $ac_word... " >&6; }
14685 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14686 $as_echo_n "(cached) " >&6
14688 if test -n "$PTHREAD_CC"; then
14689 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14692 for as_dir
in $PATH
14695 test -z "$as_dir" && as_dir
=.
14696 for ac_exec_ext
in '' $ac_executable_extensions; do
14697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14698 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14708 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14709 if test -n "$PTHREAD_CC"; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14711 $as_echo "$PTHREAD_CC" >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14718 test -n "$PTHREAD_CC" && break
14720 test -n "$PTHREAD_CC" || PTHREAD_CC
="${CC}"
14733 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14734 if test x
"$acx_pthread_ok" = xyes
; then
14737 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14746 ac_cpp
='$CPP $CPPFLAGS'
14747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14752 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14753 # The cast to long int works around a bug in the HP C Compiler
14754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14756 # This bug is HP SR number 8606223364.
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14758 $as_echo_n "checking size of pthread_t... " >&6; }
14759 if ${ac_cv_sizeof_pthread_t+:} false
; then :
14760 $as_echo_n "(cached) " >&6
14762 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14763 #include <pthread.h>
14768 if test "$ac_cv_type_pthread_t" = yes; then
14769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14771 as_fn_error
77 "cannot compute sizeof (pthread_t)
14772 See \`config.log' for more details" "$LINENO" 5; }
14774 ac_cv_sizeof_pthread_t
=0
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14780 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14784 cat >>confdefs.h
<<_ACEOF
14785 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14790 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14799 # check if we should compile locking into the library
14800 if test x
$enable_thread_support = xno
; then
14802 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14806 # check if we should hard-code the mm functions.
14807 if test x
$enable_malloc_replacement = xno
; then
14809 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14813 # check if we should hard-code debugging out
14814 if test x
$enable_debug_mode = xno
; then
14816 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14820 # check if we have and should use openssl
14821 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14830 # Add some more warnings which we use in development but not in the
14831 # released versions. (Some relevant gcc versions can't handle these.)
14832 if test x
$enable_gcc_warnings = xyes
&& test "$GCC" = "yes"; then
14834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14841 #if !defined(__GNUC__) || (__GNUC__ < 4)
14848 if ac_fn_c_try_compile
"$LINENO"; then :
14853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14862 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14869 if ac_fn_c_try_compile
"$LINENO"; then :
14874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14883 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14890 if ac_fn_c_try_compile
"$LINENO"; then :
14895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14904 #if !defined(__clang__)
14911 if ac_fn_c_try_compile
"$LINENO"; then :
14916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14918 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"
14919 CFLAGS
="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14921 if test x
$have_gcc4 = xyes
; then
14922 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14923 CFLAGS
="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14924 #CFLAGS="$CFLAGS -Wold-style-definition"
14927 if test x
$have_gcc42 = xyes
; then
14928 # These warnings break gcc 4.0.2 and work on gcc 4.2
14929 CFLAGS
="$CFLAGS -Waddress"
14932 if test x
$have_gcc42 = xyes
&& test x
$have_clang = xno
; then
14933 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14934 CFLAGS
="$CFLAGS -Wnormalized=id -Woverride-init"
14937 if test x
$have_gcc45 = xyes
; then
14938 # These warnings work on gcc 4.5
14939 CFLAGS
="$CFLAGS -Wlogical-op"
14942 if test x
$have_clang = xyes
; then
14943 # Disable the unused-function warnings, because these trigger
14944 # for minheap-internal.h related code.
14945 CFLAGS
="$CFLAGS -Wno-unused-function"
14948 ##This will break the world on some 64-bit architectures
14949 # CFLAGS="$CFLAGS -Winline"
14953 LIBEVENT_GC_SECTIONS
=
14954 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14956 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14957 if ${libevent_cv_gc_sections_runs+:} false
; then :
14958 $as_echo_n "(cached) " >&6
14961 origCFLAGS
="$CFLAGS"
14962 CFLAGS
="$CFLAGS -Wl,--gc-sections"
14963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14966 #include <stdlib.h>
14976 int read_success_once;
14978 fpC = fopen("conftest.c", "r");
14982 cch = fread(buf, sizeof(buf), 1, fpC);
14983 read_success_once |= (0 != cch);
14984 } while (0 != cch);
14985 if (!read_success_once)
14989 if (0 != fclose(fpC))
14992 exit(EXIT_SUCCESS);
14999 if ac_fn_c_try_link
"$LINENO"; then :
15001 if test "X$cross_compiling" = "Xyes" ||
grep gc-sections conftest.err
; then
15002 libevent_cv_gc_sections_runs
=no
15004 libevent_cv_gc_sections_runs
=no
15005 .
/conftest
>/dev
/null
2>&1 && libevent_cv_gc_sections_runs
=yes
15009 libevent_cv_gc_sections_runs
=no
15012 rm -f core conftest.err conftest.
$ac_objext \
15013 conftest
$ac_exeext conftest.
$ac_ext
15014 CFLAGS
="$origCFLAGS"
15015 { origCFLAGS
=; unset origCFLAGS
;}
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15020 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15021 case "$libevent_cv_gc_sections_runs" in
15023 CFLAGS
="-ffunction-sections -fdata-sections $CFLAGS"
15024 LIBEVENT_GC_SECTIONS
="-Wl,--gc-sections"
15030 if test "$enable_libevent_install" = "yes"; then
15031 INSTALL_LIBEVENT_TRUE
=
15032 INSTALL_LIBEVENT_FALSE
='#'
15034 INSTALL_LIBEVENT_TRUE
='#'
15035 INSTALL_LIBEVENT_FALSE
=
15039 ac_config_files
="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15041 ac_config_files
="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15043 cat >confcache
<<\_ACEOF
15044 # This file is a shell script that caches the results of configure
15045 # tests run on this system so they can be shared between configure
15046 # scripts and configure runs, see configure's option --config-cache.
15047 # It is not useful on other systems. If it contains results you don't
15048 # want to keep, you may remove or edit it.
15050 # config.status only pays attention to the cache file if you give it
15051 # the --recheck option to rerun configure.
15053 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15054 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15055 # following values.
15059 # The following way of writing the cache mishandles newlines in values,
15060 # but we know of no workaround that is simple, portable, and efficient.
15061 # So, we kill variables containing newlines.
15062 # Ultrix sh set writes to stderr and can't be redirected directly,
15063 # and sets the high bit in the cache file unless we assign to the vars.
15065 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15066 eval ac_val
=\$
$ac_var
15070 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15074 _ | IFS | as_nl
) ;; #(
15075 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15076 *) { eval $ac_var=; unset $ac_var;} ;;
15082 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15083 *${as_nl}ac_space
=\
*)
15084 # `set' does not quote correctly, so add quotes: double-quote
15085 # substitution turns \\\\ into \\, and sed turns \\ into \.
15088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15091 # `set' quotes correctly as required by POSIX, so do not add quotes.
15092 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15101 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15103 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15105 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15106 if test -w "$cache_file"; then
15107 if test "x$cache_file" != "x/dev/null"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15109 $as_echo "$as_me: updating cache $cache_file" >&6;}
15110 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15111 cat confcache
>"$cache_file"
15113 case $cache_file in #(
15115 mv -f confcache
"$cache_file"$$
&&
15116 mv -f "$cache_file"$$
"$cache_file" ;; #(
15118 mv -f confcache
"$cache_file" ;;
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15124 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15129 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15130 # Let make expand exec_prefix.
15131 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15133 DEFS
=-DHAVE_CONFIG_H
15138 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15139 # 1. Remove the extension, and $U if already installed.
15140 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15141 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15142 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15143 # will be set to the directory where LIBOBJS objects are built.
15144 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15145 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15147 LIBOBJS
=$ac_libobjs
15149 LTLIBOBJS
=$ac_ltlibobjs
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15153 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15154 if test -n "$am_sleep_pid"; then
15155 # Hide warnings about reused PIDs.
15156 wait $am_sleep_pid 2>/dev
/null
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15159 $as_echo "done" >&6; }
15160 if test -n "$EXEEXT"; then
15162 am__EXEEXT_FALSE
='#'
15164 am__EXEEXT_TRUE
='#'
15168 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15169 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15173 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15177 as_fn_error $?
"conditional \"BUILD_REGRESS\" was never defined.
15178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15181 as_fn_error $?
"conditional \"ZLIB_REGRESS\" was never defined.
15182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15185 as_fn_error $?
"conditional \"BUILD_WIN32\" was never defined.
15186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15189 as_fn_error $?
"conditional \"BUILD_CYGWIN\" was never defined.
15190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15193 as_fn_error $?
"conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15197 as_fn_error $?
"conditional \"SELECT_BACKEND\" was never defined.
15198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15201 as_fn_error $?
"conditional \"POLL_BACKEND\" was never defined.
15202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15205 as_fn_error $?
"conditional \"DEVPOLL_BACKEND\" was never defined.
15206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15209 as_fn_error $?
"conditional \"KQUEUE_BACKEND\" was never defined.
15210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15212 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15213 as_fn_error $?
"conditional \"EPOLL_BACKEND\" was never defined.
15214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15216 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15217 as_fn_error $?
"conditional \"EVPORT_BACKEND\" was never defined.
15218 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15220 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15221 as_fn_error $?
"conditional \"SIGNAL_SUPPORT\" was never defined.
15222 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15224 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15225 as_fn_error $?
"conditional \"PTHREADS\" was never defined.
15226 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15228 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15229 as_fn_error $?
"conditional \"OPENSSL\" was never defined.
15230 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15232 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15233 as_fn_error $?
"conditional \"INSTALL_LIBEVENT\" was never defined.
15234 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15237 : "${CONFIG_STATUS=./config.status}"
15239 ac_clean_files_save
=$ac_clean_files
15240 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15246 # Generated by $as_me.
15247 # Run this file to recreate the current configuration.
15248 # Compiler output produced by configure, useful for debugging
15249 # configure, is in config.log if it exists.
15252 ac_cs_recheck=false
15255 SHELL=\${CONFIG_SHELL-$SHELL}
15258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15259 ## -------------------- ##
15260 ## M4sh Initialization. ##
15261 ## -------------------- ##
15263 # Be more Bourne compatible
15264 DUALCASE
=1; export DUALCASE
# for MKS sh
15265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15269 # is contrary to our usage. Disable this feature.
15270 alias -g '${1+"$@"}'='"$@"'
15271 setopt NO_GLOB_SUBST
15273 case `(set -o) 2>/dev/null` in #(
15285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15286 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15289 # Prefer a ksh shell builtin over an external printf program on Solaris,
15290 # but without wasting forks for bash or zsh.
15291 if test -z "$BASH_VERSION$ZSH_VERSION" \
15292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15293 as_echo='print
-r --'
15294 as_echo_n='print
-rn --'
15295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15296 as_echo='printf %s
\n'
15297 as_echo_n='printf %s
'
15299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15300 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15301 as_echo_n='/usr
/ucb
/echo -n'
15303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15304 as_echo_n_body='eval
15308 expr "X$arg" : "X\\(.*\\)$as_nl";
15309 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15311 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15313 export as_echo_n_body
15314 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15316 export as_echo_body
15317 as_echo='sh
-c $as_echo_body as_echo
'
15320 # The user is always right.
15321 if test "${PATH_SEPARATOR+set}" != set; then
15323 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15324 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15331 # We need space, tab and new line, in precisely that order. Quoting is
15332 # there to prevent editors from complaining about space-tab.
15333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15334 # splitting by setting IFS to empty value.)
15337 # Find who we are. Look in the path if we contain no directory separator.
15340 *[\\/]* ) as_myself=$0 ;;
15341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15345 test -z "$as_dir" && as_dir=.
15346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15352 # We did not find ourselves, most probably we were run as `sh COMMAND'
15353 # in which case we are not to be found in the path.
15354 if test "x$as_myself" = x
; then
15357 if test ! -f "$as_myself"; then
15358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15362 # Unset variables that we do not need and which cause bugs (e.g. in
15363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15364 # suppresses any "Segmentation fault" message there. '((' could
15365 # trigger a bug in pdksh 5.2.14.
15366 for as_var
in BASH_ENV ENV MAIL MAILPATH
15367 do eval test x\
${$as_var+set} = xset \
15368 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15381 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15385 # ----------------------------------------
15386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15388 # script with STATUS, using 1 if that was 0.
15391 as_status
=$1; test $as_status -eq 0 && as_status
=1
15393 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15396 $as_echo "$as_me: error: $2" >&2
15397 as_fn_exit
$as_status
15401 # as_fn_set_status STATUS
15402 # -----------------------
15403 # Set $? to STATUS, without forking.
15404 as_fn_set_status
()
15407 } # as_fn_set_status
15409 # as_fn_exit STATUS
15410 # -----------------
15411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15415 as_fn_set_status
$1
15421 # Portably unset VAR.
15424 { eval $1=; unset $1;}
15426 as_unset
=as_fn_unset
15427 # as_fn_append VAR VALUE
15428 # ----------------------
15429 # Append the text in VALUE to the end of the definition contained in VAR. Take
15430 # advantage of any shell optimizations that allow amortized linear growth over
15431 # repeated appends, instead of the typical quadratic growth present in naive
15433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15434 eval 'as_fn_append ()
15445 # as_fn_arith ARG...
15446 # ------------------
15447 # Perform arithmetic evaluation on the ARGs, and store the result in the
15448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15449 # must be portable across $(()) and expr.
15450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15451 eval 'as_fn_arith ()
15458 as_val
=`expr "$@" || test $? -eq 1`
15463 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15464 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15470 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15471 as_basename
=basename
15476 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15482 as_me
=`$as_basename -- "$0" ||
15483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15484 X"$0" : 'X\(//\)$' \| \
15485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15487 sed '/^.*\/\([^/][^/]*\)\/*$/{
15501 # Avoid depending upon Character Ranges.
15502 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15503 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15504 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15505 as_cr_digits
='0123456789'
15506 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15508 ECHO_C
= ECHO_N
= ECHO_T
=
15509 case `echo -n x` in #(((((
15511 case `echo 'xy\c'` in
15512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15521 rm -f conf$$ conf$$.exe conf$$.
file
15522 if test -d conf$$.dir
; then
15523 rm -f conf$$.dir
/conf$$.
file
15526 mkdir conf$$.dir
2>/dev
/null
15528 if (echo >conf$$.
file) 2>/dev
/null
; then
15529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15531 # ... but there are two gotchas:
15532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15534 # In both cases, we have to default to `cp -pR'.
15535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15546 rmdir conf$$.dir
2>/dev
/null
15551 # Create "$as_dir" as a directory, including parents if necessary.
15556 -*) as_dir
=.
/$as_dir;;
15558 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15562 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15563 *) as_qdir
=$as_dir;;
15565 as_dirs
="'$as_qdir' $as_dirs"
15566 as_dir
=`$as_dirname -- "$as_dir" ||
15567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15568 X"$as_dir" : 'X\(//\)[^/]' \| \
15569 X"$as_dir" : 'X\(//\)$' \| \
15570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15571 $as_echo X"$as_dir" |
15572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15576 /^X\(\/\/\)[^/].*/{
15589 test -d "$as_dir" && break
15591 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15592 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15596 if mkdir
-p .
2>/dev
/null
; then
15597 as_mkdir_p
='mkdir -p "$as_dir"'
15599 test -d .
/-p && rmdir .
/-p
15604 # as_fn_executable_p FILE
15605 # -----------------------
15606 # Test if FILE is an executable regular file.
15607 as_fn_executable_p
()
15609 test -f "$1" && test -x "$1"
15610 } # as_fn_executable_p
15611 as_test_x
='test -x'
15612 as_executable_p
=as_fn_executable_p
15614 # Sed expression to map a string onto a valid CPP name.
15615 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15617 # Sed expression to map a string onto a valid variable name.
15618 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15622 ## ----------------------------------- ##
15623 ## Main body of $CONFIG_STATUS script. ##
15624 ## ----------------------------------- ##
15626 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15629 # Save the log message, to keep $0 and so on meaningful, and to
15630 # report actual input values of CONFIG_FILES etc. instead of their
15631 # values after options handling.
15633 This file was extended by $as_me, which was
15634 generated by GNU Autoconf 2.69. Invocation command line was
15636 CONFIG_FILES = $CONFIG_FILES
15637 CONFIG_HEADERS = $CONFIG_HEADERS
15638 CONFIG_LINKS = $CONFIG_LINKS
15639 CONFIG_COMMANDS = $CONFIG_COMMANDS
15642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15647 case $ac_config_files in *"
15648 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15651 case $ac_config_headers in *"
15652 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15657 # Files that config.status was made for.
15658 config_files="$ac_config_files"
15659 config_headers="$ac_config_headers"
15660 config_commands="$ac_config_commands"
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15666 \`$as_me' instantiates files and other configuration actions
15667 from templates according to the current configuration. Unless the files
15668 and actions are specified as TAGs, all are instantiated by default.
15670 Usage: $0 [OPTION]... [TAG]...
15672 -h, --help print this help, then exit
15673 -V, --version print version number and configuration settings, then exit
15674 --config print configuration, then exit
15675 -q, --quiet, --silent
15676 do not print progress messages
15677 -d, --debug don't remove temporary files
15678 --recheck update $as_me by reconfiguring in the same conditions
15679 --file=FILE[:TEMPLATE]
15680 instantiate the configuration file FILE
15681 --header=FILE[:TEMPLATE]
15682 instantiate the configuration header FILE
15684 Configuration files:
15687 Configuration headers:
15690 Configuration commands:
15693 Report bugs to the package provider."
15696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15697 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15700 configured by $0, generated by GNU Autoconf 2.69,
15701 with options \\"\$ac_cs_config\\"
15703 Copyright (C) 2012 Free Software Foundation, Inc.
15704 This config.status script is free software; the Free Software Foundation
15705 gives unlimited permission to copy, distribute and modify it."
15712 test -n "\$AWK" || AWK=awk
15715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15716 # The default lists apply if the user does not specify any file.
15722 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15723 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15727 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15739 # Handling of the options.
15740 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15742 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15743 $as_echo "$ac_cs_version"; exit ;;
15744 --config |
--confi |
--conf |
--con |
--co |
--c )
15745 $as_echo "$ac_cs_config"; exit ;;
15746 --debug |
--debu |
--deb |
--de |
--d |
-d )
15748 --file |
--fil |
--fi |
--f )
15751 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15752 '') as_fn_error $?
"missing file argument" ;;
15754 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15755 ac_need_defaults
=false
;;
15756 --header |
--heade |
--head |
--hea )
15759 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15761 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15762 ac_need_defaults
=false
;;
15764 # Conflict between --help and --header
15765 as_fn_error $?
"ambiguous option: \`$1'
15766 Try \`$0 --help' for more information.";;
15767 --help |
--hel |
-h )
15768 $as_echo "$ac_cs_usage"; exit ;;
15769 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15770 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15773 # This is an error.
15774 -*) as_fn_error $?
"unrecognized option: \`$1'
15775 Try \`$0 --help' for more information." ;;
15777 *) as_fn_append ac_config_targets
" $1"
15778 ac_need_defaults
=false
;;
15784 ac_configure_extra_args
=
15786 if $ac_cs_silent; then
15788 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15793 if \$ac_cs_recheck; then
15794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15797 CONFIG_SHELL='$SHELL'
15798 export CONFIG_SHELL
15803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15808 ## Running $as_me. ##
15814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15821 # The HP-UX ksh and POSIX shell print the target directory to stdout
15822 # if CDPATH is set.
15823 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15825 sed_quote_subst='$sed_quote_subst'
15826 double_quote_subst='$double_quote_subst'
15827 delay_variable_subst='$delay_variable_subst'
15828 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15829 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15830 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15831 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15832 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15833 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15834 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15835 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15836 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15837 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15838 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15839 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15840 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15841 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15842 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15843 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15844 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15845 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15846 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15847 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15848 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15849 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15850 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15851 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15852 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15853 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15854 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15855 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15856 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15857 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15858 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15859 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15860 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15861 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15862 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15863 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15864 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15865 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15866 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15867 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15868 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15869 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15870 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15871 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15872 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15873 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15874 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15875 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15876 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15877 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15878 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15879 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15880 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15881 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15882 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15883 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15884 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"`'
15885 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15886 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15887 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15888 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15889 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15890 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15891 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15892 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15893 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15894 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15895 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15896 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15897 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15898 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15899 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15900 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15901 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15902 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15903 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15904 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15905 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15906 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15907 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15908 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15909 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15910 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15911 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15912 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15913 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15914 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15915 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15916 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15917 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15918 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15919 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15920 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15921 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15922 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15923 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15924 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15925 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15926 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15927 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15928 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15929 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15930 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15931 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15932 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15933 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15934 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15935 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15936 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15937 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15938 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15939 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15940 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15941 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15942 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15943 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15944 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15945 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15946 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15947 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15948 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15949 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15950 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15951 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15952 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15953 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15954 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15955 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15956 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15957 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15960 LTCFLAGS='$LTCFLAGS'
15961 compiler='$compiler_DEFAULT'
15963 # A function that is used when there is no print builtin or printf.
15964 func_fallback_echo ()
15966 eval 'cat <<_LTECHO_EOF
15971 # Quote evaled strings.
15986 deplibs_check_method \
15991 sharedlib_from_linklib_cmd \
15994 archiver_list_spec \
16000 lt_cv_sys_global_symbol_pipe \
16001 lt_cv_sys_global_symbol_to_cdecl \
16002 lt_cv_sys_global_symbol_to_c_name_address \
16003 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16004 nm_file_list_spec \
16005 lt_prog_compiler_no_builtin_flag \
16006 lt_prog_compiler_pic \
16007 lt_prog_compiler_wl \
16008 lt_prog_compiler_static \
16009 lt_cv_prog_compiler_c_o \
16018 export_dynamic_flag_spec \
16019 whole_archive_flag_spec \
16020 compiler_needs_object \
16022 allow_undefined_flag \
16023 no_undefined_flag \
16024 hardcode_libdir_flag_spec \
16025 hardcode_libdir_separator \
16029 variables_saved_for_relink \
16031 library_names_spec \
16033 install_override_mode \
16037 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16038 *[\\\\\\\`\\"\\\$]*)
16039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16047 # Double-quote double-evaled strings.
16048 for var in reload_cmds \
16049 old_postinstall_cmds \
16050 old_postuninstall_cmds \
16052 extract_expsyms_cmds \
16053 old_archive_from_new_cmds \
16054 old_archive_from_expsyms_cmds \
16056 archive_expsym_cmds \
16058 module_expsym_cmds \
16059 export_symbols_cmds \
16063 postuninstall_cmds \
16065 sys_lib_search_path_spec \
16066 sys_lib_dlsearch_path_spec; do
16067 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16068 *[\\\\\\\`\\"\\\$]*)
16069 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16072 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16077 ac_aux_dir='$ac_aux_dir'
16078 xsi_shell='$xsi_shell'
16079 lt_shell_append='$lt_shell_append'
16081 # See if we are running on zsh, and set the options which allow our
16082 # commands through without removal of \ escapes INIT.
16083 if test -n "\${ZSH_VERSION+set}" ; then
16084 setopt NO_GLOB_SUBST
16090 TIMESTAMP='$TIMESTAMP'
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16101 # Handling of arguments.
16102 for ac_config_target
in $ac_config_targets
16104 case $ac_config_target in
16105 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16106 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16107 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16108 "libevent.pc") CONFIG_FILES
="$CONFIG_FILES libevent.pc" ;;
16109 "libevent_openssl.pc") CONFIG_FILES
="$CONFIG_FILES libevent_openssl.pc" ;;
16110 "libevent_pthreads.pc") CONFIG_FILES
="$CONFIG_FILES libevent_pthreads.pc" ;;
16111 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16112 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16113 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
16114 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
16116 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16121 # If the user did not use the arguments to specify the items to instantiate,
16122 # then the envvar interface is used. Set only those that are not.
16123 # We use the long form for the default assignment because of an extremely
16124 # bizarre bug on SunOS 4.1.3.
16125 if $ac_need_defaults; then
16126 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16127 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16128 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16131 # Have a temporary directory for convenience. Make it in the build tree
16132 # simply because there is no reason against having it here, and in addition,
16133 # creating and moving files from /tmp can sometimes cause problems.
16134 # Hook for its removal unless debugging.
16135 # Note that there is a small window in which the directory will not be cleaned:
16136 # after its creation but before its name has been assigned to `$tmp'.
16140 trap 'exit_status=$?
16141 : "${ac_tmp:=$tmp}"
16142 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16144 trap 'as_fn_exit 1' 1 2 13 15
16146 # Create a (secure) tmp directory for tmp files.
16149 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16153 tmp
=.
/conf$$
-$RANDOM
16154 (umask 077 && mkdir
"$tmp")
16155 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16158 # Set up the scripts for CONFIG_FILES section.
16159 # No need to generate them if there are no CONFIG_FILES.
16160 # This happens for instance with `./config.status config.h'.
16161 if test -n "$CONFIG_FILES"; then
16164 ac_cr
=`echo X | tr X '\015'`
16165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16166 # But we know of no other shell where ac_cr would be empty at this
16167 # point, so we can use a bashism as a fallback.
16168 if test "x$ac_cr" = x
; then
16169 eval ac_cr
=\$
\'\\r
\'
16171 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16175 ac_cs_awk_cr
=$ac_cr
16178 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16183 echo "cat >conf$$subs.awk <<_ACEOF" &&
16184 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16186 } >conf$$subs.sh ||
16187 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16190 for ac_last_try in false false false false false :; do
16191 . ./conf$$subs.sh ||
16192 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16194 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16195 if test $ac_delim_n = $ac_delim_num; then
16197 elif $ac_last_try; then
16198 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16200 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16203 rm -f conf$$subs.sh
16205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16210 s/^/S["/; s
/!.
*/"]=/
16220 s/\(.\{148\}\)..*/\1/
16222 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16227 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16234 s/\(.\{148\}\)..*/\1/
16236 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16240 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16245 ' <conf$$subs.awk | sed '
16250 ' >>$CONFIG_STATUS || ac_write_fail=1
16251 rm -f conf$$subs.awk
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16254 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16255 for (key in S) S_is_set[key] = 1
16261 nfields = split(line, field, "@
")
16263 len = length(field[1])
16264 for (i = 2; i < nfields; i++) {
16266 keylen = length(key)
16267 if (S_is_set[key]) {
16269 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16270 len += length(value) + length(field[++i])
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16283 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16286 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16287 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16290 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16291 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16292 # trailing colons and then remove the whole line if VPATH becomes empty
16293 # (actually we leave an empty line to preserve line numbers).
16294 if test "x
$srcdir" = x.; then
16295 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16314 fi # test -n "$CONFIG_FILES"
16316 # Set up the scripts for CONFIG_HEADERS section.
16317 # No need to generate them if there are no CONFIG_HEADERS.
16318 # This happens for instance with `./config.status Makefile'.
16319 if test -n "$CONFIG_HEADERS"; then
16320 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16324 # Transform confdefs.h into an awk script `defines.awk', embedded as
16325 # here-document in config.status, that substitutes the proper values into
16326 # config.h.in to produce config.h.
16328 # Create a delimiter string that does not exist in confdefs.h, to ease
16329 # handling of long lines.
16331 for ac_last_try in false false :; do
16332 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16333 if test -z "$ac_tt"; then
16335 elif $ac_last_try; then
16336 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16338 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16342 # For the awk script, D is an array of macro values keyed by name,
16343 # likewise P contains macro parameters if any. Preserve backslash
16344 # newline sequences.
16346 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16348 s/.\{148\}/&'"$ac_delim"'/g
16351 s/^[ ]*#[ ]*define[ ][ ]*/ /
16358 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16360 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16364 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16365 D["\
1"]=" \
3\\\\\\n
"\\/p
16367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16372 s/.\{148\}/&'"$ac_delim"'/g
16377 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16380 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16382 ' <confdefs.h | sed '
16383 s/'"$ac_delim"'/"\\\
16384 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16387 for (key in D) D_is_set[key] = 1
16390 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16392 split(line, arg, " ")
16393 if (arg[1] == "#") {
16397 defundef
= substr
(arg
[1], 2)
16400 split(mac1
, mac2
, "(") #)
16402 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16403 if (D_is_set
[macro
]) {
16404 # Preserve the white space surrounding the "#".
16405 print prefix
"define", macro P
[macro
] D
[macro
]
16408 # Replace #undef with comments. This is necessary, for example,
16409 # in the case of _POSIX_SOURCE, which is predefined and required
16410 # on some systems where configure will not decide to define it.
16411 if (defundef
== "undef") {
16412 print
"/*", prefix defundef
, macro
, "*/"
16420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16421 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16422 fi # test -n "$CONFIG_HEADERS"
16425 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16430 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16432 case $ac_mode$ac_tag in
16434 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16435 :[FH
]-) ac_tag
=-:-;;
16436 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16453 -) ac_f
="$ac_tmp/stdin";;
16454 *) # Look for the file first in the build tree, then in the source tree
16455 # (if the path is not absolute). The absolute path cannot be DOS-style,
16456 # because $ac_f cannot contain `:'.
16460 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16462 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16464 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16465 as_fn_append ac_file_inputs
" '$ac_f'"
16468 # Let's still pretend it is `configure' which instantiates (i.e., don't
16469 # use $as_me), people would be surprised to read:
16470 # /* config.h. Generated by config.status. */
16471 configure_input
='Generated from '`
16472 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16474 if test x
"$ac_file" != x-
; then
16475 configure_input
="$ac_file. $configure_input"
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16477 $as_echo "$as_me: creating $ac_file" >&6;}
16479 # Neutralize special characters interpreted by sed in replacement strings.
16480 case $configure_input in #(
16481 *\
&* |
*\|
* |
*\\* )
16482 ac_sed_conf_input
=`$as_echo "$configure_input" |
16483 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16484 *) ac_sed_conf_input
=$configure_input;;
16488 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16489 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16494 ac_dir
=`$as_dirname -- "$ac_file" ||
16495 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16496 X"$ac_file" : 'X\(//\)[^/]' \| \
16497 X"$ac_file" : 'X\(//\)$' \| \
16498 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16499 $as_echo X"$ac_file" |
16500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16504 /^X\(\/\/\)[^/].*/{
16517 as_dir
="$ac_dir"; as_fn_mkdir_p
16521 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16523 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16524 # A ".." for each directory in $ac_dir_suffix.
16525 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16526 case $ac_top_builddir_sub in
16527 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16528 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16531 ac_abs_top_builddir
=$ac_pwd
16532 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16533 # for backward compatibility:
16534 ac_top_builddir
=$ac_top_build_prefix
16537 .
) # We are building in place.
16539 ac_top_srcdir
=$ac_top_builddir_sub
16540 ac_abs_top_srcdir
=$ac_pwd ;;
16541 [\\/]* | ?
:[\\/]* ) # Absolute name.
16542 ac_srcdir
=$srcdir$ac_dir_suffix;
16543 ac_top_srcdir
=$srcdir
16544 ac_abs_top_srcdir
=$srcdir ;;
16545 *) # Relative name.
16546 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16547 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16548 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16550 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16560 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16561 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16563 ac_MKDIR_P
=$MKDIR_P
16565 [\\/$
]* | ?
:[\\/]* ) ;;
16566 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16571 # If the template does not know about datarootdir, expand it.
16572 # FIXME: This hack should be removed a few years after 2.60.
16573 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16584 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16585 *datarootdir
*) ac_datarootdir_seen
=yes;;
16586 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16588 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591 ac_datarootdir_hack='
16592 s&@datadir@&$datadir&g
16593 s&@docdir@&$docdir&g
16594 s&@infodir@&$infodir&g
16595 s&@localedir@&$localedir&g
16596 s&@mandir@&$mandir&g
16597 s&\\\${datarootdir}&$datarootdir&g' ;;
16601 # Neutralize VPATH when `$srcdir' = `.'.
16602 # Shell code in configure.ac might set extrasub.
16603 # FIXME: do we really want to maintain this feature?
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 ac_sed_extra="$ac_vpsub
16608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16610 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16611 s|@configure_input@|
$ac_sed_conf_input|
;t t
16612 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16613 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16614 s
&@srcdir@
&$ac_srcdir&;t t
16615 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16616 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16617 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16618 s
&@builddir@
&$ac_builddir&;t t
16619 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16620 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16621 s
&@INSTALL@
&$ac_INSTALL&;t t
16622 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16623 $ac_datarootdir_hack
16625 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16626 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16628 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16629 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16630 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16631 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16633 which seems to be undefined. Please make sure it is defined" >&5
16634 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16635 which seems to be undefined. Please make sure it is defined" >&2;}
16637 rm -f "$ac_tmp/stdin"
16639 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16640 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16648 if test x"$ac_file" != x-; then
16650 $as_echo "/* $configure_input */" \
16651 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16652 } >"$ac_tmp/config.h" \
16653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16654 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16656 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16659 mv "$ac_tmp/config.h" "$ac_file" \
16660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16663 $as_echo "/* $configure_input */" \
16664 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16665 || as_fn_error $? "could not create -" "$LINENO" 5
16667 # Compute "$ac_file"'s index
in $config_headers.
16670 for _am_header
in $config_headers :; do
16671 case $_am_header in
16672 $_am_arg |
$_am_arg:* )
16675 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16678 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16679 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680 X"$_am_arg" : 'X\(//\)[^/]' \| \
16681 X"$_am_arg" : 'X\(//\)$' \| \
16682 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16683 $as_echo X"$_am_arg" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16688 /^X\(\/\/\)[^/].*/{
16700 s/.*/./; q'`/stamp-h
$_am_stamp_count
16703 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16704 $as_echo "$as_me: executing $ac_file commands" >&6;}
16709 case $ac_file$ac_mode in
16710 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
16711 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16712 # are listed without --file. Let's play safe and only enable the eval
16713 # if we detect the quoting.
16714 case $CONFIG_FILES in
16715 *\'*) eval set x
"$CONFIG_FILES" ;;
16716 *) set x
$CONFIG_FILES ;;
16721 # Strip MF so we end up with the name of the file.
16722 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16723 # Check whether this is an Automake generated Makefile or not.
16724 # We used to match only the files named 'Makefile.in', but
16725 # some people rename them; so instead we look at the file content.
16726 # Grep'ing the first line is not enough: some people post-process
16727 # each Makefile.in and add a new line on top of each file to say so.
16728 # Grep'ing the whole file is not good either: AIX grep has a line
16729 # limit of 2048, but all sed's we know have understand at least 4000.
16730 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
16731 dirpart
=`$as_dirname -- "$mf" ||
16732 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16733 X"$mf" : 'X\(//\)[^/]' \| \
16734 X"$mf" : 'X\(//\)$' \| \
16735 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16741 /^X\(\/\/\)[^/].*/{
16757 # Extract the definition of DEPDIR, am__include, and am__quote
16758 # from the Makefile without running 'make'.
16759 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16760 test -z "$DEPDIR" && continue
16761 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16762 test -z "am__include" && continue
16763 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16764 # Find all dependency output files, they are included files with
16765 # $(DEPDIR) in their names. We invoke sed twice because it is the
16766 # simplest approach to changing $(DEPDIR) to its actual value in the
16768 for file in `sed -n "
16769 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16770 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16771 # Make sure the directory exists.
16772 test -f "$dirpart/$file" && continue
16773 fdir
=`$as_dirname -- "$file" ||
16774 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16775 X"$file" : 'X\(//\)[^/]' \| \
16776 X"$file" : 'X\(//\)$' \| \
16777 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16778 $as_echo X"$file" |
16779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16783 /^X\(\/\/\)[^/].*/{
16796 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16797 # echo "creating $dirpart/$file"
16798 echo '# dummy' > "$dirpart/$file"
16805 # See if we are running on zsh, and set the options which allow our
16806 # commands through without removal of \ escapes.
16807 if test -n "${ZSH_VERSION+set}" ; then
16808 setopt NO_GLOB_SUBST
16811 cfgfile
="${ofile}T"
16812 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16815 cat <<_LT_EOF >> "$cfgfile"
16818 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16819 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16820 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16821 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16823 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16824 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16826 # Written by Gordon Matzigkeit, 1996
16828 # This file is part of GNU Libtool.
16830 # GNU Libtool is free software; you can redistribute it and/or
16831 # modify it under the terms of the GNU General Public License as
16832 # published by the Free Software Foundation; either version 2 of
16833 # the License, or (at your option) any later version.
16835 # As a special exception to the GNU General Public License,
16836 # if you distribute this file as part of a program or library that
16837 # is built using GNU Libtool, you may include this file under the
16838 # same distribution terms that you use for the rest of that program.
16840 # GNU Libtool is distributed in the hope that it will be useful,
16841 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16843 # GNU General Public License for more details.
16845 # You should have received a copy of the GNU General Public License
16846 # along with GNU Libtool; see the file COPYING. If not, a copy
16847 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16848 # obtained by writing to the Free Software Foundation, Inc.,
16849 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16852 # The names of the tagged configurations supported by this script.
16855 # ### BEGIN LIBTOOL CONFIG
16857 # Which release of libtool.m4 was used?
16858 macro_version=$macro_version
16859 macro_revision=$macro_revision
16861 # Whether or not to build shared libraries.
16862 build_libtool_libs=$enable_shared
16864 # Whether or not to build static libraries.
16865 build_old_libs=$enable_static
16867 # What type of objects to build.
16870 # Whether or not to optimize for fast installation.
16871 fast_install=$enable_fast_install
16873 # Shell to use when invoking shell scripts.
16876 # An echo program that protects backslashes.
16879 # The PATH separator for the build system.
16880 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16883 host_alias=$host_alias
16887 # The build system.
16888 build_alias=$build_alias
16892 # A sed program that does not truncate output.
16895 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16896 Xsed="\$SED -e 1s/^X//"
16898 # A grep program that handles long lines.
16904 # A literal string matcher.
16907 # A BSD- or MS-compatible name lister.
16910 # Whether we need soft or hard links.
16913 # What is the maximum length of a command?
16914 max_cmd_len=$max_cmd_len
16916 # Object file suffix (normally "o").
16919 # Executable file suffix (normally "").
16922 # whether the shell understands "unset".
16925 # turn spaces into newlines.
16928 # turn newlines into spaces.
16931 # convert \$build file names to \$host format.
16932 to_host_file_cmd=$lt_cv_to_host_file_cmd
16934 # convert \$build files to toolchain format.
16935 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16937 # An object symbol dumper.
16938 OBJDUMP=$lt_OBJDUMP
16940 # Method to check whether dependent libraries are shared objects.
16941 deplibs_check_method=$lt_deplibs_check_method
16943 # Command to use when deplibs_check_method = "file_magic".
16944 file_magic_cmd=$lt_file_magic_cmd
16946 # How to find potential files when deplibs_check_method = "file_magic".
16947 file_magic_glob=$lt_file_magic_glob
16949 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16950 want_nocaseglob=$lt_want_nocaseglob
16952 # DLL creation program.
16953 DLLTOOL=$lt_DLLTOOL
16955 # Command to associate shared and link libraries.
16956 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16961 # Flags to create an archive.
16962 AR_FLAGS=$lt_AR_FLAGS
16964 # How to feed a file listing to the archiver.
16965 archiver_list_spec=$lt_archiver_list_spec
16967 # A symbol stripping program.
16970 # Commands used to install an old-style archive.
16972 old_postinstall_cmds=$lt_old_postinstall_cmds
16973 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16975 # Whether to use a lock for old archive extraction.
16976 lock_old_archive_extraction=$lock_old_archive_extraction
16981 # LTCC compiler flags.
16982 LTCFLAGS=$lt_CFLAGS
16984 # Take the output of nm and produce a listing of raw symbols and C names.
16985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16987 # Transform the output of nm in a proper C declaration.
16988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16990 # Transform the output of nm in a C name address pair.
16991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16993 # Transform the output of nm in a C name address pair when lib prefix is needed.
16994 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16996 # Specify filename containing input files for \$NM.
16997 nm_file_list_spec=$lt_nm_file_list_spec
16999 # The root where to search for dependent libraries,and in which our libraries should be installed.
17000 lt_sysroot=$lt_sysroot
17002 # The name of the directory that contains temporary libtool files.
17005 # Used to examine libraries when file_magic_cmd begins with "file".
17006 MAGIC_CMD=$MAGIC_CMD
17008 # Must we lock files when doing compilation?
17009 need_locks=$lt_need_locks
17012 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17014 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17015 DSYMUTIL=$lt_DSYMUTIL
17017 # Tool to change global to local symbols on Mac OS X.
17020 # Tool to manipulate fat objects and archives on Mac OS X.
17023 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17026 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17027 OTOOL64=$lt_OTOOL64
17029 # Old archive suffix (normally "a").
17032 # Shared library suffix (normally ".so").
17033 shrext_cmds=$lt_shrext_cmds
17035 # The commands to extract the exported symbol list from a shared archive.
17036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17038 # Variables whose values should be saved in libtool wrapper scripts and
17039 # restored at link time.
17040 variables_saved_for_relink=$lt_variables_saved_for_relink
17042 # Do we need the "lib" prefix for modules?
17043 need_lib_prefix=$need_lib_prefix
17045 # Do we need a version for libraries?
17046 need_version=$need_version
17048 # Library versioning type.
17049 version_type=$version_type
17051 # Shared library runtime path variable.
17052 runpath_var=$runpath_var
17054 # Shared library path variable.
17055 shlibpath_var=$shlibpath_var
17057 # Is shlibpath searched before the hard-coded library search path?
17058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17060 # Format of library name prefix.
17061 libname_spec=$lt_libname_spec
17063 # List of archive names. First name is the real one, the rest are links.
17064 # The last name is the one that the linker finds with -lNAME
17065 library_names_spec=$lt_library_names_spec
17067 # The coded name of the library, if different from the real name.
17068 soname_spec=$lt_soname_spec
17070 # Permission mode override for installation of shared libraries.
17071 install_override_mode=$lt_install_override_mode
17073 # Command to use after installation of a shared archive.
17074 postinstall_cmds=$lt_postinstall_cmds
17076 # Command to use after uninstallation of a shared archive.
17077 postuninstall_cmds=$lt_postuninstall_cmds
17079 # Commands used to finish a libtool library installation in a directory.
17080 finish_cmds=$lt_finish_cmds
17082 # As "finish_cmds", except a single script fragment to be evaled but
17084 finish_eval=$lt_finish_eval
17086 # Whether we should hardcode library paths into libraries.
17087 hardcode_into_libs=$hardcode_into_libs
17089 # Compile-time system search path for libraries.
17090 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17092 # Run-time system search path for libraries.
17093 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17095 # Whether dlopen is supported.
17096 dlopen_support=$enable_dlopen
17098 # Whether dlopen of programs is supported.
17099 dlopen_self=$enable_dlopen_self
17101 # Whether dlopen of statically linked programs is supported.
17102 dlopen_self_static=$enable_dlopen_self_static
17104 # Commands to strip libraries.
17105 old_striplib=$lt_old_striplib
17106 striplib=$lt_striplib
17109 # The linker used to build libraries.
17112 # How to create reloadable object files.
17113 reload_flag=$lt_reload_flag
17114 reload_cmds=$lt_reload_cmds
17116 # Commands used to build an old-style archive.
17117 old_archive_cmds=$lt_old_archive_cmds
17119 # A language specific compiler.
17122 # Is the compiler the GNU compiler?
17125 # Compiler flag to turn off builtin functions.
17126 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17128 # Additional compiler flags for building library objects.
17129 pic_flag=$lt_lt_prog_compiler_pic
17131 # How to pass a linker flag through the compiler.
17132 wl=$lt_lt_prog_compiler_wl
17134 # Compiler flag to prevent dynamic linking.
17135 link_static_flag=$lt_lt_prog_compiler_static
17137 # Does compiler simultaneously support -c and -o options?
17138 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17140 # Whether or not to add -lc for building shared libraries.
17141 build_libtool_need_lc=$archive_cmds_need_lc
17143 # Whether or not to disallow shared libs when runtime libs are static.
17144 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17146 # Compiler flag to allow reflexive dlopens.
17147 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17149 # Compiler flag to generate shared objects directly from archives.
17150 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17152 # Whether the compiler copes with passing no objects directly.
17153 compiler_needs_object=$lt_compiler_needs_object
17155 # Create an old-style archive from a shared archive.
17156 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17158 # Create a temporary old-style archive to link instead of a shared archive.
17159 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17161 # Commands used to build a shared archive.
17162 archive_cmds=$lt_archive_cmds
17163 archive_expsym_cmds=$lt_archive_expsym_cmds
17165 # Commands used to build a loadable module if different from building
17166 # a shared archive.
17167 module_cmds=$lt_module_cmds
17168 module_expsym_cmds=$lt_module_expsym_cmds
17170 # Whether we are building with GNU ld or not.
17171 with_gnu_ld=$lt_with_gnu_ld
17173 # Flag that allows shared libraries with undefined symbols to be built.
17174 allow_undefined_flag=$lt_allow_undefined_flag
17176 # Flag that enforces no undefined symbols.
17177 no_undefined_flag=$lt_no_undefined_flag
17179 # Flag to hardcode \$libdir into a binary during linking.
17180 # This must work even if \$libdir does not exist
17181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17183 # Whether we need a single "-rpath" flag with a separated argument.
17184 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17186 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17187 # DIR into the resulting binary.
17188 hardcode_direct=$hardcode_direct
17190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17191 # DIR into the resulting binary and the resulting library dependency is
17192 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17193 # library is relocated.
17194 hardcode_direct_absolute=$hardcode_direct_absolute
17196 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17197 # into the resulting binary.
17198 hardcode_minus_L=$hardcode_minus_L
17200 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17201 # into the resulting binary.
17202 hardcode_shlibpath_var=$hardcode_shlibpath_var
17204 # Set to "yes" if building a shared library automatically hardcodes DIR
17205 # into the library and all subsequent libraries and executables linked
17207 hardcode_automatic=$hardcode_automatic
17209 # Set to yes if linker adds runtime paths of dependent libraries
17210 # to runtime path list.
17211 inherit_rpath=$inherit_rpath
17213 # Whether libtool must link a program against all its dependency libraries.
17214 link_all_deplibs=$link_all_deplibs
17216 # Set to "yes" if exported symbols are required.
17217 always_export_symbols=$always_export_symbols
17219 # The commands to list exported symbols.
17220 export_symbols_cmds=$lt_export_symbols_cmds
17222 # Symbols that should not be listed in the preloaded symbols.
17223 exclude_expsyms=$lt_exclude_expsyms
17225 # Symbols that must always be exported.
17226 include_expsyms=$lt_include_expsyms
17228 # Commands necessary for linking programs (against libraries) with templates.
17229 prelink_cmds=$lt_prelink_cmds
17231 # Commands necessary for finishing linking programs.
17232 postlink_cmds=$lt_postlink_cmds
17234 # Specify filename containing input files.
17235 file_list_spec=$lt_file_list_spec
17237 # How to hardcode a shared library path into an executable.
17238 hardcode_action=$hardcode_action
17240 # ### END LIBTOOL CONFIG
17246 cat <<\_LT_EOF
>> "$cfgfile"
17247 # AIX sometimes has problems with the GCC collect2 program. For some
17248 # reason, if we set the COLLECT_NAMES environment variable, the problems
17249 # vanish in a puff of smoke.
17250 if test "X${COLLECT_NAMES+set}" != Xset
; then
17252 export COLLECT_NAMES
17259 ltmain
="$ac_aux_dir/ltmain.sh"
17262 # We use sed instead of cat because bash on DJGPP gets confused if
17263 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17264 # text mode, it properly converts lines to CR/LF. This bash problem
17265 # is reportedly fixed, but why not run on old versions too?
17266 sed '$q' "$ltmain" >> "$cfgfile" \
17267 ||
(rm -f "$cfgfile"; exit 1)
17269 if test x
"$xsi_shell" = xyes
; then
17270 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17274 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17275 \ * ) func_dirname_result="${3}" ;;\
17277 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17278 && mv -f "$cfgfile.tmp" "$cfgfile" \
17279 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17280 test 0 -eq $? || _lt_function_replace_fail
=:
17283 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17286 \ func_basename_result="${1##*/}"\
17287 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17288 && mv -f "$cfgfile.tmp" "$cfgfile" \
17289 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17290 test 0 -eq $? || _lt_function_replace_fail
=:
17293 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17294 func_dirname_and_basename ()\
17297 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17298 \ * ) func_dirname_result="${3}" ;;\
17300 \ func_basename_result="${1##*/}"\
17301 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17302 && mv -f "$cfgfile.tmp" "$cfgfile" \
17303 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17304 test 0 -eq $? || _lt_function_replace_fail
=:
17307 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17310 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17311 \ # positional parameters, so assign one to ordinary parameter first.\
17312 \ func_stripname_result=${3}\
17313 \ func_stripname_result=${func_stripname_result#"${1}"}\
17314 \ func_stripname_result=${func_stripname_result%"${2}"}\
17315 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17316 && mv -f "$cfgfile.tmp" "$cfgfile" \
17317 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17318 test 0 -eq $? || _lt_function_replace_fail
=:
17321 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17322 func_split_long_opt ()\
17324 \ func_split_long_opt_name=${1%%=*}\
17325 \ func_split_long_opt_arg=${1#*=}\
17326 } # Extended-shell func_split_long_opt implementation' "$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 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17333 func_split_short_opt ()\
17335 \ func_split_short_opt_arg=${1#??}\
17336 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17337 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17338 && mv -f "$cfgfile.tmp" "$cfgfile" \
17339 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17340 test 0 -eq $? || _lt_function_replace_fail
=:
17343 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17347 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17348 \ *) func_lo2o_result=${1} ;;\
17350 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17351 && mv -f "$cfgfile.tmp" "$cfgfile" \
17352 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17353 test 0 -eq $? || _lt_function_replace_fail
=:
17356 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17359 func_xform_result=${1%.*}.lo\
17360 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17361 && mv -f "$cfgfile.tmp" "$cfgfile" \
17362 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17363 test 0 -eq $? || _lt_function_replace_fail
=:
17366 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17369 func_arith_result=$(( $* ))\
17370 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17371 && mv -f "$cfgfile.tmp" "$cfgfile" \
17372 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17373 test 0 -eq $? || _lt_function_replace_fail
=:
17376 sed -e '/^func_len ()$/,/^} # func_len /c\
17379 func_len_result=${#1}\
17380 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17381 && mv -f "$cfgfile.tmp" "$cfgfile" \
17382 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail
=:
17387 if test x
"$lt_shell_append" = xyes
; then
17388 sed -e '/^func_append ()$/,/^} # func_append /c\
17391 eval "${1}+=\\${2}"\
17392 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17393 && mv -f "$cfgfile.tmp" "$cfgfile" \
17394 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17395 test 0 -eq $? || _lt_function_replace_fail
=:
17398 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17399 func_append_quoted ()\
17401 \ func_quote_for_eval "${2}"\
17402 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17403 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17404 && mv -f "$cfgfile.tmp" "$cfgfile" \
17405 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17406 test 0 -eq $? || _lt_function_replace_fail
=:
17409 # Save a `func_append' function call where possible by direct use of '+='
17410 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17411 && mv -f "$cfgfile.tmp" "$cfgfile" \
17412 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17413 test 0 -eq $? || _lt_function_replace_fail
=:
17415 # Save a `func_append' function call even when '+=' is not available
17416 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17417 && mv -f "$cfgfile.tmp" "$cfgfile" \
17418 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17419 test 0 -eq $? || _lt_function_replace_fail
=:
17422 if test x
"$_lt_function_replace_fail" = x
":"; then
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17424 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17428 mv -f "$cfgfile" "$ofile" ||
17429 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17440 ac_clean_files
=$ac_clean_files_save
17442 test $ac_write_fail = 0 ||
17443 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17446 # configure is writing to config.log, and then calls config.status.
17447 # config.status does its own redirection, appending to config.log.
17448 # Unfortunately, on DOS this fails, as config.log is still kept open
17449 # by configure, so config.status won't be able to write to it; its
17450 # output is simply discarded. So we exec the FD to /dev/null,
17451 # effectively closing config.log, so it can be properly (re)opened and
17452 # appended to by config.status. When coming back to configure, we
17453 # need to make the FD available again.
17454 if test "$no_create" != yes; then
17456 ac_config_status_args
=
17457 test "$silent" = yes &&
17458 ac_config_status_args
="$ac_config_status_args --quiet"
17460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17463 # would make configure fail if this is the last instruction.
17464 $ac_cs_success || as_fn_exit
1
17466 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17468 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}