2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenVPN 2.3.4.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
287 SHELL
=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE
= GREP_OPTIONS
=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs
="'$as_qdir' $as_dirs"
340 as_dir
=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p
()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
409 as_val
=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit
$as_status
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits
='0123456789'
473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
476 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
477 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x
"$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec
=no
; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
529 mkdir conf$$.dir
2>/dev
/null
531 if (echo >conf$$.
file) 2>/dev
/null
; then
532 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
548 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
549 rmdir conf$$.dir
2>/dev
/null
551 if mkdir
-p .
2>/dev
/null
; then
552 as_mkdir_p
='mkdir -p "$as_dir"'
554 test -d .
/-p && rmdir .
/-p
559 as_executable_p
=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL
=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix
=/usr
/local
583 ac_config_libobj_dir
=.
590 # Identity of this package.
591 PACKAGE_NAME
='OpenVPN'
592 PACKAGE_TARNAME
='openvpn'
593 PACKAGE_VERSION
='2.3.4'
594 PACKAGE_STRING
='OpenVPN 2.3.4'
595 PACKAGE_BUGREPORT
='openvpn-users@lists.sourceforge.net'
598 ac_unique_file
="src/openvpn/syshead.h"
599 # Factoring default headers for most tests.
600 ac_includes_default
="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars
='am__EXEEXT_FALSE
641 ENABLE_PLUGIN_DOWN_ROOT_FALSE
642 ENABLE_PLUGIN_DOWN_ROOT_TRUE
643 ENABLE_PLUGIN_AUTH_PAM_FALSE
644 ENABLE_PLUGIN_AUTH_PAM_TRUE
650 PLUGIN_AUTH_PAM_CFLAGS
651 OPTIONAL_PKCS11_HELPER_LIBS
652 OPTIONAL_PKCS11_HELPER_CFLAGS
656 OPTIONAL_CRYPTO_CFLAGS
657 OPTIONAL_SELINUX_LIBS
669 OPENSSL_CRYPTO_CFLAGS
748 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
805 enable_dependency_tracking
810 enable_x509_alt_username
827 enable_plugin_auth_pam
828 enable_plugin_down_root
832 enable_strict_options
847 ac_precious_vars
='build_alias
870 OPENSSL_CRYPTO_CFLAGS
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
953 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
956 -build |
--build |
--buil |
--bui |
--bu)
957 ac_prev
=build_alias
;;
958 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
959 build_alias
=$ac_optarg ;;
961 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
962 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
963 ac_prev
=cache_file
;;
964 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
965 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
966 cache_file
=$ac_optarg ;;
969 cache_file
=config.cache
;;
971 -datadir |
--datadir |
--datadi |
--datad)
973 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
974 datadir
=$ac_optarg ;;
976 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
977 |
--dataroo |
--dataro |
--datar)
978 ac_prev
=datarootdir
;;
979 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
980 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
981 datarootdir
=$ac_optarg ;;
983 -disable-* |
--disable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error $?
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=\
$ac_optarg ;;
1025 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1026 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1027 |
--exec |
--exe |
--ex)
1028 ac_prev
=exec_prefix
;;
1029 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1030 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1031 |
--exec=* |
--exe=* |
--ex=*)
1032 exec_prefix
=$ac_optarg ;;
1034 -gas |
--gas |
--ga |
--g)
1035 # Obsolete; use --with-gas.
1038 -help |
--help |
--hel |
--he |
-h)
1039 ac_init_help
=long
;;
1040 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1041 ac_init_help
=recursive
;;
1042 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1043 ac_init_help
=short
;;
1045 -host |
--host |
--hos |
--ho)
1046 ac_prev
=host_alias
;;
1047 -host=* |
--host=* |
--hos=* |
--ho=*)
1048 host_alias
=$ac_optarg ;;
1050 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1052 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1054 htmldir
=$ac_optarg ;;
1056 -includedir |
--includedir |
--includedi |
--included |
--include \
1057 |
--includ |
--inclu |
--incl |
--inc)
1058 ac_prev
=includedir
;;
1059 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1060 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1061 includedir
=$ac_optarg ;;
1063 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1065 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1066 infodir
=$ac_optarg ;;
1068 -libdir |
--libdir |
--libdi |
--libd)
1070 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1071 libdir
=$ac_optarg ;;
1073 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1074 |
--libexe |
--libex |
--libe)
1075 ac_prev
=libexecdir
;;
1076 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1077 |
--libexe=* |
--libex=* |
--libe=*)
1078 libexecdir
=$ac_optarg ;;
1080 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1081 ac_prev
=localedir
;;
1082 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1083 localedir
=$ac_optarg ;;
1085 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1086 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1087 ac_prev
=localstatedir
;;
1088 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1089 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1090 localstatedir
=$ac_optarg ;;
1092 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1094 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1095 mandir
=$ac_optarg ;;
1097 -nfp |
--nfp |
--nf)
1098 # Obsolete; use --without-fp.
1101 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1102 |
--no-cr |
--no-c |
-n)
1105 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1106 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1109 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1110 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1111 |
--oldin |
--oldi |
--old |
--ol |
--o)
1112 ac_prev
=oldincludedir
;;
1113 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1114 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1115 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1116 oldincludedir
=$ac_optarg ;;
1118 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1120 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1121 prefix
=$ac_optarg ;;
1123 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1124 |
--program-pre |
--program-pr |
--program-p)
1125 ac_prev
=program_prefix
;;
1126 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1127 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1128 program_prefix
=$ac_optarg ;;
1130 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1131 |
--program-suf |
--program-su |
--program-s)
1132 ac_prev
=program_suffix
;;
1133 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1134 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1135 program_suffix
=$ac_optarg ;;
1137 -program-transform-name |
--program-transform-name \
1138 |
--program-transform-nam |
--program-transform-na \
1139 |
--program-transform-n |
--program-transform- \
1140 |
--program-transform |
--program-transfor \
1141 |
--program-transfo |
--program-transf \
1142 |
--program-trans |
--program-tran \
1143 |
--progr-tra |
--program-tr |
--program-t)
1144 ac_prev
=program_transform_name
;;
1145 -program-transform-name=* |
--program-transform-name=* \
1146 |
--program-transform-nam=* |
--program-transform-na=* \
1147 |
--program-transform-n=* |
--program-transform-=* \
1148 |
--program-transform=* |
--program-transfor=* \
1149 |
--program-transfo=* |
--program-transf=* \
1150 |
--program-trans=* |
--program-tran=* \
1151 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1152 program_transform_name
=$ac_optarg ;;
1154 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1156 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1157 pdfdir
=$ac_optarg ;;
1159 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1161 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1165 |
-silent |
--silent |
--silen |
--sile |
--sil)
1168 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1170 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1172 sbindir
=$ac_optarg ;;
1174 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1175 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1176 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1178 ac_prev
=sharedstatedir
;;
1179 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1180 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1181 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1183 sharedstatedir
=$ac_optarg ;;
1185 -site |
--site |
--sit)
1187 -site=* |
--site=* |
--sit=*)
1190 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1192 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1193 srcdir
=$ac_optarg ;;
1195 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1196 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1197 ac_prev
=sysconfdir
;;
1198 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1199 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1200 sysconfdir
=$ac_optarg ;;
1202 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1203 ac_prev
=target_alias
;;
1204 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1205 target_alias
=$ac_optarg ;;
1207 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1210 -version |
--version |
--versio |
--versi |
--vers |
-V)
1211 ac_init_version
=: ;;
1214 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error $?
"invalid package name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval with_
$ac_useropt=\
$ac_optarg ;;
1229 -without-* |
--without-*)
1230 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1233 as_fn_error $?
"invalid package name: $ac_useropt"
1234 ac_useropt_orig
=$ac_useropt
1235 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep
=', ';;
1243 eval with_
$ac_useropt=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1268 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1272 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $?
"missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val
=\$
$ac_var
1308 # Remove trailing slashes.
1311 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\
$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$
]* | ?
:[\\/]* ) continue;;
1317 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1319 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target
=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x
; then
1331 if test "x$build_alias" = x
; then
1332 cross_compiling
=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1341 test "$silent" = yes && exec 6>/dev
/null
1344 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di
=`ls -di .` &&
1346 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $?
"working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $?
"pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted
=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir
=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted
=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1388 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var
in $ac_precious_vars; do
1405 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1407 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures OpenVPN 2.3.4 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1481 --build=BUILD configure
for building on BUILD
[guessed
]
1482 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive
) echo "Configuration of OpenVPN 2.3.4:";;
1493 --disable-option-checking ignore unrecognized
--enable/--with options
1494 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1495 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1496 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1497 --disable-silent-rules verbose build output
(undo
: "make V=0")
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --disable-lzo disable LZO compression support
[default
=yes]
1503 --enable-lzo-stub don
't compile LZO compression support but still
1504 allow limited interoperability with LZO-enabled
1506 --disable-crypto disable crypto support [default=yes]
1507 --disable-ssl disable SSL support for TLS-based key exchange
1509 --enable-x509-alt-username
1510 enable the --x509-username-field feature
1512 --disable-multi disable client/server support (--mode server +
1513 client mode) [default=yes]
1514 --disable-server disable server support only (but retain client
1515 support) [default=yes]
1516 --disable-plugins disable plug-in support [default=yes]
1517 --disable-management disable management server support [default=yes]
1518 --enable-pkcs11 enable pkcs11 support [default=no]
1519 --disable-socks disable Socks support [default=yes]
1520 --disable-http-proxy disable HTTP proxy support [default=yes]
1521 --disable-fragment disable internal fragmentation support (--fragment)
1523 --disable-multihome disable multi-homed UDP server support (--multihome)
1525 --disable-port-share disable TCP server port-share support (--port-share)
1527 --disable-debug disable debugging support (disable gremlin and verb
1528 7+ messages) [default=yes]
1529 --enable-small enable smaller executable size (disable OCC, usage
1530 message, and verb 4 parm list) [default=yes]
1531 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1532 read from a file [default=yes]
1533 --enable-iproute2 enable support for iproute2 [default=no]
1534 --disable-def-auth disable deferred authentication [default=yes]
1535 --disable-pf disable internal packet filter [default=yes]
1536 --disable-plugin-auth-pam
1537 disable auth-pam plugin [default=platform specific]
1538 --disable-plugin-down-root
1539 disable down-root plugin [default=platform specific]
1540 --enable-pam-dlopen dlopen libpam [default=no]
1541 --enable-strict enable strict compiler warnings (debugging option)
1543 --enable-pedantic enable pedantic compiler warnings, will not generate
1544 a working executable (debugging option) [default=no]
1545 --enable-strict-options enable strict options check between peers (debugging
1546 option) [default=no]
1547 --enable-selinux enable SELinux support [default=no]
1548 --enable-systemd enable systemd suppport [default=no]
1549 --enable-shared[=PKGS] build shared libraries [default=yes]
1550 --enable-static[=PKGS] build static libraries [default=yes]
1551 --enable-fast-install[=PKGS]
1552 optimize for fast installation [default=yes]
1553 --disable-libtool-lock avoid locking (might break parallel builds)
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-special-build=STRING
1559 specify special build string
1560 --with-mem-check=TYPE build with debug memory checking,
1561 TYPE=no|dmalloc|valgrind|ssl [default=no]
1562 --with-crypto-library=library
1563 build with the given crypto library,
1564 TYPE=openssl|polarssl [default=openssl]
1565 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1566 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1569 --with-sysroot=DIR Search for dependent libraries within DIR
1570 (or the compiler's sysroot
if not specified
).
1572 Some influential environment variables
:
1573 CC C compiler
command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1576 nonstandard directory
<lib dir
>
1577 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1578 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1579 you have headers
in a nonstandard directory
<include dir
>
1581 PKG_CONFIG path to pkg-config utility
1583 directories to add to pkg-config
's search path
1585 path overriding pkg-config's built-in search path
1586 IFCONFIG full path to ipconfig utility
1587 ROUTE full path to route utility
1588 IPROUTE full path to ip utility
1589 NETSTAT path to netstat utility
1590 MAN2HTML path to man2html utility
1591 GIT path to git utility
1592 TAP_CFLAGS C compiler flags
for tap
1594 C compiler flags
for libpam
1595 LIBPAM_LIBS linker flags
for libpam
1596 PKCS11_HELPER_CFLAGS
1597 C compiler flags
for PKCS11_HELPER
, overriding pkg-config
1599 linker flags
for PKCS11_HELPER
, overriding pkg-config
1600 OPENSSL_CRYPTO_CFLAGS
1601 C compiler flags
for OPENSSL_CRYPTO
, overriding pkg-config
1603 linker flags
for OPENSSL_CRYPTO
, overriding pkg-config
1605 C compiler flags
for OPENSSL_SSL
, overriding pkg-config
1607 linker flags
for OPENSSL_SSL
, overriding pkg-config
1609 C compiler flags
for polarssl
1611 linker flags
for polarssl
1612 LZO_CFLAGS C compiler flags
for lzo
1613 LZO_LIBS linker flags
for lzo
1615 Use these variables to override the choices made by
`configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to <openvpn-users@lists.sourceforge.net>.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 ac_abs_top_builddir=$ac_pwd
1643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644 # for backward compatibility:
1645 ac_top_builddir=$ac_top_build_prefix
1648 .) # We are building in place.
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1653 ac_srcdir=$srcdir$ac_dir_suffix;
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1678 test -n "$ac_init_help" && exit $ac_status
1679 if $ac_init_version; then
1681 OpenVPN configure 2.3.4
1682 generated by GNU Autoconf 2.69
1684 Copyright (C) 2012 Free Software Foundation, Inc.
1685 This configure script is free software; the Free Software Foundation
1686 gives unlimited permission to copy, distribute and modify it.
1691 ## ------------------------ ##
1692 ## Autoconf initialization. ##
1693 ## ------------------------ ##
1695 # ac_fn_c_try_compile LINENO
1696 # --------------------------
1697 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1698 ac_fn_c_try_compile ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1705 *) ac_try_echo
=$ac_try;;
1707 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1711 if test -s conftest.err
; then
1712 grep -v '^ *+' conftest.err
>conftest.er1
1713 cat conftest.er1
>&5
1714 mv -f conftest.er1 conftest.err
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.
$ac_objext; then :
1723 $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.
$ac_ext >&5
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status
$ac_retval
1731 } # ac_fn_c_try_compile
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1739 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1773 # the include files in INCLUDES and setting the cache variable VAR
1775 ac_fn_c_check_header_mongrel ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if eval \${$3+:} false; then :
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782 $as_echo_n "(cached) " >&6
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1788 # Is the header compilable?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1790 $as_echo_n "checking $2 usability... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1796 if ac_fn_c_try_compile "$LINENO"; then :
1797 ac_header_compiler=yes
1799 ac_header_compiler=no
1801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1803 $as_echo "$ac_header_compiler" >&6; }
1805 # Is the header present?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1807 $as_echo_n "checking $2 presence... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1812 if ac_fn_c_try_cpp "$LINENO"; then :
1813 ac_header_preproc=yes
1815 ac_header_preproc=no
1817 rm -f conftest.err conftest.i conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1819 $as_echo "$ac_header_preproc" >&6; }
1821 # So? What about this header?
1822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840 ( $as_echo "## -------------------------------------------------- ##
1841 ## Report this to openvpn-users@lists.sourceforge.net ##
1842 ## -------------------------------------------------- ##"
1843 ) | sed "s/^/$as_me: WARNING: /" >&2
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1851 eval "$3=\$ac_header_compiler"
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1871 *) ac_try_echo
=$ac_try;;
1873 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&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. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1944 *) ac_try_echo
=$ac_try;;
1946 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1950 if test -s conftest.err
; then
1951 grep -v '^ *+' conftest.err
>conftest.er1
1952 cat conftest.er1
>&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest
$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 test -x conftest
$ac_exeext
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.
$ac_ext >&5
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status
$ac_retval
1978 } # ac_fn_c_try_link
1980 # ac_fn_c_check_func LINENO FUNC VAR
1981 # ----------------------------------
1982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983 ac_fn_c_check_func
()
1985 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \
${$3+:} false
; then :
1989 $as_echo_n "(cached) " >&6
1991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995 #define $2 innocuous_$2
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $2 (); below.
1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000 <limits.h> exists even on freestanding compilers. */
2003 # include <limits.h>
2005 # include <assert.h>
2010 /* Override any GCC internal prototype to avoid an error.
2011 Use char because int might match the return type of a GCC
2012 builtin and then its argument prototype would still apply. */
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined __stub_$2 || defined __stub___$2
2032 if ac_fn_c_try_link
"$LINENO"; then :
2037 rm -f core conftest.err conftest.
$ac_objext \
2038 conftest
$ac_exeext conftest.
$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 } # ac_fn_c_check_func
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type
()
2053 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \
${$3+:} false
; then :
2057 $as_echo_n "(cached) " >&6
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2072 if ac_fn_c_try_compile
"$LINENO"; then :
2073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_c_check_type
2101 # ac_fn_c_find_intX_t LINENO BITS VAR
2102 # -----------------------------------
2103 # Finds a signed integer type with width BITS, setting cache variable VAR
2105 ac_fn_c_find_intX_t
()
2107 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2109 $as_echo_n "checking for int$2_t... " >&6; }
2110 if eval \
${$3+:} false
; then :
2111 $as_echo_n "(cached) " >&6
2114 # Order is important - never check a type that is potentially smaller
2115 # than half of the expected target width.
2116 for ac_type
in int
$2_t 'int' 'long int' \
2117 'long long int' 'short int' 'signed char'; do
2118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $ac_includes_default
2121 enum { N = $2 / 2 - 1 };
2125 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2127 return test_array [0];
2133 if ac_fn_c_try_compile
"$LINENO"; then :
2134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2136 $ac_includes_default
2137 enum { N = $2 / 2 - 1 };
2141 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2142 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2144 return test_array [0];
2150 if ac_fn_c_try_compile
"$LINENO"; then :
2157 eval "$3=\$ac_type" ;;
2160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 if eval test \"x\$
"$3"\" = x
"no"; then :
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 } # ac_fn_c_find_intX_t
2177 # ac_fn_c_find_uintX_t LINENO BITS VAR
2178 # ------------------------------------
2179 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2181 ac_fn_c_find_uintX_t
()
2183 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2185 $as_echo_n "checking for uint$2_t... " >&6; }
2186 if eval \
${$3+:} false
; then :
2187 $as_echo_n "(cached) " >&6
2190 # Order is important - never check a type that is potentially smaller
2191 # than half of the expected target width.
2192 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2193 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $ac_includes_default
2200 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile
"$LINENO"; then :
2213 eval "$3=\$ac_type" ;;
2216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 if eval test \"x\$
"$3"\" = x
"no"; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 } # ac_fn_c_find_uintX_t
2231 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2232 # --------------------------------------------------------------
2233 # Tries to find the compile-time value of EXPR in a program that includes
2234 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2236 ac_fn_c_compute_int
()
2238 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2239 if test "$cross_compiling" = yes; then
2240 # Depending upon the size, compute the lo and hi bounds.
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) >= 0)];
2249 return test_array [0];
2255 if ac_fn_c_try_compile
"$LINENO"; then :
2258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2266 return test_array [0];
2272 if ac_fn_c_try_compile
"$LINENO"; then :
2273 ac_hi
=$ac_mid; break
2275 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2276 if test $ac_lo -le $ac_mid; then
2280 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 static int test_array [1 - 2 * !(($2) < 0)];
2293 return test_array [0];
2299 if ac_fn_c_try_compile
"$LINENO"; then :
2302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2308 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2310 return test_array [0];
2316 if ac_fn_c_try_compile
"$LINENO"; then :
2317 ac_lo
=$ac_mid; break
2319 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2320 if test $ac_mid -le $ac_hi; then
2324 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2326 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2334 # Binary search between lo and hi bounds.
2335 while test "x$ac_lo" != "x$ac_hi"; do
2336 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2343 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 return test_array [0];
2351 if ac_fn_c_try_compile
"$LINENO"; then :
2354 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h. */
2366 static long int longval () { return $2; }
2367 static unsigned long int ulongval () { return $2; }
2374 FILE *f = fopen ("conftest.val", "w");
2379 long int i = longval ();
2382 fprintf (f, "%ld", i);
2386 unsigned long int i = ulongval ();
2389 fprintf (f, "%lu", i);
2391 /* Do not output a trailing newline, as this causes \r\n confusion
2392 on some platforms. */
2393 return ferror (f) || fclose (f) != 0;
2399 if ac_fn_c_try_run
"$LINENO"; then :
2400 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2404 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2405 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status
$ac_retval
2412 } # ac_fn_c_compute_int
2414 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2415 # ---------------------------------------------------------------
2416 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2418 ac_fn_c_check_decl
()
2420 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2421 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2422 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2424 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2425 if eval \
${$3+:} false
; then :
2426 $as_echo_n "(cached) " >&6
2428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2434 #ifndef $as_decl_name
2436 (void) $as_decl_use;
2438 (void) $as_decl_name;
2446 if ac_fn_c_try_compile
"$LINENO"; then :
2451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458 } # ac_fn_c_check_decl
2459 cat >config.log
<<_ACEOF
2460 This file contains any messages produced by compilers while
2461 running configure, to aid debugging if configure makes a mistake.
2463 It was created by OpenVPN $as_me 2.3.4, which was
2464 generated by GNU Autoconf 2.69. Invocation command line was
2476 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2477 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2478 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2479 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2480 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2482 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2483 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2485 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2486 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2487 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2488 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2489 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2490 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2491 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir
=.
2500 $as_echo "PATH: $as_dir"
2516 # Keep a trace of the command line.
2517 # Strip out --no-create and --no-recursion so they do not pile up.
2518 # Strip out --silent because we don't want to record it for future runs.
2519 # Also quote any args containing shell meta-characters.
2520 # Make two passes to allow for proper duplicate-argument suppression.
2524 ac_must_keep_next
=false
2530 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2531 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2532 |
-silent |
--silent |
--silen |
--sile |
--sil)
2535 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2538 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2540 as_fn_append ac_configure_args1
" '$ac_arg'"
2541 if test $ac_must_keep_next = true
; then
2542 ac_must_keep_next
=false
# Got value, back to normal.
2545 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2546 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2547 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2548 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2549 case "$ac_configure_args0 " in
2550 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2553 -* ) ac_must_keep_next
=true
;;
2556 as_fn_append ac_configure_args
" '$ac_arg'"
2561 { ac_configure_args0
=; unset ac_configure_args0
;}
2562 { ac_configure_args1
=; unset ac_configure_args1
;}
2564 # When interrupted or exit'd, cleanup temporary files, and complete
2565 # config.log. We remove comments because anyway the quotes in there
2566 # would cause problems or look ugly.
2567 # WARNING: Use '\'' to represent an apostrophe within the trap.
2568 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2569 trap 'exit_status=$?
2570 # Save into config.log some information that might help in debugging.
2574 $as_echo "## ---------------- ##
2575 ## Cache variables. ##
2576 ## ---------------- ##"
2578 # The following way of writing the cache mishandles newlines in values,
2580 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2581 eval ac_val=\$$ac_var
2585 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2586 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2589 _ | IFS | as_nl) ;; #(
2590 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2591 *) { eval $ac_var=; unset $ac_var;} ;;
2596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2597 *${as_nl}ac_space=\ *)
2599 "s/'\''/'\''\\\\'\'''\''/g;
2600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610 $as_echo "## ----------------- ##
2611 ## Output variables. ##
2612 ## ----------------- ##"
2614 for ac_var in $ac_subst_vars
2616 eval ac_val=\$$ac_var
2618 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2620 $as_echo "$ac_var='\''$ac_val'\''"
2624 if test -n "$ac_subst_files"; then
2625 $as_echo "## ------------------- ##
2626 ## File substitutions. ##
2627 ## ------------------- ##"
2629 for ac_var
in $ac_subst_files
2631 eval ac_val
=\$
$ac_var
2633 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635 $as_echo "$ac_var='\''$ac_val'\''"
2640 if test -s confdefs.h; then
2641 $as_echo "## ----------- ##
2648 test "$ac_signal" != 0 &&
2649 $as_echo "$as_me: caught signal $ac_signal"
2650 $as_echo "$as_me: exit $exit_status"
2652 rm -f core *.core core.conftest.* &&
2653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2656 for ac_signal
in 1 2 13 15; do
2657 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2661 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2662 rm -f -r conftest
* confdefs.h
2664 $as_echo "/* confdefs.h */" > confdefs.h
2666 # Predefined preprocessor variables.
2668 cat >>confdefs.h
<<_ACEOF
2669 #define PACKAGE_NAME "$PACKAGE_NAME"
2672 cat >>confdefs.h
<<_ACEOF
2673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2676 cat >>confdefs.h
<<_ACEOF
2677 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2680 cat >>confdefs.h
<<_ACEOF
2681 #define PACKAGE_STRING "$PACKAGE_STRING"
2684 cat >>confdefs.h
<<_ACEOF
2685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2688 cat >>confdefs.h
<<_ACEOF
2689 #define PACKAGE_URL "$PACKAGE_URL"
2693 # Let the site file select an alternate cache file if it wants to.
2694 # Prefer an explicitly selected file to automatically selected ones.
2697 if test -n "$CONFIG_SITE"; then
2698 # We do not want a PATH search for config.site.
2699 case $CONFIG_SITE in #((
2700 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2701 */*) ac_site_file1
=$CONFIG_SITE;;
2702 *) ac_site_file1
=.
/$CONFIG_SITE;;
2704 elif test "x$prefix" != xNONE
; then
2705 ac_site_file1
=$prefix/share
/config.site
2706 ac_site_file2
=$prefix/etc
/config.site
2708 ac_site_file1
=$ac_default_prefix/share
/config.site
2709 ac_site_file2
=$ac_default_prefix/etc
/config.site
2711 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2713 test "x$ac_site_file" = xNONE
&& continue
2714 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2716 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2717 sed 's/^/| /' "$ac_site_file" >&5
2719 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 as_fn_error $?
"failed to load site script $ac_site_file
2722 See \`config.log' for more details" "$LINENO" 5; }
2726 if test -r "$cache_file"; then
2727 # Some versions of bash will fail to source /dev/null (special files
2728 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2729 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2731 $as_echo "$as_me: loading cache $cache_file" >&6;}
2733 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2734 *) .
"./$cache_file";;
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2739 $as_echo "$as_me: creating cache $cache_file" >&6;}
2743 # Check that the precious variables saved in the cache have kept the same
2745 ac_cache_corrupted
=false
2746 for ac_var
in $ac_precious_vars; do
2747 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2748 eval ac_new_set
=\
$ac_env_${ac_var}_set
2749 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2750 eval ac_new_val
=\
$ac_env_${ac_var}_value
2751 case $ac_old_set,$ac_new_set in
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2754 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2755 ac_cache_corrupted
=: ;;
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2758 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2759 ac_cache_corrupted
=: ;;
2762 if test "x$ac_old_val" != "x$ac_new_val"; then
2763 # differences in whitespace do not lead to failure.
2764 ac_old_val_w
=`echo x $ac_old_val`
2765 ac_new_val_w
=`echo x $ac_new_val`
2766 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2768 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2769 ac_cache_corrupted
=:
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2772 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2773 eval $ac_var=\
$ac_old_val
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2776 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2778 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2781 # Pass precious variables to config.status.
2782 if test "$ac_new_set" = set; then
2784 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2785 *) ac_arg
=$ac_var=$ac_new_val ;;
2787 case " $ac_configure_args " in
2788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2789 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2793 if $ac_cache_corrupted; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2797 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2798 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2800 ## -------------------- ##
2801 ## Main body of script. ##
2802 ## -------------------- ##
2805 ac_cpp
='$CPP $CPPFLAGS'
2806 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2817 if test -z "${docdir}"; then
2818 docdir
="\$(datadir)/doc/\$(PACKAGE_NAME)"
2821 if test -z "${htmldir}"; then
2822 htmldir
="\$(docdir)"
2827 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,4,0" >>confdefs.h
2831 for ac_dir
in .
"$srcdir"/.
; do
2832 if test -f "$ac_dir/install-sh"; then
2834 ac_install_sh
="$ac_aux_dir/install-sh -c"
2836 elif test -f "$ac_dir/install.sh"; then
2838 ac_install_sh
="$ac_aux_dir/install.sh -c"
2840 elif test -f "$ac_dir/shtool"; then
2842 ac_install_sh
="$ac_aux_dir/shtool install -c"
2846 if test -z "$ac_aux_dir"; then
2847 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2850 # These three variables are undocumented and unsupported,
2851 # and are intended to be withdrawn in a future Autoconf release.
2852 # They can cause serious problems if a builder's source tree is in a directory
2853 # whose full name contains unusual characters.
2854 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2855 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2856 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2859 ac_config_headers
="$ac_config_headers config.h"
2863 am__api_version
='1.13'
2865 # Find a good install program. We prefer a C program (faster),
2866 # so one script is as good as another. But avoid the broken or
2867 # incompatible versions:
2868 # SysV /etc/install, /usr/sbin/install
2869 # SunOS /usr/etc/install
2870 # IRIX /sbin/install
2872 # AmigaOS /C/install, which installs bootblocks on floppy discs
2873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2876 # OS/2's system install, which has a completely different semantic
2877 # ./install, which can be erroneously created by make from ./install.sh.
2878 # Reject install programs that cannot install multiple files.
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2880 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2881 if test -z "$INSTALL"; then
2882 if ${ac_cv_path_install+:} false
; then :
2883 $as_echo_n "(cached) " >&6
2885 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir
=.
2890 # Account for people who put trailing slashes in PATH elements.
2891 case $as_dir/ in #((
2892 .
/ | .
// |
/[cC
]/* | \
2893 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2894 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2897 # OSF1 and SCO ODT 3.0 have their own names for install.
2898 # Don't use installbsd from OSF since it installs stuff as root
2900 for ac_prog
in ginstall scoinst
install; do
2901 for ac_exec_ext
in '' $ac_executable_extensions; do
2902 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2903 if test $ac_prog = install &&
2904 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2905 # AIX install. It has an incompatible calling convention.
2907 elif test $ac_prog = install &&
2908 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2909 # program-specific install script used by HP pwplus--don't use.
2912 rm -rf conftest.one conftest.two conftest.dir
2913 echo one
> conftest.one
2914 echo two
> conftest.two
2916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2917 test -s conftest.one
&& test -s conftest.two
&&
2918 test -s conftest.dir
/conftest.one
&&
2919 test -s conftest.dir
/conftest.two
2921 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2934 rm -rf conftest.one conftest.two conftest.dir
2937 if test "${ac_cv_path_install+set}" = set; then
2938 INSTALL
=$ac_cv_path_install
2940 # As a last resort, use the slow shell script. Don't cache a
2941 # value for INSTALL within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the value is a relative name.
2944 INSTALL
=$ac_install_sh
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948 $as_echo "$INSTALL" >&6; }
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2956 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959 $as_echo_n "checking whether build environment is sane... " >&6; }
2960 # Reject unsafe characters in $srcdir or the absolute working directory
2961 # name. Accept space and tab only in the latter.
2965 *[\\\"\
#\$\&\'\`$am_lf]*)
2966 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2969 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2970 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2973 # Do 'set' in a subshell so we don't clobber the current shell's
2974 # arguments. Must try -L first in case configure is actually a
2975 # symlink; some systems play weird games with the mod time of symlinks
2976 # (eg FreeBSD returns the mod time of the symlink's containing
2980 for am_try
in 1 2; do
2981 echo "timestamp, slept: $am_has_slept" > conftest.
file
2982 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983 if test "$*" = "X"; then
2985 set X
`ls -t "$srcdir/configure" conftest.file`
2987 if test "$*" != "X $srcdir/configure conftest.file" \
2988 && test "$*" != "X conftest.file $srcdir/configure"; then
2990 # If neither matched, then we have a broken ls. This can happen
2991 # if, for instance, CONFIG_SHELL is bash and it inherits a
2992 # broken ls alias from the environment. This has actually
2993 # happened. Such a system could not be considered "sane".
2994 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2995 alias in your environment" "$LINENO" 5
2997 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3004 test "$2" = conftest.
file
3010 as_fn_error $?
"newly created file is older than distributed files!
3011 Check your system clock" "$LINENO" 5
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 $as_echo "yes" >&6; }
3015 # If we didn't sleep, we still need to ensure time stamps of config.status and
3016 # generated files are strictly newer.
3018 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3025 test "$program_prefix" != NONE
&&
3026 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3027 # Use a double $ so make ignores it.
3028 test "$program_suffix" != NONE
&&
3029 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3030 # Double any \ or $.
3031 # By default was `s,x,x', remove it if useless.
3032 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3033 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3035 # expand $ac_aux_dir to an absolute path
3036 am_aux_dir
=`cd $ac_aux_dir && pwd`
3038 if test x
"${MISSING+set}" != xset
; then
3041 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3043 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3046 # Use eval to expand $SHELL
3047 if eval "$MISSING --is-lightweight"; then
3048 am_missing_run
="$MISSING "
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3052 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3055 if test x
"${install_sh}" != xset
; then
3058 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3060 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3064 # Installed binaries are usually stripped using 'strip' when the user
3065 # run "make install-strip". However 'strip' might not be the right
3066 # tool to use in cross-compilation environments, therefore Automake
3067 # will honor the 'STRIP' environment variable to overrule this program.
3068 if test "$cross_compiling" != no
; then
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3071 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if ${ac_cv_prog_STRIP+:} false
; then :
3075 $as_echo_n "(cached) " >&6
3077 if test -n "$STRIP"; then
3078 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3080 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir
=.
3085 for ac_exec_ext
in '' $ac_executable_extensions; do
3086 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 STRIP
=$ac_cv_prog_STRIP
3098 if test -n "$STRIP"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3100 $as_echo "$STRIP" >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3108 if test -z "$ac_cv_prog_STRIP"; then
3110 # Extract the first word of "strip", so it can be a program name with args.
3111 set dummy strip
; ac_word
=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3115 $as_echo_n "(cached) " >&6
3117 if test -n "$ac_ct_STRIP"; then
3118 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3124 test -z "$as_dir" && as_dir
=.
3125 for ac_exec_ext
in '' $ac_executable_extensions; do
3126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_STRIP
="strip"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3138 if test -n "$ac_ct_STRIP"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3140 $as_echo "$ac_ct_STRIP" >&6; }
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3146 if test "x$ac_ct_STRIP" = x
; then
3149 case $cross_compiling:$ac_tool_warned in
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned
=yes ;;
3158 STRIP
="$ac_cv_prog_STRIP"
3162 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3165 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3166 if test -z "$MKDIR_P"; then
3167 if ${ac_cv_path_mkdir+:} false
; then :
3168 $as_echo_n "(cached) " >&6
3170 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3171 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3174 test -z "$as_dir" && as_dir
=.
3175 for ac_prog
in mkdir gmkdir
; do
3176 for ac_exec_ext
in '' $ac_executable_extensions; do
3177 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3178 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3179 'mkdir (GNU coreutils) '* | \
3180 'mkdir (coreutils) '* | \
3181 'mkdir (fileutils) '4.1*)
3182 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3192 test -d .
/--version && rmdir .
/--version
3193 if test "${ac_cv_path_mkdir+set}" = set; then
3194 MKDIR_P
="$ac_cv_path_mkdir -p"
3196 # As a last resort, use the slow shell script. Don't cache a
3197 # value for MKDIR_P within a source directory, because that will
3198 # break other packages using the cache if that directory is
3199 # removed, or if the value is a relative name.
3200 MKDIR_P
="$ac_install_sh -d"
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3204 $as_echo "$MKDIR_P" >&6; }
3206 for ac_prog
in gawk mawk nawk
awk
3208 # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy
$ac_prog; ac_word
=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_prog_AWK+:} false
; then :
3213 $as_echo_n "(cached) " >&6
3215 if test -n "$AWK"; then
3216 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir
=.
3223 for ac_exec_ext
in '' $ac_executable_extensions; do
3224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_AWK
="$ac_prog"
3226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 if test -n "$AWK"; then
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3238 $as_echo "$AWK" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3245 test -n "$AWK" && break
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3249 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3251 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3252 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3253 $as_echo_n "(cached) " >&6
3255 cat >conftest.
make <<\_ACEOF
3258 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3260 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3261 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3263 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3265 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3269 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271 $as_echo "yes" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 SET_MAKE
="MAKE=${MAKE-make}"
3279 rm -rf .tst
2>/dev
/null
3280 mkdir .tst
2>/dev
/null
3281 if test -d .tst
; then
3286 rmdir .tst
2>/dev
/null
3288 # Check whether --enable-silent-rules was given.
3289 if test "${enable_silent_rules+set}" = set; then :
3290 enableval
=$enable_silent_rules;
3293 case $enable_silent_rules in # (((
3294 yes) AM_DEFAULT_VERBOSITY
=0;;
3295 no
) AM_DEFAULT_VERBOSITY
=1;;
3296 *) AM_DEFAULT_VERBOSITY
=1;;
3298 am_make
=${MAKE-make}
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3300 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3301 if ${am_cv_make_support_nested_variables+:} false
; then :
3302 $as_echo_n "(cached) " >&6
3304 if $as_echo 'TRUE=$(BAR$(V))
3310 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3311 am_cv_make_support_nested_variables
=yes
3313 am_cv_make_support_nested_variables
=no
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3317 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3318 if test $am_cv_make_support_nested_variables = yes; then
3320 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3322 AM_V
=$AM_DEFAULT_VERBOSITY
3323 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3327 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3328 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3329 # is not polluted with repeated "-I."
3330 am__isrc
=' -I$(srcdir)'
3331 # test to see if srcdir already configured
3332 if test -f $srcdir/config.status
; then
3333 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3337 # test whether we have cygpath
3338 if test -z "$CYGPATH_W"; then
3339 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3340 CYGPATH_W
='cygpath -w'
3347 # Define the identity of the package.
3352 cat >>confdefs.h
<<_ACEOF
3353 #define PACKAGE "$PACKAGE"
3357 cat >>confdefs.h
<<_ACEOF
3358 #define VERSION "$VERSION"
3361 # Some tools Automake needs.
3363 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3366 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3369 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3372 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3375 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3377 # For better backward compatibility. To be removed once Automake 1.9.x
3378 # dies out for good. For more background, see:
3379 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3380 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3381 mkdir_p
='$(MKDIR_P)'
3383 # We need awk for the "check" target. The system "awk" is bad on
3385 # Always define AMTAR for backward compatibility. Yes, it's still used
3386 # in the wild :-( We should find a proper way to deprecate it ...
3390 # We'll loop over all known methods to create a tar archive until one works.
3391 _am_tools
='gnutar pax cpio none'
3393 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3400 # Make sure we can run config.sub.
3401 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3402 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3405 $as_echo_n "checking build system type... " >&6; }
3406 if ${ac_cv_build+:} false
; then :
3407 $as_echo_n "(cached) " >&6
3409 ac_build_alias
=$build_alias
3410 test "x$ac_build_alias" = x
&&
3411 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3412 test "x$ac_build_alias" = x
&&
3413 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3414 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3415 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3419 $as_echo "$ac_cv_build" >&6; }
3420 case $ac_cv_build in
3422 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3425 ac_save_IFS
=$IFS; IFS
='-'
3431 # Remember, the first character of IFS is used to create $*,
3432 # except with old shells:
3435 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3439 $as_echo_n "checking host system type... " >&6; }
3440 if ${ac_cv_host+:} false
; then :
3441 $as_echo_n "(cached) " >&6
3443 if test "x$host_alias" = x
; then
3444 ac_cv_host
=$ac_cv_build
3446 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3447 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3452 $as_echo "$ac_cv_host" >&6; }
3455 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3458 ac_save_IFS
=$IFS; IFS
='-'
3464 # Remember, the first character of IFS is used to create $*,
3465 # except with old shells:
3468 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3471 DEPDIR
="${am__leading_dot}deps"
3473 ac_config_commands
="$ac_config_commands depfiles"
3476 am_make
=${MAKE-make}
3477 cat > confinc
<< 'END'
3479 @
echo this is the am__doit target
3482 # If we don't find an include directive, just comment out the code.
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3484 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3488 # First try GNU make style include.
3489 echo "include confinc" > confmf
3490 # Ignore all kinds of additional output from 'make'.
3491 case `$am_make -s -f confmf 2> /dev/null` in #(
3492 *the\ am__doit\ target
*)
3498 # Now try BSD make style include.
3499 if test "$am__include" = "#"; then
3500 echo '.include "confinc"' > confmf
3501 case `$am_make -s -f confmf 2> /dev/null` in #(
3502 *the\ am__doit\ target
*)
3503 am__include
=.include
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3512 $as_echo "$_am_result" >&6; }
3513 rm -f confinc confmf
3515 # Check whether --enable-dependency-tracking was given.
3516 if test "${enable_dependency_tracking+set}" = set; then :
3517 enableval
=$enable_dependency_tracking;
3520 if test "x$enable_dependency_tracking" != xno
; then
3521 am_depcomp
="$ac_aux_dir/depcomp"
3525 if test "x$enable_dependency_tracking" != xno; then
3535 ac_cpp
='$CPP $CPPFLAGS'
3536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC
="$CC" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$ac_cv_prog_CC"; then
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc
; ac_word
=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3585 $as_echo_n "(cached) " >&6
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir
=.
3595 for ac_exec_ext
in '' $ac_executable_extensions; do
3596 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC
="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3616 if test "x$ac_ct_CC" = x
; then
3619 case $cross_compiling:$ac_tool_warned in
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned
=yes ;;
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false
; then :
3638 $as_echo_n "(cached) " >&6
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC
="$CC" # Let the user override the test.
3643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir
=.
3648 for ac_exec_ext
in '' $ac_executable_extensions; do
3649 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc
; ac_word
=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CC+:} false
; then :
3678 $as_echo_n "(cached) " >&6
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC
="$CC" # Let the user override the test.
3684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir
=.
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected
=yes
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy
$ac_cv_prog_CC
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3712 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog
in cl.exe
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_CC+:} false
; then :
3737 $as_echo_n "(cached) " >&6
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC
="$CC" # Let the user override the test.
3742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir
=.
3747 for ac_exec_ext
in '' $ac_executable_extensions; do
3748 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3769 test -n "$CC" && break
3772 if test -z "$CC"; then
3774 for ac_prog
in cl.exe
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy
$ac_prog; ac_word
=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3786 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir
=.
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_ac_ct_CC
="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$ac_ct_CC" && break
3816 if test "x$ac_ct_CC" = x
; then
3819 case $cross_compiling:$ac_tool_warned in
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned
=yes ;;
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $?
"no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details" "$LINENO" 5; }
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841 for ac_option
in --version -v -V -qversion; do
3842 { { ac_try
="$ac_compiler $ac_option >&5"
3844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3851 if test -s conftest.err; then
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3857 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3879 $as_echo_n "checking whether the C compiler works... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3886 for ac_file in $ac_files
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3895 if { { ac_try="$ac_link_default"
3897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3898 *) ac_try_echo
=$ac_try;;
3900 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3911 for ac_file
in $ac_files ''
3913 test -f "$ac_file" ||
continue
3915 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3918 # We found the default executable, but exeext='' is most
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3924 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3936 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3941 if test -z "$ac_file"; then :
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.
$ac_ext >&5
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error
77 "C compiler cannot create executables
3950 See \`config.log' for more details" "$LINENO" 5; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 $as_echo "yes" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956 $as_echo_n "checking for C compiler default output file name... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958 $as_echo "$ac_file" >&6; }
3959 ac_exeext
=$ac_cv_exeext
3961 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3962 ac_clean_files
=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try
="$ac_link"
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3977 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3980 for ac_file
in conftest.exe conftest conftest.
*; do
3981 test -f "$ac_file" ||
continue
3983 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3984 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details" "$LINENO" 5; }
3995 rm -f conftest conftest
$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3999 rm -f conftest.
$ac_ext
4000 EXEEXT
=$ac_cv_exeext
4002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4008 FILE *f = fopen ("conftest.out", "w");
4009 return ferror (f) || fclose (f) != 0;
4015 ac_clean_files
="$ac_clean_files conftest.out"
4016 # Check that the compiler produces executables we can run. If not, either
4017 # the compiler is broken, or we cross compile.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019 $as_echo_n "checking whether we are cross compiling... " >&6; }
4020 if test "$cross_compiling" != yes; then
4021 { { ac_try
="$ac_link"
4023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 if { ac_try='./conftest$ac_cv_exeext'
4033 { { case "(($ac_try" in
4034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4035 *) ac_try_echo
=$ac_try;;
4037 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_try") 2>&5
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; }; then
4045 if test "$cross_compiling" = maybe
; then
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error $?
"cannot run C compiled programs.
4051 If you meant to cross compile, use \`--host'.
4052 See \`config.log' for more details" "$LINENO" 5; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4057 $as_echo "$cross_compiling" >&6; }
4059 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4060 ac_clean_files
=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4062 $as_echo_n "checking for suffix of object files... " >&6; }
4063 if ${ac_cv_objext+:} false
; then :
4064 $as_echo_n "(cached) " >&6
4066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try
="$ac_compile"
4080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4103 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4104 See \
`config.log' for more details" "$LINENO" 5; }
4106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109 $as_echo "$ac_cv_objext" >&6; }
4110 OBJEXT=$ac_cv_objext
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4114 if ${ac_cv_c_compiler_gnu+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4131 if ac_fn_c_try_compile "$LINENO"; then :
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4147 ac_test_CFLAGS=${CFLAGS+set}
4148 ac_save_CFLAGS=$CFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4151 if ${ac_cv_prog_cc_g+:} false; then :
4152 $as_echo_n "(cached) " >&6
4154 ac_save_c_werror_flag=$ac_c_werror_flag
4155 ac_c_werror_flag=yes
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4169 if ac_fn_c_try_compile "$LINENO"; then :
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4184 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4200 if ac_fn_c_try_compile "$LINENO"; then :
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211 $as_echo "$ac_cv_prog_cc_g" >&6; }
4212 if test "$ac_test_CFLAGS" = set; then
4213 CFLAGS=$ac_save_CFLAGS
4214 elif test $ac_cv_prog_cc_g = yes; then
4215 if test "$GCC" = yes; then
4221 if test "$GCC" = yes; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4229 if ${ac_cv_prog_cc_c89+:} false; then :
4230 $as_echo_n "(cached) " >&6
4232 ac_cv_prog_cc_c89=no
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4253 s = g (p, va_arg (v,int));
4258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4259 function prototypes and stuff, but not '\xHH' hex character constants.
4260 These don't provoke an error unfortunately, instead are silently treated
4261 as 'x'. The following induces an error, until -std is added to get
4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4263 array size at least. It's necessary to write '\x00'==0 to get something
4264 that's true only with -std. */
4265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4268 inside strings and character constants. */
4270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4272 int test (int i, double x);
4273 struct s1 {int (*f) (int a);};
4274 struct s2 {int (*f) (double a);};
4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 CC="$ac_save_CC $ac_arg"
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_c89=$ac_arg
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4296 rm -f conftest.$ac_ext
4301 case "x$ac_cv_prog_cc_c89" in
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4313 if test "x$ac_cv_prog_cc_c89" != xno; then :
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323 depcc="$CC" am_compiler_list=
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4326 $as_echo_n "checking dependency style of $depcc... " >&6; }
4327 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4331 # We make a subdir and do the tests there. Otherwise we can end up
4332 # making bogus files that we don't know about and never remove. For
4333 # instance it was reported that on HP-UX the gcc test will end up
4334 # making a dummy file named 'D' -- because '-MD' means "put the output
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4371 # Solaris 10 /bin/sh.
4372 echo '/* dummy */' > sub/conftst$i.h
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle '-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs.
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4388 # After this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested.
4390 if test "x$enable_dependency_tracking" = xyes; then
4396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4397 # This compiler won't grok '-c -o', but also, the minuso test has
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4432 am_cv_CC_dependencies_compiler_type=none
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4444 am__fastdepCC_FALSE='#'
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4463 if test -z "$CPP"; then
4464 if ${ac_cv_prog_CPP+:} false; then :
4465 $as_echo_n "(cached) " >&6
4467 # Double quotes because CPP needs to be expanded
4468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4471 for ac_c_preproc_warn_flag in '' yes
4473 # Use a header file that comes with gcc, so configuring glibc
4474 # with a fresh cross-compiler works.
4475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476 # <limits.h> exists even on freestanding compilers.
4477 # On the NeXT, cc -E runs the code through the compiler's parser,
4478 # not just through cpp. "Syntax error" is here to catch this case.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4482 # include <limits.h>
4484 # include <assert.h>
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4491 # Broken: fails on valid input.
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4496 # OK, works on sane cases. Now check whether nonexistent headers
4497 # can be detected and how.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <ac_nonexistent.h>
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503 # Broken: success on invalid input.
4506 # Passes both tests.
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.
$ac_ext
4515 if $ac_preproc_ok; then :
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4530 for ac_c_preproc_warn_flag
in '' yes
4532 # Use a header file that comes with gcc, so configuring glibc
4533 # with a fresh cross-compiler works.
4534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535 # <limits.h> exists even on freestanding compilers.
4536 # On the NeXT, cc -E runs the code through the compiler's parser,
4537 # not just through cpp. "Syntax error" is here to catch this case.
4538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # include <limits.h>
4543 # include <assert.h>
4547 if ac_fn_c_try_cpp
"$LINENO"; then :
4550 # Broken: fails on valid input.
4553 rm -f conftest.err conftest.i conftest.
$ac_ext
4555 # OK, works on sane cases. Now check whether nonexistent headers
4556 # can be detected and how.
4557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4559 #include <ac_nonexistent.h>
4561 if ac_fn_c_try_cpp
"$LINENO"; then :
4562 # Broken: success on invalid input.
4565 # Passes both tests.
4569 rm -f conftest.err conftest.i conftest.
$ac_ext
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.
$ac_ext
4574 if $ac_preproc_ok; then :
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details" "$LINENO" 5; }
4584 ac_cpp
='$CPP $CPPFLAGS'
4585 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if ${ac_cv_path_GREP+:} false
; then :
4593 $as_echo_n "(cached) " >&6
4595 if test -z "$GREP"; then
4596 ac_path_GREP_found
=false
4597 # Loop through the user's path and test for each of PROGNAME-LIST
4598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4599 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4602 test -z "$as_dir" && as_dir
=.
4603 for ac_prog
in grep ggrep
; do
4604 for ac_exec_ext
in '' $ac_executable_extensions; do
4605 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4606 as_fn_executable_p
"$ac_path_GREP" ||
continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608 # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4611 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4614 $as_echo_n 0123456789 >"conftest.in"
4617 cat "conftest.in" "conftest.in" >"conftest.tmp"
4618 mv "conftest.tmp" "conftest.in"
4619 cp "conftest.in" "conftest.nl"
4620 $as_echo 'GREP' >> "conftest.nl"
4621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4622 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4623 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625 # Best one so far, save it but keep looking for a better one
4626 ac_cv_path_GREP
="$ac_path_GREP"
4627 ac_path_GREP_max
=$ac_count
4629 # 10*(2^10) chars as input seems more than enough
4630 test $ac_count -gt 10 && break
4632 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4635 $ac_path_GREP_found && break 3
4640 if test -z "$ac_cv_path_GREP"; then
4641 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4644 ac_cv_path_GREP
=$GREP
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650 GREP
="$ac_cv_path_GREP"
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if ${ac_cv_path_EGREP+:} false
; then :
4656 $as_echo_n "(cached) " >&6
4658 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4659 then ac_cv_path_EGREP
="$GREP -E"
4661 if test -z "$EGREP"; then
4662 ac_path_EGREP_found
=false
4663 # Loop through the user's path and test for each of PROGNAME-LIST
4664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4665 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4668 test -z "$as_dir" && as_dir
=.
4669 for ac_prog
in egrep; do
4670 for ac_exec_ext
in '' $ac_executable_extensions; do
4671 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4672 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674 # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4677 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4680 $as_echo_n 0123456789 >"conftest.in"
4683 cat "conftest.in" "conftest.in" >"conftest.tmp"
4684 mv "conftest.tmp" "conftest.in"
4685 cp "conftest.in" "conftest.nl"
4686 $as_echo 'EGREP' >> "conftest.nl"
4687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4688 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4689 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691 # Best one so far, save it but keep looking for a better one
4692 ac_cv_path_EGREP
="$ac_path_EGREP"
4693 ac_path_EGREP_max
=$ac_count
4695 # 10*(2^10) chars as input seems more than enough
4696 test $ac_count -gt 10 && break
4698 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4701 $ac_path_EGREP_found && break 3
4706 if test -z "$ac_cv_path_EGREP"; then
4707 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710 ac_cv_path_EGREP
=$EGREP
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717 EGREP
="$ac_cv_path_EGREP"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4721 $as_echo_n "checking for ANSI C header files... " >&6; }
4722 if ${ac_cv_header_stdc+:} false
; then :
4723 $as_echo_n "(cached) " >&6
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4740 if ac_fn_c_try_compile
"$LINENO"; then :
4741 ac_cv_header_stdc
=yes
4743 ac_cv_header_stdc
=no
4745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4747 if test $ac_cv_header_stdc = yes; then
4748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "memchr" >/dev
/null
2>&1; then :
4758 ac_cv_header_stdc
=no
4764 if test $ac_cv_header_stdc = yes; then
4765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772 $EGREP "free" >/dev
/null
2>&1; then :
4775 ac_cv_header_stdc
=no
4781 if test $ac_cv_header_stdc = yes; then
4782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4783 if test "$cross_compiling" = yes; then :
4786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4790 #if ((' ' & 0x0FF) == 0x020)
4791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4794 # define ISLOWER(c) \
4795 (('a' <= (c) && (c) <= 'i') \
4796 || ('j' <= (c) && (c) <= 'r') \
4797 || ('s' <= (c) && (c) <= 'z'))
4798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4806 for (i = 0; i < 256; i++)
4807 if (XOR (islower (i), ISLOWER (i))
4808 || toupper (i) != TOUPPER (i))
4813 if ac_fn_c_try_run
"$LINENO"; then :
4816 ac_cv_header_stdc
=no
4818 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4819 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4825 $as_echo "$ac_cv_header_stdc" >&6; }
4826 if test $ac_cv_header_stdc = yes; then
4828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4833 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4834 inttypes.h stdint.h unistd.h
4836 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4839 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4840 cat >>confdefs.h
<<_ACEOF
4841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4851 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4858 if test "$MINIX" = yes; then
4860 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4863 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4866 $as_echo "#define _MINIX 1" >>confdefs.h
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4872 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4873 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4874 $as_echo_n "(cached) " >&6
4876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4879 # define __EXTENSIONS__ 1
4880 $ac_includes_default
4889 if ac_fn_c_try_compile
"$LINENO"; then :
4890 ac_cv_safe_to_define___extensions__
=yes
4892 ac_cv_safe_to_define___extensions__
=no
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4897 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4898 test $ac_cv_safe_to_define___extensions__ = yes &&
4899 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4901 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4903 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4905 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4907 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4911 # Check whether --enable-lzo was given.
4912 if test "${enable_lzo+set}" = set; then :
4913 enableval
=$enable_lzo;
4920 # Check whether --enable-lzo-stub was given.
4921 if test "${enable_lzo_stub+set}" = set; then :
4922 enableval
=$enable_lzo_stub;
4924 enable_lzo_stub
="no"
4929 # Check whether --enable-crypto was given.
4930 if test "${enable_crypto+set}" = set; then :
4931 enableval
=$enable_crypto;
4938 # Check whether --enable-ssl was given.
4939 if test "${enable_ssl+set}" = set; then :
4940 enableval
=$enable_ssl;
4947 # Check whether --enable-x509-alt-username was given.
4948 if test "${enable_x509_alt_username+set}" = set; then :
4949 enableval
=$enable_x509_alt_username;
4951 enable_x509_alt_username
="no"
4956 # Check whether --enable-multi was given.
4957 if test "${enable_multi+set}" = set; then :
4958 enableval
=$enable_multi;
4965 # Check whether --enable-server was given.
4966 if test "${enable_server+set}" = set; then :
4967 enableval
=$enable_server;
4974 # Check whether --enable-plugins was given.
4975 if test "${enable_plugins+set}" = set; then :
4976 enableval
=$enable_plugins;
4978 enable_plugins
="yes"
4983 # Check whether --enable-management was given.
4984 if test "${enable_management+set}" = set; then :
4985 enableval
=$enable_management;
4987 enable_management
="yes"
4992 # Check whether --enable-pkcs11 was given.
4993 if test "${enable_pkcs11+set}" = set; then :
4994 enableval
=$enable_pkcs11;
5001 # Check whether --enable-socks was given.
5002 if test "${enable_socks+set}" = set; then :
5003 enableval
=$enable_socks;
5010 # Check whether --enable-http-proxy was given.
5011 if test "${enable_http_proxy+set}" = set; then :
5012 enableval
=$enable_http_proxy;
5014 enable_http_proxy
="yes"
5019 # Check whether --enable-fragment was given.
5020 if test "${enable_fragment+set}" = set; then :
5021 enableval
=$enable_fragment;
5023 enable_fragment
="yes"
5028 # Check whether --enable-multihome was given.
5029 if test "${enable_multihome+set}" = set; then :
5030 enableval
=$enable_multihome;
5032 enable_multihome
="yes"
5037 # Check whether --enable-port-share was given.
5038 if test "${enable_port_share+set}" = set; then :
5039 enableval
=$enable_port_share;
5041 enable_port_share
="yes"
5046 # Check whether --enable-debug was given.
5047 if test "${enable_debug+set}" = set; then :
5048 enableval
=$enable_debug;
5055 # Check whether --enable-small was given.
5056 if test "${enable_small+set}" = set; then :
5057 enableval
=$enable_small;
5064 # Check whether --enable-password-save was given.
5065 if test "${enable_password_save+set}" = set; then :
5066 enableval
=$enable_password_save;
5068 enable_password_save
="no"
5073 # Check whether --enable-iproute2 was given.
5074 if test "${enable_iproute2+set}" = set; then :
5075 enableval
=$enable_iproute2;
5077 enable_iproute2
="no"
5082 # Check whether --enable-def-auth was given.
5083 if test "${enable_def_auth+set}" = set; then :
5084 enableval
=$enable_def_auth;
5086 enable_def_auth
="yes"
5091 # Check whether --enable-pf was given.
5092 if test "${enable_pf+set}" = set; then :
5093 enableval
=$enable_pf;
5100 # Check whether --enable-plugin-auth-pam was given.
5101 if test "${enable_plugin_auth_pam+set}" = set; then :
5102 enableval
=$enable_plugin_auth_pam;
5106 *-*-openbsd*) enable_plugin_auth_pam
="no";;
5107 *-mingw*) enable_plugin_auth_pam
="no";;
5108 *) enable_plugin_auth_pam
="yes";;
5115 # Check whether --enable-plugin-down-root was given.
5116 if test "${enable_plugin_down_root+set}" = set; then :
5117 enableval
=$enable_plugin_down_root;
5121 *-mingw*) enable_plugin_down_root
="no";;
5122 *) enable_plugin_down_root
="yes";;
5129 # Check whether --enable-pam-dlopen was given.
5130 if test "${enable_pam_dlopen+set}" = set; then :
5131 enableval
=$enable_pam_dlopen;
5133 enable_pam_dlopen
="no"
5138 # Check whether --enable-strict was given.
5139 if test "${enable_strict+set}" = set; then :
5140 enableval
=$enable_strict;
5147 # Check whether --enable-pedantic was given.
5148 if test "${enable_pedantic+set}" = set; then :
5149 enableval
=$enable_pedantic;
5151 enable_pedantic
="no"
5156 # Check whether --enable-strict-options was given.
5157 if test "${enable_strict_options+set}" = set; then :
5158 enableval
=$enable_strict_options;
5160 enable_strict_options
="no"
5165 # Check whether --enable-selinux was given.
5166 if test "${enable_selinux+set}" = set; then :
5167 enableval
=$enable_selinux;
5174 # Check whether --enable-systemd was given.
5175 if test "${enable_systemd+set}" = set; then :
5176 enableval
=$enable_systemd;
5184 # Check whether --with-special-build was given.
5185 if test "${with_special_build+set}" = set; then :
5186 withval
=$with_special_build; test -n "${withval}" &&
5187 cat >>confdefs.h
<<_ACEOF
5188 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5196 # Check whether --with-mem-check was given.
5197 if test "${with_mem_check+set}" = set; then :
5198 withval
=$with_mem_check;
5199 case "${withval}" in
5200 dmalloc|valgrind|ssl|no
) ;;
5201 *) as_fn_error $?
"bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5211 # Check whether --with-crypto-library was given.
5212 if test "${with_crypto_library+set}" = set; then :
5213 withval
=$with_crypto_library;
5214 case "${withval}" in
5215 openssl|polarssl
) ;;
5216 *) as_fn_error $?
"bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5220 with_crypto_library
="openssl"
5226 # Check whether --with-plugindir was given.
5227 if test "${with_plugindir+set}" = set; then :
5228 withval
=$with_plugindir;
5230 with_plugindir
="\$(libdir)/openvpn/plugins"
5237 cat >>confdefs.h
<<_ACEOF
5238 #define TARGET_ALIAS "${host}"
5244 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5247 cat >>confdefs.h
<<_ACEOF
5248 #define TARGET_PREFIX "L"
5254 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5257 cat >>confdefs.h
<<_ACEOF
5258 #define TARGET_PREFIX "S"
5264 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5267 cat >>confdefs.h
<<_ACEOF
5268 #define TARGET_PREFIX "O"
5274 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5277 cat >>confdefs.h
<<_ACEOF
5278 #define TARGET_PREFIX "F"
5284 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5287 cat >>confdefs.h
<<_ACEOF
5288 #define TARGET_PREFIX "N"
5294 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5297 cat >>confdefs.h
<<_ACEOF
5298 #define TARGET_PREFIX "M"
5301 have_tap_header
="yes"
5302 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
5306 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5309 cat >>confdefs.h
<<_ACEOF
5310 #define TARGET_PREFIX "W"
5313 CPPFLAGS
="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5314 CPPFLAGS
="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5319 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5322 cat >>confdefs.h
<<_ACEOF
5323 #define TARGET_PREFIX "D"
5329 cat >>confdefs.h
<<_ACEOF
5330 #define TARGET_PREFIX "X"
5333 have_tap_header
="yes"
5344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5355 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir
=.
5363 for ac_exec_ext
in '' $ac_executable_extensions; do
5364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5377 if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379 $as_echo "$PKG_CONFIG" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390 set dummy pkg-config
; ac_word
=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5394 $as_echo_n "(cached) " >&6
5396 case $ac_pt_PKG_CONFIG in
5398 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir
=.
5406 for ac_exec_ext
in '' $ac_executable_extensions; do
5407 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5420 if test -n "$ac_pt_PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5422 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5428 if test "x$ac_pt_PKG_CONFIG" = x
; then
5431 case $cross_compiling:$ac_tool_warned in
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned
=yes ;;
5437 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5440 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5444 if test -n "$PKG_CONFIG"; then
5445 _pkg_min_version
=0.9.0
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5458 ac_cpp
='$CPP $CPPFLAGS'
5459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5463 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5464 # On Suns, sometimes $CPP names a directory.
5465 if test -n "$CPP" && test -d "$CPP"; then
5468 if test -z "$CPP"; then
5469 if ${ac_cv_prog_CPP+:} false
; then :
5470 $as_echo_n "(cached) " >&6
5472 # Double quotes because CPP needs to be expanded
5473 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5476 for ac_c_preproc_warn_flag
in '' yes
5478 # Use a header file that comes with gcc, so configuring glibc
5479 # with a fresh cross-compiler works.
5480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5481 # <limits.h> exists even on freestanding compilers.
5482 # On the NeXT, cc -E runs the code through the compiler's parser,
5483 # not just through cpp. "Syntax error" is here to catch this case.
5484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5485 /* end confdefs.h. */
5487 # include <limits.h>
5489 # include <assert.h>
5493 if ac_fn_c_try_cpp
"$LINENO"; then :
5496 # Broken: fails on valid input.
5499 rm -f conftest.err conftest.i conftest.
$ac_ext
5501 # OK, works on sane cases. Now check whether nonexistent headers
5502 # can be detected and how.
5503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505 #include <ac_nonexistent.h>
5507 if ac_fn_c_try_cpp
"$LINENO"; then :
5508 # Broken: success on invalid input.
5511 # Passes both tests.
5515 rm -f conftest.err conftest.i conftest.
$ac_ext
5518 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5519 rm -f conftest.i conftest.err conftest.
$ac_ext
5520 if $ac_preproc_ok; then :
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5533 $as_echo "$CPP" >&6; }
5535 for ac_c_preproc_warn_flag
in '' yes
5537 # Use a header file that comes with gcc, so configuring glibc
5538 # with a fresh cross-compiler works.
5539 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5540 # <limits.h> exists even on freestanding compilers.
5541 # On the NeXT, cc -E runs the code through the compiler's parser,
5542 # not just through cpp. "Syntax error" is here to catch this case.
5543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5546 # include <limits.h>
5548 # include <assert.h>
5552 if ac_fn_c_try_cpp
"$LINENO"; then :
5555 # Broken: fails on valid input.
5558 rm -f conftest.err conftest.i conftest.
$ac_ext
5560 # OK, works on sane cases. Now check whether nonexistent headers
5561 # can be detected and how.
5562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564 #include <ac_nonexistent.h>
5566 if ac_fn_c_try_cpp
"$LINENO"; then :
5567 # Broken: success on invalid input.
5570 # Passes both tests.
5574 rm -f conftest.err conftest.i conftest.
$ac_ext
5577 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5578 rm -f conftest.i conftest.err conftest.
$ac_ext
5579 if $ac_preproc_ok; then :
5582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5584 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5585 See \`config.log' for more details" "$LINENO" 5; }
5589 ac_cpp
='$CPP $CPPFLAGS'
5590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5596 $as_echo_n "checking whether ln -s works... " >&6; }
5598 if test "$LN_S" = "ln -s"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600 $as_echo "yes" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5603 $as_echo "no, using $LN_S" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5607 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5608 if ${ac_cv_path_SED+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5612 for ac_i
in 1 2 3 4 5 6 7; do
5613 ac_script
="$ac_script$as_nl$ac_script"
5615 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5616 { ac_script
=; unset ac_script
;}
5617 if test -z "$SED"; then
5618 ac_path_SED_found
=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir
=.
5625 for ac_prog
in sed gsed
; do
5626 for ac_exec_ext
in '' $ac_executable_extensions; do
5627 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5628 as_fn_executable_p
"$ac_path_SED" ||
continue
5629 # Check for GNU ac_path_SED and select it if it is found.
5630 # Check for GNU $ac_path_SED
5631 case `"$ac_path_SED" --version 2>&1` in
5633 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5636 $as_echo_n 0123456789 >"conftest.in"
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 $as_echo '' >> "conftest.nl"
5643 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5644 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5645 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5646 if test $ac_count -gt ${ac_path_SED_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_SED
="$ac_path_SED"
5649 ac_path_SED_max
=$ac_count
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5654 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5657 $ac_path_SED_found && break 3
5662 if test -z "$ac_cv_path_SED"; then
5663 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5671 $as_echo "$ac_cv_path_SED" >&6; }
5672 SED
="$ac_cv_path_SED"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5678 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5679 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5680 $as_echo_n "(cached) " >&6
5682 cat >conftest.
make <<\_ACEOF
5685 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5690 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5692 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5696 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 SET_MAKE
="MAKE=${MAKE-make}"
5713 for ac_prog
in ifconfig
5715 # Extract the first word of "$ac_prog", so it can be a program name with args.
5716 set dummy
$ac_prog; ac_word
=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_path_IFCONFIG+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5724 ac_cv_path_IFCONFIG
="$IFCONFIG" # Let the user override the test with a path.
5727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5728 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5729 for as_dir
in $as_dummy
5732 test -z "$as_dir" && as_dir
=.
5733 for ac_exec_ext
in '' $ac_executable_extensions; do
5734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5735 ac_cv_path_IFCONFIG
="$as_dir/$ac_word$ac_exec_ext"
5736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 IFCONFIG
=$ac_cv_path_IFCONFIG
5747 if test -n "$IFCONFIG"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5749 $as_echo "$IFCONFIG" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5756 test -n "$IFCONFIG" && break
5759 for ac_prog
in route
5761 # Extract the first word of "$ac_prog", so it can be a program name with args.
5762 set dummy
$ac_prog; ac_word
=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_path_ROUTE+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5770 ac_cv_path_ROUTE
="$ROUTE" # Let the user override the test with a path.
5773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5774 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5775 for as_dir
in $as_dummy
5778 test -z "$as_dir" && as_dir
=.
5779 for ac_exec_ext
in '' $ac_executable_extensions; do
5780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_path_ROUTE
="$as_dir/$ac_word$ac_exec_ext"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 ROUTE
=$ac_cv_path_ROUTE
5793 if test -n "$ROUTE"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5795 $as_echo "$ROUTE" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5802 test -n "$ROUTE" && break
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy
$ac_prog; ac_word
=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_path_IPROUTE+:} false
; then :
5812 $as_echo_n "(cached) " >&6
5816 ac_cv_path_IPROUTE
="$IPROUTE" # Let the user override the test with a path.
5819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5820 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5821 for as_dir
in $as_dummy
5824 test -z "$as_dir" && as_dir
=.
5825 for ac_exec_ext
in '' $ac_executable_extensions; do
5826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_path_IPROUTE
="$as_dir/$ac_word$ac_exec_ext"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 IPROUTE
=$ac_cv_path_IPROUTE
5839 if test -n "$IPROUTE"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5841 $as_echo "$IPROUTE" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5848 test -n "$IPROUTE" && break
5851 for ac_prog
in netstat
5853 # Extract the first word of "$ac_prog", so it can be a program name with args.
5854 set dummy
$ac_prog; ac_word
=$2
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if ${ac_cv_prog_NETSTAT+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5860 if test -n "$NETSTAT"; then
5861 ac_cv_prog_NETSTAT
="$NETSTAT" # Let the user override the test.
5863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5864 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
5865 for as_dir
in $as_dummy
5868 test -z "$as_dir" && as_dir
=.
5869 for ac_exec_ext
in '' $ac_executable_extensions; do
5870 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_NETSTAT
="$ac_prog"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881 NETSTAT
=$ac_cv_prog_NETSTAT
5882 if test -n "$NETSTAT"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
5884 $as_echo "$NETSTAT" >&6; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887 $as_echo "no" >&6; }
5891 test -n "$NETSTAT" && break
5893 test -n "$NETSTAT" || NETSTAT
="netstat"
5895 for ac_prog
in man2html
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898 set dummy
$ac_prog; ac_word
=$2
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900 $as_echo_n "checking for $ac_word... " >&6; }
5901 if ${ac_cv_prog_MAN2HTML+:} false
; then :
5902 $as_echo_n "(cached) " >&6
5904 if test -n "$MAN2HTML"; then
5905 ac_cv_prog_MAN2HTML
="$MAN2HTML" # Let the user override the test.
5907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5911 test -z "$as_dir" && as_dir
=.
5912 for ac_exec_ext
in '' $ac_executable_extensions; do
5913 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_MAN2HTML
="$ac_prog"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 MAN2HTML
=$ac_cv_prog_MAN2HTML
5925 if test -n "$MAN2HTML"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
5927 $as_echo "$MAN2HTML" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5934 test -n "$MAN2HTML" && break
5939 # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy
$ac_prog; ac_word
=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if ${ac_cv_prog_GIT+:} false
; then :
5944 $as_echo_n "(cached) " >&6
5946 if test -n "$GIT"; then
5947 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
5949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5953 test -z "$as_dir" && as_dir
=.
5954 for ac_exec_ext
in '' $ac_executable_extensions; do
5955 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5956 ac_cv_prog_GIT
="$ac_prog"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 if test -n "$GIT"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5969 $as_echo "$GIT" >&6; }
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5976 test -n "$GIT" && break
5980 cat >>confdefs.h
<<_ACEOF
5981 #define IFCONFIG_PATH "$IFCONFIG"
5985 cat >>confdefs.h
<<_ACEOF
5986 #define IPROUTE_PATH "$IPROUTE"
5990 cat >>confdefs.h
<<_ACEOF
5991 #define ROUTE_PATH "$ROUTE"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6002 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6007 macro_version
='2.4.2'
6008 macro_revision
='1.3337'
6022 ltmain
="$ac_aux_dir/ltmain.sh"
6024 # Backslashify metacharacters that are still active within
6025 # double-quoted strings.
6026 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6028 # Same as above, but do not quote variable references.
6029 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6031 # Sed substitution to delay expansion of an escaped shell variable in a
6032 # double_quote_subst'ed string.
6033 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6035 # Sed substitution to delay expansion of an escaped single quote.
6036 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6038 # Sed substitution to avoid accidental globbing in evaled expressions
6039 no_glob_subst
='s/\*/\\\*/g'
6041 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6042 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6043 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6046 $as_echo_n "checking how to print strings... " >&6; }
6047 # Test print first, because it will be a builtin if present.
6048 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6049 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6051 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6054 # Use this function as a fallback that always works.
6055 func_fallback_echo ()
6057 eval 'cat <<_LTECHO_EOF
6061 ECHO='func_fallback_echo
'
6064 # func_echo_all arg...
6065 # Invoke $ECHO with all args, space-separated.
6072 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6073 $as_echo "printf" >&6; } ;;
6074 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6075 $as_echo "print -r" >&6; } ;;
6076 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6077 $as_echo "cat" >&6; } ;;
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6094 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6095 if ${ac_cv_path_SED+:} false; then :
6096 $as_echo_n "(cached) " >&6
6098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6099 for ac_i in 1 2 3 4 5 6 7; do
6100 ac_script="$ac_script$as_nl$ac_script"
6102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6103 { ac_script=; unset ac_script;}
6104 if test -z "$SED"; then
6105 ac_path_SED_found=false
6106 # Loop through the user's path and
test for each of PROGNAME-LIST
6107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir
=.
6112 for ac_prog
in sed gsed
; do
6113 for ac_exec_ext
in '' $ac_executable_extensions; do
6114 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6115 as_fn_executable_p
"$ac_path_SED" ||
continue
6116 # Check for GNU ac_path_SED and select it if it is found.
6117 # Check for GNU $ac_path_SED
6118 case `"$ac_path_SED" --version 2>&1` in
6120 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6123 $as_echo_n 0123456789 >"conftest.in"
6126 cat "conftest.in" "conftest.in" >"conftest.tmp"
6127 mv "conftest.tmp" "conftest.in"
6128 cp "conftest.in" "conftest.nl"
6129 $as_echo '' >> "conftest.nl"
6130 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6131 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6132 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6133 if test $ac_count -gt ${ac_path_SED_max-0}; then
6134 # Best one so far, save it but keep looking for a better one
6135 ac_cv_path_SED
="$ac_path_SED"
6136 ac_path_SED_max
=$ac_count
6138 # 10*(2^10) chars as input seems more than enough
6139 test $ac_count -gt 10 && break
6141 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6144 $ac_path_SED_found && break 3
6149 if test -z "$ac_cv_path_SED"; then
6150 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6158 $as_echo "$ac_cv_path_SED" >&6; }
6159 SED
="$ac_cv_path_SED"
6162 test -z "$SED" && SED
=sed
6163 Xsed
="$SED -e 1s/^X//"
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6176 $as_echo_n "checking for fgrep... " >&6; }
6177 if ${ac_cv_path_FGREP+:} false
; then :
6178 $as_echo_n "(cached) " >&6
6180 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6181 then ac_cv_path_FGREP
="$GREP -F"
6183 if test -z "$FGREP"; then
6184 ac_path_FGREP_found
=false
6185 # Loop through the user's path and test for each of PROGNAME-LIST
6186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6187 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6190 test -z "$as_dir" && as_dir
=.
6191 for ac_prog
in fgrep
; do
6192 for ac_exec_ext
in '' $ac_executable_extensions; do
6193 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6194 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6195 # Check for GNU ac_path_FGREP and select it if it is found.
6196 # Check for GNU $ac_path_FGREP
6197 case `"$ac_path_FGREP" --version 2>&1` in
6199 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6202 $as_echo_n 0123456789 >"conftest.in"
6205 cat "conftest.in" "conftest.in" >"conftest.tmp"
6206 mv "conftest.tmp" "conftest.in"
6207 cp "conftest.in" "conftest.nl"
6208 $as_echo 'FGREP' >> "conftest.nl"
6209 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6210 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6211 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6213 # Best one so far, save it but keep looking for a better one
6214 ac_cv_path_FGREP
="$ac_path_FGREP"
6215 ac_path_FGREP_max
=$ac_count
6217 # 10*(2^10) chars as input seems more than enough
6218 test $ac_count -gt 10 && break
6220 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6223 $ac_path_FGREP_found && break 3
6228 if test -z "$ac_cv_path_FGREP"; then
6229 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232 ac_cv_path_FGREP
=$FGREP
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6238 $as_echo "$ac_cv_path_FGREP" >&6; }
6239 FGREP
="$ac_cv_path_FGREP"
6242 test -z "$GREP" && GREP
=grep
6262 # Check whether --with-gnu-ld was given.
6263 if test "${with_gnu_ld+set}" = set; then :
6264 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6270 if test "$GCC" = yes; then
6271 # Check if gcc -print-prog-name=ld gives a path.
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6273 $as_echo_n "checking for ld used by $CC... " >&6; }
6276 # gcc leaves a trailing carriage return which upsets mingw
6277 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6279 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6282 # Accept absolute paths.
6284 re_direlt
='/[^/][^/]*/\.\./'
6285 # Canonicalize the pathname of ld
6286 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6287 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6288 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6290 test -z "$LD" && LD
="$ac_prog"
6293 # If it fails, then pretend we aren't using GCC.
6297 # If it is relative, then search for the first ld in PATH.
6301 elif test "$with_gnu_ld" = yes; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6303 $as_echo_n "checking for GNU ld... " >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6306 $as_echo_n "checking for non-GNU ld... " >&6; }
6308 if ${lt_cv_path_LD+:} false
; then :
6309 $as_echo_n "(cached) " >&6
6311 if test -z "$LD"; then
6312 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6313 for ac_dir
in $PATH; do
6315 test -z "$ac_dir" && ac_dir
=.
6316 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6317 lt_cv_path_LD
="$ac_dir/$ac_prog"
6318 # Check to see if the program is GNU ld. I'd rather use --version,
6319 # but apparently some variants of GNU ld only accept -v.
6320 # Break only if it was the GNU/non-GNU ld that we prefer.
6321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6322 *GNU
* |
*'with BFD'*)
6323 test "$with_gnu_ld" != no
&& break
6326 test "$with_gnu_ld" != yes && break
6333 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6338 if test -n "$LD"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6340 $as_echo "$LD" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6345 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6347 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6348 if ${lt_cv_prog_gnu_ld+:} false
; then :
6349 $as_echo_n "(cached) " >&6
6351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6352 case `$LD -v 2>&1 </dev/null` in
6353 *GNU
* |
*'with BFD'*)
6354 lt_cv_prog_gnu_ld
=yes
6357 lt_cv_prog_gnu_ld
=no
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6362 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6363 with_gnu_ld
=$lt_cv_prog_gnu_ld
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6374 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6375 if ${lt_cv_path_NM+:} false
; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$NM"; then
6379 # Let the user override the test.
6382 lt_nm_to_check
="${ac_tool_prefix}nm"
6383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6384 lt_nm_to_check
="$lt_nm_to_check nm"
6386 for lt_tmp_nm
in $lt_nm_to_check; do
6387 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6388 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6390 test -z "$ac_dir" && ac_dir
=.
6391 tmp_nm
="$ac_dir/$lt_tmp_nm"
6392 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6393 # Check to see if the nm accepts a BSD-compat flag.
6394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6395 # nm: unknown option "B" ignored
6396 # Tru64's nm complains that /dev/null is an invalid object file
6397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6398 */dev
/null
* |
*'Invalid file or object type'*)
6399 lt_cv_path_NM
="$tmp_nm -B"
6403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6405 lt_cv_path_NM
="$tmp_nm -p"
6409 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6410 continue # so that we can try to find one that supports BSD flags
6419 : ${lt_cv_path_NM=no}
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6423 $as_echo "$lt_cv_path_NM" >&6; }
6424 if test "$lt_cv_path_NM" != "no"; then
6427 # Didn't find any BSD compatible name lister, look for dumpbin.
6428 if test -n "$DUMPBIN"; then :
6429 # Let the user override the test.
6431 if test -n "$ac_tool_prefix"; then
6432 for ac_prog
in dumpbin
"link -dump"
6434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6435 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$DUMPBIN"; then
6442 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir
=.
6449 for ac_exec_ext
in '' $ac_executable_extensions; do
6450 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 DUMPBIN
=$ac_cv_prog_DUMPBIN
6462 if test -n "$DUMPBIN"; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6464 $as_echo "$DUMPBIN" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6471 test -n "$DUMPBIN" && break
6474 if test -z "$DUMPBIN"; then
6475 ac_ct_DUMPBIN
=$DUMPBIN
6476 for ac_prog
in dumpbin
"link -dump"
6478 # Extract the first word of "$ac_prog", so it can be a program name with args.
6479 set dummy
$ac_prog; ac_word
=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6483 $as_echo_n "(cached) " >&6
6485 if test -n "$ac_ct_DUMPBIN"; then
6486 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir
=.
6493 for ac_exec_ext
in '' $ac_executable_extensions; do
6494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6506 if test -n "$ac_ct_DUMPBIN"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6508 $as_echo "$ac_ct_DUMPBIN" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6515 test -n "$ac_ct_DUMPBIN" && break
6518 if test "x$ac_ct_DUMPBIN" = x
; then
6521 case $cross_compiling:$ac_tool_warned in
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned
=yes ;;
6527 DUMPBIN
=$ac_ct_DUMPBIN
6531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6533 DUMPBIN
="$DUMPBIN -symbols"
6541 if test "$DUMPBIN" != ":"; then
6545 test -z "$NM" && NM
=nm
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6554 if ${lt_cv_nm_interface+:} false
; then :
6555 $as_echo_n "(cached) " >&6
6557 lt_cv_nm_interface
="BSD nm"
6558 echo "int some_variable = 0;" > conftest.
$ac_ext
6559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6560 (eval "$ac_compile" 2>conftest.err
)
6561 cat conftest.err
>&5
6562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6564 cat conftest.err
>&5
6565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6566 cat conftest.out
>&5
6567 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6568 lt_cv_nm_interface
="MS dumpbin"
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6573 $as_echo "$lt_cv_nm_interface" >&6; }
6575 # find the maximum length of command line arguments
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6578 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6579 $as_echo_n "(cached) " >&6
6586 # On DJGPP, this test can blow up pretty badly due to problems in libc
6587 # (any single argument exceeding 2000 bytes causes a buffer overrun
6588 # during glob expansion). Even if it were fixed, the result of this
6589 # check would be larger than it should be.
6590 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6594 # Under GNU Hurd, this test is not required because there is
6595 # no limit to the length of command line arguments.
6596 # Libtool will interpret -1 as no limit whatsoever
6597 lt_cv_sys_max_cmd_len
=-1;
6600 cygwin
* | mingw
* | cegcc
*)
6601 # On Win9x/ME, this test blows up -- it succeeds, but takes
6602 # about 5 minutes as the teststring grows exponentially.
6603 # Worse, since 9x/ME are not pre-emptively multitasking,
6604 # you end up with a "frozen" computer, even though with patience
6605 # the test eventually succeeds (with a max line length of 256k).
6606 # Instead, let's just punt: use the minimum linelength reported by
6607 # all of the supported platforms: 8192 (on NT/2K/XP).
6608 lt_cv_sys_max_cmd_len
=8192;
6612 # On MiNT this can take a long time and run out of memory.
6613 lt_cv_sys_max_cmd_len
=8192;
6617 # On AmigaOS with pdksh, this test takes hours, literally.
6618 # So we just punt and use a minimum line length of 8192.
6619 lt_cv_sys_max_cmd_len
=8192;
6622 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6623 # This has been around since 386BSD, at least. Likely further.
6624 if test -x /sbin
/sysctl
; then
6625 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6626 elif test -x /usr
/sbin
/sysctl
; then
6627 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6629 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6631 # And add a safety zone
6632 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6633 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6638 lt_cv_sys_max_cmd_len
=196608
6642 # The test takes a long time on OS/2.
6643 lt_cv_sys_max_cmd_len
=8192
6647 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6648 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6649 # nice to cause kernel panics so lets avoid the loop below.
6650 # First set a reasonable default.
6651 lt_cv_sys_max_cmd_len
=16384
6653 if test -x /sbin
/sysconfig
; then
6654 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6655 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6660 lt_cv_sys_max_cmd_len
=102400
6662 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6663 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6664 if test -n "$kargmax"; then
6665 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6667 lt_cv_sys_max_cmd_len
=32768
6671 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6672 if test -n "$lt_cv_sys_max_cmd_len" && \
6673 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
6674 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6675 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6677 # Make teststring a little bigger before we do anything with it.
6678 # a 1K string should be a reasonable start.
6679 for i
in 1 2 3 4 5 6 7 8 ; do
6680 teststring
=$teststring$teststring
6682 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6683 # If test is not a shell built-in, we'll probably end up computing a
6684 # maximum length that is only half of the actual maximum length, but
6686 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6687 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6688 test $i != 17 # 1/2 MB should be enough
6691 teststring
=$teststring$teststring
6693 # Only check the string length outside the loop.
6694 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6696 # Add a significant safety factor because C++ compilers can tack on
6697 # massive amounts of additional arguments before passing them to the
6698 # linker. It appears as though 1/2 is a usable value.
6699 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6706 if test -n $lt_cv_sys_max_cmd_len ; then
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6708 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6711 $as_echo "none" >&6; }
6713 max_cmd_len
=$lt_cv_sys_max_cmd_len
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6725 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6726 # Try some XSI features
6729 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6731 && eval 'test $(( 1 + 1 )) -eq 2 \
6732 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6735 $as_echo "$xsi_shell" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6739 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6741 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6743 && lt_shell_append=yes
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6745 $as_echo "$lt_shell_append" >&6; }
6748 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6758 # test EBCDIC or ASCII
6759 case `echo X|tr X '\101'` in
6760 A) # ASCII based system
6761 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6762 lt_SP2NL='tr \040 \012'
6763 lt_NL2SP='tr \015\012 \040\040'
6765 *) # EBCDIC based system
6766 lt_SP2NL='tr \100 \n'
6767 lt_NL2SP='tr \r\n \100\100'
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
6780 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
6781 if ${lt_cv_to_host_file_cmd+:} false; then :
6782 $as_echo_n "(cached
) " >&6
6787 *-*-mingw* ) # actually msys
6788 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6791 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6793 * ) # otherwise, assume *nix
6794 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6800 *-*-mingw* ) # actually msys
6801 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6804 lt_cv_to_host_file_cmd=func_convert_file_noop
6806 * ) # otherwise, assume *nix
6807 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6811 * ) # unhandled hosts (and "normal
" native builds)
6812 lt_cv_to_host_file_cmd=func_convert_file_noop
6818 to_host_file_cmd=$lt_cv_to_host_file_cmd
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
6820 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
6827 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
6828 if ${lt_cv_to_tool_file_cmd+:} false; then :
6829 $as_echo_n "(cached
) " >&6
6831 #assume ordinary cross tools, or native build.
6832 lt_cv_to_tool_file_cmd=func_convert_file_noop
6836 *-*-mingw* ) # actually msys
6837 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
6847 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6854 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6855 if ${lt_cv_ld_reload_flag+:} false; then :
6856 $as_echo_n "(cached
) " >&6
6858 lt_cv_ld_reload_flag='-r'
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6861 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6862 reload_flag=$lt_cv_ld_reload_flag
6863 case $reload_flag in
6865 *) reload_flag=" $reload_flag" ;;
6867 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6869 cygwin* | mingw* | pw32* | cegcc*)
6870 if test "$GCC" != yes; then
6875 if test "$GCC" = yes; then
6876 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6891 if test -n "$ac_tool_prefix"; then
6892 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6895 $as_echo_n "checking
for $ac_word...
" >&6; }
6896 if ${ac_cv_prog_OBJDUMP+:} false; then :
6897 $as_echo_n "(cached
) " >&6
6899 if test -n "$OBJDUMP"; then
6900 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6919 OBJDUMP=$ac_cv_prog_OBJDUMP
6920 if test -n "$OBJDUMP"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6922 $as_echo "$OBJDUMP" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6925 $as_echo "no
" >&6; }
6930 if test -z "$ac_cv_prog_OBJDUMP"; then
6931 ac_ct_OBJDUMP=$OBJDUMP
6932 # Extract the first word of "objdump
", so it can be a program name with args.
6933 set dummy objdump; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6935 $as_echo_n "checking
for $ac_word...
" >&6; }
6936 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6937 $as_echo_n "(cached
) " >&6
6939 if test -n "$ac_ct_OBJDUMP"; then
6940 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6959 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6960 if test -n "$ac_ct_OBJDUMP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6962 $as_echo "$ac_ct_OBJDUMP" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6965 $as_echo "no
" >&6; }
6968 if test "x
$ac_ct_OBJDUMP" = x; then
6971 case $cross_compiling:$ac_tool_warned in
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6974 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6975 ac_tool_warned=yes ;;
6977 OBJDUMP=$ac_ct_OBJDUMP
6980 OBJDUMP="$ac_cv_prog_OBJDUMP"
6983 test -z "$OBJDUMP" && OBJDUMP=objdump
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6991 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6992 if ${lt_cv_deplibs_check_method+:} false; then :
6993 $as_echo_n "(cached
) " >&6
6995 lt_cv_file_magic_cmd='$MAGIC_CMD'
6996 lt_cv_file_magic_test_file=
6997 lt_cv_deplibs_check_method='unknown'
6998 # Need to set the preceding variable on all platforms that support
6999 # interlibrary dependencies.
7000 # 'none' -- dependencies not supported.
7001 # `unknown' -- same as none, but documents that we really don't know.
7002 # 'pass_all' -- all dependencies passed with no checks.
7003 # 'test_compile' -- check by making test program.
7004 # 'file_magic [[regex]]' -- check by looking for files in library path
7005 # which responds to the $file_magic_cmd with a given extended regex.
7006 # If you have `file' or equivalent on your system and you're not sure
7007 # whether `pass_all' will *always* work, you probably want this one.
7011 lt_cv_deplibs_check_method=pass_all
7015 lt_cv_deplibs_check_method=pass_all
7019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7020 lt_cv_file_magic_cmd='/usr/bin/file -L'
7021 lt_cv_file_magic_test_file=/shlib/libc.so
7025 # func_win32_libid is a shell function defined in ltmain.sh
7026 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7027 lt_cv_file_magic_cmd='func_win32_libid'
7031 # Base MSYS/MinGW do not provide the 'file' command needed by
7032 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7033 # unless we find 'file', for example because we are cross-compiling.
7034 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7035 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037 lt_cv_file_magic_cmd='func_win32_libid'
7039 # Keep this pattern in sync with the one in func_win32_libid.
7040 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7041 lt_cv_file_magic_cmd='$OBJDUMP -f'
7046 # use the weaker test based on 'objdump'. See mingw*.
7047 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7048 lt_cv_file_magic_cmd='$OBJDUMP -f'
7051 darwin* | rhapsody*)
7052 lt_cv_deplibs_check_method=pass_all
7055 freebsd* | dragonfly*)
7056 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7059 # Not sure whether the presence of OpenBSD here was a mistake.
7060 # Let's accept both of them until this is cleared up.
7061 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7062 lt_cv_file_magic_cmd=/usr/bin/file
7063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7067 lt_cv_deplibs_check_method=pass_all
7072 lt_cv_deplibs_check_method=pass_all
7075 hpux10.20* | hpux11*)
7076 lt_cv_file_magic_cmd=/usr/bin/file
7079 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7080 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7083 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]'
7084 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7087 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7088 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7094 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7098 irix5* | irix6* | nonstopux*)
7100 *-32|*"-32 ") libmagic=32-bit;;
7101 *-n32|*"-n32 ") libmagic=N32;;
7102 *-64|*"-64 ") libmagic=64-bit;;
7103 *) libmagic=never-match;;
7105 lt_cv_deplibs_check_method=pass_all
7108 # This must be glibc/ELF.
7109 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7110 lt_cv_deplibs_check_method=pass_all
7113 netbsd* | netbsdelf*-gnu)
7114 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7123 lt_cv_file_magic_cmd=/usr/bin/file
7124 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7128 lt_cv_deplibs_check_method=pass_all
7132 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7139 osf3* | osf4* | osf5*)
7140 lt_cv_deplibs_check_method=pass_all
7144 lt_cv_deplibs_check_method=pass_all
7148 lt_cv_deplibs_check_method=pass_all
7151 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7152 lt_cv_deplibs_check_method=pass_all
7156 case $host_vendor in
7158 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]'
7159 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7162 lt_cv_deplibs_check_method=pass_all
7165 lt_cv_file_magic_cmd='/bin/file'
7166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7169 lt_cv_file_magic_cmd='/bin/file'
7170 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7171 lt_cv_file_magic_test_file=/lib/libc.so
7174 lt_cv_deplibs_check_method=pass_all
7177 lt_cv_deplibs_check_method=pass_all
7183 lt_cv_deplibs_check_method=pass_all
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7189 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7193 if test "$build" = "$host"; then
7196 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7199 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
7205 file_magic_cmd=$lt_cv_file_magic_cmd
7206 deplibs_check_method=$lt_cv_deplibs_check_method
7207 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7234 $as_echo_n "checking
for $ac_word...
" >&6; }
7235 if ${ac_cv_prog_DLLTOOL+:} false; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$DLLTOOL"; then
7239 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7258 DLLTOOL=$ac_cv_prog_DLLTOOL
7259 if test -n "$DLLTOOL"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
7261 $as_echo "$DLLTOOL" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7269 if test -z "$ac_cv_prog_DLLTOOL"; then
7270 ac_ct_DLLTOOL=$DLLTOOL
7271 # Extract the first word of "dlltool
", so it can be a program name with args.
7272 set dummy dlltool; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7274 $as_echo_n "checking
for $ac_word...
" >&6; }
7275 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7276 $as_echo_n "(cached
) " >&6
7278 if test -n "$ac_ct_DLLTOOL"; then
7279 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7299 if test -n "$ac_ct_DLLTOOL"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
7301 $as_echo "$ac_ct_DLLTOOL" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7304 $as_echo "no
" >&6; }
7307 if test "x
$ac_ct_DLLTOOL" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7313 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7314 ac_tool_warned=yes ;;
7316 DLLTOOL=$ac_ct_DLLTOOL
7319 DLLTOOL="$ac_cv_prog_DLLTOOL"
7322 test -z "$DLLTOOL" && DLLTOOL=dlltool
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
7331 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
7332 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7333 $as_echo_n "(cached
) " >&6
7335 lt_cv_sharedlib_from_linklib_cmd='unknown'
7338 cygwin* | mingw* | pw32* | cegcc*)
7339 # two different shell functions defined in ltmain.sh
7340 # decide which to use based on capabilities of $DLLTOOL
7341 case `$DLLTOOL --help 2>&1` in
7342 *--identify-strict*)
7343 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7346 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7351 # fallback: assume linklib IS sharedlib
7352 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
7358 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7359 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7360 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7368 if test -n "$ac_tool_prefix"; then
7371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7374 $as_echo_n "checking
for $ac_word...
" >&6; }
7375 if ${ac_cv_prog_AR+:} false; then :
7376 $as_echo_n "(cached
) " >&6
7378 if test -n "$AR"; then
7379 ac_cv_prog_AR="$AR" # Let the user override the test.
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 test -z "$as_dir" && as_dir=.
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7388 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7399 if test -n "$AR"; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7401 $as_echo "$AR" >&6; }
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7404 $as_echo "no
" >&6; }
7408 test -n "$AR" && break
7411 if test -z "$AR"; then
7415 # Extract the first word of "$ac_prog", so it can be a program name with args.
7416 set dummy $ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7418 $as_echo_n "checking
for $ac_word...
" >&6; }
7419 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7420 $as_echo_n "(cached
) " >&6
7422 if test -n "$ac_ct_AR"; then
7423 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_AR="$ac_prog"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7442 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7443 if test -n "$ac_ct_AR"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7445 $as_echo "$ac_ct_AR" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7448 $as_echo "no
" >&6; }
7452 test -n "$ac_ct_AR" && break
7455 if test "x
$ac_ct_AR" = x; then
7458 case $cross_compiling:$ac_tool_warned in
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7461 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7462 ac_tool_warned=yes ;;
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
7482 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
7483 if ${lt_cv_ar_at_file+:} false; then :
7484 $as_echo_n "(cached
) " >&6
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 echo conftest.$ac_objext > conftest.lst
7500 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7501 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7502 (eval $lt_ar_try) 2>&5
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7505 test $ac_status = 0; }
7506 if test "$ac_status" -eq 0; then
7507 # Ensure the archiver fails upon bogus file names.
7508 rm -f conftest.$ac_objext libconftest.a
7509 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7510 (eval $lt_ar_try) 2>&5
7512 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7513 test $ac_status = 0; }
7514 if test "$ac_status" -ne 0; then
7518 rm -f conftest.* libconftest.a
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
7525 $as_echo "$lt_cv_ar_at_file" >&6; }
7527 if test "x
$lt_cv_ar_at_file" = xno; then
7530 archiver_list_spec=$lt_cv_ar_at_file
7539 if test -n "$ac_tool_prefix"; then
7540 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7541 set dummy ${ac_tool_prefix}strip; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7543 $as_echo_n "checking
for $ac_word...
" >&6; }
7544 if ${ac_cv_prog_STRIP+:} false; then :
7545 $as_echo_n "(cached
) " >&6
7547 if test -n "$STRIP"; then
7548 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7567 STRIP=$ac_cv_prog_STRIP
7568 if test -n "$STRIP"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7570 $as_echo "$STRIP" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7573 $as_echo "no
" >&6; }
7578 if test -z "$ac_cv_prog_STRIP"; then
7580 # Extract the first word of "strip
", so it can be a program name with args.
7581 set dummy strip; ac_word=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7583 $as_echo_n "checking
for $ac_word...
" >&6; }
7584 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7585 $as_echo_n "(cached
) " >&6
7587 if test -n "$ac_ct_STRIP"; then
7588 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7597 ac_cv_prog_ac_ct_STRIP="strip
"
7598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7607 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7608 if test -n "$ac_ct_STRIP"; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7610 $as_echo "$ac_ct_STRIP" >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7613 $as_echo "no
" >&6; }
7616 if test "x
$ac_ct_STRIP" = x; then
7619 case $cross_compiling:$ac_tool_warned in
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7622 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7623 ac_tool_warned=yes ;;
7628 STRIP="$ac_cv_prog_STRIP"
7631 test -z "$STRIP" && STRIP=:
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7640 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7642 $as_echo_n "checking
for $ac_word...
" >&6; }
7643 if ${ac_cv_prog_RANLIB+:} false; then :
7644 $as_echo_n "(cached
) " >&6
7646 if test -n "$RANLIB"; then
7647 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7666 RANLIB=$ac_cv_prog_RANLIB
7667 if test -n "$RANLIB"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7669 $as_echo "$RANLIB" >&6; }
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7672 $as_echo "no
" >&6; }
7677 if test -z "$ac_cv_prog_RANLIB"; then
7678 ac_ct_RANLIB=$RANLIB
7679 # Extract the first word of "ranlib
", so it can be a program name with args.
7680 set dummy ranlib; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7682 $as_echo_n "checking
for $ac_word...
" >&6; }
7683 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7684 $as_echo_n "(cached
) " >&6
7686 if test -n "$ac_ct_RANLIB"; then
7687 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7707 if test -n "$ac_ct_RANLIB"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7709 $as_echo "$ac_ct_RANLIB" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7712 $as_echo "no
" >&6; }
7715 if test "x
$ac_ct_RANLIB" = x; then
7718 case $cross_compiling:$ac_tool_warned in
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7721 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7722 ac_tool_warned=yes ;;
7724 RANLIB=$ac_ct_RANLIB
7727 RANLIB="$ac_cv_prog_RANLIB"
7730 test -z "$RANLIB" && RANLIB=:
7737 # Determine commands to create old-style static archives.
7738 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7739 old_postinstall_cmds='chmod 644 $oldlib'
7740 old_postuninstall_cmds=
7742 if test -n "$RANLIB"; then
7745 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
7748 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
7751 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
7756 lock_old_archive_extraction=yes ;;
7758 lock_old_archive_extraction=no ;;
7799 # If no C compiler was specified, use CC.
7802 # If no C compiler flags were specified, use CFLAGS.
7803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7805 # Allow CC to be a program name with arguments.
7809 # Check for command to grab the raw symbol name followed by C symbol from nm.
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7811 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7812 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7813 $as_echo_n "(cached
) " >&6
7816 # These are sane defaults that work on at least a few old systems.
7817 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7819 # Character class describing NM global symbol codes.
7820 symcode='[BCDEGRST]'
7822 # Regexp to match symbols that can be accessed directly from C.
7823 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7825 # Define system-specific variables.
7830 cygwin* | mingw* | pw32* | cegcc*)
7831 symcode='[ABCDGISTW]'
7834 if test "$host_cpu" = ia64; then
7835 symcode='[ABCDEGRST]'
7839 symcode='[BCDEGRST]'
7842 symcode='[BCDEGQRST]'
7853 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7861 # If we're using GNU nm, then use its standard symbol codes.
7862 case `$NM -V 2>&1` in
7863 *GNU* | *'with BFD'*)
7864 symcode='[ABCDGIRSTW]' ;;
7867 # Transform an extracted symbol line into a proper C declaration.
7868 # Some systems (esp. on ia64) link data and code symbols differently,
7869 # so use this general approach.
7870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7872 # Transform an extracted symbol line into symbol name and symbol address
7873 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7874 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'"
7876 # Handle CRLF in mingw tool chain
7880 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7884 # Try without a prefix underscore, then with it.
7885 for ac_symprfx in "" "_
"; do
7887 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7888 symxfrm="\\1 $ac_symprfx\\2 \\2"
7890 # Write the raw and C identifiers.
7891 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7892 # Fake it for dumpbin and say T for any non-static function
7893 # and D for any global variable.
7894 # Also find C++ and __fastcall symbols from MSVC++,
7895 # which start with @ or ?.
7896 lt_cv_sys_global_symbol_pipe="$AWK '"\
7897 " {last_section=section; section=\$ 3};"\
7898 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7899 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7900 " \$ 0!~/External *\|/{next};"\
7901 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7902 " {if(hide[section]) next};"\
7903 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7904 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7905 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7906 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7907 " ' prfx
=^
$ac_symprfx"
7909 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7911 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
7913 # Check to see that the pipe works correctly.
7917 cat > conftest.$ac_ext <<_LT_EOF
7922 void nm_test_func(void);
7923 void nm_test_func(void){}
7927 int main(){nm_test_var='a';nm_test_func();return(0);}
7930 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931 (eval $ac_compile) 2>&5
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7934 test $ac_status = 0; }; then
7935 # Now try to grab the symbols.
7937 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7938 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7941 test $ac_status = 0; } && test -s "$nlist"; then
7942 # Try sorting and uniquifying the output.
7943 if sort "$nlist" | uniq > "$nlist"T; then
7944 mv -f "$nlist"T "$nlist"
7949 # Make sure that we snagged all the symbols we need.
7950 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7951 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7952 cat <<_LT_EOF > conftest.$ac_ext
7953 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7954 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7955 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7956 relocations are performed -- see ld's documentation on pseudo-relocs. */
7957 # define LT_DLSYM_CONST
7958 #elif defined(__osf__)
7959 /* This system does not cope well with relocations in const data. */
7960 # define LT_DLSYM_CONST
7962 # define LT_DLSYM_CONST const
7970 # Now generate the symbol file.
7971 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7973 cat <<_LT_EOF >> conftest.$ac_ext
7975 /* The mapping between symbol names and symbols. */
7976 LT_DLSYM_CONST struct {
7980 lt__PROGRAM__LTX_preloaded_symbols[] =
7982 { "@PROGRAM@
", (void *) 0 },
7984 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7985 cat <<\_LT_EOF >> conftest.$ac_ext
7989 /* This works around a problem in FreeBSD linker */
7990 #ifdef FREEBSD_WORKAROUND
7991 static const void *lt_preloaded_setup() {
7992 return lt__PROGRAM__LTX_preloaded_symbols;
8000 # Now try linking the two files.
8001 mv conftest.$ac_objext conftstm.$ac_objext
8002 lt_globsym_save_LIBS=$LIBS
8003 lt_globsym_save_CFLAGS=$CFLAGS
8004 LIBS="conftstm.
$ac_objext"
8005 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8006 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8007 (eval $ac_link) 2>&5
8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8010 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8013 LIBS=$lt_globsym_save_LIBS
8014 CFLAGS=$lt_globsym_save_CFLAGS
8016 echo "cannot
find nm_test_func
in $nlist" >&5
8019 echo "cannot
find nm_test_var
in $nlist" >&5
8022 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
8025 echo "$progname: failed program was
:" >&5
8026 cat conftest.$ac_ext >&5
8028 rm -rf conftest* conftst*
8030 # Do not use the global_symbol_pipe unless it works.
8031 if test "$pipe_works" = yes; then
8034 lt_cv_sys_global_symbol_pipe=
8040 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8041 lt_cv_sys_global_symbol_to_cdecl=
8043 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
8045 $as_echo "failed
" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
8048 $as_echo "ok
" >&6; }
8051 # Response file support.
8052 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
8053 nm_file_list_spec='@'
8054 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8055 nm_file_list_spec='@'
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
8085 $as_echo_n "checking
for sysroot...
" >&6; }
8087 # Check whether --with-sysroot was given.
8088 if test "${with_sysroot+set}" = set; then :
8089 withval=$with_sysroot;
8096 case ${with_sysroot} in #(
8098 if test "$GCC" = yes; then
8099 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8103 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
8109 $as_echo "${with_sysroot}" >&6; }
8110 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
8115 $as_echo "${lt_sysroot:-no}" >&6; }
8121 # Check whether --enable-libtool-lock was given.
8122 if test "${enable_libtool_lock+set}" = set; then :
8123 enableval=$enable_libtool_lock;
8126 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
8128 # Some flags need to be propagated to the compiler or linker for good
8132 # Find out which ABI we are using.
8133 echo 'int i;' > conftest.$ac_ext
8134 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135 (eval $ac_compile) 2>&5
8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8138 test $ac_status = 0; }; then
8139 case `/usr/bin/file conftest.$ac_objext` in
8151 # Find out which ABI we are using.
8152 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
8153 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8154 (eval $ac_compile) 2>&5
8156 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8157 test $ac_status = 0; }; then
8158 if test "$lt_cv_prog_gnu_ld" = yes; then
8159 case `/usr/bin/file conftest.$ac_objext` in
8161 LD="${LD-ld} -melf32bsmip"
8164 LD="${LD-ld} -melf32bmipn32"
8167 LD="${LD-ld} -melf64bmip"
8171 case `/usr/bin/file conftest.$ac_objext` in
8187 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8188 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8189 # Find out which ABI we are using.
8190 echo 'int i;' > conftest.$ac_ext
8191 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8192 (eval $ac_compile) 2>&5
8194 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8195 test $ac_status = 0; }; then
8196 case `/usr/bin/file conftest.o` in
8199 x86_64-*kfreebsd*-gnu)
8200 LD="${LD-ld} -m elf_i386_fbsd
"
8203 case `/usr/bin/file conftest.o` in
8205 LD="${LD-ld} -m elf32_x86_64
"
8208 LD="${LD-ld} -m elf_i386
"
8213 LD="${LD-ld} -m elf32lppclinux
"
8216 LD="${LD-ld} -m elf32ppclinux
"
8219 LD="${LD-ld} -m elf_s390
"
8222 LD="${LD-ld} -m elf32_sparc
"
8228 x86_64-*kfreebsd*-gnu)
8229 LD="${LD-ld} -m elf_x86_64_fbsd
"
8232 LD="${LD-ld} -m elf_x86_64
"
8235 LD="${LD-ld} -m elf64lppc
"
8238 LD="${LD-ld} -m elf64ppc
"
8240 s390*-*linux*|s390*-*tpf*)
8241 LD="${LD-ld} -m elf64_s390
"
8244 LD="${LD-ld} -m elf64_sparc
"
8254 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8255 SAVE_CFLAGS="$CFLAGS"
8256 CFLAGS="$CFLAGS -belf"
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8258 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8259 if ${lt_cv_cc_needs_belf+:} false; then :
8260 $as_echo_n "(cached
) " >&6
8263 ac_cpp='$CPP $CPPFLAGS'
8264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8279 if ac_fn_c_try_link "$LINENO"; then :
8280 lt_cv_cc_needs_belf=yes
8282 lt_cv_cc_needs_belf=no
8284 rm -f core conftest.err conftest.$ac_objext \
8285 conftest$ac_exeext conftest.$ac_ext
8287 ac_cpp='$CPP $CPPFLAGS'
8288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8294 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8295 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8296 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8297 CFLAGS="$SAVE_CFLAGS"
8301 # Find out which ABI we are using.
8302 echo 'int i;' > conftest.$ac_ext
8303 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8304 (eval $ac_compile) 2>&5
8306 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8307 test $ac_status = 0; }; then
8308 case `/usr/bin/file conftest.o` in
8310 case $lt_cv_prog_gnu_ld in
8314 LD="${LD-ld} -m elf_x86_64
"
8317 LD="${LD-ld} -m elf64_sparc
"
8320 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8321 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8326 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8338 need_locks="$enable_libtool_lock"
8340 if test -n "$ac_tool_prefix"; then
8341 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
8342 set dummy ${ac_tool_prefix}mt; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8344 $as_echo_n "checking
for $ac_word...
" >&6; }
8345 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8346 $as_echo_n "(cached
) " >&6
8348 if test -n "$MANIFEST_TOOL"; then
8349 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8368 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8369 if test -n "$MANIFEST_TOOL"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
8371 $as_echo "$MANIFEST_TOOL" >&6; }
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8374 $as_echo "no
" >&6; }
8379 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8380 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8381 # Extract the first word of "mt
", so it can be a program name with args.
8382 set dummy mt; ac_word=$2
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8384 $as_echo_n "checking
for $ac_word...
" >&6; }
8385 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8386 $as_echo_n "(cached
) " >&6
8388 if test -n "$ac_ct_MANIFEST_TOOL"; then
8389 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8398 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8408 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8409 if test -n "$ac_ct_MANIFEST_TOOL"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
8411 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8414 $as_echo "no
" >&6; }
8417 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
8420 case $cross_compiling:$ac_tool_warned in
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8423 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8424 ac_tool_warned=yes ;;
8426 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8429 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8432 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
8434 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
8435 if ${lt_cv_path_mainfest_tool+:} false; then :
8436 $as_echo_n "(cached
) " >&6
8438 lt_cv_path_mainfest_tool=no
8439 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8440 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8441 cat conftest.err >&5
8442 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8443 lt_cv_path_mainfest_tool=yes
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
8448 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8449 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
8459 rhapsody* | darwin*)
8460 if test -n "$ac_tool_prefix"; then
8461 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
8462 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8464 $as_echo_n "checking
for $ac_word...
" >&6; }
8465 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8466 $as_echo_n "(cached
) " >&6
8468 if test -n "$DSYMUTIL"; then
8469 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8488 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8489 if test -n "$DSYMUTIL"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
8491 $as_echo "$DSYMUTIL" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8494 $as_echo "no
" >&6; }
8499 if test -z "$ac_cv_prog_DSYMUTIL"; then
8500 ac_ct_DSYMUTIL=$DSYMUTIL
8501 # Extract the first word of "dsymutil
", so it can be a program name with args.
8502 set dummy dsymutil; ac_word=$2
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8504 $as_echo_n "checking
for $ac_word...
" >&6; }
8505 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8506 $as_echo_n "(cached
) " >&6
8508 if test -n "$ac_ct_DSYMUTIL"; then
8509 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 test -z "$as_dir" && as_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8518 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
8519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8528 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8529 if test -n "$ac_ct_DSYMUTIL"; then
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
8531 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8534 $as_echo "no
" >&6; }
8537 if test "x
$ac_ct_DSYMUTIL" = x; then
8540 case $cross_compiling:$ac_tool_warned in
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8543 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8544 ac_tool_warned=yes ;;
8546 DSYMUTIL=$ac_ct_DSYMUTIL
8549 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8552 if test -n "$ac_tool_prefix"; then
8553 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8554 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8556 $as_echo_n "checking
for $ac_word...
" >&6; }
8557 if ${ac_cv_prog_NMEDIT+:} false; then :
8558 $as_echo_n "(cached
) " >&6
8560 if test -n "$NMEDIT"; then
8561 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8580 NMEDIT=$ac_cv_prog_NMEDIT
8581 if test -n "$NMEDIT"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8583 $as_echo "$NMEDIT" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8586 $as_echo "no
" >&6; }
8591 if test -z "$ac_cv_prog_NMEDIT"; then
8592 ac_ct_NMEDIT=$NMEDIT
8593 # Extract the first word of "nmedit
", so it can be a program name with args.
8594 set dummy nmedit; ac_word=$2
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8596 $as_echo_n "checking
for $ac_word...
" >&6; }
8597 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8598 $as_echo_n "(cached
) " >&6
8600 if test -n "$ac_ct_NMEDIT"; then
8601 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
8609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8610 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8620 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8621 if test -n "$ac_ct_NMEDIT"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8623 $as_echo "$ac_ct_NMEDIT" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8626 $as_echo "no
" >&6; }
8629 if test "x
$ac_ct_NMEDIT" = x; then
8632 case $cross_compiling:$ac_tool_warned in
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8635 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8636 ac_tool_warned=yes ;;
8638 NMEDIT=$ac_ct_NMEDIT
8641 NMEDIT="$ac_cv_prog_NMEDIT"
8644 if test -n "$ac_tool_prefix"; then
8645 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8646 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8648 $as_echo_n "checking
for $ac_word...
" >&6; }
8649 if ${ac_cv_prog_LIPO+:} false; then :
8650 $as_echo_n "(cached
) " >&6
8652 if test -n "$LIPO"; then
8653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir=.
8660 for ac_exec_ext in '' $ac_executable_extensions; do
8661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8672 LIPO=$ac_cv_prog_LIPO
8673 if test -n "$LIPO"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8675 $as_echo "$LIPO" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8678 $as_echo "no
" >&6; }
8683 if test -z "$ac_cv_prog_LIPO"; then
8685 # Extract the first word of "lipo
", so it can be a program name with args.
8686 set dummy lipo; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8688 $as_echo_n "checking
for $ac_word...
" >&6; }
8689 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8690 $as_echo_n "(cached
) " >&6
8692 if test -n "$ac_ct_LIPO"; then
8693 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702 ac_cv_prog_ac_ct_LIPO="lipo
"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8713 if test -n "$ac_ct_LIPO"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8715 $as_echo "$ac_ct_LIPO" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8718 $as_echo "no
" >&6; }
8721 if test "x
$ac_ct_LIPO" = x; then
8724 case $cross_compiling:$ac_tool_warned in
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8727 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8728 ac_tool_warned=yes ;;
8733 LIPO="$ac_cv_prog_LIPO"
8736 if test -n "$ac_tool_prefix"; then
8737 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8738 set dummy ${ac_tool_prefix}otool; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8740 $as_echo_n "checking
for $ac_word...
" >&6; }
8741 if ${ac_cv_prog_OTOOL+:} false; then :
8742 $as_echo_n "(cached
) " >&6
8744 if test -n "$OTOOL"; then
8745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8764 OTOOL=$ac_cv_prog_OTOOL
8765 if test -n "$OTOOL"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8767 $as_echo "$OTOOL" >&6; }
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8770 $as_echo "no
" >&6; }
8775 if test -z "$ac_cv_prog_OTOOL"; then
8777 # Extract the first word of "otool
", so it can be a program name with args.
8778 set dummy otool; ac_word=$2
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8780 $as_echo_n "checking
for $ac_word...
" >&6; }
8781 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8782 $as_echo_n "(cached
) " >&6
8784 if test -n "$ac_ct_OTOOL"; then
8785 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 test -z "$as_dir" && as_dir=.
8792 for ac_exec_ext in '' $ac_executable_extensions; do
8793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8794 ac_cv_prog_ac_ct_OTOOL="otool
"
8795 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8804 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8805 if test -n "$ac_ct_OTOOL"; then
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8807 $as_echo "$ac_ct_OTOOL" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8810 $as_echo "no
" >&6; }
8813 if test "x
$ac_ct_OTOOL" = x; then
8816 case $cross_compiling:$ac_tool_warned in
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8819 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8820 ac_tool_warned=yes ;;
8825 OTOOL="$ac_cv_prog_OTOOL"
8828 if test -n "$ac_tool_prefix"; then
8829 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8830 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8832 $as_echo_n "checking
for $ac_word...
" >&6; }
8833 if ${ac_cv_prog_OTOOL64+:} false; then :
8834 $as_echo_n "(cached
) " >&6
8836 if test -n "$OTOOL64"; then
8837 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8856 OTOOL64=$ac_cv_prog_OTOOL64
8857 if test -n "$OTOOL64"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8859 $as_echo "$OTOOL64" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8862 $as_echo "no
" >&6; }
8867 if test -z "$ac_cv_prog_OTOOL64"; then
8868 ac_ct_OTOOL64=$OTOOL64
8869 # Extract the first word of "otool64
", so it can be a program name with args.
8870 set dummy otool64; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8872 $as_echo_n "checking
for $ac_word...
" >&6; }
8873 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8874 $as_echo_n "(cached
) " >&6
8876 if test -n "$ac_ct_OTOOL64"; then
8877 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 test -z "$as_dir" && as_dir=.
8884 for ac_exec_ext in '' $ac_executable_extensions; do
8885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8886 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8896 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8897 if test -n "$ac_ct_OTOOL64"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8899 $as_echo "$ac_ct_OTOOL64" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8902 $as_echo "no
" >&6; }
8905 if test "x
$ac_ct_OTOOL64" = x; then
8908 case $cross_compiling:$ac_tool_warned in
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8911 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8912 ac_tool_warned=yes ;;
8914 OTOOL64=$ac_ct_OTOOL64
8917 OTOOL64="$ac_cv_prog_OTOOL64"
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8947 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8948 if ${lt_cv_apple_cc_single_mod+:} false; then :
8949 $as_echo_n "(cached
) " >&6
8951 lt_cv_apple_cc_single_mod=no
8952 if test -z "${LT_MULTI_MODULE}"; then
8953 # By default we will add the -single_module flag. You can override
8954 # by either setting the environment variable LT_MULTI_MODULE
8955 # non-empty at configure time, or by adding -multi_module to the
8957 rm -rf libconftest.dylib*
8958 echo "int foo
(void
){return 1;}" > conftest.c
8959 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8960 -dynamiclib -Wl,-single_module conftest.c
" >&5
8961 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8962 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8964 # If there is a non-empty error log, and "single_module
"
8965 # appears in it, assume the flag caused a linker warning
8966 if test -s conftest.err && $GREP single_module conftest.err; then
8967 cat conftest.err >&5
8968 # Otherwise, if the output was created with a 0 exit code from
8969 # the compiler, it worked.
8970 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8971 lt_cv_apple_cc_single_mod=yes
8973 cat conftest.err >&5
8975 rm -rf libconftest.dylib*
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8980 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8983 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8984 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8985 $as_echo_n "(cached
) " >&6
8987 lt_cv_ld_exported_symbols_list=no
8988 save_LDFLAGS=$LDFLAGS
8989 echo "_main
" > conftest.sym
8990 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
9002 if ac_fn_c_try_link "$LINENO"; then :
9003 lt_cv_ld_exported_symbols_list=yes
9005 lt_cv_ld_exported_symbols_list=no
9007 rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9009 LDFLAGS="$save_LDFLAGS"
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
9013 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
9016 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
9017 if ${lt_cv_ld_force_load+:} false; then :
9018 $as_echo_n "(cached
) " >&6
9020 lt_cv_ld_force_load=no
9021 cat > conftest.c << _LT_EOF
9022 int forced_loaded() { return 2;}
9024 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
9025 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9026 echo "$AR cru libconftest.a conftest.o
" >&5
9027 $AR cru libconftest.a conftest.o 2>&5
9028 echo "$RANLIB libconftest.a
" >&5
9029 $RANLIB libconftest.a 2>&5
9030 cat > conftest.c << _LT_EOF
9031 int main() { return 0;}
9033 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
9034 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9036 if test -s conftest.err && $GREP force_load conftest.err; then
9037 cat conftest.err >&5
9038 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9039 lt_cv_ld_force_load=yes
9041 cat conftest.err >&5
9043 rm -f conftest.err libconftest.a conftest conftest.c
9044 rm -rf conftest.dSYM
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
9048 $as_echo "$lt_cv_ld_force_load" >&6; }
9050 rhapsody* | darwin1.[012])
9051 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9054 darwin*) # darwin 5.x on
9055 # if running on 10.5 or later, the deployment target defaults
9056 # to the OS version, if on x86, and 10.4, the deployment
9057 # target defaults to 10.4. Don't you love it?
9058 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9059 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9060 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9062 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9064 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9068 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9069 _lt_dar_single_mod='$single_module'
9071 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9072 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9074 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9076 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
9077 _lt_dsymutil='~$DSYMUTIL $lib || :'
9084 for ac_header in dlfcn.h
9086 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
9088 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_DLFCN_H 1
9102 enable_win32_dll=yes
9105 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9106 if test -n "$ac_tool_prefix"; then
9107 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
9108 set dummy ${ac_tool_prefix}as; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9110 $as_echo_n "checking
for $ac_word...
" >&6; }
9111 if ${ac_cv_prog_AS+:} false; then :
9112 $as_echo_n "(cached
) " >&6
9114 if test -n "$AS"; then
9115 ac_cv_prog_AS="$AS" # Let the user override the test.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9124 ac_cv_prog_AS="${ac_tool_prefix}as
"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9135 if test -n "$AS"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
9137 $as_echo "$AS" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9140 $as_echo "no
" >&6; }
9145 if test -z "$ac_cv_prog_AS"; then
9147 # Extract the first word of "as
", so it can be a program name with args.
9148 set dummy as; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9150 $as_echo_n "checking
for $ac_word...
" >&6; }
9151 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9152 $as_echo_n "(cached
) " >&6
9154 if test -n "$ac_ct_AS"; then
9155 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164 ac_cv_prog_ac_ct_AS="as
"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9174 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9175 if test -n "$ac_ct_AS"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AS" >&5
9177 $as_echo "$ac_ct_AS" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9180 $as_echo "no
" >&6; }
9183 if test "x
$ac_ct_AS" = x; then
9186 case $cross_compiling:$ac_tool_warned in
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9189 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9190 ac_tool_warned=yes ;;
9198 if test -n "$ac_tool_prefix"; then
9199 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
9200 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9202 $as_echo_n "checking
for $ac_word...
" >&6; }
9203 if ${ac_cv_prog_DLLTOOL+:} false; then :
9204 $as_echo_n "(cached
) " >&6
9206 if test -n "$DLLTOOL"; then
9207 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9226 DLLTOOL=$ac_cv_prog_DLLTOOL
9227 if test -n "$DLLTOOL"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
9229 $as_echo "$DLLTOOL" >&6; }
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9232 $as_echo "no
" >&6; }
9237 if test -z "$ac_cv_prog_DLLTOOL"; then
9238 ac_ct_DLLTOOL=$DLLTOOL
9239 # Extract the first word of "dlltool
", so it can be a program name with args.
9240 set dummy dlltool; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9242 $as_echo_n "checking
for $ac_word...
" >&6; }
9243 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9244 $as_echo_n "(cached
) " >&6
9246 if test -n "$ac_ct_DLLTOOL"; then
9247 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9266 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9267 if test -n "$ac_ct_DLLTOOL"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
9269 $as_echo "$ac_ct_DLLTOOL" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9272 $as_echo "no
" >&6; }
9275 if test "x
$ac_ct_DLLTOOL" = x; then
9278 case $cross_compiling:$ac_tool_warned in
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9281 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9282 ac_tool_warned=yes ;;
9284 DLLTOOL=$ac_ct_DLLTOOL
9287 DLLTOOL="$ac_cv_prog_DLLTOOL"
9290 if test -n "$ac_tool_prefix"; then
9291 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
9292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9294 $as_echo_n "checking
for $ac_word...
" >&6; }
9295 if ${ac_cv_prog_OBJDUMP+:} false; then :
9296 $as_echo_n "(cached
) " >&6
9298 if test -n "$OBJDUMP"; then
9299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 test -z "$as_dir" && as_dir=.
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
9309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9318 OBJDUMP=$ac_cv_prog_OBJDUMP
9319 if test -n "$OBJDUMP"; then
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
9321 $as_echo "$OBJDUMP" >&6; }
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9324 $as_echo "no
" >&6; }
9329 if test -z "$ac_cv_prog_OBJDUMP"; then
9330 ac_ct_OBJDUMP=$OBJDUMP
9331 # Extract the first word of "objdump
", so it can be a program name with args.
9332 set dummy objdump; ac_word=$2
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
9334 $as_echo_n "checking
for $ac_word...
" >&6; }
9335 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9336 $as_echo_n "(cached
) " >&6
9338 if test -n "$ac_ct_OBJDUMP"; then
9339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 test -z "$as_dir" && as_dir=.
9346 for ac_exec_ext in '' $ac_executable_extensions; do
9347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9348 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
9349 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
9358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9359 if test -n "$ac_ct_OBJDUMP"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
9361 $as_echo "$ac_ct_OBJDUMP" >&6; }
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9364 $as_echo "no
" >&6; }
9367 if test "x
$ac_ct_OBJDUMP" = x; then
9370 case $cross_compiling:$ac_tool_warned in
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
9373 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
9374 ac_tool_warned=yes ;;
9376 OBJDUMP=$ac_ct_OBJDUMP
9379 OBJDUMP="$ac_cv_prog_OBJDUMP"
9385 test -z "$AS" && AS=as
9391 test -z "$DLLTOOL" && DLLTOOL=dlltool
9397 test -z "$OBJDUMP" && OBJDUMP=objdump
9409 # Check whether --enable-shared was given.
9410 if test "${enable_shared+set}" = set; then :
9411 enableval=$enable_shared; p=${PACKAGE-default}
9413 yes) enable_shared=yes ;;
9414 no) enable_shared=no ;;
9417 # Look at the argument we got. We use all the common list separators.
9418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9419 for pkg in $enableval; do
9421 if test "X
$pkg" = "X
$p"; then
9440 # Check whether --enable-static was given.
9441 if test "${enable_static+set}" = set; then :
9442 enableval=$enable_static; p=${PACKAGE-default}
9444 yes) enable_static=yes ;;
9445 no) enable_static=no ;;
9448 # Look at the argument we got. We use all the common list separators.
9449 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9450 for pkg in $enableval; do
9452 if test "X
$pkg" = "X
$p"; then
9472 # Check whether --with-pic was given.
9473 if test "${with_pic+set}" = set; then :
9474 withval=$with_pic; lt_p=${PACKAGE-default}
9476 yes|no) pic_mode=$withval ;;
9479 # Look at the argument we got. We use all the common list separators.
9480 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9481 for lt_pkg in $withval; do
9483 if test "X
$lt_pkg" = "X
$lt_p"; then
9495 test -z "$pic_mode" && pic_mode=default
9503 # Check whether --enable-fast-install was given.
9504 if test "${enable_fast_install+set}" = set; then :
9505 enableval=$enable_fast_install; p=${PACKAGE-default}
9507 yes) enable_fast_install=yes ;;
9508 no) enable_fast_install=no ;;
9510 enable_fast_install=no
9511 # Look at the argument we got. We use all the common list separators.
9512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9513 for pkg in $enableval; do
9515 if test "X
$pkg" = "X
$p"; then
9516 enable_fast_install=yes
9523 enable_fast_install=yes
9536 # This can be used to rebuild libtool when needed
9537 LIBTOOL_DEPS="$ltmain"
9539 # Always use our own libtool.
9540 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9571 test -z "$LN_S" && LN_S="ln -s"
9586 if test -n "${ZSH_VERSION+set}" ; then
9587 setopt NO_GLOB_SUBST
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
9591 $as_echo_n "checking
for objdir...
" >&6; }
9592 if ${lt_cv_objdir+:} false; then :
9593 $as_echo_n "(cached
) " >&6
9595 rm -f .libs 2>/dev/null
9596 mkdir .libs 2>/dev/null
9597 if test -d .libs; then
9600 # MS-DOS does not allow filenames that begin with a dot.
9603 rmdir .libs 2>/dev/null
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
9606 $as_echo "$lt_cv_objdir" >&6; }
9607 objdir=$lt_cv_objdir
9613 cat >>confdefs.h <<_ACEOF
9614 #define LT_OBJDIR "$lt_cv_objdir/"
9622 # AIX sometimes has problems with the GCC collect2 program. For some
9623 # reason, if we set the COLLECT_NAMES environment variable, the problems
9624 # vanish in a puff of smoke.
9625 if test "X
${COLLECT_NAMES+set}" != Xset; then
9627 export COLLECT_NAMES
9634 can_build_shared=yes
9636 # All known linkers require a `.a' archive for static linking (except MSVC,
9637 # which needs '.lib').
9640 with_gnu_ld="$lt_cv_prog_gnu_ld"
9643 old_CFLAGS="$CFLAGS"
9645 # Set sane defaults for various variables
9646 test -z "$CC" && CC=cc
9647 test -z "$LTCC" && LTCC=$CC
9648 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9649 test -z "$LD" && LD=ld
9650 test -z "$ac_objext" && ac_objext=o
9652 for cc_temp in $compiler""; do
9654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9660 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
9663 # Only perform the check for file, if the check method requires it
9664 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9665 case $deplibs_check_method in
9667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
9669 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
9670 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9671 $as_echo_n "(cached
) " >&6
9675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9678 lt_save_MAGIC_CMD="$MAGIC_CMD"
9679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9680 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9681 for ac_dir in $ac_dummy; do
9683 test -z "$ac_dir" && ac_dir=.
9684 if test -f $ac_dir/${ac_tool_prefix}file; then
9685 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9686 if test -n "$file_magic_test_file"; then
9687 case $deplibs_check_method in
9689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9692 $EGREP "$file_magic_regex" > /dev/null; then
9697 *** Warning: the command libtool uses to detect shared libraries,
9698 *** $file_magic_cmd, produces output that libtool cannot recognize.
9699 *** The result is that libtool may fail to recognize shared libraries
9700 *** as such. This will affect the creation of libtool libraries that
9701 *** depend on shared libraries, but programs linked with such libtool
9702 *** libraries will work regardless of this problem. Nevertheless, you
9703 *** may want to report the problem to your system manager and/or to
9704 *** bug-libtool@gnu.org
9714 MAGIC_CMD="$lt_save_MAGIC_CMD"
9719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9720 if test -n "$MAGIC_CMD"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9722 $as_echo "$MAGIC_CMD" >&6; }
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9725 $as_echo "no
" >&6; }
9732 if test -z "$lt_cv_path_MAGIC_CMD"; then
9733 if test -n "$ac_tool_prefix"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
9735 $as_echo_n "checking
for file...
" >&6; }
9736 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9737 $as_echo_n "(cached
) " >&6
9741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9744 lt_save_MAGIC_CMD="$MAGIC_CMD"
9745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9746 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9747 for ac_dir in $ac_dummy; do
9749 test -z "$ac_dir" && ac_dir=.
9750 if test -f $ac_dir/file; then
9751 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9752 if test -n "$file_magic_test_file"; then
9753 case $deplibs_check_method in
9755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9758 $EGREP "$file_magic_regex" > /dev/null; then
9763 *** Warning: the command libtool uses to detect shared libraries,
9764 *** $file_magic_cmd, produces output that libtool cannot recognize.
9765 *** The result is that libtool may fail to recognize shared libraries
9766 *** as such. This will affect the creation of libtool libraries that
9767 *** depend on shared libraries, but programs linked with such libtool
9768 *** libraries will work regardless of this problem. Nevertheless, you
9769 *** may want to report the problem to your system manager and/or to
9770 *** bug-libtool@gnu.org
9780 MAGIC_CMD="$lt_save_MAGIC_CMD"
9785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9786 if test -n "$MAGIC_CMD"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9788 $as_echo "$MAGIC_CMD" >&6; }
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9791 $as_echo "no
" >&6; }
9804 # Use C for the default configuration in the libtool script
9808 ac_cpp='$CPP $CPPFLAGS'
9809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9814 # Source file extension for C test sources.
9817 # Object file extension for compiled C test sources.
9821 # Code to be used in simple compile tests
9822 lt_simple_compile_test_code="int some_variable
= 0;"
9824 # Code to be used in simple link tests
9825 lt_simple_link_test_code='int main(){return(0);}'
9833 # If no C compiler was specified, use CC.
9836 # If no C compiler flags were specified, use CFLAGS.
9837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9839 # Allow CC to be a program name with arguments.
9842 # Save the default compiler, since it gets overwritten when the other
9843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9844 compiler_DEFAULT=$CC
9846 # save warnings/boilerplate of simple test code
9847 ac_outfile=conftest.$ac_objext
9848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9850 _lt_compiler_boilerplate=`cat conftest.err`
9853 ac_outfile=conftest.$ac_objext
9854 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9856 _lt_linker_boilerplate=`cat conftest.err`
9861 ## There is no encapsulation within the following macros, do not change
9862 ## the running order or otherwise move them around unless you know exactly
9863 ## what you are doing...
9864 if test -n "$compiler"; then
9866 lt_prog_compiler_no_builtin_flag=
9868 if test "$GCC" = yes; then
9869 case $cc_basename in
9871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9877 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9879 $as_echo_n "(cached
) " >&6
9881 lt_cv_prog_compiler_rtti_exceptions=no
9882 ac_outfile=conftest.$ac_objext
9883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9884 lt_compiler_flag="-fno-rtti -fno-exceptions"
9885 # Insert the option either (1) after the last *FLAGS variable, or
9886 # (2) before a word containing "conftest.
", or (3) at the end.
9887 # Note that $ac_compile itself does not contain backslashes and begins
9888 # with a dollar sign (not a hyphen), so the echo should work correctly.
9889 # The option is referenced via a variable to avoid confusing sed.
9890 lt_compile=`echo "$ac_compile" | $SED \
9891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9893 -e 's:$: $lt_compiler_flag:'`
9894 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9895 (eval "$lt_compile" 2>conftest.err)
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9899 if (exit $ac_status) && test -s "$ac_outfile"; then
9900 # The compiler can only warn and ignore the option if not recognized
9901 # So say no if there are warnings other than the usual output.
9902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9905 lt_cv_prog_compiler_rtti_exceptions=yes
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9927 lt_prog_compiler_wl=
9928 lt_prog_compiler_pic=
9929 lt_prog_compiler_static=
9932 if test "$GCC" = yes; then
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_static='-static'
9938 # All AIX code is PIC.
9939 if test "$host_cpu" = ia64; then
9940 # AIX 5 now supports IA64 processor
9941 lt_prog_compiler_static='-Bstatic'
9948 # see comment about AmigaOS4 .so support
9949 lt_prog_compiler_pic='-fPIC'
9952 # FIXME: we need at least 68020 code to build shared libraries, but
9953 # adding the `-m68020' flag to GCC prevents building anything better,
9955 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9960 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9961 # PIC is the default for these OSes.
9964 mingw* | cygwin* | pw32* | os2* | cegcc*)
9965 # This hack is so that the source file can tell whether it is being
9966 # built for inclusion in a dll (and should export symbols for example).
9967 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9968 # (--disable-auto-import) libraries
9969 lt_prog_compiler_pic='-DDLL_EXPORT'
9972 darwin* | rhapsody*)
9973 # PIC is the default on this platform
9974 # Common symbols not allowed in MH_DYLIB files
9975 lt_prog_compiler_pic='-fno-common'
9979 # PIC is the default for Haiku.
9980 # The "-static" flag exists, but is broken.
9981 lt_prog_compiler_static=
9985 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9986 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9987 # sets the default TLS model and affects inlining.
9993 lt_prog_compiler_pic='-fPIC'
9999 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10000 # Instead, we relocate shared libraries at runtime.
10004 # Just because we use GCC doesn't mean we suddenly get shared libraries
10005 # on systems that don't support them.
10006 lt_prog_compiler_can_build_shared=no
10011 # QNX uses GNU C++, but need to define -shared option too, otherwise
10012 # it will coredump.
10013 lt_prog_compiler_pic='-fPIC -shared'
10017 if test -d /usr/nec; then
10018 lt_prog_compiler_pic=-Kconform_pic
10023 lt_prog_compiler_pic='-fPIC'
10027 case $cc_basename in
10028 nvcc*) # Cuda Compiler Driver 2.2
10029 lt_prog_compiler_wl='-Xlinker '
10030 if test -n "$lt_prog_compiler_pic"; then
10031 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10036 # PORTME Check for flag to pass linker flags through the system compiler.
10039 lt_prog_compiler_wl='-Wl,'
10040 if test "$host_cpu" = ia64; then
10041 # AIX 5 now supports IA64 processor
10042 lt_prog_compiler_static='-Bstatic'
10044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10048 mingw* | cygwin* | pw32* | os2* | cegcc*)
10049 # This hack is so that the source file can tell whether it is being
10050 # built for inclusion in a dll (and should export symbols for example).
10051 lt_prog_compiler_pic='-DDLL_EXPORT'
10054 hpux9* | hpux10* | hpux11*)
10055 lt_prog_compiler_wl='-Wl,'
10056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10057 # not for PA HP-UX.
10063 lt_prog_compiler_pic='+Z'
10066 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10067 lt_prog_compiler_static='${wl}-a ${wl}archive'
10070 irix5* | irix6* | nonstopux*)
10071 lt_prog_compiler_wl='-Wl,'
10072 # PIC (with -KPIC) is the default.
10073 lt_prog_compiler_static='-non_shared'
10076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10077 case $cc_basename in
10078 # old Intel for x86_64 which still supported -KPIC.
10080 lt_prog_compiler_wl='-Wl,'
10081 lt_prog_compiler_pic='-KPIC'
10082 lt_prog_compiler_static='-static'
10084 # icc used to be incompatible with GCC.
10085 # ICC 10 doesn't accept -KPIC any more.
10087 lt_prog_compiler_wl='-Wl,'
10088 lt_prog_compiler_pic='-fPIC'
10089 lt_prog_compiler_static='-static'
10091 # Lahey Fortran 8.1.
10093 lt_prog_compiler_wl='-Wl,'
10094 lt_prog_compiler_pic='--shared'
10095 lt_prog_compiler_static='--static'
10098 # NAG Fortran compiler
10099 lt_prog_compiler_wl='-Wl,-Wl,,'
10100 lt_prog_compiler_pic='-PIC'
10101 lt_prog_compiler_static='-Bstatic'
10103 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10104 # Portland Group compilers (*not* the Pentium gcc compiler,
10105 # which looks to be a dead project)
10106 lt_prog_compiler_wl='-Wl,'
10107 lt_prog_compiler_pic='-fpic'
10108 lt_prog_compiler_static='-Bstatic'
10111 lt_prog_compiler_wl='-Wl,'
10112 # All Alpha code is PIC.
10113 lt_prog_compiler_static='-non_shared'
10115 xl* | bgxl* | bgf* | mpixl*)
10116 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10117 lt_prog_compiler_wl='-Wl,'
10118 lt_prog_compiler_pic='-qpic'
10119 lt_prog_compiler_static='-qstaticlink'
10122 case `$CC -V 2>&1 | sed 5q` in
10123 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10124 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10125 lt_prog_compiler_pic='-KPIC'
10126 lt_prog_compiler_static='-Bstatic'
10127 lt_prog_compiler_wl=''
10129 *Sun\ F* | *Sun*Fortran*)
10130 lt_prog_compiler_pic='-KPIC'
10131 lt_prog_compiler_static='-Bstatic'
10132 lt_prog_compiler_wl='-Qoption ld '
10136 lt_prog_compiler_pic='-KPIC'
10137 lt_prog_compiler_static='-Bstatic'
10138 lt_prog_compiler_wl='-Wl,'
10140 *Intel*\ [CF]*Compiler*)
10141 lt_prog_compiler_wl='-Wl,'
10142 lt_prog_compiler_pic='-fPIC'
10143 lt_prog_compiler_static='-static'
10146 lt_prog_compiler_wl='-Wl,'
10147 lt_prog_compiler_pic='-fpic'
10148 lt_prog_compiler_static='-Bstatic'
10156 lt_prog_compiler_pic='-KPIC'
10157 lt_prog_compiler_static='-Bstatic'
10161 # QNX uses GNU C++, but need to define -shared option too, otherwise
10162 # it will coredump.
10163 lt_prog_compiler_pic='-fPIC -shared'
10166 osf3* | osf4* | osf5*)
10167 lt_prog_compiler_wl='-Wl,'
10168 # All OSF/1 code is PIC.
10169 lt_prog_compiler_static='-non_shared'
10173 lt_prog_compiler_static='-non_shared'
10177 lt_prog_compiler_pic='-KPIC'
10178 lt_prog_compiler_static='-Bstatic'
10179 case $cc_basename in
10180 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10181 lt_prog_compiler_wl='-Qoption ld ';;
10183 lt_prog_compiler_wl='-Wl,';;
10188 lt_prog_compiler_wl='-Qoption ld '
10189 lt_prog_compiler_pic='-PIC'
10190 lt_prog_compiler_static='-Bstatic'
10193 sysv4 | sysv4.2uw2* | sysv4.3*)
10194 lt_prog_compiler_wl='-Wl,'
10195 lt_prog_compiler_pic='-KPIC'
10196 lt_prog_compiler_static='-Bstatic'
10200 if test -d /usr/nec ;then
10201 lt_prog_compiler_pic='-Kconform_pic'
10202 lt_prog_compiler_static='-Bstatic'
10206 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10207 lt_prog_compiler_wl='-Wl,'
10208 lt_prog_compiler_pic='-KPIC'
10209 lt_prog_compiler_static='-Bstatic'
10213 lt_prog_compiler_wl='-Wl,'
10214 lt_prog_compiler_can_build_shared=no
10218 lt_prog_compiler_pic='-pic'
10219 lt_prog_compiler_static='-Bstatic'
10223 lt_prog_compiler_can_build_shared=no
10229 # For platforms which do not support PIC, -DPIC is meaningless:
10231 lt_prog_compiler_pic=
10234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
10239 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
10240 if ${lt_cv_prog_compiler_pic+:} false; then :
10241 $as_echo_n "(cached
) " >&6
10243 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic" >&5
10246 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10247 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10250 # Check to make sure the PIC flag actually works.
10252 if test -n "$lt_prog_compiler_pic"; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
10254 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
10255 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10256 $as_echo_n "(cached
) " >&6
10258 lt_cv_prog_compiler_pic_works=no
10259 ac_outfile=conftest.$ac_objext
10260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10261 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10262 # Insert the option either (1) after the last *FLAGS variable, or
10263 # (2) before a word containing "conftest.
", or (3) at the end.
10264 # Note that $ac_compile itself does not contain backslashes and begins
10265 # with a dollar sign (not a hyphen), so the echo should work correctly.
10266 # The option is referenced via a variable to avoid confusing sed.
10267 lt_compile=`echo "$ac_compile" | $SED \
10268 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10269 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10270 -e 's:$: $lt_compiler_flag:'`
10271 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10272 (eval "$lt_compile" 2>conftest.err)
10274 cat conftest.err >&5
10275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10276 if (exit $ac_status) && test -s "$ac_outfile"; then
10277 # The compiler can only warn and ignore the option if not recognized
10278 # So say no if there are warnings other than the usual output.
10279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10281 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10282 lt_cv_prog_compiler_pic_works=yes
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
10289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10292 case $lt_prog_compiler_pic in
10294 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10297 lt_prog_compiler_pic=
10298 lt_prog_compiler_can_build_shared=no
10314 # Check to make sure the static flag actually works.
10316 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
10318 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
10319 if ${lt_cv_prog_compiler_static_works+:} false; then :
10320 $as_echo_n "(cached
) " >&6
10322 lt_cv_prog_compiler_static_works=no
10323 save_LDFLAGS="$LDFLAGS"
10324 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10325 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10326 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10327 # The linker can only warn and ignore the option if not recognized
10328 # So say no if there are warnings
10329 if test -s conftest.err; then
10330 # Append any errors to the config.log.
10331 cat conftest.err 1>&5
10332 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10334 if diff conftest.exp conftest.er2 >/dev/null; then
10335 lt_cv_prog_compiler_static_works=yes
10338 lt_cv_prog_compiler_static_works=yes
10342 LDFLAGS="$save_LDFLAGS"
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
10346 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10348 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10351 lt_prog_compiler_static=
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10361 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10362 if ${lt_cv_prog_compiler_c_o+:} false; then :
10363 $as_echo_n "(cached
) " >&6
10365 lt_cv_prog_compiler_c_o=no
10366 $RM -r conftest 2>/dev/null
10370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10372 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10373 # Insert the option either (1) after the last *FLAGS variable, or
10374 # (2) before a word containing "conftest.
", or (3) at the end.
10375 # Note that $ac_compile itself does not contain backslashes and begins
10376 # with a dollar sign (not a hyphen), so the echo should work correctly.
10377 lt_compile=`echo "$ac_compile" | $SED \
10378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10380 -e 's:$: $lt_compiler_flag:'`
10381 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10382 (eval "$lt_compile" 2>out/conftest.err)
10384 cat out/conftest.err >&5
10385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10388 # The compiler can only warn and ignore the option if not recognized
10389 # So say no if there are warnings
10390 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10393 lt_cv_prog_compiler_c_o=yes
10398 # SGI C++ compiler will create directory out/ii_files/ for
10399 # template instantiation
10400 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10401 $RM out/* && rmdir out
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10408 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
10416 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
10417 if ${lt_cv_prog_compiler_c_o+:} false; then :
10418 $as_echo_n "(cached
) " >&6
10420 lt_cv_prog_compiler_c_o=no
10421 $RM -r conftest 2>/dev/null
10425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10427 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
10428 # Insert the option either (1) after the last *FLAGS variable, or
10429 # (2) before a word containing "conftest.
", or (3) at the end.
10430 # Note that $ac_compile itself does not contain backslashes and begins
10431 # with a dollar sign (not a hyphen), so the echo should work correctly.
10432 lt_compile=`echo "$ac_compile" | $SED \
10433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10435 -e 's:$: $lt_compiler_flag:'`
10436 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
10437 (eval "$lt_compile" 2>out/conftest.err)
10439 cat out/conftest.err >&5
10440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10443 # The compiler can only warn and ignore the option if not recognized
10444 # So say no if there are warnings
10445 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10446 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10447 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10448 lt_cv_prog_compiler_c_o=yes
10453 # SGI C++ compiler will create directory out/ii_files/ for
10454 # template instantiation
10455 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10456 $RM out/* && rmdir out
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
10463 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10468 hard_links="nottested
"
10469 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10470 # do not overwrite the value of need_locks provided by the user
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
10472 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
10475 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10477 ln conftest.a conftest.b 2>&5 || hard_links=no
10478 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
10480 $as_echo "$hard_links" >&6; }
10481 if test "$hard_links" = no; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
10483 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
10496 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
10499 allow_undefined_flag=
10500 always_export_symbols=no
10502 archive_expsym_cmds=
10503 compiler_needs_object=no
10504 enable_shared_with_static_runtimes=no
10505 export_dynamic_flag_spec=
10506 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10507 hardcode_automatic=no
10509 hardcode_direct_absolute=no
10510 hardcode_libdir_flag_spec=
10511 hardcode_libdir_separator=
10512 hardcode_minus_L=no
10513 hardcode_shlibpath_var=unsupported
10515 link_all_deplibs=unknown
10517 module_expsym_cmds=
10518 old_archive_from_new_cmds=
10519 old_archive_from_expsyms_cmds=
10520 thread_safe_flag_spec=
10521 whole_archive_flag_spec=
10522 # include_expsyms should be a list of space-separated symbols to be *always*
10523 # included in the symbol list
10525 # exclude_expsyms can be an extended regexp of symbols to exclude
10526 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10527 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10528 # as well as any symbol that contains `d'.
10529 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10530 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10531 # platforms (ab)use it in PIC code, but their linkers get confused if
10532 # the symbol is explicitly referenced. Since portable code cannot
10533 # rely on this symbol name, it's probably fine to never include it in
10534 # preloaded symbol tables.
10535 # Exclude shared library initialization/finalization symbols.
10536 extract_expsyms_cmds=
10539 cygwin* | mingw* | pw32* | cegcc*)
10540 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10541 # When not using gcc, we currently assume that we are using
10542 # Microsoft Visual C++.
10543 if test "$GCC" != yes; then
10548 # we just hope/assume this is gcc and not c89 (= MSVC++)
10554 linux* | k*bsd*-gnu | gnu*)
10555 link_all_deplibs=no
10561 # On some targets, GNU ld is compatible enough with the native linker
10562 # that we're better off using the native interface for both.
10563 lt_use_gnu_ld_interface=no
10564 if test "$with_gnu_ld" = yes; then
10567 # The AIX port of GNU ld has always aspired to compatibility
10568 # with the native linker. However, as the warning in the GNU ld
10569 # block says, versions before 2.19.5* couldn't really create working
10570 # shared libraries, regardless of the interface used.
10571 case `$LD -v 2>&1` in
10572 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10573 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10574 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10576 lt_use_gnu_ld_interface=yes
10581 lt_use_gnu_ld_interface=yes
10586 if test "$lt_use_gnu_ld_interface" = yes; then
10587 # If archive_cmds runs LD, not CC, wlarc should be empty
10590 # Set some defaults for GNU ld with shared library support. These
10591 # are reset later if shared libraries are not supported. Putting them
10592 # here allows them to be overridden if necessary.
10593 runpath_var=LD_RUN_PATH
10594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10595 export_dynamic_flag_spec='${wl}--export-dynamic'
10596 # ancient GNU ld didn't support --whole-archive et. al.
10597 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10598 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10600 whole_archive_flag_spec=
10602 supports_anon_versioning=no
10603 case `$LD -v 2>&1` in
10604 *GNU\ gold*) supports_anon_versioning=yes ;;
10605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10608 *\ 2.11.*) ;; # other 2.11 versions
10609 *) supports_anon_versioning=yes ;;
10612 # See if GNU ld supports shared libraries.
10615 # On AIX/PPC, the GNU linker is very broken
10616 if test "$host_cpu" != ia64; then
10620 *** Warning: the GNU linker, at least up to release 2.19, is reported
10621 *** to be unable to reliably create shared libraries on AIX.
10622 *** Therefore, libtool is disabling shared libraries support. If you
10623 *** really care for shared libraries, you may want to install binutils
10624 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10625 *** You will then need to restart the configuration process.
10634 # see comment about AmigaOS4 .so support
10635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10636 archive_expsym_cmds=''
10639 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)'
10640 hardcode_libdir_flag_spec
='-L$libdir'
10641 hardcode_minus_L
=yes
10647 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10648 allow_undefined_flag
=unsupported
10649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10650 # support --undefined. This deserves some investigation. FIXME
10651 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657 cygwin
* | mingw
* | pw32
* | cegcc
*)
10658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10659 # as there is no search path for DLLs.
10660 hardcode_libdir_flag_spec
='-L$libdir'
10661 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10662 allow_undefined_flag
=unsupported
10663 always_export_symbols
=no
10664 enable_shared_with_static_runtimes
=yes
10665 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'
10666 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10668 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
10669 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10670 # If the export-symbols file already is a .def file (1st line
10671 # is EXPORTS), use it as is; otherwise, prepend...
10672 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10673 cp $export_symbols $output_objdir/$soname.def;
10675 echo EXPORTS > $output_objdir/$soname.def;
10676 cat $export_symbols >> $output_objdir/$soname.def;
10678 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10685 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10686 link_all_deplibs
=yes
10691 hardcode_shlibpath_var
=no
10692 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10693 export_dynamic_flag_spec
='${wl}-E'
10694 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10695 # Instead, shared libraries are loaded at an image base (0x10000000 by
10696 # default) and relocated if they conflict, which is a slow very memory
10697 # consuming and fragmenting process. To avoid this, we pick a random,
10698 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10699 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10700 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10701 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'
10704 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10706 if test "$host_os" = linux-dietlibc
; then
10707 case $cc_basename in
10708 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10711 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10712 && test "$tmp_diet" = no
10714 tmp_addflag
=' $pic_flag'
10715 tmp_sharedflag
='-shared'
10716 case $cc_basename,$host_cpu in
10717 pgcc
*) # Portland Group C compiler
10718 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'
10719 tmp_addflag
=' $pic_flag'
10721 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10722 # Portland Group f77 and f90 compilers
10723 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'
10724 tmp_addflag
=' $pic_flag -Mnomain' ;;
10725 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10726 tmp_addflag
=' -i_dynamic' ;;
10727 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10728 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10729 ifc
* | ifort
*) # Intel Fortran compiler
10730 tmp_addflag
=' -nofor_main' ;;
10731 lf95
*) # Lahey Fortran 8.1
10732 whole_archive_flag_spec
=
10733 tmp_sharedflag
='--shared' ;;
10734 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10735 tmp_sharedflag
='-qmkshrobj'
10737 nvcc
*) # Cuda Compiler Driver 2.2
10738 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'
10739 compiler_needs_object
=yes
10742 case `$CC -V 2>&1 | sed 5q` in
10743 *Sun\ C
*) # Sun C 5.9
10744 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'
10745 compiler_needs_object
=yes
10746 tmp_sharedflag
='-G' ;;
10747 *Sun\ F
*) # Sun Fortran 8.3
10748 tmp_sharedflag
='-G' ;;
10750 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10752 if test "x$supports_anon_versioning" = xyes
; then
10753 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10754 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10755 echo "local: *; };" >> $output_objdir/$libname.ver~
10756 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10759 case $cc_basename in
10760 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10761 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10762 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10763 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10764 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10765 if test "x$supports_anon_versioning" = xyes
; then
10766 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10767 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10768 echo "local: *; };" >> $output_objdir/$libname.ver~
10769 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10778 netbsd
* | netbsdelf
*-gnu)
10779 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10780 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10783 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10784 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10789 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10794 *** create shared libraries on Solaris systems. Therefore, libtool
10795 *** is disabling shared libraries support. We urge you to upgrade GNU
10796 *** binutils to release 2.9.1 or newer. Another option is to modify
10797 *** your PATH or compiler configuration so that the native linker is
10798 *** used, and then restart.
10801 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10802 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10803 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10809 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10810 case `$LD -v 2>&1` in
10811 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10815 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10816 *** reliably create shared libraries on SCO systems. Therefore, libtool
10817 *** is disabling shared libraries support. We urge you to upgrade GNU
10818 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10819 *** your PATH or compiler configuration so that the native linker is
10820 *** used, and then restart.
10825 # For security reasons, it is highly recommended that you always
10826 # use absolute paths for naming shared libraries, and exclude the
10827 # DT_RUNPATH tag from executables and libraries. But doing so
10828 # requires that you compile everything twice, which is a pain.
10829 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10830 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10831 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10832 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10841 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10843 hardcode_direct
=yes
10844 hardcode_shlibpath_var
=no
10848 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10849 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10857 if test "$ld_shlibs" = no
; then
10859 hardcode_libdir_flag_spec
=
10860 export_dynamic_flag_spec
=
10861 whole_archive_flag_spec
=
10864 # PORTME fill in a description of your system's linker (not GNU ld)
10867 allow_undefined_flag
=unsupported
10868 always_export_symbols
=yes
10869 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'
10870 # Note: this linker hardcodes the directories in LIBPATH if there
10871 # are no directories specified by -L.
10872 hardcode_minus_L
=yes
10873 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10874 # Neither direct hardcoding nor static linking is supported with a
10876 hardcode_direct
=unsupported
10881 if test "$host_cpu" = ia64
; then
10882 # On IA64, the linker does run time linking by default, so we don't
10883 # have to do anything special.
10884 aix_use_runtimelinking
=no
10885 exp_sym_flag
='-Bexport'
10888 # If we're using GNU nm, then we don't want the "-C" option.
10889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10890 # Also, AIX nm treats weak defined symbols like other global
10891 # defined symbols, whereas GNU nm marks them as "W".
10892 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10893 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'
10895 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'
10897 aix_use_runtimelinking
=no
10899 # Test if we are trying to use run time linking or normal
10900 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10901 # need to do runtime linking.
10902 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10903 for ld_flag
in $LDFLAGS; do
10904 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10905 aix_use_runtimelinking
=yes
10912 exp_sym_flag
='-bexport'
10913 no_entry_flag
='-bnoentry'
10916 # When large executables or shared objects are built, AIX ld can
10917 # have problems creating the table of contents. If linking a library
10918 # or program results in "error TOC overflow" add -mminimal-toc to
10919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10923 hardcode_direct
=yes
10924 hardcode_direct_absolute
=yes
10925 hardcode_libdir_separator
=':'
10926 link_all_deplibs
=yes
10927 file_list_spec
='${wl}-f,'
10929 if test "$GCC" = yes; then
10930 case $host_os in aix4.
[012]|aix4.
[012].
*)
10931 # We only want to do this on AIX 4.2 and lower, the check
10932 # below for broken collect2 doesn't work under 4.3+
10933 collect2name
=`${CC} -print-prog-name=collect2`
10934 if test -f "$collect2name" &&
10935 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10937 # We have reworked collect2
10940 # We have old collect2
10941 hardcode_direct
=unsupported
10942 # It fails to find uninstalled libraries when the uninstalled
10943 # path is not listed in the libpath. Setting hardcode_minus_L
10944 # to unsupported forces relinking
10945 hardcode_minus_L
=yes
10946 hardcode_libdir_flag_spec
='-L$libdir'
10947 hardcode_libdir_separator
=
10951 shared_flag
='-shared'
10952 if test "$aix_use_runtimelinking" = yes; then
10953 shared_flag
="$shared_flag "'${wl}-G'
10955 link_all_deplibs
=no
10958 if test "$host_cpu" = ia64
; then
10959 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10960 # chokes on -Wl,-G. The following line is correct:
10963 if test "$aix_use_runtimelinking" = yes; then
10964 shared_flag
='${wl}-G'
10966 shared_flag
='${wl}-bM:SRE'
10971 export_dynamic_flag_spec
='${wl}-bexpall'
10972 # It seems that -bexpall does not export symbols beginning with
10973 # underscore (_), so it is better to generate a list of symbols to export.
10974 always_export_symbols
=yes
10975 if test "$aix_use_runtimelinking" = yes; then
10976 # Warning - without using the other runtime loading flags (-brtl),
10977 # -berok will link without error, but may produce a broken library.
10978 allow_undefined_flag
='-berok'
10979 # Determine the default libpath from the value encoded in an
10980 # empty executable.
10981 if test "${lt_cv_aix_libpath+set}" = set; then
10982 aix_libpath
=$lt_cv_aix_libpath
10984 if ${lt_cv_aix_libpath_+:} false
; then :
10985 $as_echo_n "(cached) " >&6
10987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10998 if ac_fn_c_try_link
"$LINENO"; then :
11000 lt_aix_libpath_sed
='
11001 /Import File Strings/,/^$/ {
11003 s/^0 *\([^ ]*\) *$/\1/
11007 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11008 # Check for a 64-bit object if we didn't find anything.
11009 if test -z "$lt_cv_aix_libpath_"; then
11010 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11013 rm -f core conftest.err conftest.
$ac_objext \
11014 conftest
$ac_exeext conftest.
$ac_ext
11015 if test -z "$lt_cv_aix_libpath_"; then
11016 lt_cv_aix_libpath_
="/usr/lib:/lib"
11021 aix_libpath
=$lt_cv_aix_libpath_
11024 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11025 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"
11027 if test "$host_cpu" = ia64
; then
11028 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
11029 allow_undefined_flag
="-z nodefs"
11030 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"
11032 # Determine the default libpath from the value encoded in an
11033 # empty executable.
11034 if test "${lt_cv_aix_libpath+set}" = set; then
11035 aix_libpath
=$lt_cv_aix_libpath
11037 if ${lt_cv_aix_libpath_+:} false
; then :
11038 $as_echo_n "(cached) " >&6
11040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11051 if ac_fn_c_try_link
"$LINENO"; then :
11053 lt_aix_libpath_sed
='
11054 /Import File Strings/,/^$/ {
11056 s/^0 *\([^ ]*\) *$/\1/
11060 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11061 # Check for a 64-bit object if we didn't find anything.
11062 if test -z "$lt_cv_aix_libpath_"; then
11063 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11066 rm -f core conftest.err conftest.
$ac_objext \
11067 conftest
$ac_exeext conftest.
$ac_ext
11068 if test -z "$lt_cv_aix_libpath_"; then
11069 lt_cv_aix_libpath_
="/usr/lib:/lib"
11074 aix_libpath
=$lt_cv_aix_libpath_
11077 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
11078 # Warning - without using the other run time loading flags,
11079 # -berok will link without error, but may produce a broken library.
11080 no_undefined_flag
=' ${wl}-bernotok'
11081 allow_undefined_flag
=' ${wl}-berok'
11082 if test "$with_gnu_ld" = yes; then
11083 # We only use this code for GNU lds that support --whole-archive.
11084 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11086 # Exported symbols can be pulled into shared objects from archives
11087 whole_archive_flag_spec
='$convenience'
11089 archive_cmds_need_lc
=yes
11090 # This is similar to how AIX traditionally builds its shared libraries.
11091 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'
11099 # see comment about AmigaOS4 .so support
11100 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11101 archive_expsym_cmds
=''
11104 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)'
11105 hardcode_libdir_flag_spec
='-L$libdir'
11106 hardcode_minus_L
=yes
11112 export_dynamic_flag_spec
=-rdynamic
11115 cygwin
* | mingw
* | pw32
* | cegcc
*)
11116 # When not using gcc, we currently assume that we are using
11117 # Microsoft Visual C++.
11118 # hardcode_libdir_flag_spec is actually meaningless, as there is
11119 # no search path for DLLs.
11120 case $cc_basename in
11123 hardcode_libdir_flag_spec
=' '
11124 allow_undefined_flag
=unsupported
11125 always_export_symbols
=yes
11127 # Tell ltmain to make .lib files, not .a files.
11129 # Tell ltmain to make .dll files, not .so files.
11131 # FIXME: Setting linknames here is a bad hack.
11132 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11133 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11134 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
11136 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
11138 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11140 # The linker will not automatically build a static lib if we build a DLL.
11141 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11142 enable_shared_with_static_runtimes
=yes
11143 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11144 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11146 old_postinstall_cmds
='chmod 644 $oldlib'
11147 postlink_cmds
='lt_outputfile="@OUTPUT@"~
11148 lt_tool_outputfile="@TOOL_OUTPUT@"~
11149 case $lt_outputfile in
11152 lt_outputfile="$lt_outputfile.exe"
11153 lt_tool_outputfile="$lt_tool_outputfile.exe"
11156 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11157 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11158 $RM "$lt_outputfile.manifest";
11162 # Assume MSVC wrapper
11163 hardcode_libdir_flag_spec
=' '
11164 allow_undefined_flag
=unsupported
11165 # Tell ltmain to make .lib files, not .a files.
11167 # Tell ltmain to make .dll files, not .so files.
11169 # FIXME: Setting linknames here is a bad hack.
11170 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11171 # The linker will automatically build a .lib file if we build a DLL.
11172 old_archive_from_new_cmds
='true'
11173 # FIXME: Should let the user specify the lib program.
11174 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
11175 enable_shared_with_static_runtimes
=yes
11180 darwin
* | rhapsody
*)
11183 archive_cmds_need_lc
=no
11185 hardcode_automatic
=yes
11186 hardcode_shlibpath_var
=unsupported
11187 if test "$lt_cv_ld_force_load" = "yes"; then
11188 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\"`'
11191 whole_archive_flag_spec
=''
11193 link_all_deplibs
=yes
11194 allow_undefined_flag
="$_lt_dar_allow_undefined"
11195 case $cc_basename in
11196 ifort
*) _lt_dar_can_shared
=yes ;;
11197 *) _lt_dar_can_shared
=$GCC ;;
11199 if test "$_lt_dar_can_shared" = "yes"; then
11200 output_verbose_link_cmd
=func_echo_all
11201 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11202 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11203 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}"
11204 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}"
11213 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11214 hardcode_libdir_flag_spec
='-L$libdir'
11215 hardcode_shlibpath_var
=no
11218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11219 # support. Future versions do this automatically, but an explicit c++rt0.o
11220 # does not break anything, and helps significantly (at the cost of a little
11223 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11224 hardcode_libdir_flag_spec
='-R$libdir'
11225 hardcode_direct
=yes
11226 hardcode_shlibpath_var
=no
11229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11231 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11232 hardcode_direct
=yes
11233 hardcode_minus_L
=yes
11234 hardcode_shlibpath_var
=no
11237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11238 freebsd
* | dragonfly
*)
11239 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11240 hardcode_libdir_flag_spec
='-R$libdir'
11241 hardcode_direct
=yes
11242 hardcode_shlibpath_var
=no
11246 if test "$GCC" = yes; then
11247 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'
11249 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'
11251 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11252 hardcode_libdir_separator
=:
11253 hardcode_direct
=yes
11255 # hardcode_minus_L: Not really in the search PATH,
11256 # but as the default location of the library.
11257 hardcode_minus_L
=yes
11258 export_dynamic_flag_spec
='${wl}-E'
11262 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11263 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11267 if test "$with_gnu_ld" = no
; then
11268 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11269 hardcode_libdir_separator
=:
11270 hardcode_direct
=yes
11271 hardcode_direct_absolute
=yes
11272 export_dynamic_flag_spec
='${wl}-E'
11273 # hardcode_minus_L: Not really in the search PATH,
11274 # but as the default location of the library.
11275 hardcode_minus_L
=yes
11280 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
11283 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11286 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11289 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11302 # Older versions of the 11.00 compiler do not understand -b yet
11303 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11305 $as_echo_n "checking if $CC understands -b... " >&6; }
11306 if ${lt_cv_prog_compiler__b+:} false
; then :
11307 $as_echo_n "(cached) " >&6
11309 lt_cv_prog_compiler__b
=no
11310 save_LDFLAGS
="$LDFLAGS"
11311 LDFLAGS
="$LDFLAGS -b"
11312 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
11313 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
11314 # The linker can only warn and ignore the option if not recognized
11315 # So say no if there are warnings
11316 if test -s conftest.err
; then
11317 # Append any errors to the config.log.
11318 cat conftest.err
1>&5
11319 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
11320 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
11321 if diff conftest.exp conftest.er2
>/dev
/null
; then
11322 lt_cv_prog_compiler__b
=yes
11325 lt_cv_prog_compiler__b
=yes
11329 LDFLAGS
="$save_LDFLAGS"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11333 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11335 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
11336 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11338 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11344 if test "$with_gnu_ld" = no
; then
11345 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
11346 hardcode_libdir_separator
=:
11351 hardcode_shlibpath_var
=no
11354 hardcode_direct
=yes
11355 hardcode_direct_absolute
=yes
11356 export_dynamic_flag_spec
='${wl}-E'
11358 # hardcode_minus_L: Not really in the search PATH,
11359 # but as the default location of the library.
11360 hardcode_minus_L
=yes
11366 irix5
* | irix6
* | nonstopux
*)
11367 if test "$GCC" = yes; then
11368 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'
11369 # Try to use the -exported_symbol ld option, if it does not
11370 # work, assume that -exports_file does not work either and
11371 # implicitly export all symbols.
11372 # This should be the same for all languages, so no per-tag cache variable.
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11374 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11375 if ${lt_cv_irix_exported_symbol+:} false
; then :
11376 $as_echo_n "(cached) " >&6
11378 save_LDFLAGS
="$LDFLAGS"
11379 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11382 int foo (void) { return 0; }
11384 if ac_fn_c_try_link
"$LINENO"; then :
11385 lt_cv_irix_exported_symbol
=yes
11387 lt_cv_irix_exported_symbol
=no
11389 rm -f core conftest.err conftest.
$ac_objext \
11390 conftest
$ac_exeext conftest.
$ac_ext
11391 LDFLAGS
="$save_LDFLAGS"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11394 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11395 if test "$lt_cv_irix_exported_symbol" = yes; then
11396 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'
11399 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'
11400 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'
11402 archive_cmds_need_lc
='no'
11403 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11404 hardcode_libdir_separator
=:
11406 link_all_deplibs
=yes
11409 netbsd
* | netbsdelf
*-gnu)
11410 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11411 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11413 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11415 hardcode_libdir_flag_spec
='-R$libdir'
11416 hardcode_direct
=yes
11417 hardcode_shlibpath_var
=no
11421 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11422 hardcode_direct
=yes
11423 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11424 hardcode_libdir_separator
=:
11425 hardcode_shlibpath_var
=no
11432 if test -f /usr
/libexec
/ld.so
; then
11433 hardcode_direct
=yes
11434 hardcode_shlibpath_var
=no
11435 hardcode_direct_absolute
=yes
11436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11437 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11438 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11439 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11440 export_dynamic_flag_spec
='${wl}-E'
11443 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
11444 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11445 hardcode_libdir_flag_spec
='-R$libdir'
11448 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11449 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
11459 hardcode_libdir_flag_spec
='-L$libdir'
11460 hardcode_minus_L
=yes
11461 allow_undefined_flag
=unsupported
11462 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'
11463 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11467 if test "$GCC" = yes; then
11468 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11469 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'
11471 allow_undefined_flag
=' -expect_unresolved \*'
11472 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'
11474 archive_cmds_need_lc
='no'
11475 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11476 hardcode_libdir_separator
=:
11479 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
11480 if test "$GCC" = yes; then
11481 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
11482 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'
11483 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
11485 allow_undefined_flag
=' -expect_unresolved \*'
11486 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'
11487 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~
11488 $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'
11490 # Both c and cxx compiler support -rpath directly
11491 hardcode_libdir_flag_spec
='-rpath $libdir'
11493 archive_cmds_need_lc
='no'
11494 hardcode_libdir_separator
=:
11498 no_undefined_flag
=' -z defs'
11499 if test "$GCC" = yes; then
11501 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11503 $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'
11505 case `$CC -V 2>&1` in
11508 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11509 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11514 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11515 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11516 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11520 hardcode_libdir_flag_spec
='-R$libdir'
11521 hardcode_shlibpath_var
=no
11523 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
11525 # The compiler driver will combine and reorder linker options,
11526 # but understands `-z linker_flag'. GCC discards it without `$wl',
11527 # but is careful enough not to reorder.
11528 # Supported since Solaris 2.6 (maybe 2.5.1?)
11529 if test "$GCC" = yes; then
11530 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11532 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
11536 link_all_deplibs
=yes
11540 if test "x$host_vendor" = xsequent
; then
11541 # Use $CC to link under sequent, because it throws in some extra .o
11542 # files that make .init and .fini sections work.
11543 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11545 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11547 hardcode_libdir_flag_spec
='-L$libdir'
11548 hardcode_direct
=yes
11549 hardcode_minus_L
=yes
11550 hardcode_shlibpath_var
=no
11554 case $host_vendor in
11556 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11557 hardcode_direct
=yes # is this really true???
11560 ## LD is ld it makes a PLAMLIB
11561 ## CC just makes a GrossModule.
11562 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11563 reload_cmds
='$CC -r -o $output$reload_objs'
11567 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11568 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
11571 runpath_var
='LD_RUN_PATH'
11572 hardcode_shlibpath_var
=no
11576 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11577 hardcode_shlibpath_var
=no
11578 export_dynamic_flag_spec
='-Bexport'
11582 if test -d /usr
/nec
; then
11583 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11584 hardcode_shlibpath_var
=no
11585 runpath_var
=LD_RUN_PATH
11586 hardcode_runpath_var
=yes
11591 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
11592 no_undefined_flag
='${wl}-z,text'
11593 archive_cmds_need_lc
=no
11594 hardcode_shlibpath_var
=no
11595 runpath_var
='LD_RUN_PATH'
11597 if test "$GCC" = yes; then
11598 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11599 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11601 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 sysv5
* | sco3.2v5
* | sco5v6
*)
11607 # Note: We can NOT use -z defs as we might desire, because we do not
11608 # link with -lc, and that would cause any symbols used from libc to
11609 # always be unresolved, which means just about no library would
11610 # ever link correctly. If we're not using GNU ld we use -z text
11611 # though, which does catch some bad symbols but isn't as heavy-handed
11613 no_undefined_flag
='${wl}-z,text'
11614 allow_undefined_flag
='${wl}-z,nodefs'
11615 archive_cmds_need_lc
=no
11616 hardcode_shlibpath_var
=no
11617 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11618 hardcode_libdir_separator
=':'
11619 link_all_deplibs
=yes
11620 export_dynamic_flag_spec
='${wl}-Bexport'
11621 runpath_var
='LD_RUN_PATH'
11623 if test "$GCC" = yes; then
11624 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11625 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11627 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11628 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11633 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11634 hardcode_libdir_flag_spec
='-L$libdir'
11635 hardcode_shlibpath_var
=no
11643 if test x
$host_vendor = xsni
; then
11645 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11646 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11653 $as_echo "$ld_shlibs" >&6; }
11654 test "$ld_shlibs" = no
&& can_build_shared
=no
11656 with_gnu_ld
=$with_gnu_ld
11673 # Do we need to explicitly link libc?
11675 case "x$archive_cmds_need_lc" in
11677 # Assume -lc should be added
11678 archive_cmds_need_lc
=yes
11680 if test "$enable_shared" = yes && test "$GCC" = yes; then
11681 case $archive_cmds in
11683 # FIXME: we may have to deal with multi-command sequences.
11686 # Test whether the compiler implicitly links with -lc since on some
11687 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11688 # to ld, don't add -lc before -lgcc.
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11690 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11691 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11692 $as_echo_n "(cached) " >&6
11695 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11698 (eval $ac_compile) 2>&5
11700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11701 test $ac_status = 0; } 2>conftest.err
; then
11704 libobjs
=conftest.
$ac_objext
11706 wl
=$lt_prog_compiler_wl
11707 pic_flag
=$lt_prog_compiler_pic
11713 lt_save_allow_undefined_flag
=$allow_undefined_flag
11714 allow_undefined_flag
=
11715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11716 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11719 test $ac_status = 0; }
11721 lt_cv_archive_cmds_need_lc
=no
11723 lt_cv_archive_cmds_need_lc
=yes
11725 allow_undefined_flag
=$lt_save_allow_undefined_flag
11727 cat conftest.err
1>&5
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11733 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11734 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11893 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11895 if test "$GCC" = yes; then
11897 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11898 *) lt_awk_arg
="/^libraries:/" ;;
11901 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11902 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11904 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11905 case $lt_search_path_spec in
11907 # if the path contains ";" then we assume it to be the separator
11908 # otherwise default to the standard path separator (i.e. ":") - it is
11909 # assumed that no part of a normal pathname contains ";" but that should
11910 # okay in the real world where ";" in dirpaths is itself problematic.
11911 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11914 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11917 # Ok, now we have the path, separated by spaces, we can step through it
11918 # and add multilib dir if necessary.
11919 lt_tmp_lt_search_path_spec
=
11920 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11921 for lt_sys_path
in $lt_search_path_spec; do
11922 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11923 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11925 test -d "$lt_sys_path" && \
11926 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11929 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11930 BEGIN {RS=" "; FS="/|\n";} {
11933 for (lt_i = NF; lt_i > 0; lt_i--) {
11934 if ($lt_i != "" && $lt_i != ".") {
11935 if ($lt_i == "..") {
11938 if (lt_count == 0) {
11939 lt_foo="/" $lt_i lt_foo;
11946 if (lt_foo != "") { lt_freq[lt_foo]++; }
11947 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11949 # AWK program above erroneously prepends '/' to C:/dos/paths
11952 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11953 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11955 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11957 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11959 library_names_spec
=
11960 libname_spec
='lib$name'
11964 postuninstall_cmds
=
11968 shlibpath_overrides_runpath
=unknown
11970 dynamic_linker
="$host_os ld.so"
11971 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11972 need_lib_prefix
=unknown
11973 hardcode_into_libs
=no
11975 # when you set need_version to no, make sure it does not cause -set_version
11976 # flags to be left without arguments
11977 need_version
=unknown
11981 version_type
=linux
# correct to gnu/linux during the next big refactor
11982 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11983 shlibpath_var
=LIBPATH
11985 # AIX 3 has no versioning support, so we append a major version to the name.
11986 soname_spec
='${libname}${release}${shared_ext}$major'
11990 version_type
=linux
# correct to gnu/linux during the next big refactor
11993 hardcode_into_libs
=yes
11994 if test "$host_cpu" = ia64
; then
11995 # AIX 5 supports IA64
11996 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11997 shlibpath_var
=LD_LIBRARY_PATH
11999 # With GCC up to 2.95.x, collect2 would create an import file
12000 # for dependence libraries. The import file would start with
12001 # the line `#! .'. This would cause the generated library to
12002 # depend on `.', always an invalid library. This was fixed in
12003 # development snapshots of GCC prior to 3.0.
12005 aix4 | aix4.
[01] | aix4.
[01].
*)
12006 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12008 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
12011 can_build_shared
=no
12015 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12016 # soname into executable. Probably we can add versioning support to
12017 # collect2, so additional links can be useful in future.
12018 if test "$aix_use_runtimelinking" = yes; then
12019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12020 # instead of lib<name>.a to let people know that these are not
12021 # typical AIX shared libraries.
12022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12024 # We preserve .a as extension for shared libraries through AIX4.2
12025 # and later when we are not doing run time linking.
12026 library_names_spec
='${libname}${release}.a $libname.a'
12027 soname_spec
='${libname}${release}${shared_ext}$major'
12029 shlibpath_var
=LIBPATH
12036 # Since July 2007 AmigaOS4 officially supports .so libraries.
12037 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12038 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 library_names_spec
='$libname.ixlibrary $libname.a'
12042 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12043 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'
12049 library_names_spec
='${libname}${shared_ext}'
12050 dynamic_linker
="$host_os ld.so"
12051 shlibpath_var
=LIBRARY_PATH
12055 version_type
=linux
# correct to gnu/linux during the next big refactor
12057 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12058 soname_spec
='${libname}${release}${shared_ext}$major'
12059 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
12060 shlibpath_var
=LD_LIBRARY_PATH
12061 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12062 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
12063 # the default ld.so.conf also contains /usr/contrib/lib and
12064 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12065 # libtool to hard-code these into programs
12068 cygwin
* | mingw
* | pw32
* | cegcc
*)
12069 version_type
=windows
12074 case $GCC,$cc_basename in
12077 library_names_spec
='$libname.dll.a'
12078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12079 postinstall_cmds
='base_file=`basename \${file}`~
12080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12081 dldir=$destdir/`dirname \$dlpath`~
12082 test -d \$dldir || mkdir -p \$dldir~
12083 $install_prog $dir/$dlname \$dldir/$dlname~
12084 chmod a+x \$dldir/$dlname~
12085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12088 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12089 dlpath=$dir/\$dldll~
12091 shlibpath_overrides_runpath
=yes
12095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12096 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12098 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
12101 # MinGW DLLs use traditional 'lib' prefix
12102 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12105 # pw32 DLLs use 'pw' prefix rather than 'lib'
12106 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12109 dynamic_linker
='Win32 ld.exe'
12114 libname_spec
='$name'
12115 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12116 library_names_spec
='${libname}.dll.lib'
12120 sys_lib_search_path_spec
=
12123 for lt_path
in $LIB
12126 # Let DOS variable expansion print the short 8.3 style file name.
12127 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12128 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
12131 # Convert to MSYS style.
12132 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12135 # Convert to unix form, then to dos form, then back to unix form
12136 # but this time dos style (no spaces!) so that the unix form looks
12137 # like /cygdrive/c/PROGRA~1:/cygdr...
12138 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
12139 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12140 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12143 sys_lib_search_path_spec
="$LIB"
12144 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
12145 # It is most probably a Windows format PATH.
12146 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12148 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12150 # FIXME: find the short name or the path components, as spaces are
12151 # common. (e.g. "Program Files" -> "PROGRA~1")
12155 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12156 postinstall_cmds
='base_file=`basename \${file}`~
12157 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12158 dldir=$destdir/`dirname \$dlpath`~
12159 test -d \$dldir || mkdir -p \$dldir~
12160 $install_prog $dir/$dlname \$dldir/$dlname'
12161 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12162 dlpath=$dir/\$dldll~
12164 shlibpath_overrides_runpath
=yes
12165 dynamic_linker
='Win32 link.exe'
12169 # Assume MSVC wrapper
12170 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12171 dynamic_linker
='Win32 ld.exe'
12174 # FIXME: first we should search . and the directory the executable is in
12178 darwin
* | rhapsody
*)
12179 dynamic_linker
="$host_os dyld"
12180 version_type
=darwin
12183 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12184 soname_spec
='${libname}${release}${major}$shared_ext'
12185 shlibpath_overrides_runpath
=yes
12186 shlibpath_var
=DYLD_LIBRARY_PATH
12187 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
12189 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
12190 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
12194 version_type
=linux
# correct to gnu/linux during the next big refactor
12197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12198 soname_spec
='${libname}${release}${shared_ext}$major'
12199 shlibpath_var
=LD_LIBRARY_PATH
12202 freebsd
* | dragonfly
*)
12203 # DragonFly does not have aout. When/if they implement a new
12204 # versioning mechanism, adjust this.
12205 if test -x /usr
/bin
/objformat
; then
12206 objformat
=`/usr/bin/objformat`
12209 freebsd
[23].
*) objformat
=aout
;;
12210 *) objformat
=elf
;;
12213 version_type
=freebsd-
$objformat
12214 case $version_type in
12216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12221 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12225 shlibpath_var
=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath
=yes
12230 freebsd3.
[01]* | freebsdelf3.
[01]*)
12231 shlibpath_overrides_runpath
=yes
12232 hardcode_into_libs
=yes
12234 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
12235 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
12236 shlibpath_overrides_runpath
=no
12237 hardcode_into_libs
=yes
12239 *) # from 4.6 on, and DragonFly
12240 shlibpath_overrides_runpath
=yes
12241 hardcode_into_libs
=yes
12247 version_type
=linux
# correct to gnu/linux during the next big refactor
12250 dynamic_linker
="$host_os runtime_loader"
12251 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12252 soname_spec
='${libname}${release}${shared_ext}$major'
12253 shlibpath_var
=LIBRARY_PATH
12254 shlibpath_overrides_runpath
=yes
12255 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12256 hardcode_into_libs
=yes
12259 hpux9
* | hpux10
* | hpux11
*)
12260 # Give a soname corresponding to the major version so that dld.sl refuses to
12261 # link against other versions.
12268 hardcode_into_libs
=yes
12269 dynamic_linker
="$host_os dld.so"
12270 shlibpath_var
=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 soname_spec
='${libname}${release}${shared_ext}$major'
12274 if test "X$HPUX_IA64_MODE" = X32
; then
12275 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12277 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
12279 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12283 hardcode_into_libs
=yes
12284 dynamic_linker
="$host_os dld.sl"
12285 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
12286 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
12287 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288 soname_spec
='${libname}${release}${shared_ext}$major'
12289 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12290 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
12294 dynamic_linker
="$host_os dld.sl"
12295 shlibpath_var
=SHLIB_PATH
12296 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
12297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12298 soname_spec
='${libname}${release}${shared_ext}$major'
12301 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12302 postinstall_cmds
='chmod 555 $lib'
12303 # or fails outright, so override atomically:
12304 install_override_mode
=555
12308 version_type
=linux
# correct to gnu/linux during the next big refactor
12311 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12312 soname_spec
='${libname}${release}${shared_ext}$major'
12313 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
12314 shlibpath_var
=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath
=no
12316 hardcode_into_libs
=yes
12319 irix5
* | irix6
* | nonstopux
*)
12321 nonstopux
*) version_type
=nonstopux
;;
12323 if test "$lt_cv_prog_gnu_ld" = yes; then
12324 version_type
=linux
# correct to gnu/linux during the next big refactor
12331 soname_spec
='${libname}${release}${shared_ext}$major'
12332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12334 irix5
* | nonstopux
*)
12335 libsuff
= shlibsuff
=
12338 case $LD in # libtool.m4 will add one of these switches to LD
12339 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
12340 libsuff
= shlibsuff
= libmagic
=32-bit;;
12341 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
12342 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
12343 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
12344 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
12345 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
12349 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
12350 shlibpath_overrides_runpath
=no
12351 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12352 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
12353 hardcode_into_libs
=yes
12356 # No shared lib support for Linux oldld, aout, or coff.
12357 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
12361 # This must be glibc/ELF.
12362 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
12363 version_type
=linux
# correct to gnu/linux during the next big refactor
12366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 soname_spec
='${libname}${release}${shared_ext}$major'
12368 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12369 shlibpath_var
=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath
=no
12372 # Some binutils ld are patched to set DT_RUNPATH
12373 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
12374 $as_echo_n "(cached) " >&6
12376 lt_cv_shlibpath_overrides_runpath
=no
12377 save_LDFLAGS
=$LDFLAGS
12378 save_libdir
=$libdir
12379 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12380 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12392 if ac_fn_c_try_link
"$LINENO"; then :
12393 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
12394 lt_cv_shlibpath_overrides_runpath
=yes
12397 rm -f core conftest.err conftest.
$ac_objext \
12398 conftest
$ac_exeext conftest.
$ac_ext
12399 LDFLAGS
=$save_LDFLAGS
12400 libdir
=$save_libdir
12404 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
12406 # This implies no fast_install, which is unacceptable.
12407 # Some rework will be needed to allow for fast_install
12408 # before this can be enabled.
12409 hardcode_into_libs
=yes
12411 # Append ld.so.conf contents to the search path
12412 if test -f /etc
/ld.so.conf
; then
12413 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' ' '`
12414 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
12417 # We used to test for /lib/ld.so.1 and disable shared libraries on
12418 # powerpc, because MkLinux only supported shared libraries with the
12419 # GNU dynamic linker. Since this was broken with cross compilers,
12420 # most powerpc-linux boxes support dynamic linking these days and
12421 # people can always --disable-shared, the test was removed, and we
12422 # assume the GNU/Linux dynamic linker is in use.
12423 dynamic_linker
='GNU/Linux ld.so'
12430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12431 soname_spec
='${libname}${release}${shared_ext}$major'
12432 shlibpath_var
=LD_LIBRARY_PATH
12433 shlibpath_overrides_runpath
=no
12434 hardcode_into_libs
=yes
12435 dynamic_linker
='NetBSD ld.elf_so'
12442 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12444 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12445 dynamic_linker
='NetBSD (a.out) ld.so'
12447 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12448 soname_spec
='${libname}${release}${shared_ext}$major'
12449 dynamic_linker
='NetBSD ld.elf_so'
12451 shlibpath_var
=LD_LIBRARY_PATH
12452 shlibpath_overrides_runpath
=yes
12453 hardcode_into_libs
=yes
12457 version_type
=linux
# correct to gnu/linux during the next big refactor
12458 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12459 shlibpath_var
=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath
=yes
12467 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12468 soname_spec
='${libname}${release}${shared_ext}$major'
12469 shlibpath_var
=LD_LIBRARY_PATH
12470 shlibpath_overrides_runpath
=no
12471 hardcode_into_libs
=yes
12472 dynamic_linker
='ldqnx.so'
12477 sys_lib_dlsearch_path_spec
="/usr/lib"
12479 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12481 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
12482 *) need_version
=no
;;
12484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12485 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12486 shlibpath_var
=LD_LIBRARY_PATH
12487 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489 openbsd2.
[89] | openbsd2.
[89].
*)
12490 shlibpath_overrides_runpath
=no
12493 shlibpath_overrides_runpath
=yes
12497 shlibpath_overrides_runpath
=yes
12502 libname_spec
='$name'
12505 library_names_spec
='$libname${shared_ext} $libname.a'
12506 dynamic_linker
='OS/2 ld.exe'
12507 shlibpath_var
=LIBPATH
12510 osf3
* | osf4
* | osf5
*)
12514 soname_spec
='${libname}${release}${shared_ext}$major'
12515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12516 shlibpath_var
=LD_LIBRARY_PATH
12517 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12518 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
12526 version_type
=linux
# correct to gnu/linux during the next big refactor
12529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12530 soname_spec
='${libname}${release}${shared_ext}$major'
12531 shlibpath_var
=LD_LIBRARY_PATH
12532 shlibpath_overrides_runpath
=yes
12533 hardcode_into_libs
=yes
12534 # ldd complains unless libraries are executable
12535 postinstall_cmds
='chmod +x $lib'
12540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12541 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12542 shlibpath_var
=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath
=yes
12544 if test "$with_gnu_ld" = yes; then
12551 version_type
=linux
# correct to gnu/linux during the next big refactor
12552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 soname_spec
='${libname}${release}${shared_ext}$major'
12554 shlibpath_var
=LD_LIBRARY_PATH
12555 case $host_vendor in
12557 shlibpath_overrides_runpath
=no
12559 runpath_var
=LD_RUN_PATH
12567 shlibpath_overrides_runpath
=no
12568 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
12574 if test -d /usr
/nec
;then
12575 version_type
=linux
# correct to gnu/linux during the next big refactor
12576 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12577 soname_spec
='$libname${shared_ext}.$major'
12578 shlibpath_var
=LD_LIBRARY_PATH
12582 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12583 version_type
=freebsd-elf
12586 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12587 soname_spec
='${libname}${release}${shared_ext}$major'
12588 shlibpath_var
=LD_LIBRARY_PATH
12589 shlibpath_overrides_runpath
=yes
12590 hardcode_into_libs
=yes
12591 if test "$with_gnu_ld" = yes; then
12592 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12594 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12597 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12601 sys_lib_dlsearch_path_spec
='/usr/lib'
12605 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12606 version_type
=linux
# correct to gnu/linux during the next big refactor
12609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 shlibpath_var
=LD_LIBRARY_PATH
12611 shlibpath_overrides_runpath
=no
12612 hardcode_into_libs
=yes
12616 version_type
=linux
# correct to gnu/linux during the next big refactor
12617 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12618 soname_spec
='${libname}${release}${shared_ext}$major'
12619 shlibpath_var
=LD_LIBRARY_PATH
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12627 $as_echo "$dynamic_linker" >&6; }
12628 test "$dynamic_linker" = no
&& can_build_shared
=no
12630 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12631 if test "$GCC" = yes; then
12632 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12635 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12636 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12638 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12639 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12734 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12736 if test -n "$hardcode_libdir_flag_spec" ||
12737 test -n "$runpath_var" ||
12738 test "X$hardcode_automatic" = "Xyes" ; then
12740 # We can hardcode non-existent directories.
12741 if test "$hardcode_direct" != no
&&
12742 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12743 # have to relink, otherwise we might link with an installed library
12744 # when we should be linking with a yet-to-be-installed one
12745 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12746 test "$hardcode_minus_L" != no
; then
12747 # Linking always hardcodes the temporary library directory.
12748 hardcode_action
=relink
12750 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12751 hardcode_action
=immediate
12754 # We cannot hardcode anything, or else we can only hardcode existing
12756 hardcode_action
=unsupported
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12759 $as_echo "$hardcode_action" >&6; }
12761 if test "$hardcode_action" = relink ||
12762 test "$inherit_rpath" = yes; then
12763 # Fast installation is not supported
12764 enable_fast_install
=no
12765 elif test "$shlibpath_overrides_runpath" = yes ||
12766 test "$enable_shared" = no
; then
12767 # Fast installation is not necessary
12768 enable_fast_install
=needless
12776 if test "x$enable_dlopen" != xyes
; then
12777 enable_dlopen
=unknown
12778 enable_dlopen_self
=unknown
12779 enable_dlopen_self_static
=unknown
12786 lt_cv_dlopen
="load_add_on"
12788 lt_cv_dlopen_self
=yes
12791 mingw
* | pw32
* | cegcc
*)
12792 lt_cv_dlopen
="LoadLibrary"
12797 lt_cv_dlopen
="dlopen"
12802 # if libdl is installed we need to link against it
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12804 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12805 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12806 $as_echo_n "(cached) " >&6
12808 ac_check_lib_save_LIBS
=$LIBS
12810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12813 /* Override any GCC internal prototype to avoid an error.
12814 Use char because int might match the return type of a GCC
12815 builtin and then its argument prototype would still apply. */
12828 if ac_fn_c_try_link
"$LINENO"; then :
12829 ac_cv_lib_dl_dlopen
=yes
12831 ac_cv_lib_dl_dlopen
=no
12833 rm -f core conftest.err conftest.
$ac_objext \
12834 conftest
$ac_exeext conftest.
$ac_ext
12835 LIBS
=$ac_check_lib_save_LIBS
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12838 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12839 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12840 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12843 lt_cv_dlopen
="dyld"
12845 lt_cv_dlopen_self
=yes
12852 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12853 if test "x$ac_cv_func_shl_load" = xyes
; then :
12854 lt_cv_dlopen
="shl_load"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12857 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12858 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12859 $as_echo_n "(cached) " >&6
12861 ac_check_lib_save_LIBS
=$LIBS
12863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12866 /* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12876 return shl_load ();
12881 if ac_fn_c_try_link
"$LINENO"; then :
12882 ac_cv_lib_dld_shl_load
=yes
12884 ac_cv_lib_dld_shl_load
=no
12886 rm -f core conftest.err conftest.
$ac_objext \
12887 conftest
$ac_exeext conftest.
$ac_ext
12888 LIBS
=$ac_check_lib_save_LIBS
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12891 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12892 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12893 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12895 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12896 if test "x$ac_cv_func_dlopen" = xyes
; then :
12897 lt_cv_dlopen
="dlopen"
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12900 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12901 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12902 $as_echo_n "(cached) " >&6
12904 ac_check_lib_save_LIBS
=$LIBS
12906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12909 /* Override any GCC internal prototype to avoid an error.
12910 Use char because int might match the return type of a GCC
12911 builtin and then its argument prototype would still apply. */
12924 if ac_fn_c_try_link
"$LINENO"; then :
12925 ac_cv_lib_dl_dlopen
=yes
12927 ac_cv_lib_dl_dlopen
=no
12929 rm -f core conftest.err conftest.
$ac_objext \
12930 conftest
$ac_exeext conftest.
$ac_ext
12931 LIBS
=$ac_check_lib_save_LIBS
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12934 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12935 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12936 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12939 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12940 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12941 $as_echo_n "(cached) " >&6
12943 ac_check_lib_save_LIBS
=$LIBS
12944 LIBS
="-lsvld $LIBS"
12945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12963 if ac_fn_c_try_link
"$LINENO"; then :
12964 ac_cv_lib_svld_dlopen
=yes
12966 ac_cv_lib_svld_dlopen
=no
12968 rm -f core conftest.err conftest.
$ac_objext \
12969 conftest
$ac_exeext conftest.
$ac_ext
12970 LIBS
=$ac_check_lib_save_LIBS
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12973 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12974 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12975 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12978 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12979 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12980 $as_echo_n "(cached) " >&6
12982 ac_check_lib_save_LIBS
=$LIBS
12984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12985 /* end confdefs.h. */
12987 /* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
12997 return dld_link ();
13002 if ac_fn_c_try_link
"$LINENO"; then :
13003 ac_cv_lib_dld_dld_link
=yes
13005 ac_cv_lib_dld_dld_link
=no
13007 rm -f core conftest.err conftest.
$ac_objext \
13008 conftest
$ac_exeext conftest.
$ac_ext
13009 LIBS
=$ac_check_lib_save_LIBS
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13012 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13013 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
13014 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
13035 if test "x$lt_cv_dlopen" != xno
; then
13041 case $lt_cv_dlopen in
13043 save_CPPFLAGS
="$CPPFLAGS"
13044 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
13046 save_LDFLAGS
="$LDFLAGS"
13047 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
13050 LIBS
="$lt_cv_dlopen_libs $LIBS"
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13053 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13054 if ${lt_cv_dlopen_self+:} false
; then :
13055 $as_echo_n "(cached) " >&6
13057 if test "$cross_compiling" = yes; then :
13058 lt_cv_dlopen_self
=cross
13060 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13061 lt_status
=$lt_dlunknown
13062 cat > conftest.
$ac_ext <<_LT_EOF
13063 #line $LINENO "configure"
13064 #include "confdefs.h"
13073 # define LT_DLGLOBAL RTLD_GLOBAL
13076 # define LT_DLGLOBAL DL_GLOBAL
13078 # define LT_DLGLOBAL 0
13082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13083 find out it does not work in some platform. */
13084 #ifndef LT_DLLAZY_OR_NOW
13086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13089 # define LT_DLLAZY_OR_NOW DL_LAZY
13092 # define LT_DLLAZY_OR_NOW RTLD_NOW
13095 # define LT_DLLAZY_OR_NOW DL_NOW
13097 # define LT_DLLAZY_OR_NOW 0
13104 /* When -fvisbility=hidden is used, assume the code has been annotated
13105 correspondingly for the symbols needed. */
13106 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13107 int fnord () __attribute__((visibility("default")));
13110 int fnord () { return 42; }
13113 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13114 int status = $lt_dlunknown;
13118 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13121 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13122 else puts (dlerror ());
13124 /* dlclose (self); */
13132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13133 (eval $ac_link) 2>&5
13135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13136 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13137 (.
/conftest
; exit; ) >&5 2>/dev
/null
13139 case x
$lt_status in
13140 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
13141 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
13142 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
13145 # compilation failed
13146 lt_cv_dlopen_self
=no
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13154 $as_echo "$lt_cv_dlopen_self" >&6; }
13156 if test "x$lt_cv_dlopen_self" = xyes
; then
13157 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13159 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13160 if ${lt_cv_dlopen_self_static+:} false
; then :
13161 $as_echo_n "(cached) " >&6
13163 if test "$cross_compiling" = yes; then :
13164 lt_cv_dlopen_self_static
=cross
13166 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
13167 lt_status
=$lt_dlunknown
13168 cat > conftest.
$ac_ext <<_LT_EOF
13169 #line $LINENO "configure"
13170 #include "confdefs.h"
13179 # define LT_DLGLOBAL RTLD_GLOBAL
13182 # define LT_DLGLOBAL DL_GLOBAL
13184 # define LT_DLGLOBAL 0
13188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13189 find out it does not work in some platform. */
13190 #ifndef LT_DLLAZY_OR_NOW
13192 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13195 # define LT_DLLAZY_OR_NOW DL_LAZY
13198 # define LT_DLLAZY_OR_NOW RTLD_NOW
13201 # define LT_DLLAZY_OR_NOW DL_NOW
13203 # define LT_DLLAZY_OR_NOW 0
13210 /* When -fvisbility=hidden is used, assume the code has been annotated
13211 correspondingly for the symbols needed. */
13212 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13213 int fnord () __attribute__((visibility("default")));
13216 int fnord () { return 42; }
13219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13220 int status = $lt_dlunknown;
13224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13227 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13228 else puts (dlerror ());
13230 /* dlclose (self); */
13238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13239 (eval $ac_link) 2>&5
13241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13242 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
13243 (.
/conftest
; exit; ) >&5 2>/dev
/null
13245 case x
$lt_status in
13246 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
13247 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
13248 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
13251 # compilation failed
13252 lt_cv_dlopen_self_static
=no
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13260 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13263 CPPFLAGS
="$save_CPPFLAGS"
13264 LDFLAGS
="$save_LDFLAGS"
13269 case $lt_cv_dlopen_self in
13270 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
13271 *) enable_dlopen_self
=unknown
;;
13274 case $lt_cv_dlopen_self_static in
13275 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
13276 *) enable_dlopen_self_static
=unknown
;;
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13299 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13300 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
13301 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
13302 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13306 # FIXME - insert some real tests, host_os isn't really good enough
13309 if test -n "$STRIP" ; then
13310 striplib
="$STRIP -x"
13311 old_striplib
="$STRIP -S"
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13313 $as_echo "yes" >&6; }
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316 $as_echo "no" >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321 $as_echo "no" >&6; }
13337 # Report which library types will actually be built
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13339 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13341 $as_echo "$can_build_shared" >&6; }
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13344 $as_echo_n "checking whether to build shared libraries... " >&6; }
13345 test "$can_build_shared" = "no" && enable_shared
=no
13347 # On AIX, shared libraries and static libraries use the same namespace, and
13348 # are all built from PIC.
13351 test "$enable_shared" = yes && enable_static
=no
13352 if test -n "$RANLIB"; then
13353 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
13354 postinstall_cmds
='$RANLIB $lib'
13359 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
13360 test "$enable_shared" = yes && enable_static
=no
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13365 $as_echo "$enable_shared" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13368 $as_echo_n "checking whether to build static libraries... " >&6; }
13369 # Make sure either enable_shared or enable_static is yes.
13370 test "$enable_shared" = yes || enable_static
=yes
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13372 $as_echo "$enable_static" >&6; }
13379 ac_cpp
='$CPP $CPPFLAGS'
13380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13400 ac_config_commands
="$ac_config_commands libtool"
13405 # Only expand once:
13408 if test -n "$ac_tool_prefix"; then
13409 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
13410 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_prog_RC+:} false
; then :
13414 $as_echo_n "(cached) " >&6
13416 if test -n "$RC"; then
13417 ac_cv_prog_RC
="$RC" # Let the user override the test.
13419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13420 for as_dir
in $PATH
13423 test -z "$as_dir" && as_dir
=.
13424 for ac_exec_ext
in '' $ac_executable_extensions; do
13425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13426 ac_cv_prog_RC
="${ac_tool_prefix}windres"
13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437 if test -n "$RC"; then
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
13439 $as_echo "$RC" >&6; }
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13447 if test -z "$ac_cv_prog_RC"; then
13449 # Extract the first word of "windres", so it can be a program name with args.
13450 set dummy windres
; ac_word
=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if ${ac_cv_prog_ac_ct_RC+:} false
; then :
13454 $as_echo_n "(cached) " >&6
13456 if test -n "$ac_ct_RC"; then
13457 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
13459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13460 for as_dir
in $PATH
13463 test -z "$as_dir" && as_dir
=.
13464 for ac_exec_ext
in '' $ac_executable_extensions; do
13465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13466 ac_cv_prog_ac_ct_RC
="windres"
13467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13476 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
13477 if test -n "$ac_ct_RC"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
13479 $as_echo "$ac_ct_RC" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13485 if test "x$ac_ct_RC" = x
; then
13488 case $cross_compiling:$ac_tool_warned in
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492 ac_tool_warned
=yes ;;
13497 RC
="$ac_cv_prog_RC"
13503 # Source file extension for RC test sources.
13506 # Object file extension for compiled RC test sources.
13510 # Code to be used in simple compile tests
13511 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
13513 # Code to be used in simple link tests
13514 lt_simple_link_test_code
="$lt_simple_compile_test_code"
13516 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13523 # If no C compiler was specified, use CC.
13526 # If no C compiler flags were specified, use CFLAGS.
13527 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13529 # Allow CC to be a program name with arguments.
13533 # save warnings/boilerplate of simple test code
13534 ac_outfile
=conftest.
$ac_objext
13535 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13536 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13537 _lt_compiler_boilerplate
=`cat conftest.err`
13540 ac_outfile
=conftest.
$ac_objext
13541 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13542 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13543 _lt_linker_boilerplate
=`cat conftest.err`
13547 # Allow CC to be a program name with arguments.
13549 lt_save_CFLAGS
=$CFLAGS
13556 for cc_temp
in $compiler""; do
13558 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
13559 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
13564 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13566 lt_cv_prog_compiler_c_o_RC
=yes
13568 if test -n "$compiler"; then
13577 ac_cpp
='$CPP $CPPFLAGS'
13578 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13579 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13580 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13583 CFLAGS
=$lt_save_CFLAGS
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13588 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13589 if ${ac_cv_c_const+:} false
; then :
13590 $as_echo_n "(cached) " >&6
13592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13599 #ifndef __cplusplus
13600 /* Ultrix mips cc rejects this sort of thing. */
13601 typedef int charset[2];
13602 const charset cs = { 0, 0 };
13603 /* SunOS 4.1.1 cc rejects this. */
13604 char const *const *pcpcc;
13606 /* NEC SVR4.0.2 mips cc rejects this. */
13607 struct point {int x, y;};
13608 static struct point const zero = {0,0};
13609 /* AIX XL C 1.02.0.0 rejects this.
13610 It does not let you subtract one const X* pointer from another in
13611 an arm of an if-expression whose if-part is not a constant
13613 const char *g = "string";
13614 pcpcc = &g + (g ? g-g : 0);
13615 /* HPUX 7.0 cc rejects these. */
13617 ppc = (char**) pcpcc;
13618 pcpcc = (char const *const *) ppc;
13619 { /* SCO 3.2v4 cc rejects this sort of thing. */
13622 char const *s = 0 ? (char *) 0 : (char const *) 0;
13627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13628 int x[] = {25, 17};
13629 const int *foo = &x[0];
13632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13633 typedef const int *iptr;
13637 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13639 struct s { int j; const int *ap[3]; } bx;
13640 struct s *b = &bx; b->j = 5;
13642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13643 const int foo = 10;
13644 if (!foo) return 0;
13646 return !cs[0] && !zero.x;
13653 if ac_fn_c_try_compile
"$LINENO"; then :
13658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13661 $as_echo "$ac_cv_c_const" >&6; }
13662 if test $ac_cv_c_const = no
; then
13664 $as_echo "#define const /**/" >>confdefs.h
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13669 $as_echo_n "checking for inline... " >&6; }
13670 if ${ac_cv_c_inline+:} false
; then :
13671 $as_echo_n "(cached) " >&6
13674 for ac_kw
in inline __inline__ __inline
; do
13675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #ifndef __cplusplus
13679 static $ac_kw foo_t static_foo () {return 0; }
13680 $ac_kw foo_t foo () {return 0; }
13684 if ac_fn_c_try_compile
"$LINENO"; then :
13685 ac_cv_c_inline
=$ac_kw
13687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13688 test "$ac_cv_c_inline" != no
&& break
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13693 $as_echo "$ac_cv_c_inline" >&6; }
13695 case $ac_cv_c_inline in
13698 case $ac_cv_c_inline in
13700 *) ac_val
=$ac_cv_c_inline;;
13702 cat >>confdefs.h
<<_ACEOF
13703 #ifndef __cplusplus
13704 #define inline $ac_val
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
13711 $as_echo_n "checking for working volatile... " >&6; }
13712 if ${ac_cv_c_volatile+:} false
; then :
13713 $as_echo_n "(cached) " >&6
13715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13723 int * volatile y = (int *) 0;
13729 if ac_fn_c_try_compile
"$LINENO"; then :
13730 ac_cv_c_volatile
=yes
13732 ac_cv_c_volatile
=no
13734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
13737 $as_echo "$ac_cv_c_volatile" >&6; }
13738 if test $ac_cv_c_volatile = no
; then
13740 $as_echo "#define volatile /**/" >>confdefs.h
13744 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13745 if test "x$ac_cv_type_off_t" = xyes
; then :
13749 cat >>confdefs.h
<<_ACEOF
13750 #define off_t long int
13755 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13756 if test "x$ac_cv_type_pid_t" = xyes
; then :
13760 cat >>confdefs.h
<<_ACEOF
13766 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13767 if test "x$ac_cv_type_size_t" = xyes
; then :
13771 cat >>confdefs.h
<<_ACEOF
13772 #define size_t unsigned int
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
13778 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
13779 if ${ac_cv_type_uid_t+:} false
; then :
13780 $as_echo_n "(cached) " >&6
13782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13783 /* end confdefs.h. */
13784 #include <sys/types.h>
13787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13788 $EGREP "uid_t" >/dev
/null
2>&1; then :
13789 ac_cv_type_uid_t
=yes
13791 ac_cv_type_uid_t
=no
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
13797 $as_echo "$ac_cv_type_uid_t" >&6; }
13798 if test $ac_cv_type_uid_t = no
; then
13800 $as_echo "#define uid_t int" >>confdefs.h
13803 $as_echo "#define gid_t int" >>confdefs.h
13807 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
13808 case $ac_cv_c_int8_t in #(
13812 cat >>confdefs.h
<<_ACEOF
13813 #define int8_t $ac_cv_c_int8_t
13818 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
13819 case $ac_cv_c_int16_t in #(
13823 cat >>confdefs.h
<<_ACEOF
13824 #define int16_t $ac_cv_c_int16_t
13829 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
13830 case $ac_cv_c_int32_t in #(
13834 cat >>confdefs.h
<<_ACEOF
13835 #define int32_t $ac_cv_c_int32_t
13840 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
13841 case $ac_cv_c_int64_t in #(
13845 cat >>confdefs.h
<<_ACEOF
13846 #define int64_t $ac_cv_c_int64_t
13851 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
13852 case $ac_cv_c_uint8_t in #(
13856 $as_echo "#define _UINT8_T 1" >>confdefs.h
13859 cat >>confdefs.h
<<_ACEOF
13860 #define uint8_t $ac_cv_c_uint8_t
13865 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
13866 case $ac_cv_c_uint16_t in #(
13871 cat >>confdefs.h
<<_ACEOF
13872 #define uint16_t $ac_cv_c_uint16_t
13877 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
13878 case $ac_cv_c_uint32_t in #(
13882 $as_echo "#define _UINT32_T 1" >>confdefs.h
13885 cat >>confdefs.h
<<_ACEOF
13886 #define uint32_t $ac_cv_c_uint32_t
13891 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
13892 case $ac_cv_c_uint64_t in #(
13896 $as_echo "#define _UINT64_T 1" >>confdefs.h
13899 cat >>confdefs.h
<<_ACEOF
13900 #define uint64_t $ac_cv_c_uint64_t
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13906 $as_echo_n "checking return type of signal handlers... " >&6; }
13907 if ${ac_cv_type_signal+:} false
; then :
13908 $as_echo_n "(cached) " >&6
13910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 #include <sys/types.h>
13913 #include <signal.h>
13918 return *(signal (0, 0)) (0) == 1;
13923 if ac_fn_c_try_compile
"$LINENO"; then :
13924 ac_cv_type_signal
=int
13926 ac_cv_type_signal
=void
13928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13931 $as_echo "$ac_cv_type_signal" >&6; }
13933 cat >>confdefs.h
<<_ACEOF
13934 #define RETSIGTYPE $ac_cv_type_signal
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
13939 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
13940 if ${ax_cv_cpp_vararg_macro_iso+:} false
; then :
13941 $as_echo_n "(cached) " >&6
13943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13944 /* end confdefs.h. */
13946 #define macro(a, ...) func(a, __VA_ARGS__)
13947 int func(int a, int b, int c);
13953 int i = macro(1, 2, 3);
13960 if ac_fn_c_try_compile
"$LINENO"; then :
13961 ax_cv_cpp_vararg_macro_iso
=yes
13963 ax_cv_cpp_vararg_macro_iso
=no
13966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
13970 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
13971 if test "x$ax_cv_cpp_vararg_macro_iso" = xyes
; then :
13973 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
13978 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
13979 if ${ax_cv_cpp_vararg_macro_gcc+:} false
; then :
13980 $as_echo_n "(cached) " >&6
13982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h. */
13985 #define macro(a, b...) func(a, b)
13986 int func(int a, int b, int c);
13992 int i = macro(1, 2, 3);
13999 if ac_fn_c_try_compile
"$LINENO"; then :
14000 ax_cv_cpp_vararg_macro_gcc
=yes
14002 ax_cv_cpp_vararg_macro_gcc
=no
14005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
14009 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
14010 if test "x$ax_cv_cpp_vararg_macro_gcc" = xyes
; then :
14012 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
14017 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
14018 #include <sys/types.h>
14020 #include <ws2tcpip.h>
14022 #include <sys/socket.h>
14027 if test "x$ac_cv_type_socklen_t" = xyes
; then :
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
14032 $as_echo_n "checking for socklen_t equivalent... " >&6; }
14033 if ${ax_cv_socklen_t_equiv+:} false
; then :
14034 $as_echo_n "(cached) " >&6
14037 #AS_CASE is not supported on <autoconf-2.60
14039 *-mingw*) ax_cv_socklen_t_equiv
=int
;;
14041 # Systems have either "struct sockaddr *" or
14042 # "void *" as the second argument to getpeername
14043 for arg2
in "struct sockaddr" void
; do
14044 for t
in int size_t unsigned long
"unsigned long"; do
14045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 #include <sys/types.h>
14049 #include <sys/socket.h>
14050 int getpeername (int, $arg2 *, $t *);
14057 getpeername(0,0,&len);
14064 if ac_fn_c_try_compile
"$LINENO"; then :
14065 ax_cv_socklen_t_equiv
="$t"; break
14068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14070 test -n "$ax_cv_socklen_t_equiv" && break
14075 if ${ax_cv_socklen_t_equiv:+false} :; then :
14076 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
14079 cat >>confdefs.h
<<_ACEOF
14080 #define socklen_t $ax_cv_socklen_t_equiv
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
14088 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
14095 $as_echo_n "checking for C compiler empty array size... " >&6; }
14096 if ${ax_cv_c_empty_array+:} false
; then :
14097 $as_echo_n "(cached) " >&6
14099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14106 struct { int foo; int bar[0]; } mystruct;
14113 if ac_fn_c_try_compile
"$LINENO"; then :
14114 ax_cv_c_empty_array
=0
14116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14123 struct { int foo; int bar[]; } mystruct;
14130 if ac_fn_c_try_compile
"$LINENO"; then :
14131 ax_cv_c_empty_array
=
14133 as_fn_error $?
"C compiler is unable to creaty empty arrays" "$LINENO" 5
14136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
14143 $as_echo "$ax_cv_c_empty_array" >&6; }
14144 cat >>confdefs.h
<<_ACEOF
14145 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
14148 # The cast to long int works around a bug in the HP C Compiler
14149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14151 # This bug is HP SR number 8606223364.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
14153 $as_echo_n "checking size of unsigned int... " >&6; }
14154 if ${ac_cv_sizeof_unsigned_int+:} false
; then :
14155 $as_echo_n "(cached) " >&6
14157 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
14160 if test "$ac_cv_type_unsigned_int" = yes; then
14161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14163 as_fn_error
77 "cannot compute sizeof (unsigned int)
14164 See \`config.log' for more details" "$LINENO" 5; }
14166 ac_cv_sizeof_unsigned_int
=0
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
14172 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
14176 cat >>confdefs.h
<<_ACEOF
14177 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
14181 # The cast to long int works around a bug in the HP C Compiler
14182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14184 # This bug is HP SR number 8606223364.
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
14186 $as_echo_n "checking size of unsigned long... " >&6; }
14187 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
14188 $as_echo_n "(cached) " >&6
14190 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
14193 if test "$ac_cv_type_unsigned_long" = yes; then
14194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14196 as_fn_error
77 "cannot compute sizeof (unsigned long)
14197 See \`config.log' for more details" "$LINENO" 5; }
14199 ac_cv_sizeof_unsigned_long
=0
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
14205 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
14209 cat >>confdefs.h
<<_ACEOF
14210 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
14215 stdio.h stdarg.h stdbool.h limits.h \
14216 time.h errno.h fcntl.h io.h direct.h \
14217 ctype.h sys
/types.h sys
/socket.h \
14218 signal.h unistd.h dlfcn.h \
14219 netinet
/in.h netinet
/in_systm.h \
14220 netinet
/tcp.h arpa
/inet.h netdb.h \
14221 windows.h winsock2.h ws2tcpip.h \
14224 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14225 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14226 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14227 cat >>confdefs.h
<<_ACEOF
14228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14236 sys
/time.h sys
/ioctl.h sys
/stat.h \
14237 sys
/mman.h sys
/file.h sys
/wait.h \
14238 unistd.h signal.h libgen.h stropts.h \
14239 syslog.h
pwd.h grp.h \
14240 sys
/sockio.h sys
/uio.h linux
/sockios.h \
14241 linux
/types.h sys
/poll.h sys
/epoll.h err.h \
14244 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14245 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14246 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14247 cat >>confdefs.h
<<_ACEOF
14248 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14257 #ifdef HAVE_STDLIB_H
14258 #include <stdlib.h>
14260 #ifdef HAVE_SYS_TYPES_H
14261 #include <sys/types.h>
14263 #ifdef HAVE_SYS_SOCKET_H
14264 #include <sys/socket.h>
14266 #ifdef HAVE_NETINET_IN_H
14267 #include <netinet/in.h>
14269 #ifdef HAVE_WINDOWS_H
14270 #include <windows.h>
14272 #ifdef HAVE_WINSOCK2_H
14273 #include <winsock2.h>
14275 #ifdef HAVE_WS2TCPIP_H
14276 #include <ws2tcpip.h>
14278 #ifdef HAVE_NETINET_IN_SYSTM_H
14279 #include <netinet/in_systm.h>
14281 #ifdef HAVE_NETINET_IP_H
14282 #include <netinet/ip.h>
14286 for ac_header
in net
/if.h netinet
/ip.h netinet
/if_ether.h resolv.h sys
/un.h net
/if_utun.h sys
/kern_control.h
14288 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14289 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
14292 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14293 cat >>confdefs.h
<<_ACEOF
14294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14302 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
14305 if test "x$ac_cv_type_in_addr_t" = xyes
; then :
14307 cat >>confdefs.h
<<_ACEOF
14308 #define HAVE_IN_ADDR_T 1
14314 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
14318 ac_fn_c_check_type
"$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
14321 if test "x$ac_cv_type_struct_iphdr" = xyes
; then :
14323 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
14327 ac_fn_c_check_type
"$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
14330 if test "x$ac_cv_type_struct_sock_extended_err" = xyes
; then :
14332 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
14336 ac_fn_c_check_type
"$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
14339 if test "x$ac_cv_type_struct_msghdr" = xyes
; then :
14341 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
14345 ac_fn_c_check_type
"$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
14348 if test "x$ac_cv_type_struct_cmsghdr" = xyes
; then :
14350 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
14354 ac_fn_c_check_type
"$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
14357 if test "x$ac_cv_type_struct_in_pktinfo" = xyes
; then :
14359 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
14363 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
14366 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
14369 as_fn_error $?
"struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
14372 ac_fn_c_check_decl
"$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
14375 if test "x$ac_cv_have_decl_SO_MARK" = xyes
; then :
14381 cat >>confdefs.h
<<_ACEOF
14382 #define HAVE_DECL_SO_MARK $ac_have_decl
14386 ac_fn_c_check_decl
"$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
14387 #ifdef HAVE_SIGNAL_H
14388 #include <signal.h>
14393 if test "x$ac_cv_have_decl_SIGHUP" = xyes
; then :
14399 cat >>confdefs.h
<<_ACEOF
14400 #define HAVE_DECL_SIGHUP $ac_have_decl
14402 if test $ac_have_decl = 1; then :
14406 $as_echo "#define SIGHUP 1" >>confdefs.h
14410 ac_fn_c_check_decl
"$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
14411 #ifdef HAVE_SIGNAL_H
14412 #include <signal.h>
14417 if test "x$ac_cv_have_decl_SIGINT" = xyes
; then :
14423 cat >>confdefs.h
<<_ACEOF
14424 #define HAVE_DECL_SIGINT $ac_have_decl
14426 if test $ac_have_decl = 1; then :
14430 $as_echo "#define SIGINT 2" >>confdefs.h
14434 ac_fn_c_check_decl
"$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
14435 #ifdef HAVE_SIGNAL_H
14436 #include <signal.h>
14441 if test "x$ac_cv_have_decl_SIGUSR1" = xyes
; then :
14447 cat >>confdefs.h
<<_ACEOF
14448 #define HAVE_DECL_SIGUSR1 $ac_have_decl
14450 if test $ac_have_decl = 1; then :
14454 $as_echo "#define SIGUSR1 10" >>confdefs.h
14458 ac_fn_c_check_decl
"$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
14459 #ifdef HAVE_SIGNAL_H
14460 #include <signal.h>
14465 if test "x$ac_cv_have_decl_SIGUSR2" = xyes
; then :
14471 cat >>confdefs.h
<<_ACEOF
14472 #define HAVE_DECL_SIGUSR2 $ac_have_decl
14474 if test $ac_have_decl = 1; then :
14478 $as_echo "#define SIGUSR2 12" >>confdefs.h
14482 ac_fn_c_check_decl
"$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
14483 #ifdef HAVE_SIGNAL_H
14484 #include <signal.h>
14489 if test "x$ac_cv_have_decl_SIGTERM" = xyes
; then :
14495 cat >>confdefs.h
<<_ACEOF
14496 #define HAVE_DECL_SIGTERM $ac_have_decl
14498 if test $ac_have_decl = 1; then :
14502 $as_echo "#define SIGTERM 15" >>confdefs.h
14507 for ac_header
in vfork.h
14509 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14510 if test "x$ac_cv_header_vfork_h" = xyes
; then :
14511 cat >>confdefs.h
<<_ACEOF
14512 #define HAVE_VFORK_H 1
14519 for ac_func
in fork vfork
14521 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14522 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14523 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14524 cat >>confdefs.h
<<_ACEOF
14525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14531 if test "x$ac_cv_func_fork" = xyes
; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14533 $as_echo_n "checking for working fork... " >&6; }
14534 if ${ac_cv_func_fork_works+:} false
; then :
14535 $as_echo_n "(cached) " >&6
14537 if test "$cross_compiling" = yes; then :
14538 ac_cv_func_fork_works
=cross
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 $ac_includes_default
14547 /* By Ruediger Kuhlmann. */
14548 return fork () < 0;
14554 if ac_fn_c_try_run
"$LINENO"; then :
14555 ac_cv_func_fork_works
=yes
14557 ac_cv_func_fork_works
=no
14559 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14560 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14565 $as_echo "$ac_cv_func_fork_works" >&6; }
14568 ac_cv_func_fork_works
=$ac_cv_func_fork
14570 if test "x$ac_cv_func_fork_works" = xcross
; then
14572 *-*-amigaos* |
*-*-msdosdjgpp*)
14573 # Override, as these systems have only a dummy fork() stub
14574 ac_cv_func_fork_works
=no
14577 ac_cv_func_fork_works
=yes
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14581 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14583 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14584 if test "x$ac_cv_func_vfork" = xyes
; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14586 $as_echo_n "checking for working vfork... " >&6; }
14587 if ${ac_cv_func_vfork_works+:} false
; then :
14588 $as_echo_n "(cached) " >&6
14590 if test "$cross_compiling" = yes; then :
14591 ac_cv_func_vfork_works
=cross
14593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14595 /* Thanks to Paul Eggert for this test. */
14596 $ac_includes_default
14597 #include <sys/wait.h>
14598 #ifdef HAVE_VFORK_H
14599 # include <vfork.h>
14601 /* On some sparc systems, changes by the child to local and incoming
14602 argument registers are propagated back to the parent. The compiler
14603 is told about this with #include <vfork.h>, but some compilers
14604 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14605 static variable whose address is put into a register that is
14606 clobbered by the vfork. */
14609 sparc_address_test (int arg)
14611 sparc_address_test (arg) int arg;
14614 static pid_t child;
14632 pid_t parent = getpid ();
14635 sparc_address_test (0);
14640 /* Here is another test for sparc vfork register problems. This
14641 test uses lots of local variables, at least as many local
14642 variables as main has allocated so far including compiler
14643 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14644 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14645 reuse the register of parent for one of the local variables,
14646 since it will think that parent can't possibly be used any more
14647 in this routine. Assigning to the local variable will thus
14648 munge parent in the parent process. */
14650 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14651 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14652 /* Convince the compiler that p..p7 are live; otherwise, it might
14653 use the same hardware register for all 8 local variables. */
14654 if (p != p1 || p != p2 || p != p3 || p != p4
14655 || p != p5 || p != p6 || p != p7)
14658 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14659 from child file descriptors. If the child closes a descriptor
14660 before it execs or exits, this munges the parent's descriptor
14661 as well. Test for this by closing stdout in the child. */
14662 _exit(close(fileno(stdout)) != 0);
14667 while (wait(&status) != child)
14670 /* Was there some problem with vforking? */
14673 /* Did the child fail? (This shouldn't happen.) */
14676 /* Did the vfork/compiler bug occur? */
14677 || parent != getpid()
14679 /* Did the file descriptor bug occur? */
14680 || fstat(fileno(stdout), &st) != 0
14685 if ac_fn_c_try_run
"$LINENO"; then :
14686 ac_cv_func_vfork_works
=yes
14688 ac_cv_func_vfork_works
=no
14690 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14691 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14696 $as_echo "$ac_cv_func_vfork_works" >&6; }
14699 if test "x$ac_cv_func_fork_works" = xcross
; then
14700 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14702 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14705 if test "x$ac_cv_func_vfork_works" = xyes
; then
14707 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14711 $as_echo "#define vfork fork" >>confdefs.h
14714 if test "x$ac_cv_func_fork_works" = xyes
; then
14716 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14722 daemon chroot getpwnam setuid nice system getpid dup dup2 \
14723 getpass strerror syslog openlog mlockall getgrnam setgid \
14724 setgroups stat flock readv writev
time gettimeofday \
14725 ctime memset vsnprintf strdup \
14726 setsid chdir putenv getpeername unlink \
14727 chsize ftruncate execve getpeereid
umask basename dirname access \
14731 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14732 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14733 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14734 cat >>confdefs.h
<<_ACEOF
14735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14743 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14744 if ${ac_cv_lib_dl_dlopen+:} false
; then :
14745 $as_echo_n "(cached) " >&6
14747 ac_check_lib_save_LIBS
=$LIBS
14749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 /* Override any GCC internal prototype to avoid an error.
14753 Use char because int might match the return type of a GCC
14754 builtin and then its argument prototype would still apply. */
14767 if ac_fn_c_try_link
"$LINENO"; then :
14768 ac_cv_lib_dl_dlopen
=yes
14770 ac_cv_lib_dl_dlopen
=no
14772 rm -f core conftest.err conftest.
$ac_objext \
14773 conftest
$ac_exeext conftest.
$ac_ext
14774 LIBS
=$ac_check_lib_save_LIBS
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14778 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
14786 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
14787 if ${ac_cv_lib_nsl_inet_ntoa+:} false
; then :
14788 $as_echo_n "(cached) " >&6
14790 ac_check_lib_save_LIBS
=$LIBS
14792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14795 /* Override any GCC internal prototype to avoid an error.
14796 Use char because int might match the return type of a GCC
14797 builtin and then its argument prototype would still apply. */
14805 return inet_ntoa ();
14810 if ac_fn_c_try_link
"$LINENO"; then :
14811 ac_cv_lib_nsl_inet_ntoa
=yes
14813 ac_cv_lib_nsl_inet_ntoa
=no
14815 rm -f core conftest.err conftest.
$ac_objext \
14816 conftest
$ac_exeext conftest.
$ac_ext
14817 LIBS
=$ac_check_lib_save_LIBS
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14820 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14821 if test "x$ac_cv_lib_nsl_inet_ntoa" = xyes
; then :
14822 SOCKETS_LIBS
="${SOCKETS_LIBS} -lnsl"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14827 $as_echo_n "checking for socket in -lsocket... " >&6; }
14828 if ${ac_cv_lib_socket_socket+:} false
; then :
14829 $as_echo_n "(cached) " >&6
14831 ac_check_lib_save_LIBS
=$LIBS
14832 LIBS
="-lsocket $LIBS"
14833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14834 /* end confdefs.h. */
14836 /* Override any GCC internal prototype to avoid an error.
14837 Use char because int might match the return type of a GCC
14838 builtin and then its argument prototype would still apply. */
14851 if ac_fn_c_try_link
"$LINENO"; then :
14852 ac_cv_lib_socket_socket
=yes
14854 ac_cv_lib_socket_socket
=no
14856 rm -f core conftest.err conftest.
$ac_objext \
14857 conftest
$ac_exeext conftest.
$ac_ext
14858 LIBS
=$ac_check_lib_save_LIBS
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14861 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14862 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
14863 SOCKETS_LIBS
="${SOCKETS_LIBS} -lsocket"
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
14868 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
14869 if ${ac_cv_lib_resolv_gethostbyname+:} false
; then :
14870 $as_echo_n "(cached) " >&6
14872 ac_check_lib_save_LIBS
=$LIBS
14873 LIBS
="-lresolv $LIBS"
14874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14875 /* end confdefs.h. */
14877 /* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14883 char gethostbyname ();
14887 return gethostbyname ();
14892 if ac_fn_c_try_link
"$LINENO"; then :
14893 ac_cv_lib_resolv_gethostbyname
=yes
14895 ac_cv_lib_resolv_gethostbyname
=no
14897 rm -f core conftest.err conftest.
$ac_objext \
14898 conftest
$ac_exeext conftest.
$ac_ext
14899 LIBS
=$ac_check_lib_save_LIBS
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
14902 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
14903 if test "x$ac_cv_lib_resolv_gethostbyname" = xyes
; then :
14904 SOCKETS_LIBS
="${SOCKETS_LIBS} -lresolv"
14911 LIBS
="${LIBS} ${SOCKETS_LIBS}"
14912 for ac_func
in sendmsg recvmsg inet_ntop inet_pton
14914 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14915 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14916 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14917 cat >>confdefs.h
<<_ACEOF
14918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14924 for ac_func
in res_init
14926 ac_fn_c_check_func
"$LINENO" "res_init" "ac_cv_func_res_init"
14927 if test "x$ac_cv_func_res_init" = xyes
; then :
14928 cat >>confdefs.h
<<_ACEOF
14929 #define HAVE_RES_INIT 1
14935 # Windows use stdcall for winsock so we cannot auto detect these
14938 if test "${WIN32}" = "yes"; then
14941 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
14945 $as_echo "#define HAVE_RECV 1" >>confdefs.h
14949 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
14953 $as_echo "#define HAVE_SEND 1" >>confdefs.h
14957 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
14961 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
14965 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
14969 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
14973 $as_echo "#define HAVE_BIND 1" >>confdefs.h
14977 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
14981 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14985 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
14989 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14993 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14997 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
15001 $as_echo "#define HAVE_POLL 1" >>confdefs.h
15005 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
15007 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15008 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15009 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15010 cat >>confdefs.h
<<_ACEOF
15011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15015 as_fn_error $?
"Required library function not found" "$LINENO" 5
15020 for ac_func
in setsockopt getsockopt getsockname poll
15022 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15023 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15024 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15025 cat >>confdefs.h
<<_ACEOF
15026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15036 old_CFLAGS
="${CFLAGS}"
15037 CFLAGS
="${CFLAGS} ${TAP_CFLAGS}"
15039 net
/if_tun.h net
/tun
/if_tun.h \
15044 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15045 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15046 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15047 cat >>confdefs.h
<<_ACEOF
15048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15050 have_tap_header
="yes"
15056 ac_fn_c_check_decl
"$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
15057 #ifdef HAVE_LINUX_IF_TUN_H
15058 #include <linux/if_tun.h>
15063 if test "x$ac_cv_have_decl_TUNSETPERSIST" = xyes
; then :
15069 cat >>confdefs.h
<<_ACEOF
15070 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
15072 if test $ac_have_decl = 1; then :
15074 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
15078 CFLAGS
="${old_CFLAGS}"
15079 test "${have_tap_header}" = "yes" || as_fn_error $?
"no tap header could be found" "$LINENO" 5
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
15082 $as_echo_n "checking for setcon in -lselinux... " >&6; }
15083 if ${ac_cv_lib_selinux_setcon+:} false
; then :
15084 $as_echo_n "(cached) " >&6
15086 ac_check_lib_save_LIBS
=$LIBS
15087 LIBS
="-lselinux $LIBS"
15088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15091 /* Override any GCC internal prototype to avoid an error.
15092 Use char because int might match the return type of a GCC
15093 builtin and then its argument prototype would still apply. */
15106 if ac_fn_c_try_link
"$LINENO"; then :
15107 ac_cv_lib_selinux_setcon
=yes
15109 ac_cv_lib_selinux_setcon
=no
15111 rm -f core conftest.err conftest.
$ac_objext \
15112 conftest
$ac_exeext conftest.
$ac_ext
15113 LIBS
=$ac_check_lib_save_LIBS
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
15116 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
15117 if test "x$ac_cv_lib_selinux_setcon" = xyes
; then :
15118 SELINUX_LIBS
="-lselinux"
15126 if test -z "${LIBPAM_LIBS}"; then
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
15128 $as_echo_n "checking for pam_start in -lpam... " >&6; }
15129 if ${ac_cv_lib_pam_pam_start+:} false
; then :
15130 $as_echo_n "(cached) " >&6
15132 ac_check_lib_save_LIBS
=$LIBS
15134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15135 /* end confdefs.h. */
15137 /* Override any GCC internal prototype to avoid an error.
15138 Use char because int might match the return type of a GCC
15139 builtin and then its argument prototype would still apply. */
15147 return pam_start ();
15152 if ac_fn_c_try_link
"$LINENO"; then :
15153 ac_cv_lib_pam_pam_start
=yes
15155 ac_cv_lib_pam_pam_start
=no
15157 rm -f core conftest.err conftest.
$ac_objext \
15158 conftest
$ac_exeext conftest.
$ac_ext
15159 LIBS
=$ac_check_lib_save_LIBS
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
15162 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
15163 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
15164 LIBPAM_LIBS
="-lpam"
15170 case "${with_mem_check}" in
15172 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
15173 if test "x$ac_cv_header_valgrind_memcheck_h" = xyes
; then :
15175 CFLAGS
="${CFLAGS} -g -fno-inline"
15177 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
15181 as_fn_error $?
"valgrind headers not found." "$LINENO" 5
15188 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
15189 if test "x$ac_cv_header_dmalloc_h" = xyes
; then :
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
15191 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
15192 if ${ac_cv_lib_dmalloc_malloc+:} false
; then :
15193 $as_echo_n "(cached) " >&6
15195 ac_check_lib_save_LIBS
=$LIBS
15196 LIBS
="-ldmalloc $LIBS"
15197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15200 /* Override any GCC internal prototype to avoid an error.
15201 Use char because int might match the return type of a GCC
15202 builtin and then its argument prototype would still apply. */
15215 if ac_fn_c_try_link
"$LINENO"; then :
15216 ac_cv_lib_dmalloc_malloc
=yes
15218 ac_cv_lib_dmalloc_malloc
=no
15220 rm -f core conftest.err conftest.
$ac_objext \
15221 conftest
$ac_exeext conftest.
$ac_ext
15222 LIBS
=$ac_check_lib_save_LIBS
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
15225 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
15226 if test "x$ac_cv_lib_dmalloc_malloc" = xyes
; then :
15228 LIBS
="${LIBS} -ldmalloc"
15230 $as_echo "#define DMALLOC 1" >>confdefs.h
15234 as_fn_error $?
"dmalloc library not found." "$LINENO" 5
15239 as_fn_error $?
"dmalloc headers not found." "$LINENO" 5
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
15247 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
15248 if ${ac_cv_lib_ssl_CRYPTO_mem_ctrl+:} false
; then :
15249 $as_echo_n "(cached) " >&6
15251 ac_check_lib_save_LIBS
=$LIBS
15253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15256 /* Override any GCC internal prototype to avoid an error.
15257 Use char because int might match the return type of a GCC
15258 builtin and then its argument prototype would still apply. */
15262 char CRYPTO_mem_ctrl ();
15266 return CRYPTO_mem_ctrl ();
15271 if ac_fn_c_try_link
"$LINENO"; then :
15272 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
15274 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
15276 rm -f core conftest.err conftest.
$ac_objext \
15277 conftest
$ac_exeext conftest.
$ac_ext
15278 LIBS
=$ac_check_lib_save_LIBS
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
15281 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
15282 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = xyes
; then :
15285 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
15288 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
15291 as_fn_error $?
"Memory Debugging function in OpenSSL library not found." "$LINENO" 5
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15301 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15303 if test -n "$PKCS11_HELPER_CFLAGS"; then
15304 pkg_cv_PKCS11_HELPER_CFLAGS
="$PKCS11_HELPER_CFLAGS"
15305 elif test -n "$PKG_CONFIG"; then
15306 if test -n "$PKG_CONFIG" && \
15307 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15308 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15311 test $ac_status = 0; }; then
15312 pkg_cv_PKCS11_HELPER_CFLAGS
=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15313 test "x$?" != "x0" && pkg_failed
=yes
15320 if test -n "$PKCS11_HELPER_LIBS"; then
15321 pkg_cv_PKCS11_HELPER_LIBS
="$PKCS11_HELPER_LIBS"
15322 elif test -n "$PKG_CONFIG"; then
15323 if test -n "$PKG_CONFIG" && \
15324 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.11\""; } >&5
15325 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.11") 2>&5
15327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328 test $ac_status = 0; }; then
15329 pkg_cv_PKCS11_HELPER_LIBS
=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.11" 2>/dev/null`
15330 test "x$?" != "x0" && pkg_failed
=yes
15340 if test $pkg_failed = yes; then
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15345 _pkg_short_errors_supported
=yes
15347 _pkg_short_errors_supported
=no
15349 if test $_pkg_short_errors_supported = yes; then
15350 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15352 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.11" 2>&1`
15354 # Put the nasty error message in config.log where it belongs
15355 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15359 elif test $pkg_failed = untried
; then
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361 $as_echo "no" >&6; }
15365 PKCS11_HELPER_CFLAGS
=$pkg_cv_PKCS11_HELPER_CFLAGS
15366 PKCS11_HELPER_LIBS
=$pkg_cv_PKCS11_HELPER_LIBS
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15368 $as_echo "yes" >&6; }
15369 have_pkcs11_helper
="yes"
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
15375 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
15377 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
15378 pkg_cv_OPENSSL_CRYPTO_CFLAGS
="$OPENSSL_CRYPTO_CFLAGS"
15379 elif test -n "$PKG_CONFIG"; then
15380 if test -n "$PKG_CONFIG" && \
15381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15382 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15385 test $ac_status = 0; }; then
15386 pkg_cv_OPENSSL_CRYPTO_CFLAGS
=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
15387 test "x$?" != "x0" && pkg_failed
=yes
15394 if test -n "$OPENSSL_CRYPTO_LIBS"; then
15395 pkg_cv_OPENSSL_CRYPTO_LIBS
="$OPENSSL_CRYPTO_LIBS"
15396 elif test -n "$PKG_CONFIG"; then
15397 if test -n "$PKG_CONFIG" && \
15398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
15399 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
15401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }; then
15403 pkg_cv_OPENSSL_CRYPTO_LIBS
=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
15404 test "x$?" != "x0" && pkg_failed
=yes
15414 if test $pkg_failed = yes; then
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15416 $as_echo "no" >&6; }
15418 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15419 _pkg_short_errors_supported
=yes
15421 _pkg_short_errors_supported
=no
15423 if test $_pkg_short_errors_supported = yes; then
15424 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15426 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
15428 # Put the nasty error message in config.log where it belongs
15429 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15432 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15433 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
15434 $as_echo_n "(cached) " >&6
15436 ac_check_lib_save_LIBS
=$LIBS
15437 LIBS
="-lcrypto $LIBS"
15438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15441 /* Override any GCC internal prototype to avoid an error.
15442 Use char because int might match the return type of a GCC
15443 builtin and then its argument prototype would still apply. */
15456 if ac_fn_c_try_link
"$LINENO"; then :
15457 ac_cv_lib_crypto_RSA_new
=yes
15459 ac_cv_lib_crypto_RSA_new
=no
15461 rm -f core conftest.err conftest.
$ac_objext \
15462 conftest
$ac_exeext conftest.
$ac_ext
15463 LIBS
=$ac_check_lib_save_LIBS
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15466 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15467 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
15469 have_openssl_crypto
="yes"
15470 OPENSSL_CRYPTO_LIBS
="-lcrypto"
15476 elif test $pkg_failed = untried
; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478 $as_echo "no" >&6; }
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
15480 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
15481 if ${ac_cv_lib_crypto_RSA_new+:} false
; then :
15482 $as_echo_n "(cached) " >&6
15484 ac_check_lib_save_LIBS
=$LIBS
15485 LIBS
="-lcrypto $LIBS"
15486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15489 /* Override any GCC internal prototype to avoid an error.
15490 Use char because int might match the return type of a GCC
15491 builtin and then its argument prototype would still apply. */
15504 if ac_fn_c_try_link
"$LINENO"; then :
15505 ac_cv_lib_crypto_RSA_new
=yes
15507 ac_cv_lib_crypto_RSA_new
=no
15509 rm -f core conftest.err conftest.
$ac_objext \
15510 conftest
$ac_exeext conftest.
$ac_ext
15511 LIBS
=$ac_check_lib_save_LIBS
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
15514 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
15515 if test "x$ac_cv_lib_crypto_RSA_new" = xyes
; then :
15517 have_openssl_crypto
="yes"
15518 OPENSSL_CRYPTO_LIBS
="-lcrypto"
15525 OPENSSL_CRYPTO_CFLAGS
=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
15526 OPENSSL_CRYPTO_LIBS
=$pkg_cv_OPENSSL_CRYPTO_LIBS
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15528 $as_echo "yes" >&6; }
15529 have_openssl_crypto
="yes"
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
15535 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
15537 if test -n "$OPENSSL_SSL_CFLAGS"; then
15538 pkg_cv_OPENSSL_SSL_CFLAGS
="$OPENSSL_SSL_CFLAGS"
15539 elif test -n "$PKG_CONFIG"; then
15540 if test -n "$PKG_CONFIG" && \
15541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15542 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; }; then
15546 pkg_cv_OPENSSL_SSL_CFLAGS
=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
15547 test "x$?" != "x0" && pkg_failed
=yes
15554 if test -n "$OPENSSL_SSL_LIBS"; then
15555 pkg_cv_OPENSSL_SSL_LIBS
="$OPENSSL_SSL_LIBS"
15556 elif test -n "$PKG_CONFIG"; then
15557 if test -n "$PKG_CONFIG" && \
15558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
15559 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
15561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15562 test $ac_status = 0; }; then
15563 pkg_cv_OPENSSL_SSL_LIBS
=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
15564 test "x$?" != "x0" && pkg_failed
=yes
15574 if test $pkg_failed = yes; then
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15576 $as_echo "no" >&6; }
15578 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15579 _pkg_short_errors_supported
=yes
15581 _pkg_short_errors_supported
=no
15583 if test $_pkg_short_errors_supported = yes; then
15584 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15586 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
15588 # Put the nasty error message in config.log where it belongs
15589 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15592 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15593 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
15594 $as_echo_n "(cached) " >&6
15596 ac_check_lib_save_LIBS
=$LIBS
15597 LIBS
="-lssl -lcrypto
15599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15602 /* Override any GCC internal prototype to avoid an error.
15603 Use char because int might match the return type of a GCC
15604 builtin and then its argument prototype would still apply. */
15608 char SSL_CTX_new ();
15612 return SSL_CTX_new ();
15617 if ac_fn_c_try_link
"$LINENO"; then :
15618 ac_cv_lib_ssl_SSL_CTX_new
=yes
15620 ac_cv_lib_ssl_SSL_CTX_new
=no
15622 rm -f core conftest.err conftest.
$ac_objext \
15623 conftest
$ac_exeext conftest.
$ac_ext
15624 LIBS
=$ac_check_lib_save_LIBS
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15627 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15628 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
15630 have_openssl_ssl
="yes"
15631 OPENSSL_SSL_LIBS
="-lssl"
15636 elif test $pkg_failed = untried
; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 $as_echo "no" >&6; }
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
15640 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
15641 if ${ac_cv_lib_ssl_SSL_CTX_new+:} false
; then :
15642 $as_echo_n "(cached) " >&6
15644 ac_check_lib_save_LIBS
=$LIBS
15645 LIBS
="-lssl -lcrypto
15647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15656 char SSL_CTX_new ();
15660 return SSL_CTX_new ();
15665 if ac_fn_c_try_link
"$LINENO"; then :
15666 ac_cv_lib_ssl_SSL_CTX_new
=yes
15668 ac_cv_lib_ssl_SSL_CTX_new
=no
15670 rm -f core conftest.err conftest.
$ac_objext \
15671 conftest
$ac_exeext conftest.
$ac_ext
15672 LIBS
=$ac_check_lib_save_LIBS
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
15675 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
15676 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = xyes
; then :
15678 have_openssl_ssl
="yes"
15679 OPENSSL_SSL_LIBS
="-lssl"
15685 OPENSSL_SSL_CFLAGS
=$pkg_cv_OPENSSL_SSL_CFLAGS
15686 OPENSSL_SSL_LIBS
=$pkg_cv_OPENSSL_SSL_LIBS
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15688 $as_echo "yes" >&6; }
15689 have_openssl_ssl
="yes"
15692 if test "${have_openssl_crypto}" = "yes"; then
15693 saved_CFLAGS
="${CFLAGS}"
15694 saved_LIBS
="${LIBS}"
15695 CFLAGS
="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
15696 LIBS
="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
15697 for ac_func
in EVP_CIPHER_CTX_set_key_length
15699 ac_fn_c_check_func
"$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
15700 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = xyes
; then :
15701 cat >>confdefs.h
<<_ACEOF
15702 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
15708 have_openssl_engine
="yes"
15710 ENGINE_load_builtin_engines \
15711 ENGINE_register_all_complete \
15715 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15716 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
15717 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
15718 cat >>confdefs.h
<<_ACEOF
15719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15723 have_openssl_engine
="no"; break
15729 CFLAGS
="${saved_CFLAGS}"
15730 LIBS
="${saved_LIBS}"
15735 have_polarssl_ssl
="yes"
15736 have_polarssl_crypto
="yes"
15737 if test -z "${POLARSSL_LIBS}"; then
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
15739 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
15740 if ${ac_cv_lib_polarssl_ssl_init+:} false
; then :
15741 $as_echo_n "(cached) " >&6
15743 ac_check_lib_save_LIBS
=$LIBS
15744 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
15746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15749 /* Override any GCC internal prototype to avoid an error.
15750 Use char because int might match the return type of a GCC
15751 builtin and then its argument prototype would still apply. */
15759 return ssl_init ();
15764 if ac_fn_c_try_link
"$LINENO"; then :
15765 ac_cv_lib_polarssl_ssl_init
=yes
15767 ac_cv_lib_polarssl_ssl_init
=no
15769 rm -f core conftest.err conftest.
$ac_objext \
15770 conftest
$ac_exeext conftest.
$ac_ext
15771 LIBS
=$ac_check_lib_save_LIBS
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
15774 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
15775 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes
; then :
15776 POLARSSL_LIBS
="-lpolarssl"
15779 have_polarssl_ssl
="no"
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
15781 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
15782 if ${ac_cv_lib_polarssl_aes_crypt_cbc+:} false
; then :
15783 $as_echo_n "(cached) " >&6
15785 ac_check_lib_save_LIBS
=$LIBS
15786 LIBS
="-lpolarssl ${PKCS11_HELPER_LIBS}
15788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15789 /* end confdefs.h. */
15791 /* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15797 char aes_crypt_cbc ();
15801 return aes_crypt_cbc ();
15806 if ac_fn_c_try_link
"$LINENO"; then :
15807 ac_cv_lib_polarssl_aes_crypt_cbc
=yes
15809 ac_cv_lib_polarssl_aes_crypt_cbc
=no
15811 rm -f core conftest.err conftest.
$ac_objext \
15812 conftest
$ac_exeext conftest.
$ac_ext
15813 LIBS
=$ac_check_lib_save_LIBS
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
15816 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
15817 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = xyes
; then :
15818 cat >>confdefs.h
<<_ACEOF
15819 #define HAVE_LIBPOLARSSL 1
15822 LIBS
="-lpolarssl $LIBS"
15825 have_polarssl_crypto
="no"
15833 if test "${with_crypto_library}" = "polarssl" ; then
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
15835 $as_echo_n "checking polarssl version... " >&6; }
15836 old_CFLAGS
="${CFLAGS}"
15837 CFLAGS
="${POLARSSL_CFLAGS} ${CFLAGS}"
15838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15841 #include <polarssl/version.h>
15847 #if POLARSSL_VERSION_NUMBER < 0x01020A00 || POLARSSL_VERSION_NUMBER >= 0x01030000
15848 #error invalid version
15856 if ac_fn_c_try_compile
"$LINENO"; then :
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15858 $as_echo "ok" >&6; }
15860 as_fn_error $?
"PolarSSL 1.2.x required and must be 1.2.10 or later" "$LINENO" 5
15863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15865 polarssl_with_pkcs11
="no"
15866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15867 /* end confdefs.h. */
15869 #include <polarssl/config.h>
15875 #ifndef POLARSSL_PKCS11_C
15876 #error pkcs11 wrapper missing
15884 if ac_fn_c_try_compile
"$LINENO"; then :
15885 polarssl_with_pkcs11
="yes"
15887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15888 CFLAGS
="${old_CFLAGS}"
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl pkcs11 support" >&5
15891 $as_echo_n "checking polarssl pkcs11 support... " >&6; }
15892 if test "${enable_pkcs11}" = "yes"; then
15893 if test "${polarssl_with_pkcs11}" = "yes"; then
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15895 $as_echo "ok" >&6; }
15897 as_fn_error $?
"polarssl has no pkcs11 wrapper compiled in" "$LINENO" 5
15900 if test "${polarssl_with_pkcs11}" != "yes"; then
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15902 $as_echo "ok" >&6; }
15904 as_fn_error $?
"PolarSSL compiled with PKCS11, while OpenVPN is not" "$LINENO" 5
15913 if test -z "${LZO_LIBS}"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
15915 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
15916 if ${ac_cv_lib_lzo2_lzo1x_1_15_compress+:} false
; then :
15917 $as_echo_n "(cached) " >&6
15919 ac_check_lib_save_LIBS
=$LIBS
15920 LIBS
="-llzo2 $LIBS"
15921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15922 /* end confdefs.h. */
15924 /* Override any GCC internal prototype to avoid an error.
15925 Use char because int might match the return type of a GCC
15926 builtin and then its argument prototype would still apply. */
15930 char lzo1x_1_15_compress ();
15934 return lzo1x_1_15_compress ();
15939 if ac_fn_c_try_link
"$LINENO"; then :
15940 ac_cv_lib_lzo2_lzo1x_1_15_compress
=yes
15942 ac_cv_lib_lzo2_lzo1x_1_15_compress
=no
15944 rm -f core conftest.err conftest.
$ac_objext \
15945 conftest
$ac_exeext conftest.
$ac_ext
15946 LIBS
=$ac_check_lib_save_LIBS
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15949 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15950 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = xyes
; then :
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
15954 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
15955 if ${ac_cv_lib_lzo_lzo1x_1_15_compress+:} false
; then :
15956 $as_echo_n "(cached) " >&6
15958 ac_check_lib_save_LIBS
=$LIBS
15960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15963 /* Override any GCC internal prototype to avoid an error.
15964 Use char because int might match the return type of a GCC
15965 builtin and then its argument prototype would still apply. */
15969 char lzo1x_1_15_compress ();
15973 return lzo1x_1_15_compress ();
15978 if ac_fn_c_try_link
"$LINENO"; then :
15979 ac_cv_lib_lzo_lzo1x_1_15_compress
=yes
15981 ac_cv_lib_lzo_lzo1x_1_15_compress
=no
15983 rm -f core conftest.err conftest.
$ac_objext \
15984 conftest
$ac_exeext conftest.
$ac_ext
15985 LIBS
=$ac_check_lib_save_LIBS
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
15988 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
15989 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = xyes
; then :
16000 if test "${have_lzo}" = "yes"; then
16001 saved_CFLAGS
="${CFLAGS}"
16002 CFLAGS
="${CFLAGS} ${LZO_CFLAGS}"
16003 for ac_header
in lzo
/lzoutil.h
16005 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
16006 if test "x$ac_cv_header_lzo_lzoutil_h" = xyes
; then :
16007 cat >>confdefs.h
<<_ACEOF
16008 #define HAVE_LZO_LZOUTIL_H 1
16012 for ac_header
in lzoutil.h
16014 ac_fn_c_check_header_mongrel
"$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
16015 if test "x$ac_cv_header_lzoutil_h" = xyes
; then :
16016 cat >>confdefs.h
<<_ACEOF
16017 #define HAVE_LZOUTIL_H 1
16021 as_fn_error $?
"lzoutil.h is missing" "$LINENO" 5
16032 for ac_header
in lzo
/lzo1x.h
16034 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16035 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
; then :
16036 cat >>confdefs.h
<<_ACEOF
16037 #define HAVE_LZO_LZO1X_H 1
16041 for ac_header
in lzo1x.h
16043 ac_fn_c_check_header_mongrel
"$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
16044 if test "x$ac_cv_header_lzo1x_h" = xyes
; then :
16045 cat >>confdefs.h
<<_ACEOF
16046 #define HAVE_LZO1X_H 1
16050 as_fn_error $?
"lzo1x.h is missing" "$LINENO" 5
16061 CFLAGS
="${saved_CFLAGS}"
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
16065 $as_echo_n "checking git checkout... " >&6; }
16067 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
16069 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
16074 $as_echo "${GIT_CHECKOUT}" >&6; }
16076 if test -n "${SP_PLATFORM_WINDOWS}"; then
16078 cat >>confdefs.h
<<_ACEOF
16079 #define PATH_SEPARATOR '\\\\'
16083 cat >>confdefs.h
<<_ACEOF
16084 #define PATH_SEPARATOR_STR "\\\\"
16089 cat >>confdefs.h
<<_ACEOF
16090 #define PATH_SEPARATOR '/'
16094 cat >>confdefs.h
<<_ACEOF
16095 #define PATH_SEPARATOR_STR "/"
16100 if test "${enable_x509_alt_username}" = "yes"; then
16101 if test "${with_crypto_library}" = "polarssl" ; then
16102 as_fn_error $?
"PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
16106 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
16110 test "${ac_cv_header_sys_uio_h}" = "yes" &&
16111 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
16113 test "${enable_multi}" = "yes" &&
16114 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
16116 test "${enable_server}" = "no" &&
16117 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
16119 test "${enable_management}" = "yes" &&
16120 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
16122 test "${enable_socks}" = "yes" &&
16123 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
16125 test "${enable_http_proxy}" = "yes" &&
16126 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
16128 test "${enable_multihome}" = "yes" &&
16129 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
16131 test "${enable_debug}" = "yes" &&
16132 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
16134 test "${enable_small}" = "yes" &&
16135 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
16137 test "${enable_fragment}" = "yes" &&
16138 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
16140 test "${enable_port_share}" = "yes" &&
16141 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
16143 test "${enable_def_auth}" = "yes" &&
16144 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
16146 test "${enable_pf}" = "yes" &&
16147 $as_echo "#define ENABLE_PF 1" >>confdefs.h
16149 test "${enable_strict_options}" = "yes" &&
16150 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
16152 test "${enable_password_save}" = "yes" &&
16153 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
16155 test "${enable_systemd}" = "yes" &&
16156 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
16159 case "${with_crypto_library}" in
16161 have_crypto_crypto
="${have_openssl_crypto}"
16162 have_crypto_ssl
="${have_openssl_ssl}"
16163 CRYPTO_CRYPTO_CFLAGS
="${OPENSSL_CRYPTO_CFLAGS}"
16164 CRYPTO_CRYPTO_LIBS
="${OPENSSL_CRYPTO_LIBS}"
16165 CRYPTO_SSL_CFLAGS
="${OPENSSL_SSL_CFLAGS}"
16166 CRYPTO_SSL_LIBS
="${OPENSSL_SSL_LIBS}"
16168 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
16170 test "${have_openssl_engine}" = "yes" &&
16171 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
16175 have_crypto_crypto
="${have_polarssl_crypto}"
16176 have_crypto_ssl
="${have_polarssl_ssl}"
16177 CRYPTO_CRYPTO_CFLAGS
="${POLARSSL_CFLAGS}"
16178 CRYPTO_CRYPTO_LIBS
="${POLARSSL_LIBS}"
16180 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
16185 if test "${enable_ssl}" = "yes"; then
16186 test "${enable_crypto}" != "yes" && as_fn_error $?
"crypto must be enabled for ssl" "$LINENO" 5
16187 test "${have_crypto_ssl}" != "yes" && as_fn_error $?
"${with_ssl_library} ssl is required but missing" "$LINENO" 5
16188 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
16189 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
16191 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
16195 if test "${enable_crypto}" = "yes"; then
16196 test "${have_crypto_crypto}" != "yes" && as_fn_error $?
"${with_crypto_library} crypto is required but missing" "$LINENO" 5
16197 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
16198 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
16200 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
16204 if test "${enable_plugins}" = "yes"; then
16205 OPTIONAL_DL_LIBS
="${DL_LIBS}"
16207 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
16210 enable_plugin_auth_pam
="no"
16211 enable_plugin_down_root
="no"
16214 if test "${enable_iproute2}" = "yes"; then
16215 test -z "${IPROUTE}" && as_fn_error $?
"ip utility is required but missing" "$LINENO" 5
16217 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
16220 if test "${WIN32}" != "yes"; then
16221 test -z "${ROUTE}" && as_fn_error $?
"route utility is required but missing" "$LINENO" 5
16222 test -z "${IFCONFIG}" && as_fn_error $?
"ifconfig utility is required but missing" "$LINENO" 5
16226 if test "${enable_selinux}" = "yes"; then
16227 test -z "${SELINUX_LIBS}" && as_fn_error $?
"libselinux required but missing" "$LINENO" 5
16228 OPTIONAL_SELINUX_LIBS
="${SELINUX_LIBS}"
16230 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
16234 if test "${enable_lzo}" = "yes"; then
16235 test "${have_lzo}" != "yes" && as_fn_error $?
"lzo enabled but missing" "$LINENO" 5
16236 OPTIONAL_LZO_CFLAGS
="${LZO_CFLAGS}"
16237 OPTIONAL_LZO_LIBS
="${LZO_LIBS}"
16239 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16242 if test "${enable_lzo_stub}" = "yes"; then
16243 test "${enable_lzo}" = "yes" && as_fn_error $?
"Cannot have both lzo stub and lzo enabled" "$LINENO" 5
16245 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
16248 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
16252 if test "${enable_pkcs11}" = "yes"; then
16253 test "${have_pkcs11_helper}" != "yes" && as_fn_error $?
"PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
16254 test "${enable_ssl}" != "yes" && as_fn_error $?
"PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
16255 OPTIONAL_PKCS11_HELPER_CFLAGS
="${PKCS11_HELPER_CFLAGS}"
16256 OPTIONAL_PKCS11_HELPER_LIBS
="${PKCS11_HELPER_LIBS}"
16258 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
16262 if test "${enable_pedantic}" = "yes"; then
16263 enable_strict
="yes"
16264 CFLAGS
="${CFLAGS} -pedantic"
16265 test "${WIN32}" != "yes" && CFLAGS
="${CFLAGS} -ansi"
16267 if test "${enable_strict}" = "yes"; then
16268 CFLAGS
="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
16271 if test "${WIN32}" = "yes"; then
16272 test -z "${MAN2HTML}" && as_fn_error $?
"man2html is required for win32" "$LINENO" 5
16275 if test "${enable_plugin_auth_pam}" = "yes"; then
16276 PLUGIN_AUTH_PAM_CFLAGS
="${LIBPAM_CFLAGS}"
16277 if test "${enable_pam_dlopen}" = "yes"; then
16279 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
16281 PLUGIN_AUTH_PAM_LIBS
="${DL_LIBS}"
16283 test -z "${LIBPAM_LIBS}" && as_fn_error $?
"libpam required but missing" "$LINENO" 5
16284 PLUGIN_AUTH_PAM_LIBS
="${LIBPAM_LIBS}"
16288 CONFIGURE_DEFINES
="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
16290 cat >>confdefs.h
<<_ACEOF
16291 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
16295 TAP_WIN_COMPONENT_ID
="tap0901"
16296 TAP_WIN_MIN_MAJOR
="9"
16297 TAP_WIN_MIN_MINOR
="9"
16299 cat >>confdefs.h
<<_ACEOF
16300 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
16304 cat >>confdefs.h
<<_ACEOF
16305 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
16309 cat >>confdefs.h
<<_ACEOF
16310 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
16329 if test "${WIN32}" = "yes"; then
16337 if test "${GIT_CHECKOUT}" = "yes"; then
16339 GIT_CHECKOUT_FALSE
='#'
16341 GIT_CHECKOUT_TRUE
='#'
16342 GIT_CHECKOUT_FALSE
=
16345 if test "${enable_plugin_auth_pam}" = "yes"; then
16346 ENABLE_PLUGIN_AUTH_PAM_TRUE
=
16347 ENABLE_PLUGIN_AUTH_PAM_FALSE
='#'
16349 ENABLE_PLUGIN_AUTH_PAM_TRUE
='#'
16350 ENABLE_PLUGIN_AUTH_PAM_FALSE
=
16353 if test "${enable_plugin_down_root}" = "yes"; then
16354 ENABLE_PLUGIN_DOWN_ROOT_TRUE
=
16355 ENABLE_PLUGIN_DOWN_ROOT_FALSE
='#'
16357 ENABLE_PLUGIN_DOWN_ROOT_TRUE
='#'
16358 ENABLE_PLUGIN_DOWN_ROOT_FALSE
=
16362 plugindir
="${with_plugindir}"
16363 sampledir
="\$(docdir)/sample"
16367 ac_config_files
="$ac_config_files version.sh Makefile build/Makefile build/msvc/Makefile build/msvc/msvc-generate/Makefile distro/Makefile distro/rpm/Makefile distro/rpm/openvpn.spec include/Makefile src/Makefile src/compat/Makefile src/openvpn/Makefile src/openvpnserv/Makefile src/plugins/Makefile src/plugins/auth-pam/Makefile src/plugins/down-root/Makefile tests/Makefile sample/Makefile doc/Makefile"
16369 ac_config_files
="$ac_config_files tests/t_client.sh"
16371 cat >confcache
<<\_ACEOF
16372 # This file is a shell script that caches the results of configure
16373 # tests run on this system so they can be shared between configure
16374 # scripts and configure runs, see configure's option --config-cache.
16375 # It is not useful on other systems. If it contains results you don't
16376 # want to keep, you may remove or edit it.
16378 # config.status only pays attention to the cache file if you give it
16379 # the --recheck option to rerun configure.
16381 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16382 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16383 # following values.
16387 # The following way of writing the cache mishandles newlines in values,
16388 # but we know of no workaround that is simple, portable, and efficient.
16389 # So, we kill variables containing newlines.
16390 # Ultrix sh set writes to stderr and can't be redirected directly,
16391 # and sets the high bit in the cache file unless we assign to the vars.
16393 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16394 eval ac_val
=\$
$ac_var
16398 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16402 _ | IFS | as_nl
) ;; #(
16403 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16404 *) { eval $ac_var=; unset $ac_var;} ;;
16410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16411 *${as_nl}ac_space
=\
*)
16412 # `set' does not quote correctly, so add quotes: double-quote
16413 # substitution turns \\\\ into \\, and sed turns \\ into \.
16416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16419 # `set' quotes correctly as required by POSIX, so do not add quotes.
16420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16433 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16434 if test -w "$cache_file"; then
16435 if test "x$cache_file" != "x/dev/null"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16437 $as_echo "$as_me: updating cache $cache_file" >&6;}
16438 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16439 cat confcache
>"$cache_file"
16441 case $cache_file in #(
16443 mv -f confcache
"$cache_file"$$
&&
16444 mv -f "$cache_file"$$
"$cache_file" ;; #(
16446 mv -f confcache
"$cache_file" ;;
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16452 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16457 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16458 # Let make expand exec_prefix.
16459 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16461 DEFS
=-DHAVE_CONFIG_H
16466 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16467 # 1. Remove the extension, and $U if already installed.
16468 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16469 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16470 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16471 # will be set to the directory where LIBOBJS objects are built.
16472 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16473 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16475 LIBOBJS
=$ac_libobjs
16477 LTLIBOBJS
=$ac_ltlibobjs
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16481 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16482 if test -n "$am_sleep_pid"; then
16483 # Hide warnings about reused PIDs.
16484 wait $am_sleep_pid 2>/dev
/null
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16487 $as_echo "done" >&6; }
16488 if test -n "$EXEEXT"; then
16490 am__EXEEXT_FALSE
='#'
16492 am__EXEEXT_TRUE
='#'
16496 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16497 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16501 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
16505 as_fn_error $?
"conditional \"WIN32\" was never defined.
16506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
16509 as_fn_error $?
"conditional \"GIT_CHECKOUT\" was never defined.
16510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
16513 as_fn_error $?
"conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
16514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
16517 as_fn_error $?
"conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
16518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16521 : "${CONFIG_STATUS=./config.status}"
16523 ac_clean_files_save
=$ac_clean_files
16524 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16526 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16528 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16530 # Generated by $as_me.
16531 # Run this file to recreate the current configuration.
16532 # Compiler output produced by configure, useful for debugging
16533 # configure, is in config.log if it exists.
16536 ac_cs_recheck=false
16539 SHELL=\${CONFIG_SHELL-$SHELL}
16542 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16543 ## -------------------- ##
16544 ## M4sh Initialization. ##
16545 ## -------------------- ##
16547 # Be more Bourne compatible
16548 DUALCASE
=1; export DUALCASE
# for MKS sh
16549 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16553 # is contrary to our usage. Disable this feature.
16554 alias -g '${1+"$@"}'='"$@"'
16555 setopt NO_GLOB_SUBST
16557 case `(set -o) 2>/dev/null` in #(
16569 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16570 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16572 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16573 # Prefer a ksh shell builtin over an external printf program on Solaris,
16574 # but without wasting forks for bash or zsh.
16575 if test -z "$BASH_VERSION$ZSH_VERSION" \
16576 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16577 as_echo='print
-r --'
16578 as_echo_n='print
-rn --'
16579 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16580 as_echo='printf %s
\n'
16581 as_echo_n='printf %s
'
16583 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16584 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
16585 as_echo_n='/usr
/ucb
/echo -n'
16587 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16588 as_echo_n_body='eval
16592 expr "X$arg" : "X\\(.*\\)$as_nl";
16593 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16595 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
16597 export as_echo_n_body
16598 as_echo_n='sh
-c $as_echo_n_body as_echo
'
16600 export as_echo_body
16601 as_echo='sh
-c $as_echo_body as_echo
'
16604 # The user is always right.
16605 if test "${PATH_SEPARATOR+set}" != set; then
16607 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16608 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16615 # We need space, tab and new line, in precisely that order. Quoting is
16616 # there to prevent editors from complaining about space-tab.
16617 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16618 # splitting by setting IFS to empty value.)
16621 # Find who we are. Look in the path if we contain no directory separator.
16624 *[\\/]* ) as_myself=$0 ;;
16625 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16629 test -z "$as_dir" && as_dir=.
16630 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16636 # We did not find ourselves, most probably we were run as `sh COMMAND'
16637 # in which case we are not to be found in the path.
16638 if test "x$as_myself" = x
; then
16641 if test ! -f "$as_myself"; then
16642 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16646 # Unset variables that we do not need and which cause bugs (e.g. in
16647 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16648 # suppresses any "Segmentation fault" message there. '((' could
16649 # trigger a bug in pdksh 5.2.14.
16650 for as_var
in BASH_ENV ENV MAIL MAILPATH
16651 do eval test x\
${$as_var+set} = xset \
16652 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
16665 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
16668 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16669 # ----------------------------------------
16670 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16671 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16672 # script with STATUS, using 1 if that was 0.
16675 as_status
=$1; test $as_status -eq 0 && as_status
=1
16677 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
16678 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16680 $as_echo "$as_me: error: $2" >&2
16681 as_fn_exit
$as_status
16685 # as_fn_set_status STATUS
16686 # -----------------------
16687 # Set $? to STATUS, without forking.
16688 as_fn_set_status
()
16691 } # as_fn_set_status
16693 # as_fn_exit STATUS
16694 # -----------------
16695 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16699 as_fn_set_status
$1
16703 # as_fn_unset ax_cv_socklen_t_equiv
16704 # ---------------------------------
16705 # Portably unset VAR.
16708 { eval $1=; unset $1;}
16710 as_unset
=as_fn_unset
16711 # as_fn_append ax_cv_socklen_t_equiv VALUE
16712 # ----------------------------------------
16713 # Append the text in VALUE to the end of the definition contained in VAR. Take
16714 # advantage of any shell optimizations that allow amortized linear growth over
16715 # repeated appends, instead of the typical quadratic growth present in naive
16717 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
16718 eval 'as_fn_append ()
16729 # as_fn_arith ARG...
16730 # ------------------
16731 # Perform arithmetic evaluation on the ARGs, and store the result in the
16732 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16733 # must be portable across $(()) and expr.
16734 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
16735 eval 'as_fn_arith ()
16742 as_val
=`expr "$@" || test $? -eq 1`
16747 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
16748 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
16754 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16755 as_basename
=basename
16760 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
16766 as_me
=`$as_basename -- "$0" ||
16767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16768 X"$0" : 'X\(//\)$' \| \
16769 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16771 sed '/^.*\/\([^/][^/]*\)\/*$/{
16785 # Avoid depending upon Character Ranges.
16786 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16787 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16788 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16789 as_cr_digits
='0123456789'
16790 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16792 ECHO_C
= ECHO_N
= ECHO_T
=
16793 case `echo -n x` in #(((((
16795 case `echo 'xy\c'` in
16796 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
16798 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
16805 rm -f conf$$ conf$$.exe conf$$.
file
16806 if test -d conf$$.dir
; then
16807 rm -f conf$$.dir
/conf$$.
file
16810 mkdir conf$$.dir
2>/dev
/null
16812 if (echo >conf$$.
file) 2>/dev
/null
; then
16813 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16815 # ... but there are two gotchas:
16816 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16817 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16818 # In both cases, we have to default to `cp -pR'.
16819 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
16821 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16829 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
16830 rmdir conf$$.dir
2>/dev
/null
16835 # Create "$as_dir" as a directory, including parents if necessary.
16840 -*) as_dir
=.
/$as_dir;;
16842 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
16846 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16847 *) as_qdir
=$as_dir;;
16849 as_dirs
="'$as_qdir' $as_dirs"
16850 as_dir
=`$as_dirname -- "$as_dir" ||
16851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16852 X"$as_dir" : 'X\(//\)[^/]' \| \
16853 X"$as_dir" : 'X\(//\)$' \| \
16854 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16855 $as_echo X"$as_dir" |
16856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16860 /^X\(\/\/\)[^/].*/{
16873 test -d "$as_dir" && break
16875 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16876 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16880 if mkdir
-p .
2>/dev
/null
; then
16881 as_mkdir_p
='mkdir -p "$as_dir"'
16883 test -d .
/-p && rmdir .
/-p
16888 # as_fn_executable_p FILE
16889 # -----------------------
16890 # Test if FILE is an executable regular file.
16891 as_fn_executable_p
()
16893 test -f "$1" && test -x "$1"
16894 } # as_fn_executable_p
16895 as_test_x
='test -x'
16896 as_executable_p
=as_fn_executable_p
16898 # Sed expression to map a string onto a valid CPP name.
16899 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16901 # Sed expression to map a string onto a valid variable name.
16902 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16906 ## ----------------------------------- ##
16907 ## Main body of $CONFIG_STATUS script. ##
16908 ## ----------------------------------- ##
16910 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16913 # Save the log message, to keep $0 and so on meaningful, and to
16914 # report actual input values of CONFIG_FILES etc. instead of their
16915 # values after options handling.
16917 This file was extended by OpenVPN $as_me 2.3.4, which was
16918 generated by GNU Autoconf 2.69. Invocation command line was
16920 CONFIG_FILES = $CONFIG_FILES
16921 CONFIG_HEADERS = $CONFIG_HEADERS
16922 CONFIG_LINKS = $CONFIG_LINKS
16923 CONFIG_COMMANDS = $CONFIG_COMMANDS
16926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16931 case $ac_config_files in *"
16932 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16935 case $ac_config_headers in *"
16936 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16941 # Files that config.status was made for.
16942 config_files="$ac_config_files"
16943 config_headers="$ac_config_headers"
16944 config_commands="$ac_config_commands"
16948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16950 \`$as_me' instantiates files and other configuration actions
16951 from templates according to the current configuration. Unless the files
16952 and actions are specified as TAGs, all are instantiated by default.
16954 Usage: $0 [OPTION]... [TAG]...
16956 -h, --help print this help, then exit
16957 -V, --version print version number and configuration settings, then exit
16958 --config print configuration, then exit
16959 -q, --quiet, --silent
16960 do not print progress messages
16961 -d, --debug don't remove temporary files
16962 --recheck update $as_me by reconfiguring in the same conditions
16963 --file=FILE[:TEMPLATE]
16964 instantiate the configuration file FILE
16965 --header=FILE[:TEMPLATE]
16966 instantiate the configuration header FILE
16968 Configuration files:
16971 Configuration headers:
16974 Configuration commands:
16977 Report bugs to <openvpn-users@lists.sourceforge.net>."
16980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16981 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16983 OpenVPN config.status 2.3.4
16984 configured by $0, generated by GNU Autoconf 2.69,
16985 with options \\"\$ac_cs_config\\"
16987 Copyright (C) 2012 Free Software Foundation, Inc.
16988 This config.status script is free software; the Free Software Foundation
16989 gives unlimited permission to copy, distribute and modify it."
16996 test -n "\$AWK" || AWK=awk
16999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17000 # The default lists apply if the user does not specify any file.
17006 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17007 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17011 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17023 # Handling of the options.
17024 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17026 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17027 $as_echo "$ac_cs_version"; exit ;;
17028 --config |
--confi |
--conf |
--con |
--co |
--c )
17029 $as_echo "$ac_cs_config"; exit ;;
17030 --debug |
--debu |
--deb |
--de |
--d |
-d )
17032 --file |
--fil |
--fi |
--f )
17035 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17036 '') as_fn_error $?
"missing file argument" ;;
17038 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17039 ac_need_defaults
=false
;;
17040 --header |
--heade |
--head |
--hea )
17043 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17045 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17046 ac_need_defaults
=false
;;
17048 # Conflict between --help and --header
17049 as_fn_error $?
"ambiguous option: \`$1'
17050 Try \`$0 --help' for more information.";;
17051 --help |
--hel |
-h )
17052 $as_echo "$ac_cs_usage"; exit ;;
17053 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17054 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17057 # This is an error.
17058 -*) as_fn_error $?
"unrecognized option: \`$1'
17059 Try \`$0 --help' for more information." ;;
17061 *) as_fn_append ac_config_targets
" $1"
17062 ac_need_defaults
=false
;;
17068 ac_configure_extra_args
=
17070 if $ac_cs_silent; then
17072 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17077 if \$ac_cs_recheck; then
17078 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17080 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17081 CONFIG_SHELL='$SHELL'
17082 export CONFIG_SHELL
17087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17091 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17092 ## Running $as_me. ##
17098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17102 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17105 # The HP-UX ksh and POSIX shell print the target directory to stdout
17106 # if CDPATH is set.
17107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17109 sed_quote_subst='$sed_quote_subst'
17110 double_quote_subst='$double_quote_subst'
17111 delay_variable_subst='$delay_variable_subst'
17112 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17113 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17114 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17115 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17116 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17117 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17118 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17119 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17120 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17121 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17122 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17123 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17124 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17125 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17126 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17127 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17128 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17129 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17130 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17131 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17132 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17133 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17134 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17135 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17136 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17137 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17138 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17139 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17140 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17141 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17142 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17143 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17144 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17145 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17146 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17147 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17148 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17149 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17150 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17151 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17152 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17153 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17154 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17155 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17156 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17157 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17158 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17159 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17160 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17161 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17162 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17163 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17164 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17165 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17166 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17167 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17168 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17169 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"`'
17170 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17171 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17172 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17173 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17174 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17175 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17176 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17177 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17178 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17179 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17180 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17181 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17182 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17183 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17184 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17185 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17186 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17187 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17188 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17189 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17190 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17191 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17192 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17193 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17194 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17195 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17196 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17197 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17198 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17199 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17200 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17201 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17202 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17203 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17204 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17205 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17206 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17207 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17208 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17209 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17210 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17211 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17212 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17213 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17214 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17215 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17216 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17217 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17218 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17219 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17220 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17221 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17222 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17223 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17224 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17225 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17226 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17227 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17228 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17229 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17230 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17231 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17232 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17233 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17234 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17235 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17236 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17237 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17238 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17239 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17240 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17241 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17242 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17243 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17244 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17245 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17246 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17247 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17248 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17249 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17250 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17251 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17252 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17253 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17254 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17255 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17256 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17257 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17258 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17259 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17260 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17261 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17262 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17263 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17264 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17265 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17266 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17267 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17268 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17269 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17270 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17271 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17272 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17273 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17274 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17275 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17276 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17277 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17278 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17279 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17280 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17281 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17282 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17283 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17284 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17287 LTCFLAGS='$LTCFLAGS'
17288 compiler='$compiler_DEFAULT'
17290 # A function that is used when there is no print builtin or printf.
17291 func_fallback_echo ()
17293 eval 'cat <<_LTECHO_EOF
17298 # Quote evaled strings.
17315 deplibs_check_method \
17319 sharedlib_from_linklib_cmd \
17322 archiver_list_spec \
17328 lt_cv_sys_global_symbol_pipe \
17329 lt_cv_sys_global_symbol_to_cdecl \
17330 lt_cv_sys_global_symbol_to_c_name_address \
17331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17332 nm_file_list_spec \
17333 lt_prog_compiler_no_builtin_flag \
17334 lt_prog_compiler_pic \
17335 lt_prog_compiler_wl \
17336 lt_prog_compiler_static \
17337 lt_cv_prog_compiler_c_o \
17346 export_dynamic_flag_spec \
17347 whole_archive_flag_spec \
17348 compiler_needs_object \
17350 allow_undefined_flag \
17351 no_undefined_flag \
17352 hardcode_libdir_flag_spec \
17353 hardcode_libdir_separator \
17357 variables_saved_for_relink \
17359 library_names_spec \
17361 install_override_mode \
17368 lt_prog_compiler_no_builtin_flag_RC \
17369 lt_prog_compiler_pic_RC \
17370 lt_prog_compiler_wl_RC \
17371 lt_prog_compiler_static_RC \
17372 lt_cv_prog_compiler_c_o_RC \
17373 export_dynamic_flag_spec_RC \
17374 whole_archive_flag_spec_RC \
17375 compiler_needs_object_RC \
17377 allow_undefined_flag_RC \
17378 no_undefined_flag_RC \
17379 hardcode_libdir_flag_spec_RC \
17380 hardcode_libdir_separator_RC \
17381 exclude_expsyms_RC \
17382 include_expsyms_RC \
17383 file_list_spec_RC; do
17384 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17385 *[\\\\\\\`\\"\\\$]*)
17386 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17389 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17394 # Double-quote double-evaled strings.
17395 for var in reload_cmds \
17396 old_postinstall_cmds \
17397 old_postuninstall_cmds \
17399 extract_expsyms_cmds \
17400 old_archive_from_new_cmds \
17401 old_archive_from_expsyms_cmds \
17403 archive_expsym_cmds \
17405 module_expsym_cmds \
17406 export_symbols_cmds \
17410 postuninstall_cmds \
17412 sys_lib_search_path_spec \
17413 sys_lib_dlsearch_path_spec \
17415 old_archive_cmds_RC \
17416 old_archive_from_new_cmds_RC \
17417 old_archive_from_expsyms_cmds_RC \
17419 archive_expsym_cmds_RC \
17421 module_expsym_cmds_RC \
17422 export_symbols_cmds_RC \
17424 postlink_cmds_RC; do
17425 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17426 *[\\\\\\\`\\"\\\$]*)
17427 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17430 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17435 ac_aux_dir='$ac_aux_dir'
17436 xsi_shell='$xsi_shell'
17437 lt_shell_append='$lt_shell_append'
17439 # See if we are running on zsh, and set the options which allow our
17440 # commands through without removal of \ escapes INIT.
17441 if test -n "\${ZSH_VERSION+set}" ; then
17442 setopt NO_GLOB_SUBST
17448 TIMESTAMP='$TIMESTAMP'
17459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17461 # Handling of arguments.
17462 for ac_config_target
in $ac_config_targets
17464 case $ac_config_target in
17465 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
17466 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17467 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17468 "version.sh") CONFIG_FILES
="$CONFIG_FILES version.sh" ;;
17469 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17470 "build/Makefile") CONFIG_FILES
="$CONFIG_FILES build/Makefile" ;;
17471 "build/msvc/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/Makefile" ;;
17472 "build/msvc/msvc-generate/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
17473 "distro/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/Makefile" ;;
17474 "distro/rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/rpm/Makefile" ;;
17475 "distro/rpm/openvpn.spec") CONFIG_FILES
="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
17476 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
17477 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17478 "src/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES src/compat/Makefile" ;;
17479 "src/openvpn/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpn/Makefile" ;;
17480 "src/openvpnserv/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpnserv/Makefile" ;;
17481 "src/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/Makefile" ;;
17482 "src/plugins/auth-pam/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
17483 "src/plugins/down-root/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
17484 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
17485 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
17486 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17487 "tests/t_client.sh") CONFIG_FILES
="$CONFIG_FILES tests/t_client.sh" ;;
17489 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17494 # If the user did not use the arguments to specify the items to instantiate,
17495 # then the envvar interface is used. Set only those that are not.
17496 # We use the long form for the default assignment because of an extremely
17497 # bizarre bug on SunOS 4.1.3.
17498 if $ac_need_defaults; then
17499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17504 # Have a temporary directory for convenience. Make it in the build tree
17505 # simply because there is no reason against having it here, and in addition,
17506 # creating and moving files from /tmp can sometimes cause problems.
17507 # Hook for its removal unless debugging.
17508 # Note that there is a small window in which the directory will not be cleaned:
17509 # after its creation but before its name has been assigned to `$tmp'.
17513 trap 'exit_status=$?
17514 : "${ac_tmp:=$tmp}"
17515 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17517 trap 'as_fn_exit 1' 1 2 13 15
17519 # Create a (secure) tmp directory for tmp files.
17522 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17526 tmp
=.
/conf$$
-$RANDOM
17527 (umask 077 && mkdir
"$tmp")
17528 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17531 # Set up the scripts for CONFIG_FILES section.
17532 # No need to generate them if there are no CONFIG_FILES.
17533 # This happens for instance with `./config.status config.h'.
17534 if test -n "$CONFIG_FILES"; then
17537 ac_cr
=`echo X | tr X '\015'`
17538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17539 # But we know of no other shell where ac_cr would be empty at this
17540 # point, so we can use a bashism as a fallback.
17541 if test "x$ac_cr" = x
; then
17542 eval ac_cr
=\$
\'\\r
\'
17544 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17548 ac_cs_awk_cr
=$ac_cr
17551 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17556 echo "cat >conf$$subs.awk <<_ACEOF" &&
17557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17559 } >conf$$subs.sh ||
17560 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17563 for ac_last_try in false false false false false :; do
17564 . ./conf$$subs.sh ||
17565 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17567 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17568 if test $ac_delim_n = $ac_delim_num; then
17570 elif $ac_last_try; then
17571 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17573 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17576 rm -f conf$$subs.sh
17578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17579 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
17583 s/^/S["/; s
/!.
*/"]=/
17593 s/\(.\{148\}\)..*/\1/
17595 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17600 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17607 s/\(.\{148\}\)..*/\1/
17609 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17613 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17618 ' <conf$$subs.awk | sed '
17623 ' >>$CONFIG_STATUS || ac_write_fail=1
17624 rm -f conf$$subs.awk
17625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17627 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
17628 for (key in S) S_is_set[key] = 1
17634 nfields = split(line, field, "@
")
17636 len = length(field[1])
17637 for (i = 2; i < nfields; i++) {
17639 keylen = length(key)
17640 if (S_is_set[key]) {
17642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17643 len += length(value) + length(field[++i])
17654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17655 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17656 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17659 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
17660 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
17663 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17664 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
17665 # trailing colons and then remove the whole line if VPATH becomes empty
17666 # (actually we leave an empty line to preserve line numbers).
17667 if test "x
$srcdir" = x.; then
17668 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 fi # test -n "$CONFIG_FILES"
17689 # Set up the scripts for CONFIG_HEADERS section.
17690 # No need to generate them if there are no CONFIG_HEADERS.
17691 # This happens for instance with `./config.status Makefile'.
17692 if test -n "$CONFIG_HEADERS"; then
17693 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
17697 # Transform confdefs.h into an awk script `defines.awk', embedded as
17698 # here-document in config.status, that substitutes the proper values into
17699 # config.h.in to produce config.h.
17701 # Create a delimiter string that does not exist in confdefs.h, to ease
17702 # handling of long lines.
17704 for ac_last_try in false false :; do
17705 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
17706 if test -z "$ac_tt"; then
17708 elif $ac_last_try; then
17709 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
17711 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17715 # For the awk script, D is an array of macro values keyed by name,
17716 # likewise P contains macro parameters if any. Preserve backslash
17717 # newline sequences.
17719 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17721 s/.\{148\}/&'"$ac_delim"'/g
17724 s/^[ ]*#[ ]*define[ ][ ]*/ /
17731 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17733 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17737 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17738 D["\
1"]=" \
3\\\\\\n
"\\/p
17740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17745 s/.\{148\}/&'"$ac_delim"'/g
17750 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17753 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17755 ' <confdefs.h | sed '
17756 s/'"$ac_delim"'/"\\\
17757 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17760 for (key in D) D_is_set[key] = 1
17763 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17765 split(line, arg, " ")
17766 if (arg[1] == "#") {
17770 defundef
= substr
(arg
[1], 2)
17773 split(mac1
, mac2
, "(") #)
17775 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17776 if (D_is_set
[macro
]) {
17777 # Preserve the white space surrounding the "#".
17778 print prefix
"define", macro P
[macro
] D
[macro
]
17781 # Replace #undef with comments. This is necessary, for example,
17782 # in the case of _POSIX_SOURCE, which is predefined and required
17783 # on some systems where configure will not decide to define it.
17784 if (defundef
== "undef") {
17785 print
"/*", prefix defundef
, macro
, "*/"
17793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17794 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
17795 fi # test -n "$CONFIG_HEADERS"
17798 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17803 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17805 case $ac_mode$ac_tag in
17807 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
17808 :[FH
]-) ac_tag
=-:-;;
17809 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17826 -) ac_f
="$ac_tmp/stdin";;
17827 *) # Look for the file first in the build tree, then in the source tree
17828 # (if the path is not absolute). The absolute path cannot be DOS-style,
17829 # because $ac_f cannot contain `:'.
17833 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17835 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17837 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17838 as_fn_append ac_file_inputs
" '$ac_f'"
17841 # Let's still pretend it is `configure' which instantiates (i.e., don't
17842 # use $as_me), people would be surprised to read:
17843 # /* config.h. Generated by config.status. */
17844 configure_input
='Generated from '`
17845 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17847 if test x
"$ac_file" != x-
; then
17848 configure_input
="$ac_file. $configure_input"
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17850 $as_echo "$as_me: creating $ac_file" >&6;}
17852 # Neutralize special characters interpreted by sed in replacement strings.
17853 case $configure_input in #(
17854 *\
&* |
*\|
* |
*\\* )
17855 ac_sed_conf_input
=`$as_echo "$configure_input" |
17856 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17857 *) ac_sed_conf_input
=$configure_input;;
17861 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
17862 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
17867 ac_dir
=`$as_dirname -- "$ac_file" ||
17868 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17869 X"$ac_file" : 'X\(//\)[^/]' \| \
17870 X"$ac_file" : 'X\(//\)$' \| \
17871 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17872 $as_echo X"$ac_file" |
17873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17877 /^X\(\/\/\)[^/].*/{
17890 as_dir
="$ac_dir"; as_fn_mkdir_p
17894 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17896 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17897 # A ".." for each directory in $ac_dir_suffix.
17898 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17899 case $ac_top_builddir_sub in
17900 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17901 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17904 ac_abs_top_builddir
=$ac_pwd
17905 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17906 # for backward compatibility:
17907 ac_top_builddir
=$ac_top_build_prefix
17910 .
) # We are building in place.
17912 ac_top_srcdir
=$ac_top_builddir_sub
17913 ac_abs_top_srcdir
=$ac_pwd ;;
17914 [\\/]* | ?
:[\\/]* ) # Absolute name.
17915 ac_srcdir
=$srcdir$ac_dir_suffix;
17916 ac_top_srcdir
=$srcdir
17917 ac_abs_top_srcdir
=$srcdir ;;
17918 *) # Relative name.
17919 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17920 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17921 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17923 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17933 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17934 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17936 ac_MKDIR_P
=$MKDIR_P
17938 [\\/$
]* | ?
:[\\/]* ) ;;
17939 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17944 # If the template does not know about datarootdir, expand it.
17945 # FIXME: This hack should be removed a few years after 2.60.
17946 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17957 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17958 *datarootdir
*) ac_datarootdir_seen
=yes;;
17959 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17961 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17964 ac_datarootdir_hack='
17965 s&@datadir@&$datadir&g
17966 s&@docdir@&$docdir&g
17967 s&@infodir@&$infodir&g
17968 s&@localedir@&$localedir&g
17969 s&@mandir@&$mandir&g
17970 s&\\\${datarootdir}&$datarootdir&g' ;;
17974 # Neutralize VPATH when `$srcdir' = `.'.
17975 # Shell code in configure.ac might set extrasub.
17976 # FIXME: do we really want to maintain this feature?
17977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978 ac_sed_extra="$ac_vpsub
17981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17983 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17984 s|@configure_input@|
$ac_sed_conf_input|
;t t
17985 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17986 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17987 s
&@srcdir@
&$ac_srcdir&;t t
17988 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17989 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17990 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17991 s
&@builddir@
&$ac_builddir&;t t
17992 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17993 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17994 s
&@INSTALL@
&$ac_INSTALL&;t t
17995 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17996 $ac_datarootdir_hack
17998 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
17999 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18001 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18002 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18003 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18004 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18006 which seems to be undefined. Please make sure it is defined" >&5
18007 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18008 which seems to be undefined. Please make sure it is defined" >&2;}
18010 rm -f "$ac_tmp/stdin"
18012 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18013 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18021 if test x"$ac_file" != x-; then
18023 $as_echo "/* $configure_input */" \
18024 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18025 } >"$ac_tmp/config.h" \
18026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18027 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18029 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18032 mv "$ac_tmp/config.h" "$ac_file" \
18033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18036 $as_echo "/* $configure_input */" \
18037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18038 || as_fn_error $? "could not create -" "$LINENO" 5
18040 # Compute "$ac_file"'s index
in $config_headers.
18043 for _am_header
in $config_headers :; do
18044 case $_am_header in
18045 $_am_arg |
$_am_arg:* )
18048 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18051 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18052 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053 X"$_am_arg" : 'X\(//\)[^/]' \| \
18054 X"$_am_arg" : 'X\(//\)$' \| \
18055 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18056 $as_echo X"$_am_arg" |
18057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18061 /^X\(\/\/\)[^/].*/{
18073 s/.*/./; q'`/stamp-h
$_am_stamp_count
18076 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18077 $as_echo "$as_me: executing $ac_file commands" >&6;}
18082 case $ac_file$ac_mode in
18083 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18084 # Older Autoconf quotes --file arguments for eval, but not when files
18085 # are listed without --file. Let's play safe and only enable the eval
18086 # if we detect the quoting.
18087 case $CONFIG_FILES in
18088 *\'*) eval set x
"$CONFIG_FILES" ;;
18089 *) set x
$CONFIG_FILES ;;
18094 # Strip MF so we end up with the name of the file.
18095 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18096 # Check whether this is an Automake generated Makefile or not.
18097 # We used to match only the files named 'Makefile.in', but
18098 # some people rename them; so instead we look at the file content.
18099 # Grep'ing the first line is not enough: some people post-process
18100 # each Makefile.in and add a new line on top of each file to say so.
18101 # Grep'ing the whole file is not good either: AIX grep has a line
18102 # limit of 2048, but all sed's we know have understand at least 4000.
18103 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18104 dirpart
=`$as_dirname -- "$mf" ||
18105 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18106 X"$mf" : 'X\(//\)[^/]' \| \
18107 X"$mf" : 'X\(//\)$' \| \
18108 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18114 /^X\(\/\/\)[^/].*/{
18130 # Extract the definition of DEPDIR, am__include, and am__quote
18131 # from the Makefile without running 'make'.
18132 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18133 test -z "$DEPDIR" && continue
18134 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18135 test -z "$am__include" && continue
18136 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18137 # Find all dependency output files, they are included files with
18138 # $(DEPDIR) in their names. We invoke sed twice because it is the
18139 # simplest approach to changing $(DEPDIR) to its actual value in the
18141 for file in `sed -n "
18142 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18143 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18144 # Make sure the directory exists.
18145 test -f "$dirpart/$file" && continue
18146 fdir
=`$as_dirname -- "$file" ||
18147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18148 X"$file" : 'X\(//\)[^/]' \| \
18149 X"$file" : 'X\(//\)$' \| \
18150 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18151 $as_echo X"$file" |
18152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18156 /^X\(\/\/\)[^/].*/{
18169 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18170 # echo "creating $dirpart/$file"
18171 echo '# dummy' > "$dirpart/$file"
18178 # See if we are running on zsh, and set the options which allow our
18179 # commands through without removal of \ escapes.
18180 if test -n "${ZSH_VERSION+set}" ; then
18181 setopt NO_GLOB_SUBST
18184 cfgfile
="${ofile}T"
18185 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18188 cat <<_LT_EOF >> "$cfgfile"
18191 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18192 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18194 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18196 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18197 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18199 # Written by Gordon Matzigkeit, 1996
18201 # This file is part of GNU Libtool.
18203 # GNU Libtool is free software; you can redistribute it and/or
18204 # modify it under the terms of the GNU General Public License as
18205 # published by the Free Software Foundation; either version 2 of
18206 # the License, or (at your option) any later version.
18208 # As a special exception to the GNU General Public License,
18209 # if you distribute this file as part of a program or library that
18210 # is built using GNU Libtool, you may include this file under the
18211 # same distribution terms that you use for the rest of that program.
18213 # GNU Libtool is distributed in the hope that it will be useful,
18214 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18215 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18216 # GNU General Public License for more details.
18218 # You should have received a copy of the GNU General Public License
18219 # along with GNU Libtool; see the file COPYING. If not, a copy
18220 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18221 # obtained by writing to the Free Software Foundation, Inc.,
18222 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18225 # The names of the tagged configurations supported by this script.
18226 available_tags="RC "
18228 # ### BEGIN LIBTOOL CONFIG
18230 # Which release of libtool.m4 was used?
18231 macro_version=$macro_version
18232 macro_revision=$macro_revision
18234 # Assembler program.
18237 # DLL creation program.
18238 DLLTOOL=$lt_DLLTOOL
18240 # Object dumper program.
18241 OBJDUMP=$lt_OBJDUMP
18243 # Whether or not to build shared libraries.
18244 build_libtool_libs=$enable_shared
18246 # Whether or not to build static libraries.
18247 build_old_libs=$enable_static
18249 # What type of objects to build.
18252 # Whether or not to optimize for fast installation.
18253 fast_install=$enable_fast_install
18255 # Shell to use when invoking shell scripts.
18258 # An echo program that protects backslashes.
18261 # The PATH separator for the build system.
18262 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18265 host_alias=$host_alias
18269 # The build system.
18270 build_alias=$build_alias
18274 # A sed program that does not truncate output.
18277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18278 Xsed="\$SED -e 1s/^X//"
18280 # A grep program that handles long lines.
18286 # A literal string matcher.
18289 # A BSD- or MS-compatible name lister.
18292 # Whether we need soft or hard links.
18295 # What is the maximum length of a command?
18296 max_cmd_len=$max_cmd_len
18298 # Object file suffix (normally "o").
18301 # Executable file suffix (normally "").
18304 # whether the shell understands "unset".
18307 # turn spaces into newlines.
18310 # turn newlines into spaces.
18313 # convert \$build file names to \$host format.
18314 to_host_file_cmd=$lt_cv_to_host_file_cmd
18316 # convert \$build files to toolchain format.
18317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18319 # Method to check whether dependent libraries are shared objects.
18320 deplibs_check_method=$lt_deplibs_check_method
18322 # Command to use when deplibs_check_method = "file_magic".
18323 file_magic_cmd=$lt_file_magic_cmd
18325 # How to find potential files when deplibs_check_method = "file_magic".
18326 file_magic_glob=$lt_file_magic_glob
18328 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18329 want_nocaseglob=$lt_want_nocaseglob
18331 # Command to associate shared and link libraries.
18332 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18337 # Flags to create an archive.
18338 AR_FLAGS=$lt_AR_FLAGS
18340 # How to feed a file listing to the archiver.
18341 archiver_list_spec=$lt_archiver_list_spec
18343 # A symbol stripping program.
18346 # Commands used to install an old-style archive.
18348 old_postinstall_cmds=$lt_old_postinstall_cmds
18349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18351 # Whether to use a lock for old archive extraction.
18352 lock_old_archive_extraction=$lock_old_archive_extraction
18357 # LTCC compiler flags.
18358 LTCFLAGS=$lt_CFLAGS
18360 # Take the output of nm and produce a listing of raw symbols and C names.
18361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18363 # Transform the output of nm in a proper C declaration.
18364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18366 # Transform the output of nm in a C name address pair.
18367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18369 # Transform the output of nm in a C name address pair when lib prefix is needed.
18370 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18372 # Specify filename containing input files for \$NM.
18373 nm_file_list_spec=$lt_nm_file_list_spec
18375 # The root where to search for dependent libraries,and in which our libraries should be installed.
18376 lt_sysroot=$lt_sysroot
18378 # The name of the directory that contains temporary libtool files.
18381 # Used to examine libraries when file_magic_cmd begins with "file".
18382 MAGIC_CMD=$MAGIC_CMD
18384 # Must we lock files when doing compilation?
18385 need_locks=$lt_need_locks
18388 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18390 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18391 DSYMUTIL=$lt_DSYMUTIL
18393 # Tool to change global to local symbols on Mac OS X.
18396 # Tool to manipulate fat objects and archives on Mac OS X.
18399 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18402 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18403 OTOOL64=$lt_OTOOL64
18405 # Old archive suffix (normally "a").
18408 # Shared library suffix (normally ".so").
18409 shrext_cmds=$lt_shrext_cmds
18411 # The commands to extract the exported symbol list from a shared archive.
18412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414 # Variables whose values should be saved in libtool wrapper scripts and
18415 # restored at link time.
18416 variables_saved_for_relink=$lt_variables_saved_for_relink
18418 # Do we need the "lib" prefix for modules?
18419 need_lib_prefix=$need_lib_prefix
18421 # Do we need a version for libraries?
18422 need_version=$need_version
18424 # Library versioning type.
18425 version_type=$version_type
18427 # Shared library runtime path variable.
18428 runpath_var=$runpath_var
18430 # Shared library path variable.
18431 shlibpath_var=$shlibpath_var
18433 # Is shlibpath searched before the hard-coded library search path?
18434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18436 # Format of library name prefix.
18437 libname_spec=$lt_libname_spec
18439 # List of archive names. First name is the real one, the rest are links.
18440 # The last name is the one that the linker finds with -lNAME
18441 library_names_spec=$lt_library_names_spec
18443 # The coded name of the library, if different from the real name.
18444 soname_spec=$lt_soname_spec
18446 # Permission mode override for installation of shared libraries.
18447 install_override_mode=$lt_install_override_mode
18449 # Command to use after installation of a shared archive.
18450 postinstall_cmds=$lt_postinstall_cmds
18452 # Command to use after uninstallation of a shared archive.
18453 postuninstall_cmds=$lt_postuninstall_cmds
18455 # Commands used to finish a libtool library installation in a directory.
18456 finish_cmds=$lt_finish_cmds
18458 # As "finish_cmds", except a single script fragment to be evaled but
18460 finish_eval=$lt_finish_eval
18462 # Whether we should hardcode library paths into libraries.
18463 hardcode_into_libs=$hardcode_into_libs
18465 # Compile-time system search path for libraries.
18466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18468 # Run-time system search path for libraries.
18469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18471 # Whether dlopen is supported.
18472 dlopen_support=$enable_dlopen
18474 # Whether dlopen of programs is supported.
18475 dlopen_self=$enable_dlopen_self
18477 # Whether dlopen of statically linked programs is supported.
18478 dlopen_self_static=$enable_dlopen_self_static
18480 # Commands to strip libraries.
18481 old_striplib=$lt_old_striplib
18482 striplib=$lt_striplib
18485 # The linker used to build libraries.
18488 # How to create reloadable object files.
18489 reload_flag=$lt_reload_flag
18490 reload_cmds=$lt_reload_cmds
18492 # Commands used to build an old-style archive.
18493 old_archive_cmds=$lt_old_archive_cmds
18495 # A language specific compiler.
18498 # Is the compiler the GNU compiler?
18501 # Compiler flag to turn off builtin functions.
18502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18504 # Additional compiler flags for building library objects.
18505 pic_flag=$lt_lt_prog_compiler_pic
18507 # How to pass a linker flag through the compiler.
18508 wl=$lt_lt_prog_compiler_wl
18510 # Compiler flag to prevent dynamic linking.
18511 link_static_flag=$lt_lt_prog_compiler_static
18513 # Does compiler simultaneously support -c and -o options?
18514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18516 # Whether or not to add -lc for building shared libraries.
18517 build_libtool_need_lc=$archive_cmds_need_lc
18519 # Whether or not to disallow shared libs when runtime libs are static.
18520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18522 # Compiler flag to allow reflexive dlopens.
18523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18525 # Compiler flag to generate shared objects directly from archives.
18526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18528 # Whether the compiler copes with passing no objects directly.
18529 compiler_needs_object=$lt_compiler_needs_object
18531 # Create an old-style archive from a shared archive.
18532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18534 # Create a temporary old-style archive to link instead of a shared archive.
18535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18537 # Commands used to build a shared archive.
18538 archive_cmds=$lt_archive_cmds
18539 archive_expsym_cmds=$lt_archive_expsym_cmds
18541 # Commands used to build a loadable module if different from building
18542 # a shared archive.
18543 module_cmds=$lt_module_cmds
18544 module_expsym_cmds=$lt_module_expsym_cmds
18546 # Whether we are building with GNU ld or not.
18547 with_gnu_ld=$lt_with_gnu_ld
18549 # Flag that allows shared libraries with undefined symbols to be built.
18550 allow_undefined_flag=$lt_allow_undefined_flag
18552 # Flag that enforces no undefined symbols.
18553 no_undefined_flag=$lt_no_undefined_flag
18555 # Flag to hardcode \$libdir into a binary during linking.
18556 # This must work even if \$libdir does not exist
18557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18559 # Whether we need a single "-rpath" flag with a separated argument.
18560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18563 # DIR into the resulting binary.
18564 hardcode_direct=$hardcode_direct
18566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18567 # DIR into the resulting binary and the resulting library dependency is
18568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18569 # library is relocated.
18570 hardcode_direct_absolute=$hardcode_direct_absolute
18572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18573 # into the resulting binary.
18574 hardcode_minus_L=$hardcode_minus_L
18576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18577 # into the resulting binary.
18578 hardcode_shlibpath_var=$hardcode_shlibpath_var
18580 # Set to "yes" if building a shared library automatically hardcodes DIR
18581 # into the library and all subsequent libraries and executables linked
18583 hardcode_automatic=$hardcode_automatic
18585 # Set to yes if linker adds runtime paths of dependent libraries
18586 # to runtime path list.
18587 inherit_rpath=$inherit_rpath
18589 # Whether libtool must link a program against all its dependency libraries.
18590 link_all_deplibs=$link_all_deplibs
18592 # Set to "yes" if exported symbols are required.
18593 always_export_symbols=$always_export_symbols
18595 # The commands to list exported symbols.
18596 export_symbols_cmds=$lt_export_symbols_cmds
18598 # Symbols that should not be listed in the preloaded symbols.
18599 exclude_expsyms=$lt_exclude_expsyms
18601 # Symbols that must always be exported.
18602 include_expsyms=$lt_include_expsyms
18604 # Commands necessary for linking programs (against libraries) with templates.
18605 prelink_cmds=$lt_prelink_cmds
18607 # Commands necessary for finishing linking programs.
18608 postlink_cmds=$lt_postlink_cmds
18610 # Specify filename containing input files.
18611 file_list_spec=$lt_file_list_spec
18613 # How to hardcode a shared library path into an executable.
18614 hardcode_action=$hardcode_action
18616 # ### END LIBTOOL CONFIG
18622 cat <<\_LT_EOF
>> "$cfgfile"
18623 # AIX sometimes has problems with the GCC collect2 program. For some
18624 # reason, if we set the COLLECT_NAMES environment variable, the problems
18625 # vanish in a puff of smoke.
18626 if test "X${COLLECT_NAMES+set}" != Xset
; then
18628 export COLLECT_NAMES
18635 ltmain
="$ac_aux_dir/ltmain.sh"
18638 # We use sed instead of cat because bash on DJGPP gets confused if
18639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18640 # text mode, it properly converts lines to CR/LF. This bash problem
18641 # is reportedly fixed, but why not run on old versions too?
18642 sed '$q' "$ltmain" >> "$cfgfile" \
18643 ||
(rm -f "$cfgfile"; exit 1)
18645 if test x
"$xsi_shell" = xyes
; then
18646 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18650 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18651 \ * ) func_dirname_result="${3}" ;;\
18653 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18654 && mv -f "$cfgfile.tmp" "$cfgfile" \
18655 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18656 test 0 -eq $? || _lt_function_replace_fail
=:
18659 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18662 \ func_basename_result="${1##*/}"\
18663 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18664 && mv -f "$cfgfile.tmp" "$cfgfile" \
18665 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18666 test 0 -eq $? || _lt_function_replace_fail
=:
18669 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18670 func_dirname_and_basename ()\
18673 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18674 \ * ) func_dirname_result="${3}" ;;\
18676 \ func_basename_result="${1##*/}"\
18677 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18678 && mv -f "$cfgfile.tmp" "$cfgfile" \
18679 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18680 test 0 -eq $? || _lt_function_replace_fail
=:
18683 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18686 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18687 \ # positional parameters, so assign one to ordinary parameter first.\
18688 \ func_stripname_result=${3}\
18689 \ func_stripname_result=${func_stripname_result#"${1}"}\
18690 \ func_stripname_result=${func_stripname_result%"${2}"}\
18691 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18692 && mv -f "$cfgfile.tmp" "$cfgfile" \
18693 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18694 test 0 -eq $? || _lt_function_replace_fail
=:
18697 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18698 func_split_long_opt ()\
18700 \ func_split_long_opt_name=${1%%=*}\
18701 \ func_split_long_opt_arg=${1#*=}\
18702 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18703 && mv -f "$cfgfile.tmp" "$cfgfile" \
18704 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18705 test 0 -eq $? || _lt_function_replace_fail
=:
18708 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18709 func_split_short_opt ()\
18711 \ func_split_short_opt_arg=${1#??}\
18712 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18713 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18714 && mv -f "$cfgfile.tmp" "$cfgfile" \
18715 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18716 test 0 -eq $? || _lt_function_replace_fail
=:
18719 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18723 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18724 \ *) func_lo2o_result=${1} ;;\
18726 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18727 && mv -f "$cfgfile.tmp" "$cfgfile" \
18728 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18729 test 0 -eq $? || _lt_function_replace_fail
=:
18732 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18735 func_xform_result=${1%.*}.lo\
18736 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18737 && mv -f "$cfgfile.tmp" "$cfgfile" \
18738 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18739 test 0 -eq $? || _lt_function_replace_fail
=:
18742 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18745 func_arith_result=$(( $* ))\
18746 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18747 && mv -f "$cfgfile.tmp" "$cfgfile" \
18748 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18749 test 0 -eq $? || _lt_function_replace_fail
=:
18752 sed -e '/^func_len ()$/,/^} # func_len /c\
18755 func_len_result=${#1}\
18756 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18757 && mv -f "$cfgfile.tmp" "$cfgfile" \
18758 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18759 test 0 -eq $? || _lt_function_replace_fail
=:
18763 if test x
"$lt_shell_append" = xyes
; then
18764 sed -e '/^func_append ()$/,/^} # func_append /c\
18767 eval "${1}+=\\${2}"\
18768 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18769 && mv -f "$cfgfile.tmp" "$cfgfile" \
18770 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18771 test 0 -eq $? || _lt_function_replace_fail
=:
18774 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18775 func_append_quoted ()\
18777 \ func_quote_for_eval "${2}"\
18778 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18779 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18780 && mv -f "$cfgfile.tmp" "$cfgfile" \
18781 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18782 test 0 -eq $? || _lt_function_replace_fail
=:
18785 # Save a `func_append' function call where possible by direct use of '+='
18786 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18787 && mv -f "$cfgfile.tmp" "$cfgfile" \
18788 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18789 test 0 -eq $? || _lt_function_replace_fail
=:
18791 # Save a `func_append' function call even when '+=' is not available
18792 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18793 && mv -f "$cfgfile.tmp" "$cfgfile" \
18794 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18795 test 0 -eq $? || _lt_function_replace_fail
=:
18798 if test x
"$_lt_function_replace_fail" = x
":"; then
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18800 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18804 mv -f "$cfgfile" "$ofile" ||
18805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18809 cat <<_LT_EOF >> "$ofile"
18811 # ### BEGIN LIBTOOL TAG CONFIG: RC
18813 # The linker used to build libraries.
18816 # How to create reloadable object files.
18817 reload_flag=$lt_reload_flag_RC
18818 reload_cmds=$lt_reload_cmds_RC
18820 # Commands used to build an old-style archive.
18821 old_archive_cmds=$lt_old_archive_cmds_RC
18823 # A language specific compiler.
18826 # Is the compiler the GNU compiler?
18829 # Compiler flag to turn off builtin functions.
18830 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18832 # Additional compiler flags for building library objects.
18833 pic_flag=$lt_lt_prog_compiler_pic_RC
18835 # How to pass a linker flag through the compiler.
18836 wl=$lt_lt_prog_compiler_wl_RC
18838 # Compiler flag to prevent dynamic linking.
18839 link_static_flag=$lt_lt_prog_compiler_static_RC
18841 # Does compiler simultaneously support -c and -o options?
18842 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_RC
18847 # Whether or not to disallow shared libs when runtime libs are static.
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18850 # Compiler flag to allow reflexive dlopens.
18851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18853 # Compiler flag to generate shared objects directly from archives.
18854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18856 # Whether the compiler copes with passing no objects directly.
18857 compiler_needs_object=$lt_compiler_needs_object_RC
18859 # Create an old-style archive from a shared archive.
18860 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18862 # Create a temporary old-style archive to link instead of a shared archive.
18863 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18865 # Commands used to build a shared archive.
18866 archive_cmds=$lt_archive_cmds_RC
18867 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18869 # Commands used to build a loadable module if different from building
18870 # a shared archive.
18871 module_cmds=$lt_module_cmds_RC
18872 module_expsym_cmds=$lt_module_expsym_cmds_RC
18874 # Whether we are building with GNU ld or not.
18875 with_gnu_ld=$lt_with_gnu_ld_RC
18877 # Flag that allows shared libraries with undefined symbols to be built.
18878 allow_undefined_flag=$lt_allow_undefined_flag_RC
18880 # Flag that enforces no undefined symbols.
18881 no_undefined_flag=$lt_no_undefined_flag_RC
18883 # Flag to hardcode \$libdir into a binary during linking.
18884 # This must work even if \$libdir does not exist
18885 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18887 # Whether we need a single "-rpath" flag with a separated argument.
18888 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18891 # DIR into the resulting binary.
18892 hardcode_direct=$hardcode_direct_RC
18894 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18895 # DIR into the resulting binary and the resulting library dependency is
18896 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18897 # library is relocated.
18898 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18900 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18901 # into the resulting binary.
18902 hardcode_minus_L=$hardcode_minus_L_RC
18904 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18905 # into the resulting binary.
18906 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18908 # Set to "yes" if building a shared library automatically hardcodes DIR
18909 # into the library and all subsequent libraries and executables linked
18911 hardcode_automatic=$hardcode_automatic_RC
18913 # Set to yes if linker adds runtime paths of dependent libraries
18914 # to runtime path list.
18915 inherit_rpath=$inherit_rpath_RC
18917 # Whether libtool must link a program against all its dependency libraries.
18918 link_all_deplibs=$link_all_deplibs_RC
18920 # Set to "yes" if exported symbols are required.
18921 always_export_symbols=$always_export_symbols_RC
18923 # The commands to list exported symbols.
18924 export_symbols_cmds=$lt_export_symbols_cmds_RC
18926 # Symbols that should not be listed in the preloaded symbols.
18927 exclude_expsyms=$lt_exclude_expsyms_RC
18929 # Symbols that must always be exported.
18930 include_expsyms=$lt_include_expsyms_RC
18932 # Commands necessary for linking programs (against libraries) with templates.
18933 prelink_cmds=$lt_prelink_cmds_RC
18935 # Commands necessary for finishing linking programs.
18936 postlink_cmds=$lt_postlink_cmds_RC
18938 # Specify filename containing input files.
18939 file_list_spec=$lt_file_list_spec_RC
18941 # How to hardcode a shared library path into an executable.
18942 hardcode_action=$hardcode_action_RC
18944 # ### END LIBTOOL TAG CONFIG: RC
18948 "tests/t_client.sh":F
) chmod +x
tests
/t_client.sh
;;
18956 ac_clean_files
=$ac_clean_files_save
18958 test $ac_write_fail = 0 ||
18959 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18962 # configure is writing to config.log, and then calls config.status.
18963 # config.status does its own redirection, appending to config.log.
18964 # Unfortunately, on DOS this fails, as config.log is still kept open
18965 # by configure, so config.status won't be able to write to it; its
18966 # output is simply discarded. So we exec the FD to /dev/null,
18967 # effectively closing config.log, so it can be properly (re)opened and
18968 # appended to by config.status. When coming back to configure, we
18969 # need to make the FD available again.
18970 if test "$no_create" != yes; then
18972 ac_config_status_args
=
18973 test "$silent" = yes &&
18974 ac_config_status_args
="$ac_config_status_args --quiet"
18976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18979 # would make configure fail if this is the last instruction.
18980 $ac_cs_success || as_fn_exit
1
18982 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18984 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}