2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for OpenVPN 2.3.0.
5 # Report bugs to <openvpn-users@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev
/null
; then :
190 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
193 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
195 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir
=.
202 for as_base
in sh bash ksh sh5
; do
203 # Try only shells that exist, to save several forks.
204 as_shell
=$as_dir/$as_base
205 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
207 CONFIG_SHELL
=$as_shell as_have_required
=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
216 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
218 CONFIG_SHELL
=$SHELL as_have_required
=yes
223 if test "x$CONFIG_SHELL" != x
; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and openvpn-users@lists.sourceforge.net
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL
=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
546 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
553 ac_default_prefix
=/usr
/local
555 ac_config_libobj_dir
=.
562 # Identity of this package.
563 PACKAGE_NAME
='OpenVPN'
564 PACKAGE_TARNAME
='openvpn'
565 PACKAGE_VERSION
='2.3.0'
566 PACKAGE_STRING
='OpenVPN 2.3.0'
567 PACKAGE_BUGREPORT
='openvpn-users@lists.sourceforge.net'
570 ac_unique_file
="src/openvpn/syshead.h"
571 # Factoring default headers for most tests.
572 ac_includes_default
="\
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
584 # ifdef HAVE_STDLIB_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
607 ac_subst_vars
='am__EXEEXT_FALSE
613 ENABLE_PLUGIN_DOWN_ROOT_FALSE
614 ENABLE_PLUGIN_DOWN_ROOT_TRUE
615 ENABLE_PLUGIN_AUTH_PAM_FALSE
616 ENABLE_PLUGIN_AUTH_PAM_TRUE
622 PLUGIN_AUTH_PAM_CFLAGS
623 OPTIONAL_PKCS11_HELPER_LIBS
624 OPTIONAL_PKCS11_HELPER_CFLAGS
628 OPTIONAL_CRYPTO_CFLAGS
629 OPTIONAL_SELINUX_LIBS
643 OPENSSL_CRYPTO_CFLAGS
713 INSTALL_STRIP_PROGRAM
755 program_transform_name
768 enable_option_checking
769 enable_dependency_tracking
774 enable_x509_alt_username
792 enable_plugin_auth_pam
793 enable_plugin_down_root
797 enable_strict_options
811 ac_precious_vars
='build_alias
832 OPENSSL_CRYPTO_CFLAGS
844 # Initialize some variables set by options.
846 ac_init_version
=false
847 ac_unrecognized_opts
=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
858 program_transform_name
=s
,x
,x
,
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir
='${exec_prefix}/bin'
873 sbindir
='${exec_prefix}/sbin'
874 libexecdir
='${exec_prefix}/libexec'
875 datarootdir
='${prefix}/share'
876 datadir
='${datarootdir}'
877 sysconfdir
='${prefix}/etc'
878 sharedstatedir
='${prefix}/com'
879 localstatedir
='${prefix}/var'
880 includedir
='${prefix}/include'
881 oldincludedir
='/usr/include'
882 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir
='${datarootdir}/info'
888 libdir
='${exec_prefix}/lib'
889 localedir
='${datarootdir}/locale'
890 mandir
='${datarootdir}/man'
896 # If the previous option needs an argument, assign it.
897 if test -n "$ac_prev"; then
898 eval $ac_prev=\
$ac_option
904 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
914 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
916 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
919 -build |
--build |
--buil |
--bui |
--bu)
920 ac_prev
=build_alias
;;
921 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
922 build_alias
=$ac_optarg ;;
924 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
925 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
926 ac_prev
=cache_file
;;
927 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
928 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
929 cache_file
=$ac_optarg ;;
932 cache_file
=config.cache
;;
934 -datadir |
--datadir |
--datadi |
--datad)
936 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
937 datadir
=$ac_optarg ;;
939 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
940 |
--dataroo |
--dataro |
--datar)
941 ac_prev
=datarootdir
;;
942 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
943 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
944 datarootdir
=$ac_optarg ;;
946 -disable-* |
--disable-*)
947 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
950 as_fn_error $?
"invalid feature name: $ac_useropt"
951 ac_useropt_orig
=$ac_useropt
952 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
957 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep
=', ';;
960 eval enable_
$ac_useropt=no
;;
962 -docdir |
--docdir |
--docdi |
--doc |
--do)
964 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
967 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
969 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
972 -enable-* |
--enable-*)
973 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
976 as_fn_error $?
"invalid feature name: $ac_useropt"
977 ac_useropt_orig
=$ac_useropt
978 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
983 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep
=', ';;
986 eval enable_
$ac_useropt=\
$ac_optarg ;;
988 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
989 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
990 |
--exec |
--exe |
--ex)
991 ac_prev
=exec_prefix
;;
992 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
993 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
994 |
--exec=* |
--exe=* |
--ex=*)
995 exec_prefix
=$ac_optarg ;;
997 -gas |
--gas |
--ga |
--g)
998 # Obsolete; use --with-gas.
1001 -help |
--help |
--hel |
--he |
-h)
1002 ac_init_help
=long
;;
1003 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1004 ac_init_help
=recursive
;;
1005 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1006 ac_init_help
=short
;;
1008 -host |
--host |
--hos |
--ho)
1009 ac_prev
=host_alias
;;
1010 -host=* |
--host=* |
--hos=* |
--ho=*)
1011 host_alias
=$ac_optarg ;;
1013 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1015 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1017 htmldir
=$ac_optarg ;;
1019 -includedir |
--includedir |
--includedi |
--included |
--include \
1020 |
--includ |
--inclu |
--incl |
--inc)
1021 ac_prev
=includedir
;;
1022 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1023 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1024 includedir
=$ac_optarg ;;
1026 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1028 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1029 infodir
=$ac_optarg ;;
1031 -libdir |
--libdir |
--libdi |
--libd)
1033 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1034 libdir
=$ac_optarg ;;
1036 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1037 |
--libexe |
--libex |
--libe)
1038 ac_prev
=libexecdir
;;
1039 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1040 |
--libexe=* |
--libex=* |
--libe=*)
1041 libexecdir
=$ac_optarg ;;
1043 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1044 ac_prev
=localedir
;;
1045 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1046 localedir
=$ac_optarg ;;
1048 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1049 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1050 ac_prev
=localstatedir
;;
1051 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1052 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1053 localstatedir
=$ac_optarg ;;
1055 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1057 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1058 mandir
=$ac_optarg ;;
1060 -nfp |
--nfp |
--nf)
1061 # Obsolete; use --without-fp.
1064 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1065 |
--no-cr |
--no-c |
-n)
1068 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1069 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1072 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1073 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1074 |
--oldin |
--oldi |
--old |
--ol |
--o)
1075 ac_prev
=oldincludedir
;;
1076 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1077 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1078 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1079 oldincludedir
=$ac_optarg ;;
1081 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1083 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1084 prefix
=$ac_optarg ;;
1086 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1087 |
--program-pre |
--program-pr |
--program-p)
1088 ac_prev
=program_prefix
;;
1089 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1090 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1091 program_prefix
=$ac_optarg ;;
1093 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1094 |
--program-suf |
--program-su |
--program-s)
1095 ac_prev
=program_suffix
;;
1096 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1097 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1098 program_suffix
=$ac_optarg ;;
1100 -program-transform-name |
--program-transform-name \
1101 |
--program-transform-nam |
--program-transform-na \
1102 |
--program-transform-n |
--program-transform- \
1103 |
--program-transform |
--program-transfor \
1104 |
--program-transfo |
--program-transf \
1105 |
--program-trans |
--program-tran \
1106 |
--progr-tra |
--program-tr |
--program-t)
1107 ac_prev
=program_transform_name
;;
1108 -program-transform-name=* |
--program-transform-name=* \
1109 |
--program-transform-nam=* |
--program-transform-na=* \
1110 |
--program-transform-n=* |
--program-transform-=* \
1111 |
--program-transform=* |
--program-transfor=* \
1112 |
--program-transfo=* |
--program-transf=* \
1113 |
--program-trans=* |
--program-tran=* \
1114 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1115 program_transform_name
=$ac_optarg ;;
1117 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1119 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1120 pdfdir
=$ac_optarg ;;
1122 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1124 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1127 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1128 |
-silent |
--silent |
--silen |
--sile |
--sil)
1131 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1133 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1135 sbindir
=$ac_optarg ;;
1137 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1138 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1139 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1141 ac_prev
=sharedstatedir
;;
1142 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1143 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1144 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1146 sharedstatedir
=$ac_optarg ;;
1148 -site |
--site |
--sit)
1150 -site=* |
--site=* |
--sit=*)
1153 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1155 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1156 srcdir
=$ac_optarg ;;
1158 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1159 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1160 ac_prev
=sysconfdir
;;
1161 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1162 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1163 sysconfdir
=$ac_optarg ;;
1165 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1166 ac_prev
=target_alias
;;
1167 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1168 target_alias
=$ac_optarg ;;
1170 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1173 -version |
--version |
--versio |
--versi |
--vers |
-V)
1174 ac_init_version
=: ;;
1177 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1180 as_fn_error $?
"invalid package name: $ac_useropt"
1181 ac_useropt_orig
=$ac_useropt
1182 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1187 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep
=', ';;
1190 eval with_
$ac_useropt=\
$ac_optarg ;;
1192 -without-* |
--without-*)
1193 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1196 as_fn_error $?
"invalid package name: $ac_useropt"
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval with_
$ac_useropt=no
;;
1209 # Obsolete; use --with-x.
1212 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1213 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1214 ac_prev
=x_includes
;;
1215 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1216 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1217 x_includes
=$ac_optarg ;;
1219 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1220 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1221 ac_prev
=x_libraries
;;
1222 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1223 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1224 x_libraries
=$ac_optarg ;;
1226 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1231 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1235 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1237 eval $ac_envvar=\
$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 if test -n "$ac_prev"; then
1252 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $?
"missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1259 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 # Check all directory arguments for consistency.
1265 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val
=\$
$ac_var
1271 # Remove trailing slashes.
1274 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\
$ac_val;;
1277 # Be sure to have absolute directory names.
1279 [\\/$
]* | ?
:[\\/]* ) continue;;
1280 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1282 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1290 target
=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x
; then
1294 if test "x$build_alias" = x
; then
1295 cross_compiling
=maybe
1296 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1297 If a cross compiler is detected then cross compile mode will be used" >&2
1298 elif test "x$build_alias" != "x$host_alias"; then
1304 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1306 test "$silent" = yes && exec 6>/dev
/null
1309 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di
=`ls -di .` &&
1311 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1312 as_fn_error $?
"working directory cannot be determined"
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 as_fn_error $?
"pwd does not report name of working directory"
1317 # Find the source files, if location was not specified.
1318 if test -z "$srcdir"; then
1319 ac_srcdir_defaulted
=yes
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir
=`$as_dirname -- "$as_myself" ||
1322 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326 $as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1349 ac_srcdir_defaulted
=no
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1353 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1355 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1367 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 for ac_var
in $ac_precious_vars; do
1370 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1372 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1377 # Report the --help message.
1379 if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1383 \`configure' configures OpenVPN 2.3.0 to adapt to many kinds of systems.
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE. See below for descriptions of some of the useful variables.
1390 Defaults for the options are specified in brackets.
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking ...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1403 Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
1405 [$ac_default_prefix]
1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1414 For better control, use the options below.
1416 Fine tuning of the installation directories:
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/openvpn]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1446 --build=BUILD configure
for building on BUILD
[guessed
]
1447 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1451 if test -n "$ac_init_help"; then
1452 case $ac_init_help in
1453 short | recursive
) echo "Configuration of OpenVPN 2.3.0:";;
1458 --disable-option-checking ignore unrecognized
--enable/--with options
1459 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1460 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1461 --disable-dependency-tracking speeds up one-time build
1462 --enable-dependency-tracking do not reject slow dependency extractors
1463 --disable-lzo disable LZO compression support
[default
=yes]
1464 --enable-lzo-stub don
't compile LZO compression support but still
1465 allow limited interoperability with LZO-enabled
1467 --disable-crypto disable crypto support [default=yes]
1468 --disable-ssl disable SSL support for TLS-based key exchange
1470 --enable-x509-alt-username
1471 enable the --x509-username-field feature
1473 --disable-multi disable client/server support (--mode server +
1474 client mode) [default=yes]
1475 --disable-server disable server support only (but retain client
1476 support) [default=yes]
1477 --disable-plugins disable plug-in support [default=yes]
1478 --disable-eurephia disable support for the eurephia plug-in
1480 --disable-management disable management server support [default=yes]
1481 --enable-pkcs11 enable pkcs11 support [default=no]
1482 --disable-socks disable Socks support [default=yes]
1483 --disable-http-proxy disable HTTP proxy support [default=yes]
1484 --disable-fragment disable internal fragmentation support (--fragment)
1486 --disable-multihome disable multi-homed UDP server support (--multihome)
1488 --disable-port-share disable TCP server port-share support (--port-share)
1490 --disable-debug disable debugging support (disable gremlin and verb
1491 7+ messages) [default=yes]
1492 --enable-small enable smaller executable size (disable OCC, usage
1493 message, and verb 4 parm list) [default=yes]
1494 --enable-password-save allow --askpass and --auth-user-pass passwords to be
1495 read from a file [default=yes]
1496 --enable-iproute2 enable support for iproute2 [default=no]
1497 --disable-def-auth disable deferred authentication [default=yes]
1498 --disable-pf disable internal packet filter [default=yes]
1499 --disable-plugin-auth-pam
1500 disable auth-pam plugin [default=platform specific]
1501 --disable-plugin-down-root
1502 disable down-root plugin [default=platform specific]
1503 --enable-pam-dlopen dlopen libpam [default=no]
1504 --enable-strict enable strict compiler warnings (debugging option)
1506 --enable-pedantic enable pedantic compiler warnings, will not generate
1507 a working executable (debugging option) [default=no]
1508 --enable-strict-options enable strict options check between peers (debugging
1509 option) [default=no]
1510 --enable-selinux enable SELinux support [default=no]
1511 --enable-systemd enable systemd suppport [default=no]
1512 --enable-shared[=PKGS] build shared libraries [default=yes]
1513 --enable-static[=PKGS] build static libraries [default=yes]
1514 --enable-fast-install[=PKGS]
1515 optimize for fast installation [default=yes]
1516 --disable-libtool-lock avoid locking (might break parallel builds)
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1521 --with-special-build=STRING
1522 specify special build string
1523 --with-mem-check=TYPE build with debug memory checking,
1524 TYPE=no|dmalloc|valgrind|ssl [default=no]
1525 --with-crypto-library=library
1526 build with the given crypto library,
1527 TYPE=openssl|polarssl [default=openssl]
1528 --with-plugindir plugin directory [default=LIBDIR/openvpn]
1529 --with-pic try to use only PIC/non-PIC objects [default=use
1531 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 PKG_CONFIG path to pkg-config utility
1544 directories to add to pkg-config's search path
1546 path overriding pkg-config
's built-in search path
1547 IFCONFIG full path to ipconfig utility
1548 ROUTE full path to route utility
1549 IPROUTE full path to ip utility
1550 NETSTAT path to netstat utility
1551 MAN2HTML path to man2html utility
1552 GIT path to git utility
1553 TAP_CFLAGS C compiler flags for tap
1555 C compiler flags for libpam
1556 LIBPAM_LIBS linker flags for libpam
1557 OPENSSL_CRYPTO_CFLAGS
1558 C compiler flags for OPENSSL_CRYPTO, overriding pkg-config
1560 linker flags for OPENSSL_CRYPTO, overriding pkg-config
1562 C compiler flags for OPENSSL_SSL, overriding pkg-config
1564 linker flags for OPENSSL_SSL, overriding pkg-config
1566 C compiler flags for polarssl
1568 linker flags for polarssl
1569 LZO_CFLAGS C compiler flags for lzo
1570 LZO_LIBS linker flags for lzo
1571 PKCS11_HELPER_CFLAGS
1572 C compiler flags for PKCS11_HELPER, overriding pkg-config
1574 linker flags for PKCS11_HELPER, overriding pkg-config
1576 Use these variables to override the choices made by `configure' or to
help
1577 it to
find libraries and programs with nonstandard names
/locations.
1579 Report bugs to
<openvpn-users@lists.sourceforge.net
>.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1593 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1595 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1600 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1603 ac_abs_top_builddir
=$ac_pwd
1604 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir
=$ac_top_build_prefix
1609 .
) # We are building in place.
1611 ac_top_srcdir
=$ac_top_builddir_sub
1612 ac_abs_top_srcdir
=$ac_pwd ;;
1613 [\\/]* | ?
:[\\/]* ) # Absolute name.
1614 ac_srcdir
=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir
=$srcdir
1616 ac_abs_top_srcdir
=$srcdir ;;
1618 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1622 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1642 OpenVPN configure
2.3.0
1643 generated by GNU Autoconf
2.66
1645 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1646 This configure
script is free software
; the Free Software Foundation
1647 gives unlimited permission to copy
, distribute and modify it.
1652 ## ------------------------ ##
1653 ## Autoconf initialization. ##
1654 ## ------------------------ ##
1656 # ac_fn_c_try_compile LINENO
1657 # --------------------------
1658 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_compile
()
1661 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1662 rm -f conftest.
$ac_objext
1663 if { { ac_try
="$ac_compile"
1665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_compile") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest.$ac_objext; then :
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1692 } # ac_fn_c_try_compile
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { { ac_try="$ac_cpp conftest.$ac_ext"
1702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1703 *) ac_try_echo
=$ac_try;;
1705 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1709 if test -s conftest.err
; then
1710 grep -v '^ *+' conftest.err
>conftest.er1
1711 cat conftest.er1
>&5
1712 mv -f conftest.er1 conftest.err
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } >/dev
/null
&& {
1716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.
$ac_ext >&5
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1727 as_fn_set_status
$ac_retval
1731 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1734 # the include files in INCLUDES and setting the cache variable VAR
1736 ac_fn_c_check_header_mongrel
()
1738 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1739 if eval "test \"\${$3+set}\"" = set; then :
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 $as_echo_n "checking for $2... " >&6; }
1742 if eval "test \"\${$3+set}\"" = set; then :
1743 $as_echo_n "(cached) " >&6
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1747 $as_echo "$ac_res" >&6; }
1749 # Is the header compilable?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1751 $as_echo_n "checking $2 usability... " >&6; }
1752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1757 if ac_fn_c_try_compile
"$LINENO"; then :
1758 ac_header_compiler
=yes
1760 ac_header_compiler
=no
1762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1764 $as_echo "$ac_header_compiler" >&6; }
1766 # Is the header present?
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1768 $as_echo_n "checking $2 presence... " >&6; }
1769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1773 if ac_fn_c_try_cpp
"$LINENO"; then :
1774 ac_header_preproc
=yes
1776 ac_header_preproc
=no
1778 rm -f conftest.err conftest.
$ac_ext
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1780 $as_echo "$ac_header_preproc" >&6; }
1782 # So? What about this header?
1783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1786 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1788 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1792 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1794 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1796 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1798 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 ( $as_echo "## -------------------------------------------------- ##
1802 ## Report this to openvpn-users@lists.sourceforge.net ##
1803 ## -------------------------------------------------- ##"
1804 ) |
sed "s/^/$as_me: WARNING: /" >&2
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval "test \"\${$3+set}\"" = set; then :
1810 $as_echo_n "(cached) " >&6
1812 eval "$3=\$ac_header_compiler"
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1820 } # ac_fn_c_check_header_mongrel
1822 # ac_fn_c_try_run LINENO
1823 # ----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1825 # that executables *can* be run.
1828 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1829 if { { ac_try
="$ac_link"
1831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>&5
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1840 { { case "(($ac_try" in
1841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1842 *) ac_try_echo
=$ac_try;;
1844 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_try") 2>&5
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; }; }; then :
1852 $as_echo "$as_me: program exited with status $ac_status" >&5
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.
$ac_ext >&5
1856 ac_retval
=$ac_status
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1860 as_fn_set_status
$ac_retval
1864 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1865 # -------------------------------------------------------
1866 # Tests whether HEADER exists and can be compiled using the include files in
1867 # INCLUDES, setting the cache variable VAR accordingly.
1868 ac_fn_c_check_header_compile
()
1870 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval "test \"\${$3+set}\"" = set; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile
"$LINENO"; then :
1886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1893 } # ac_fn_c_check_header_compile
1895 # ac_fn_c_try_link LINENO
1896 # -----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1900 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1901 rm -f conftest.
$ac_objext conftest
$ac_exeext
1902 if { { ac_try
="$ac_link"
1904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_c_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 $as_test_x conftest$ac_exeext
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_c_try_link
1941 # ac_fn_c_check_func LINENO FUNC VAR
1942 # ----------------------------------
1943 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1944 ac_fn_c_check_func ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval "test \"\${$3+set}\"" = set; then :
1950 $as_echo_n "(cached) " >&6
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1954 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1956 #define $2 innocuous_$2
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char $2 (); below.
1960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1961 <limits.h> exists even on freestanding compilers. */
1964 # include <limits.h>
1966 # include <assert.h>
1971 /* Override any GCC internal prototype to avoid an error.
1972 Use char because int might match the return type of a GCC
1973 builtin and then its argument prototype would still apply. */
1978 /* The GNU C library defines this for functions which it implements
1979 to always fail with ENOSYS. Some functions are actually named
1980 something starting with __ and the normal name is an alias. */
1981 #if defined __stub_$2 || defined __stub___$2
1993 if ac_fn_c_try_link "$LINENO"; then :
1998 rm -f core conftest.err conftest.$ac_objext \
1999 conftest$ac_exeext conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 } # ac_fn_c_check_func
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval "test \"\${$3+set}\"" = set; then :
2018 $as_echo_n "(cached) " >&6
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2046 if ac_fn_c_try_compile "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_find_intX_t LINENO BITS VAR
2063 # -----------------------------------
2064 # Finds a signed integer type with width BITS, setting cache variable VAR
2066 ac_fn_c_find_intX_t ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2070 $as_echo_n "checking for int$2_t... " >&6; }
2071 if eval "test \"\${$3+set}\"" = set; then :
2072 $as_echo_n "(cached) " >&6
2075 # Order is important - never check a type that is potentially smaller
2076 # than half of the expected target width.
2077 for ac_type in int$2_t 'int' 'long int' \
2078 'long long int' 'short int' 'signed char'; do
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $ac_includes_default
2082 enum { N = $2 / 2 - 1 };
2086 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $ac_includes_default
2097 enum { N = $2 / 2 - 1 };
2101 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2102 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$3=\$ac_type" ;;
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 if eval test \"x\$"$3"\" = x"no"; then :
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 } # ac_fn_c_find_intX_t
2136 # ac_fn_c_find_uintX_t LINENO BITS VAR
2137 # ------------------------------------
2138 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2140 ac_fn_c_find_uintX_t ()
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2144 $as_echo_n "checking for uint$2_t... " >&6; }
2145 if eval "test \"\${$3+set}\"" = set; then :
2146 $as_echo_n "(cached) " >&6
2149 # Order is important - never check a type that is potentially smaller
2150 # than half of the expected target width.
2151 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2152 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $ac_includes_default
2159 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2166 if ac_fn_c_try_compile "$LINENO"; then :
2171 eval "$3=\$ac_type" ;;
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 if eval test \"x\$"$3"\" = x"no"; then :
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187 } # ac_fn_c_find_uintX_t
2189 # ac_fn_c_compute_int LINENO EXPR ax_cv_socklen_t_equiv INCLUDES
2190 # --------------------------------------------------------------
2191 # Tries to find the compile-time value of EXPR in a program that includes
2192 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2194 ac_fn_c_compute_int ()
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 if test "$cross_compiling" = yes; then
2198 # Depending upon the size, compute the lo and hi bounds.
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2205 static int test_array [1 - 2 * !(($2) >= 0)];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=$ac_mid; break
2231 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2232 if test $ac_lo -le $ac_mid; then
2236 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) < 0)];
2254 if ac_fn_c_try_compile "$LINENO"; then :
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_lo=$ac_mid; break
2273 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2274 if test $ac_mid -le $ac_hi; then
2278 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 # Binary search between lo and hi bounds.
2289 while test "x$ac_lo" != "x$ac_hi"; do
2290 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h. */
2297 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2304 if ac_fn_c_try_compile "$LINENO"; then :
2307 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2319 static long int longval () { return $2; }
2320 static unsigned long int ulongval () { return $2; }
2327 FILE *f = fopen ("conftest.val", "w");
2332 long int i = longval ();
2335 fprintf (f, "%ld", i);
2339 unsigned long int i = ulongval ();
2342 fprintf (f, "%lu", i);
2344 /* Do not output a trailing newline, as this causes \r\n confusion
2345 on some platforms. */
2346 return ferror (f) || fclose (f) != 0;
2352 if ac_fn_c_try_run "$LINENO"; then :
2353 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2358 conftest.$ac_objext conftest.beam conftest.$ac_ext
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2363 as_fn_set_status $ac_retval
2365 } # ac_fn_c_compute_int
2367 # ac_fn_c_check_decl LINENO SYMBOL ax_cv_socklen_t_equiv INCLUDES
2368 # ---------------------------------------------------------------
2369 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2371 ac_fn_c_check_decl ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2375 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2377 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2378 if eval "test \"\${$3+set}\"" = set; then :
2379 $as_echo_n "(cached) " >&6
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2387 #ifndef $as_decl_name
2389 (void) $as_decl_use;
2391 (void) $as_decl_name;
2399 if ac_fn_c_try_compile "$LINENO"; then :
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 } # ac_fn_c_check_decl
2412 cat >config.log <<_ACEOF
2413 This file contains any messages produced by compilers while
2414 running configure, to aid debugging if configure makes a mistake.
2416 It was created by OpenVPN $as_me 2.3.0, which was
2417 generated by GNU Autoconf 2.66. Invocation command line was
2429 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2430 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2431 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2432 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2433 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2435 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2436 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2438 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2439 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2440 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2441 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2442 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2443 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2444 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 $as_echo "PATH: $as_dir"
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2477 ac_must_keep_next=false
2483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485 | -silent | --silent | --silen | --sile | --sil)
2488 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2491 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2493 as_fn_append ac_configure_args1 " '$ac_arg'"
2494 if test $ac_must_keep_next = true; then
2495 ac_must_keep_next=false # Got value, back to normal.
2498 *=* | --config-cache | -C | -disable-* | --disable-* \
2499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501 | -with-* | --with-* | -without-* | --without-* | --x)
2502 case "$ac_configure_args0 " in
2503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2506 -* ) ac_must_keep_next=true ;;
2509 as_fn_append ac_configure_args " '$ac_arg'"
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log. We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2523 # Save into config.log some information that might help in debugging.
2527 $as_echo "## ---------------- ##
2528 ## Cache variables. ##
2529 ## ---------------- ##"
2531 # The following way of writing the cache mishandles newlines in values,
2533 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2534 eval ac_val=\$$ac_var
2538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2542 _ | IFS | as_nl) ;; #(
2543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2544 *) { eval $ac_var=; unset $ac_var;} ;;
2549 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2550 *${as_nl}ac_space=\ *)
2552 "s/'\''/'\''\\\\'\'''\''/g;
2553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563 $as_echo "## ----------------- ##
2564 ## Output variables. ##
2565 ## ----------------- ##"
2567 for ac_var in $ac_subst_vars
2569 eval ac_val=\$$ac_var
2571 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573 $as_echo "$ac_var='\''$ac_val'\''"
2577 if test -n "$ac_subst_files"; then
2578 $as_echo "## ------------------- ##
2579 ## File substitutions. ##
2580 ## ------------------- ##"
2582 for ac_var in $ac_subst_files
2584 eval ac_val=\$$ac_var
2586 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 $as_echo "$ac_var='\''$ac_val'\''"
2593 if test -s confdefs.h; then
2594 $as_echo "## ----------- ##
2601 test "$ac_signal" != 0 &&
2602 $as_echo "$as_me: caught signal $ac_signal"
2603 $as_echo "$as_me: exit $exit_status"
2605 rm -f core *.core core.conftest.* &&
2606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609 for ac_signal in 1 2 13 15; do
2610 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2617 $as_echo "/* confdefs.h */" > confdefs.h
2619 # Predefined preprocessor variables.
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2650 if test -n "$CONFIG_SITE"; then
2651 # We do not want a PATH search for config.site.
2652 case $CONFIG_SITE in #((
2653 -*) ac_site_file1=./$CONFIG_SITE;;
2654 */*) ac_site_file1=$CONFIG_SITE;;
2655 *) ac_site_file1=./$CONFIG_SITE;;
2657 elif test "x$prefix" != xNONE; then
2658 ac_site_file1=$prefix/share/config.site
2659 ac_site_file2=$prefix/etc/config.site
2661 ac_site_file1=$ac_default_prefix/share/config.site
2662 ac_site_file2=$ac_default_prefix/etc/config.site
2664 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2666 test "x$ac_site_file" = xNONE && continue
2667 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2669 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2670 sed 's/^/| /' "$ac_site_file" >&5
2672 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error $? "failed to load site
script $ac_site_file
2675 See \
`config.log' for more details" "$LINENO" 5; }
2679 if test -r "$cache_file"; then
2680 # Some versions of bash will fail to source /dev/null (special files
2681 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2682 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2684 $as_echo "$as_me: loading cache $cache_file" >&6;}
2686 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2687 *) . "./$cache_file";;
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2692 $as_echo "$as_me: creating cache $cache_file" >&6;}
2696 # Check that the precious variables saved in the cache have kept the same
2698 ac_cache_corrupted=false
2699 for ac_var in $ac_precious_vars; do
2700 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2701 eval ac_new_set=\$ac_env_${ac_var}_set
2702 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2703 eval ac_new_val=\$ac_env_${ac_var}_value
2704 case $ac_old_set,$ac_new_set in
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2707 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2711 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2712 ac_cache_corrupted=: ;;
2715 if test "x$ac_old_val" != "x$ac_new_val"; then
2716 # differences in whitespace do not lead to failure.
2717 ac_old_val_w=`echo x
$ac_old_val`
2718 ac_new_val_w=`echo x
$ac_new_val`
2719 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2721 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2722 ac_cache_corrupted=:
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2725 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2726 eval $ac_var=\$ac_old_val
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2729 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2731 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2734 # Pass precious variables to config.status.
2735 if test "$ac_new_set" = set; then
2737 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2738 *) ac_arg=$ac_var=$ac_new_val ;;
2740 case " $ac_configure_args " in
2741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2742 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2746 if $ac_cache_corrupted; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2750 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2751 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2753 ## -------------------- ##
2754 ## Main body of script. ##
2755 ## -------------------- ##
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 if test -z "${docdir}"; then
2771 docdir="\$(datadir)/doc/\$(PACKAGE_NAME)"
2774 if test -z "${htmldir}"; then
2775 htmldir="\$(docdir)"
2780 $as_echo "#define OPENVPN_VERSION_RESOURCE 2,3,0,0" >>confdefs.h
2784 for ac_dir in . "$srcdir"/.; do
2785 if test -f "$ac_dir/install-sh"; then
2787 ac_install_sh="$ac_aux_dir/install-sh -c"
2789 elif test -f "$ac_dir/install.sh"; then
2791 ac_install_sh="$ac_aux_dir/install.sh -c"
2793 elif test -f "$ac_dir/shtool"; then
2795 ac_install_sh="$ac_aux_dir/shtool install -c"
2799 if test -z "$ac_aux_dir"; then
2800 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2803 # These three variables are undocumented and unsupported,
2804 # and are intended to be withdrawn in a future Autoconf release.
2805 # They can cause serious problems if a builder's source tree is in a directory
2806 # whose full name contains unusual characters.
2807 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2808 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2809 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2812 ac_config_headers="$ac_config_headers config.h"
2816 am__api_version='1.11'
2818 # Find a good install program. We prefer a C program (faster),
2819 # so one script is as good as another. But avoid the broken or
2820 # incompatible versions:
2821 # SysV /etc/install, /usr/sbin/install
2822 # SunOS /usr/etc/install
2823 # IRIX /sbin/install
2825 # AmigaOS /C/install, which installs bootblocks on floppy discs
2826 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2827 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2828 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2829 # OS/2's system install, which has a completely different semantic
2830 # ./install, which can be erroneously created by make from ./install.sh.
2831 # Reject install programs that cannot install multiple files.
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2833 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2834 if test -z "$INSTALL"; then
2835 if test "${ac_cv_path_install+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 test -z "$as_dir" && as_dir=.
2843 # Account for people who put trailing slashes in PATH elements.
2844 case $as_dir/ in #((
2845 ./ | .// | /[cC]/* | \
2846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2847 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2850 # OSF1 and SCO ODT 3.0 have their own names for install.
2851 # Don't use installbsd from OSF since it installs stuff as root
2853 for ac_prog in ginstall scoinst install; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2856 if test $ac_prog = install &&
2857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2858 # AIX install. It has an incompatible calling convention.
2860 elif test $ac_prog = install &&
2861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2862 # program-specific install script used by HP pwplus--don't use.
2865 rm -rf conftest.one conftest.two conftest.dir
2866 echo one > conftest.one
2867 echo two > conftest.two
2869 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2870 test -s conftest.one && test -s conftest.two &&
2871 test -s conftest.dir/conftest.one &&
2872 test -s conftest.dir/conftest.two
2874 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 rm -rf conftest.one conftest.two conftest.dir
2890 if test "${ac_cv_path_install+set}" = set; then
2891 INSTALL=$ac_cv_path_install
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for INSTALL within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 INSTALL=$ac_install_sh
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2901 $as_echo "$INSTALL" >&6; }
2903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2904 # It thinks the first close brace ends the variable substitution.
2905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2912 $as_echo_n "checking whether build environment is sane... " >&6; }
2915 echo timestamp > conftest.file
2916 # Reject unsafe characters in $srcdir or the absolute working directory
2917 # name. Accept space and tab only in the latter.
2921 *[\\\"\#\$\&\'\`$am_lf]*)
2922 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2925 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2926 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2929 # Do `set' in a subshell so we don't clobber the current shell's
2930 # arguments. Must try -L first in case configure is actually a
2931 # symlink; some systems play weird games with the mod time of symlinks
2932 # (eg FreeBSD returns the mod time of the symlink's containing
2935 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2936 if test "$*" = "X"; then
2938 set X
`ls -t "$srcdir/configure" conftest.file`
2941 if test "$*" != "X $srcdir/configure conftest.file" \
2942 && test "$*" != "X conftest.file $srcdir/configure"; then
2944 # If neither matched, then we have a broken ls. This can happen
2945 # if, for instance, CONFIG_SHELL is bash and it inherits a
2946 # broken ls alias from the environment. This has actually
2947 # happened. Such a system could not be considered "sane".
2948 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2949 alias in your environment" "$LINENO" 5
2952 test "$2" = conftest.
file
2958 as_fn_error $?
"newly created file is older than distributed files!
2959 Check your system clock" "$LINENO" 5
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2962 $as_echo "yes" >&6; }
2963 test "$program_prefix" != NONE
&&
2964 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE
&&
2967 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2973 # expand $ac_aux_dir to an absolute path
2974 am_aux_dir
=`cd $ac_aux_dir && pwd`
2976 if test x
"${MISSING+set}" != xset
; then
2979 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986 am_missing_run
="$MISSING --run "
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2993 if test x
"${install_sh}" != xset
; then
2996 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3002 # Installed binaries are usually stripped using `strip' when the user
3003 # run `make install-strip'. However `strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the `STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no
; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_STRIP+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir
=.
3023 for ac_exec_ext
in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 STRIP
=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip
; ac_word
=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_ac_ct_STRIP
="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x
; then
3087 case $cross_compiling:$ac_tool_warned in
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned
=yes ;;
3096 STRIP
="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if test "${ac_cv_path_mkdir+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3109 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_prog
in mkdir gmkdir
; do
3114 for ac_exec_ext
in '' $ac_executable_extensions; do
3115 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3130 test -d .
/--version && rmdir .
/--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P
="$ac_cv_path_mkdir -p"
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P
="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3146 [\\/$
]* | ?
:[\\/]*) ;;
3147 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3150 for ac_prog
in gawk mawk nawk
awk
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_prog; ac_word
=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_AWK+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3159 if test -n "$AWK"; then
3160 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_AWK
="$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 if test -n "$AWK"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3182 $as_echo "$AWK" >&6; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3189 test -n "$AWK" && break
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3193 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3195 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3196 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3197 $as_echo_n "(cached) " >&6
3199 cat >conftest.
make <<\_ACEOF
3202 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3204 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3205 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3207 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3209 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3213 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 SET_MAKE
="MAKE=${MAKE-make}"
3223 rm -rf .tst
2>/dev
/null
3224 mkdir .tst
2>/dev
/null
3225 if test -d .tst
; then
3230 rmdir .tst
2>/dev
/null
3232 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3233 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3234 # is not polluted with repeated "-I."
3235 am__isrc
=' -I$(srcdir)'
3236 # test to see if srcdir already configured
3237 if test -f $srcdir/config.status
; then
3238 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3242 # test whether we have cygpath
3243 if test -z "$CYGPATH_W"; then
3244 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3245 CYGPATH_W
='cygpath -w'
3252 # Define the identity of the package.
3257 cat >>confdefs.h
<<_ACEOF
3258 #define PACKAGE "$PACKAGE"
3262 cat >>confdefs.h
<<_ACEOF
3263 #define VERSION "$VERSION"
3266 # Some tools Automake needs.
3268 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3271 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3274 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3277 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3280 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3282 # We need awk for the "check" target. The system "awk" is bad on
3284 # Always define AMTAR for backward compatibility.
3286 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3288 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3294 # Make sure we can run config.sub.
3295 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3296 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3299 $as_echo_n "checking build system type... " >&6; }
3300 if test "${ac_cv_build+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3303 ac_build_alias
=$build_alias
3304 test "x$ac_build_alias" = x
&&
3305 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3306 test "x$ac_build_alias" = x
&&
3307 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3308 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3309 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3313 $as_echo "$ac_cv_build" >&6; }
3314 case $ac_cv_build in
3316 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3319 ac_save_IFS
=$IFS; IFS
='-'
3325 # Remember, the first character of IFS is used to create $*,
3326 # except with old shells:
3329 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3333 $as_echo_n "checking host system type... " >&6; }
3334 if test "${ac_cv_host+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3337 if test "x$host_alias" = x
; then
3338 ac_cv_host
=$ac_cv_build
3340 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3341 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3346 $as_echo "$ac_cv_host" >&6; }
3349 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3352 ac_save_IFS
=$IFS; IFS
='-'
3358 # Remember, the first character of IFS is used to create $*,
3359 # except with old shells:
3362 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3365 DEPDIR
="${am__leading_dot}deps"
3367 ac_config_commands
="$ac_config_commands depfiles"
3370 am_make
=${MAKE-make}
3371 cat > confinc
<< 'END'
3373 @
echo this is the am__doit target
3376 # If we don't find an include directive, just comment out the code.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3378 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3382 # First try GNU make style include.
3383 echo "include confinc" > confmf
3384 # Ignore all kinds of additional output from `make'.
3385 case `$am_make -s -f confmf 2> /dev/null` in #(
3386 *the\ am__doit\ target
*)
3392 # Now try BSD make style include.
3393 if test "$am__include" = "#"; then
3394 echo '.include "confinc"' > confmf
3395 case `$am_make -s -f confmf 2> /dev/null` in #(
3396 *the\ am__doit\ target
*)
3397 am__include
=.include
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3406 $as_echo "$_am_result" >&6; }
3407 rm -f confinc confmf
3409 # Check whether --enable-dependency-tracking was given.
3410 if test "${enable_dependency_tracking+set}" = set; then :
3411 enableval
=$enable_dependency_tracking;
3414 if test "x$enable_dependency_tracking" != xno
; then
3415 am_depcomp
="$ac_aux_dir/depcomp"
3418 if test "x$enable_dependency_tracking" != xno; then
3428 ac_cpp
='$CPP $CPPFLAGS'
3429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3432 if test -n "$ac_tool_prefix"; then
3433 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3434 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if test "${ac_cv_prog_CC+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC
="$CC" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 if test -n "$CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 $as_echo "$CC" >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3471 if test -z "$ac_cv_prog_CC"; then
3473 # Extract the first word of "gcc", so it can be a program name with args.
3474 set dummy gcc
; ac_word
=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3483 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3487 test -z "$as_dir" && as_dir
=.
3488 for ac_exec_ext
in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_ac_ct_CC
="gcc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 $as_echo "$ac_ct_CC" >&6; }
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3509 if test "x$ac_ct_CC" = x
; then
3512 case $cross_compiling:$ac_tool_warned in
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3516 ac_tool_warned
=yes ;;
3524 if test -z "$CC"; then
3525 if test -n "$ac_tool_prefix"; then
3526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3527 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_CC+set}" = set; then :
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC
="$CC" # Let the user override the test.
3536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir
=.
3541 for ac_exec_ext
in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3565 if test -z "$CC"; then
3566 # Extract the first word of "cc", so it can be a program name with args.
3567 set dummy cc
; ac_word
=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC
="$CC" # Let the user override the test.
3577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir
=.
3582 for ac_exec_ext
in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3585 ac_prog_rejected
=yes
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 if test $ac_prog_rejected = yes; then
3597 # We found a bogon in the path, so make sure we never use it.
3598 set dummy
$ac_cv_prog_CC
3600 if test $# != 0; then
3601 # We chose a different compiler from the bogus one.
3602 # However, it has the same basename, so the bogon will be chosen
3603 # first if we set CC to just the basename; use the full file name.
3605 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3611 if test -n "$CC"; then
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3613 $as_echo "$CC" >&6; }
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616 $as_echo "no" >&6; }
3621 if test -z "$CC"; then
3622 if test -n "$ac_tool_prefix"; then
3623 for ac_prog
in cl.exe
3625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3626 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3632 if test -n "$CC"; then
3633 ac_cv_prog_CC
="$CC" # Let the user override the test.
3635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3639 test -z "$as_dir" && as_dir
=.
3640 for ac_exec_ext
in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 if test -n "$CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3655 $as_echo "$CC" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3662 test -n "$CC" && break
3665 if test -z "$CC"; then
3667 for ac_prog
in cl.exe
3669 # Extract the first word of "$ac_prog", so it can be a program name with args.
3670 set dummy
$ac_prog; ac_word
=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$ac_ct_CC"; then
3677 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3683 test -z "$as_dir" && as_dir
=.
3684 for ac_exec_ext
in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3686 ac_cv_prog_ac_ct_CC
="$ac_prog"
3687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3697 if test -n "$ac_ct_CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3699 $as_echo "$ac_ct_CC" >&6; }
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3706 test -n "$ac_ct_CC" && break
3709 if test "x$ac_ct_CC" = x
; then
3712 case $cross_compiling:$ac_tool_warned in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3716 ac_tool_warned
=yes ;;
3725 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3727 as_fn_error $?
"no acceptable C compiler found in \$PATH
3728 See \`config.log' for more details" "$LINENO" 5; }
3730 # Provide some information about the compiler.
3731 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3734 for ac_option
in --version -v -V -qversion; do
3735 { { ac_try
="$ac_compiler $ac_option >&5"
3737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3744 if test -s conftest.err; then
3746 ... rest of stderr output deleted ...
3747 10q' conftest.err >conftest.er1
3748 cat conftest.er1 >&5
3750 rm -f conftest.er1 conftest.err
3751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3752 test $ac_status = 0; }
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3772 $as_echo_n "checking whether the C compiler works... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3779 for ac_file in $ac_files
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3788 if { { ac_try="$ac_link_default"
3790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3791 *) ac_try_echo
=$ac_try;;
3793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3804 for ac_file
in $ac_files ''
3806 test -f "$ac_file" ||
continue
3808 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3811 # We found the default executable, but exeext='' is most
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3817 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3829 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3834 if test -z "$ac_file"; then :
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.
$ac_ext >&5
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error
77 "C compiler cannot create executables
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3846 $as_echo "yes" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3849 $as_echo_n "checking for C compiler default output file name... " >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3851 $as_echo "$ac_file" >&6; }
3852 ac_exeext
=$ac_cv_exeext
3854 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3855 ac_clean_files
=$ac_clean_files_save
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3857 $as_echo_n "checking for suffix of executables... " >&6; }
3858 if { { ac_try
="$ac_link"
3860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865 (eval "$ac_link") 2>&5
3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868 test $ac_status = 0; }; then :
3869 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3870 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3871 # work properly (i.e., refer to `conftest.exe'), while it won't with
3873 for ac_file
in conftest.exe conftest conftest.
*; do
3874 test -f "$ac_file" ||
continue
3876 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3877 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3886 See \`config.log' for more details" "$LINENO" 5; }
3888 rm -f conftest conftest
$ac_cv_exeext
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3890 $as_echo "$ac_cv_exeext" >&6; }
3892 rm -f conftest.
$ac_ext
3893 EXEEXT
=$ac_cv_exeext
3895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3901 FILE *f = fopen ("conftest.out", "w");
3902 return ferror (f) || fclose (f) != 0;
3908 ac_clean_files
="$ac_clean_files conftest.out"
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3912 $as_echo_n "checking whether we are cross compiling... " >&6; }
3913 if test "$cross_compiling" != yes; then
3914 { { ac_try
="$ac_link"
3916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 $as_echo "$ac_try_echo"; } >&5
3921 (eval "$ac_link") 2>&5
3923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }
3925 if { ac_try='./conftest$ac_cv_exeext'
3926 { { case "(($ac_try" in
3927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3928 *) ac_try_echo
=$ac_try;;
3930 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_try") 2>&5
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; }; then
3938 if test "$cross_compiling" = maybe
; then
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error $?
"cannot run C compiled programs.
3944 If you meant to cross compile, use \`--host'.
3945 See \`config.log' for more details" "$LINENO" 5; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3952 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3953 ac_clean_files
=$ac_clean_files_save
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3955 $as_echo_n "checking for suffix of object files... " >&6; }
3956 if test "${ac_cv_objext+set}" = set; then :
3957 $as_echo_n "(cached) " >&6
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3970 rm -f conftest.o conftest.obj
3971 if { { ac_try
="$ac_compile"
3973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977 $as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_compile") 2>&5
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 for ac_file in conftest.o conftest.obj conftest.*; do
3983 test -f "$ac_file" || continue;
3985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3991 $as_echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3997 See \
`config.log' for more details" "$LINENO" 5; }
3999 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4002 $as_echo "$ac_cv_objext" >&6; }
4003 OBJEXT=$ac_cv_objext
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4006 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4007 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4024 if ac_fn_c_try_compile "$LINENO"; then :
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4034 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4035 if test $ac_compiler_gnu = yes; then
4040 ac_test_CFLAGS=${CFLAGS+set}
4041 ac_save_CFLAGS=$CFLAGS
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4043 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4044 if test "${ac_cv_prog_cc_g+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4047 ac_save_c_werror_flag=$ac_c_werror_flag
4048 ac_c_werror_flag=yes
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4062 if ac_fn_c_try_compile "$LINENO"; then :
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4080 ac_c_werror_flag=$ac_save_c_werror_flag
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 ac_c_werror_flag=$ac_save_c_werror_flag
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4104 $as_echo "$ac_cv_prog_cc_g" >&6; }
4105 if test "$ac_test_CFLAGS" = set; then
4106 CFLAGS=$ac_save_CFLAGS
4107 elif test $ac_cv_prog_cc_g = yes; then
4108 if test "$GCC" = yes; then
4114 if test "$GCC" = yes; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4121 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4122 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_cv_prog_cc_c89=no
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4131 #include <sys/types.h>
4132 #include <sys/stat.h>
4133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4134 struct buf { int x; };
4135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4136 static char *e (p, i)
4142 static char *f (char * (*g) (char **, int), char **p, ...)
4147 s = g (p, va_arg (v,int));
4152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4153 function prototypes and stuff, but not '\xHH' hex character constants.
4154 These don't provoke an error unfortunately, instead are silently treated
4155 as 'x'. The following induces an error, until -std is added to get
4156 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4157 array size at least. It's necessary to write '\x00'==0 to get something
4158 that's true only with -std. */
4159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4162 inside strings and character constants. */
4164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4166 int test (int i, double x);
4167 struct s1 {int (*f) (int a);};
4168 struct s2 {int (*f) (double a);};
4169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4181 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4183 CC="$ac_save_CC $ac_arg"
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_c89=$ac_arg
4187 rm -f core conftest.err conftest.$ac_objext
4188 test "x$ac_cv_prog_cc_c89" != "xno" && break
4190 rm -f conftest.$ac_ext
4195 case "x$ac_cv_prog_cc_c89" in
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4198 $as_echo "none needed" >&6; } ;;
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4201 $as_echo "unsupported" >&6; } ;;
4203 CC="$CC $ac_cv_prog_cc_c89"
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4207 if test "x$ac_cv_prog_cc_c89" != xno; then :
4212 ac_cpp='$CPP $CPPFLAGS'
4213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4217 depcc="$CC" am_compiler_list=
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4220 $as_echo_n "checking dependency style of $depcc... " >&6; }
4221 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4222 $as_echo_n "(cached) " >&6
4224 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4225 # We make a subdir and do the tests there. Otherwise we can end up
4226 # making bogus files that we don't know about and never remove. For
4227 # instance it was reported that on HP-UX the gcc test will end up
4228 # making a dummy file named `D
' -- because `-MD' means
`put the output
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4243 am_cv_CC_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4264 # Solaris 8's
{/usr
,}/bin
/sh.
4265 touch sub
/conftst
$i.h
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4269 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle `-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs
4273 am__obj
=sub
/conftest.
${OBJEXT-o}
4274 am__minus_obj
="-o $am__obj"
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false ||
continue
4281 # after this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested
4283 if test "x$enable_dependency_tracking" = xyes
; then
4289 msvisualcpp | msvcmsys
)
4290 # This compiler won't grok `-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj
=conftest.
${OBJEXT-o}
4298 if depmode
=$depmode \
4299 source=sub
/conftest.c object
=$am__obj \
4300 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4301 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4302 >/dev
/null
2>conftest.err
&&
4303 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4304 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4305 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4306 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4316 am_cv_CC_dependencies_compiler_type
=$depmode
4325 am_cv_CC_dependencies_compiler_type
=none
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4337 am__fastdepCC_FALSE
='#'
4339 am__fastdepCC_TRUE
='#'
4340 am__fastdepCC_FALSE
=
4346 ac_cpp
='$CPP $CPPFLAGS'
4347 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4351 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4352 # On Suns, sometimes $CPP names a directory.
4353 if test -n "$CPP" && test -d "$CPP"; then
4356 if test -z "$CPP"; then
4357 if test "${ac_cv_prog_CPP+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4360 # Double quotes because CPP needs to be expanded
4361 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4364 for ac_c_preproc_warn_flag
in '' yes
4366 # Use a header file that comes with gcc, so configuring glibc
4367 # with a fresh cross-compiler works.
4368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369 # <limits.h> exists even on freestanding compilers.
4370 # On the NeXT, cc -E runs the code through the compiler's parser,
4371 # not just through cpp. "Syntax error" is here to catch this case.
4372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4375 # include <limits.h>
4377 # include <assert.h>
4381 if ac_fn_c_try_cpp
"$LINENO"; then :
4384 # Broken: fails on valid input.
4387 rm -f conftest.err conftest.
$ac_ext
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <ac_nonexistent.h>
4395 if ac_fn_c_try_cpp
"$LINENO"; then :
4396 # Broken: success on invalid input.
4399 # Passes both tests.
4403 rm -f conftest.err conftest.
$ac_ext
4406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407 rm -f conftest.err conftest.
$ac_ext
4408 if $ac_preproc_ok; then :
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4421 $as_echo "$CPP" >&6; }
4423 for ac_c_preproc_warn_flag
in '' yes
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4434 # include <limits.h>
4436 # include <assert.h>
4440 if ac_fn_c_try_cpp
"$LINENO"; then :
4443 # Broken: fails on valid input.
4446 rm -f conftest.err conftest.
$ac_ext
4448 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how.
4450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <ac_nonexistent.h>
4454 if ac_fn_c_try_cpp
"$LINENO"; then :
4455 # Broken: success on invalid input.
4458 # Passes both tests.
4462 rm -f conftest.err conftest.
$ac_ext
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.err conftest.
$ac_ext
4467 if $ac_preproc_ok; then :
4470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4473 See \`config.log' for more details" "$LINENO" 5; }
4477 ac_cpp
='$CPP $CPPFLAGS'
4478 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4485 if test "${ac_cv_path_GREP+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4488 if test -z "$GREP"; then
4489 ac_path_GREP_found
=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4492 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4495 test -z "$as_dir" && as_dir
=.
4496 for ac_prog
in grep ggrep
; do
4497 for ac_exec_ext
in '' $ac_executable_extensions; do
4498 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4500 # Check for GNU ac_path_GREP and select it if it is found.
4501 # Check for GNU $ac_path_GREP
4502 case `"$ac_path_GREP" --version 2>&1` in
4504 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4507 $as_echo_n 0123456789 >"conftest.in"
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'GREP' >> "conftest.nl"
4514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4515 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4516 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_GREP
="$ac_path_GREP"
4520 ac_path_GREP_max
=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4525 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4528 $ac_path_GREP_found && break 3
4533 if test -z "$ac_cv_path_GREP"; then
4534 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4537 ac_cv_path_GREP
=$GREP
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4542 $as_echo "$ac_cv_path_GREP" >&6; }
4543 GREP
="$ac_cv_path_GREP"
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4547 $as_echo_n "checking for egrep... " >&6; }
4548 if test "${ac_cv_path_EGREP+set}" = set; then :
4549 $as_echo_n "(cached) " >&6
4551 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4552 then ac_cv_path_EGREP
="$GREP -E"
4554 if test -z "$EGREP"; then
4555 ac_path_EGREP_found
=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4558 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_prog
in egrep; do
4563 for ac_exec_ext
in '' $ac_executable_extensions; do
4564 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4566 # Check for GNU ac_path_EGREP and select it if it is found.
4567 # Check for GNU $ac_path_EGREP
4568 case `"$ac_path_EGREP" --version 2>&1` in
4570 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4573 $as_echo_n 0123456789 >"conftest.in"
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 $as_echo 'EGREP' >> "conftest.nl"
4580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4581 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4582 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_EGREP
="$ac_path_EGREP"
4586 ac_path_EGREP_max
=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4591 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4594 $ac_path_EGREP_found && break 3
4599 if test -z "$ac_cv_path_EGREP"; then
4600 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 ac_cv_path_EGREP
=$EGREP
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4609 $as_echo "$ac_cv_path_EGREP" >&6; }
4610 EGREP
="$ac_cv_path_EGREP"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4614 $as_echo_n "checking for ANSI C header files... " >&6; }
4615 if test "${ac_cv_header_stdc+set}" = set; then :
4616 $as_echo_n "(cached) " >&6
4618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4633 if ac_fn_c_try_compile
"$LINENO"; then :
4634 ac_cv_header_stdc
=yes
4636 ac_cv_header_stdc
=no
4638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4640 if test $ac_cv_header_stdc = yes; then
4641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "memchr" >/dev
/null
2>&1; then :
4651 ac_cv_header_stdc
=no
4657 if test $ac_cv_header_stdc = yes; then
4658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4665 $EGREP "free" >/dev
/null
2>&1; then :
4668 ac_cv_header_stdc
=no
4674 if test $ac_cv_header_stdc = yes; then
4675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4676 if test "$cross_compiling" = yes; then :
4679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4683 #if ((' ' & 0x0FF) == 0x020)
4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4687 # define ISLOWER(c) \
4688 (('a' <= (c) && (c) <= 'i') \
4689 || ('j' <= (c) && (c) <= 'r') \
4690 || ('s' <= (c) && (c) <= 'z'))
4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4699 for (i = 0; i < 256; i++)
4700 if (XOR (islower (i), ISLOWER (i))
4701 || toupper (i) != TOUPPER (i))
4706 if ac_fn_c_try_run
"$LINENO"; then :
4709 ac_cv_header_stdc
=no
4711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4718 $as_echo "$ac_cv_header_stdc" >&6; }
4719 if test $ac_cv_header_stdc = yes; then
4721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4726 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4727 inttypes.h stdint.h unistd.h
4729 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4732 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4733 cat >>confdefs.h
<<_ACEOF
4734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4744 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
4751 if test "$MINIX" = yes; then
4753 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4756 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4759 $as_echo "#define _MINIX 1" >>confdefs.h
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4765 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4766 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4772 # define __EXTENSIONS__ 1
4773 $ac_includes_default
4782 if ac_fn_c_try_compile
"$LINENO"; then :
4783 ac_cv_safe_to_define___extensions__
=yes
4785 ac_cv_safe_to_define___extensions__
=no
4787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4790 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4791 test $ac_cv_safe_to_define___extensions__ = yes &&
4792 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4794 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4796 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4798 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4800 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4804 # Check whether --enable-lzo was given.
4805 if test "${enable_lzo+set}" = set; then :
4806 enableval
=$enable_lzo;
4813 # Check whether --enable-lzo-stub was given.
4814 if test "${enable_lzo_stub+set}" = set; then :
4815 enableval
=$enable_lzo_stub;
4817 enable_lzo_stub
="no"
4822 # Check whether --enable-crypto was given.
4823 if test "${enable_crypto+set}" = set; then :
4824 enableval
=$enable_crypto;
4831 # Check whether --enable-ssl was given.
4832 if test "${enable_ssl+set}" = set; then :
4833 enableval
=$enable_ssl;
4840 # Check whether --enable-x509-alt-username was given.
4841 if test "${enable_x509_alt_username+set}" = set; then :
4842 enableval
=$enable_x509_alt_username;
4844 enable_x509_alt_username
="no"
4849 # Check whether --enable-multi was given.
4850 if test "${enable_multi+set}" = set; then :
4851 enableval
=$enable_multi;
4858 # Check whether --enable-server was given.
4859 if test "${enable_server+set}" = set; then :
4860 enableval
=$enable_server;
4867 # Check whether --enable-plugins was given.
4868 if test "${enable_plugins+set}" = set; then :
4869 enableval
=$enable_plugins;
4871 enable_plugins
="yes"
4876 # Check whether --enable-eurephia was given.
4877 if test "${enable_eurephia+set}" = set; then :
4878 enableval
=$enable_eurephia;
4880 enable_eurephia
="yes"
4885 # Check whether --enable-management was given.
4886 if test "${enable_management+set}" = set; then :
4887 enableval
=$enable_management;
4889 enable_management
="yes"
4894 # Check whether --enable-pkcs11 was given.
4895 if test "${enable_pkcs11+set}" = set; then :
4896 enableval
=$enable_pkcs11;
4903 # Check whether --enable-socks was given.
4904 if test "${enable_socks+set}" = set; then :
4905 enableval
=$enable_socks;
4912 # Check whether --enable-http-proxy was given.
4913 if test "${enable_http_proxy+set}" = set; then :
4914 enableval
=$enable_http_proxy;
4916 enable_http_proxy
="yes"
4921 # Check whether --enable-fragment was given.
4922 if test "${enable_fragment+set}" = set; then :
4923 enableval
=$enable_fragment;
4925 enable_fragment
="yes"
4930 # Check whether --enable-multihome was given.
4931 if test "${enable_multihome+set}" = set; then :
4932 enableval
=$enable_multihome;
4934 enable_multihome
="yes"
4939 # Check whether --enable-port-share was given.
4940 if test "${enable_port_share+set}" = set; then :
4941 enableval
=$enable_port_share;
4943 enable_port_share
="yes"
4948 # Check whether --enable-debug was given.
4949 if test "${enable_debug+set}" = set; then :
4950 enableval
=$enable_debug;
4957 # Check whether --enable-small was given.
4958 if test "${enable_small+set}" = set; then :
4959 enableval
=$enable_small;
4966 # Check whether --enable-password-save was given.
4967 if test "${enable_password_save+set}" = set; then :
4968 enableval
=$enable_password_save;
4970 enable_password_save
="no"
4975 # Check whether --enable-iproute2 was given.
4976 if test "${enable_iproute2+set}" = set; then :
4977 enableval
=$enable_iproute2;
4979 enable_iproute2
="no"
4984 # Check whether --enable-def-auth was given.
4985 if test "${enable_def_auth+set}" = set; then :
4986 enableval
=$enable_def_auth;
4988 enable_def_auth
="yes"
4993 # Check whether --enable-pf was given.
4994 if test "${enable_pf+set}" = set; then :
4995 enableval
=$enable_pf;
5002 # Check whether --enable-plugin-auth-pam was given.
5003 if test "${enable_plugin_auth_pam+set}" = set; then :
5004 enableval
=$enable_plugin_auth_pam;
5008 *-*-openbsd*) enable_plugin_auth_pam
="no";;
5009 *-mingw*) enable_plugin_auth_pam
="no";;
5010 *) enable_plugin_auth_pam
="yes";;
5017 # Check whether --enable-plugin-down-root was given.
5018 if test "${enable_plugin_down_root+set}" = set; then :
5019 enableval
=$enable_plugin_down_root;
5023 *-mingw*) enable_plugin_down_root
="no";;
5024 *) enable_plugin_down_root
="yes";;
5031 # Check whether --enable-pam-dlopen was given.
5032 if test "${enable_pam_dlopen+set}" = set; then :
5033 enableval
=$enable_pam_dlopen;
5035 enable_pam_dlopen
="no"
5040 # Check whether --enable-strict was given.
5041 if test "${enable_strict+set}" = set; then :
5042 enableval
=$enable_strict;
5049 # Check whether --enable-pedantic was given.
5050 if test "${enable_pedantic+set}" = set; then :
5051 enableval
=$enable_pedantic;
5053 enable_pedantic
="no"
5058 # Check whether --enable-strict-options was given.
5059 if test "${enable_strict_options+set}" = set; then :
5060 enableval
=$enable_strict_options;
5062 enable_strict_options
="no"
5067 # Check whether --enable-selinux was given.
5068 if test "${enable_selinux+set}" = set; then :
5069 enableval
=$enable_selinux;
5076 # Check whether --enable-systemd was given.
5077 if test "${enable_systemd+set}" = set; then :
5078 enableval
=$enable_systemd;
5086 # Check whether --with-special-build was given.
5087 if test "${with_special_build+set}" = set; then :
5088 withval
=$with_special_build; test -n "${withval}" &&
5089 cat >>confdefs.h
<<_ACEOF
5090 #define CONFIGURE_SPECIAL_BUILD "${withval}"
5098 # Check whether --with-mem-check was given.
5099 if test "${with_mem_check+set}" = set; then :
5100 withval
=$with_mem_check;
5101 case "${withval}" in
5102 dmalloc|valgrind|ssl|no
) ;;
5103 *) as_fn_error $?
"bad value ${withval} for --mem-check" "$LINENO" 5 ;;
5113 # Check whether --with-crypto-library was given.
5114 if test "${with_crypto_library+set}" = set; then :
5115 withval
=$with_crypto_library;
5116 case "${withval}" in
5117 openssl|polarssl
) ;;
5118 *) as_fn_error $?
"bad value ${withval} for --with-crypto-library" "$LINENO" 5 ;;
5122 with_crypto_library
="openssl"
5128 # Check whether --with-plugindir was given.
5129 if test "${with_plugindir+set}" = set; then :
5130 withval
=$with_plugindir;
5132 with_plugindir
="\$(libdir)/openvpn/plugins"
5139 cat >>confdefs.h
<<_ACEOF
5140 #define TARGET_ALIAS "${host}"
5146 $as_echo "#define TARGET_LINUX 1" >>confdefs.h
5149 cat >>confdefs.h
<<_ACEOF
5150 #define TARGET_PREFIX "L"
5156 $as_echo "#define TARGET_SOLARIS 1" >>confdefs.h
5159 cat >>confdefs.h
<<_ACEOF
5160 #define TARGET_PREFIX "S"
5166 $as_echo "#define TARGET_OPENBSD 1" >>confdefs.h
5169 cat >>confdefs.h
<<_ACEOF
5170 #define TARGET_PREFIX "O"
5176 $as_echo "#define TARGET_FREEBSD 1" >>confdefs.h
5179 cat >>confdefs.h
<<_ACEOF
5180 #define TARGET_PREFIX "F"
5186 $as_echo "#define TARGET_NETBSD 1" >>confdefs.h
5189 cat >>confdefs.h
<<_ACEOF
5190 #define TARGET_PREFIX "N"
5196 $as_echo "#define TARGET_DARWIN 1" >>confdefs.h
5199 cat >>confdefs.h
<<_ACEOF
5200 #define TARGET_PREFIX "M"
5203 have_tap_header
="yes"
5204 CPPFLAGS
="$CPPFLAGS -no-cpp-precomp"
5208 $as_echo "#define TARGET_WIN32 1" >>confdefs.h
5211 cat >>confdefs.h
<<_ACEOF
5212 #define TARGET_PREFIX "W"
5215 CPPFLAGS
="${CPPFLAGS} -DWIN32_LEAN_AND_MEAN"
5216 CPPFLAGS
="${CPPFLAGS} -DNTDDI_VERSION=NTDDI_WINXP -D_WIN32_WINNT=_WIN32_WINNT_WINXP"
5221 $as_echo "#define TARGET_DRAGONFLY 1" >>confdefs.h
5224 cat >>confdefs.h
<<_ACEOF
5225 #define TARGET_PREFIX "D"
5231 cat >>confdefs.h
<<_ACEOF
5232 #define TARGET_PREFIX "X"
5235 have_tap_header
="yes"
5246 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5247 if test -n "$ac_tool_prefix"; then
5248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5249 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5251 $as_echo_n "checking for $ac_word... " >&6; }
5252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5257 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir
=.
5265 for ac_exec_ext
in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5279 if test -n "$PKG_CONFIG"; then
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5281 $as_echo "$PKG_CONFIG" >&6; }
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 $as_echo "no" >&6; }
5289 if test -z "$ac_cv_path_PKG_CONFIG"; then
5290 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5291 # Extract the first word of "pkg-config", so it can be a program name with args.
5292 set dummy pkg-config
; ac_word
=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5298 case $ac_pt_PKG_CONFIG in
5300 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5307 test -z "$as_dir" && as_dir
=.
5308 for ac_exec_ext
in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5322 if test -n "$ac_pt_PKG_CONFIG"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5324 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5330 if test "x$ac_pt_PKG_CONFIG" = x
; then
5333 case $cross_compiling:$ac_tool_warned in
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5337 ac_tool_warned
=yes ;;
5339 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5342 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5346 if test -n "$PKG_CONFIG"; then
5347 _pkg_min_version
=0.9.0
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5349 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5350 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5360 ac_cpp
='$CPP $CPPFLAGS'
5361 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5365 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5366 # On Suns, sometimes $CPP names a directory.
5367 if test -n "$CPP" && test -d "$CPP"; then
5370 if test -z "$CPP"; then
5371 if test "${ac_cv_prog_CPP+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
5374 # Double quotes because CPP needs to be expanded
5375 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5378 for ac_c_preproc_warn_flag
in '' yes
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 # include <limits.h>
5391 # include <assert.h>
5395 if ac_fn_c_try_cpp
"$LINENO"; then :
5398 # Broken: fails on valid input.
5401 rm -f conftest.err conftest.
$ac_ext
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if ac_fn_c_try_cpp
"$LINENO"; then :
5410 # Broken: success on invalid input.
5413 # Passes both tests.
5417 rm -f conftest.err conftest.
$ac_ext
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.
$ac_ext
5422 if $ac_preproc_ok; then :
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5435 $as_echo "$CPP" >&6; }
5437 for ac_c_preproc_warn_flag
in '' yes
5439 # Use a header file that comes with gcc, so configuring glibc
5440 # with a fresh cross-compiler works.
5441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5442 # <limits.h> exists even on freestanding compilers.
5443 # On the NeXT, cc -E runs the code through the compiler's parser,
5444 # not just through cpp. "Syntax error" is here to catch this case.
5445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5448 # include <limits.h>
5450 # include <assert.h>
5454 if ac_fn_c_try_cpp
"$LINENO"; then :
5457 # Broken: fails on valid input.
5460 rm -f conftest.err conftest.
$ac_ext
5462 # OK, works on sane cases. Now check whether nonexistent headers
5463 # can be detected and how.
5464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5466 #include <ac_nonexistent.h>
5468 if ac_fn_c_try_cpp
"$LINENO"; then :
5469 # Broken: success on invalid input.
5472 # Passes both tests.
5476 rm -f conftest.err conftest.
$ac_ext
5479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5480 rm -f conftest.err conftest.
$ac_ext
5481 if $ac_preproc_ok; then :
5484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5486 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5487 See \`config.log' for more details" "$LINENO" 5; }
5491 ac_cpp
='$CPP $CPPFLAGS'
5492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5498 $as_echo_n "checking whether ln -s works... " >&6; }
5500 if test "$LN_S" = "ln -s"; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5502 $as_echo "yes" >&6; }
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5505 $as_echo "no, using $LN_S" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5509 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5510 if test "${ac_cv_path_SED+set}" = set; then :
5511 $as_echo_n "(cached) " >&6
5513 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5514 for ac_i
in 1 2 3 4 5 6 7; do
5515 ac_script
="$ac_script$as_nl$ac_script"
5517 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5518 { ac_script
=; unset ac_script
;}
5519 if test -z "$SED"; then
5520 ac_path_SED_found
=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir
=.
5527 for ac_prog
in sed gsed
; do
5528 for ac_exec_ext
in '' $ac_executable_extensions; do
5529 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5530 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
5531 # Check for GNU ac_path_SED and select it if it is found.
5532 # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5535 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5538 $as_echo_n 0123456789 >"conftest.in"
5541 cat "conftest.in" "conftest.in" >"conftest.tmp"
5542 mv "conftest.tmp" "conftest.in"
5543 cp "conftest.in" "conftest.nl"
5544 $as_echo '' >> "conftest.nl"
5545 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5546 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5547 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5548 if test $ac_count -gt ${ac_path_SED_max-0}; then
5549 # Best one so far, save it but keep looking for a better one
5550 ac_cv_path_SED
="$ac_path_SED"
5551 ac_path_SED_max
=$ac_count
5553 # 10*(2^10) chars as input seems more than enough
5554 test $ac_count -gt 10 && break
5556 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5559 $ac_path_SED_found && break 3
5564 if test -z "$ac_cv_path_SED"; then
5565 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5573 $as_echo "$ac_cv_path_SED" >&6; }
5574 SED
="$ac_cv_path_SED"
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5580 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5581 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
5582 $as_echo_n "(cached) " >&6
5584 cat >conftest.
make <<\_ACEOF
5587 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5589 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5592 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5594 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5598 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600 $as_echo "yes" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 SET_MAKE
="MAKE=${MAKE-make}"
5615 for ac_prog
in ifconfig
5617 # Extract the first word of "$ac_prog", so it can be a program name with args.
5618 set dummy
$ac_prog; ac_word
=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_path_IFCONFIG+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5626 ac_cv_path_IFCONFIG
="$IFCONFIG" # Let the user override the test with a path.
5629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5631 for as_dir
in $as_dummy
5634 test -z "$as_dir" && as_dir
=.
5635 for ac_exec_ext
in '' $ac_executable_extensions; do
5636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637 ac_cv_path_IFCONFIG
="$as_dir/$ac_word$ac_exec_ext"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 IFCONFIG
=$ac_cv_path_IFCONFIG
5649 if test -n "$IFCONFIG"; then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IFCONFIG" >&5
5651 $as_echo "$IFCONFIG" >&6; }
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5658 test -n "$IFCONFIG" && break
5661 for ac_prog
in route
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy
$ac_prog; ac_word
=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if test "${ac_cv_path_ROUTE+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5672 ac_cv_path_ROUTE
="$ROUTE" # Let the user override the test with a path.
5675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5676 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5677 for as_dir
in $as_dummy
5680 test -z "$as_dir" && as_dir
=.
5681 for ac_exec_ext
in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_path_ROUTE
="$as_dir/$ac_word$ac_exec_ext"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 ROUTE
=$ac_cv_path_ROUTE
5695 if test -n "$ROUTE"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROUTE" >&5
5697 $as_echo "$ROUTE" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$ROUTE" && break
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy
$ac_prog; ac_word
=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_path_IPROUTE+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5718 ac_cv_path_IPROUTE
="$IPROUTE" # Let the user override the test with a path.
5721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5722 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
5723 for as_dir
in $as_dummy
5726 test -z "$as_dir" && as_dir
=.
5727 for ac_exec_ext
in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_path_IPROUTE
="$as_dir/$ac_word$ac_exec_ext"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 IPROUTE
=$ac_cv_path_IPROUTE
5741 if test -n "$IPROUTE"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPROUTE" >&5
5743 $as_echo "$IPROUTE" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5750 test -n "$IPROUTE" && break
5753 for ac_prog
in netstat
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy
$ac_prog; ac_word
=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_NETSTAT+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5762 if test -n "$NETSTAT"; then
5763 ac_cv_prog_NETSTAT
="$NETSTAT" # Let the user override the test.
5765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5766 as_dummy
="$PATH:/usr/local/sbin:/usr/sbin:/sbin:/etc"
5767 for as_dir
in $as_dummy
5770 test -z "$as_dir" && as_dir
=.
5771 for ac_exec_ext
in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_NETSTAT
="$ac_prog"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 NETSTAT
=$ac_cv_prog_NETSTAT
5784 if test -n "$NETSTAT"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NETSTAT" >&5
5786 $as_echo "$NETSTAT" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$NETSTAT" && break
5795 test -n "$NETSTAT" || NETSTAT
="netstat"
5797 for ac_prog
in man2html
5799 # Extract the first word of "$ac_prog", so it can be a program name with args.
5800 set dummy
$ac_prog; ac_word
=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_MAN2HTML+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5806 if test -n "$MAN2HTML"; then
5807 ac_cv_prog_MAN2HTML
="$MAN2HTML" # Let the user override the test.
5809 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5813 test -z "$as_dir" && as_dir
=.
5814 for ac_exec_ext
in '' $ac_executable_extensions; do
5815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816 ac_cv_prog_MAN2HTML
="$ac_prog"
5817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 MAN2HTML
=$ac_cv_prog_MAN2HTML
5827 if test -n "$MAN2HTML"; then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN2HTML" >&5
5829 $as_echo "$MAN2HTML" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5836 test -n "$MAN2HTML" && break
5841 # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy
$ac_prog; ac_word
=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if test "${ac_cv_prog_GIT+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5848 if test -n "$GIT"; then
5849 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
5851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5855 test -z "$as_dir" && as_dir
=.
5856 for ac_exec_ext
in '' $ac_executable_extensions; do
5857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5858 ac_cv_prog_GIT
="$ac_prog"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 if test -n "$GIT"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
5871 $as_echo "$GIT" >&6; }
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5878 test -n "$GIT" && break
5882 cat >>confdefs.h
<<_ACEOF
5883 #define IFCONFIG_PATH "$IFCONFIG"
5887 cat >>confdefs.h
<<_ACEOF
5888 #define IPROUTE_PATH "$IPROUTE"
5892 cat >>confdefs.h
<<_ACEOF
5893 #define ROUTE_PATH "$ROUTE"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5904 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5909 macro_version
='2.2.10'
5910 macro_revision
='1.3175'
5924 ltmain
="$ac_aux_dir/ltmain.sh"
5926 # Backslashify metacharacters that are still active within
5927 # double-quoted strings.
5928 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5930 # Same as above, but do not quote variable references.
5931 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5933 # Sed substitution to delay expansion of an escaped shell variable in a
5934 # double_quote_subst'ed string.
5935 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5937 # Sed substitution to delay expansion of an escaped single quote.
5938 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5940 # Sed substitution to avoid accidental globbing in evaled expressions
5941 no_glob_subst
='s/\*/\\\*/g'
5943 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5948 $as_echo_n "checking how to print strings... " >&6; }
5949 # Test print first, because it will be a builtin if present.
5950 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5951 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5953 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5956 # Use this function as a fallback that always works.
5957 func_fallback_echo ()
5959 eval 'cat <<_LTECHO_EOF
5963 ECHO='func_fallback_echo
'
5966 # func_echo_all arg...
5967 # Invoke $ECHO with all args, space-separated.
5974 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5975 $as_echo "printf" >&6; } ;;
5976 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5977 $as_echo "print -r" >&6; } ;;
5978 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5979 $as_echo "cat" >&6; } ;;
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5996 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5997 if test "${ac_cv_path_SED+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6001 for ac_i in 1 2 3 4 5 6 7; do
6002 ac_script="$ac_script$as_nl$ac_script"
6004 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6005 { ac_script=; unset ac_script;}
6006 if test -z "$SED"; then
6007 ac_path_SED_found=false
6008 # Loop through the user's path and
test for each of PROGNAME-LIST
6009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir
=.
6014 for ac_prog
in sed gsed
; do
6015 for ac_exec_ext
in '' $ac_executable_extensions; do
6016 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6017 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
6018 # Check for GNU ac_path_SED and select it if it is found.
6019 # Check for GNU $ac_path_SED
6020 case `"$ac_path_SED" --version 2>&1` in
6022 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6025 $as_echo_n 0123456789 >"conftest.in"
6028 cat "conftest.in" "conftest.in" >"conftest.tmp"
6029 mv "conftest.tmp" "conftest.in"
6030 cp "conftest.in" "conftest.nl"
6031 $as_echo '' >> "conftest.nl"
6032 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6033 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6034 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6035 if test $ac_count -gt ${ac_path_SED_max-0}; then
6036 # Best one so far, save it but keep looking for a better one
6037 ac_cv_path_SED
="$ac_path_SED"
6038 ac_path_SED_max
=$ac_count
6040 # 10*(2^10) chars as input seems more than enough
6041 test $ac_count -gt 10 && break
6043 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6046 $ac_path_SED_found && break 3
6051 if test -z "$ac_cv_path_SED"; then
6052 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6060 $as_echo "$ac_cv_path_SED" >&6; }
6061 SED
="$ac_cv_path_SED"
6064 test -z "$SED" && SED
=sed
6065 Xsed
="$SED -e 1s/^X//"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6078 $as_echo_n "checking for fgrep... " >&6; }
6079 if test "${ac_cv_path_FGREP+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6083 then ac_cv_path_FGREP
="$GREP -F"
6085 if test -z "$FGREP"; then
6086 ac_path_FGREP_found
=false
6087 # Loop through the user's path and test for each of PROGNAME-LIST
6088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6089 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6092 test -z "$as_dir" && as_dir
=.
6093 for ac_prog
in fgrep
; do
6094 for ac_exec_ext
in '' $ac_executable_extensions; do
6095 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6096 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
6097 # Check for GNU ac_path_FGREP and select it if it is found.
6098 # Check for GNU $ac_path_FGREP
6099 case `"$ac_path_FGREP" --version 2>&1` in
6101 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6104 $as_echo_n 0123456789 >"conftest.in"
6107 cat "conftest.in" "conftest.in" >"conftest.tmp"
6108 mv "conftest.tmp" "conftest.in"
6109 cp "conftest.in" "conftest.nl"
6110 $as_echo 'FGREP' >> "conftest.nl"
6111 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6112 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6113 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6114 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6115 # Best one so far, save it but keep looking for a better one
6116 ac_cv_path_FGREP
="$ac_path_FGREP"
6117 ac_path_FGREP_max
=$ac_count
6119 # 10*(2^10) chars as input seems more than enough
6120 test $ac_count -gt 10 && break
6122 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6125 $ac_path_FGREP_found && break 3
6130 if test -z "$ac_cv_path_FGREP"; then
6131 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6134 ac_cv_path_FGREP
=$FGREP
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6140 $as_echo "$ac_cv_path_FGREP" >&6; }
6141 FGREP
="$ac_cv_path_FGREP"
6144 test -z "$GREP" && GREP
=grep
6164 # Check whether --with-gnu-ld was given.
6165 if test "${with_gnu_ld+set}" = set; then :
6166 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6172 if test "$GCC" = yes; then
6173 # Check if gcc -print-prog-name=ld gives a path.
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6175 $as_echo_n "checking for ld used by $CC... " >&6; }
6178 # gcc leaves a trailing carriage return which upsets mingw
6179 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6181 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6184 # Accept absolute paths.
6186 re_direlt
='/[^/][^/]*/\.\./'
6187 # Canonicalize the pathname of ld
6188 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6189 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6190 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6192 test -z "$LD" && LD
="$ac_prog"
6195 # If it fails, then pretend we aren't using GCC.
6199 # If it is relative, then search for the first ld in PATH.
6203 elif test "$with_gnu_ld" = yes; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6205 $as_echo_n "checking for GNU ld... " >&6; }
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6208 $as_echo_n "checking for non-GNU ld... " >&6; }
6210 if test "${lt_cv_path_LD+set}" = set; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -z "$LD"; then
6214 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6215 for ac_dir
in $PATH; do
6217 test -z "$ac_dir" && ac_dir
=.
6218 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6219 lt_cv_path_LD
="$ac_dir/$ac_prog"
6220 # Check to see if the program is GNU ld. I'd rather use --version,
6221 # but apparently some variants of GNU ld only accept -v.
6222 # Break only if it was the GNU/non-GNU ld that we prefer.
6223 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6224 *GNU
* |
*'with BFD'*)
6225 test "$with_gnu_ld" != no
&& break
6228 test "$with_gnu_ld" != yes && break
6235 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6240 if test -n "$LD"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6242 $as_echo "$LD" >&6; }
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6247 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6249 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6250 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6253 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6254 case `$LD -v 2>&1 </dev/null` in
6255 *GNU
* |
*'with BFD'*)
6256 lt_cv_prog_gnu_ld
=yes
6259 lt_cv_prog_gnu_ld
=no
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6264 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6265 with_gnu_ld
=$lt_cv_prog_gnu_ld
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6276 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6277 if test "${lt_cv_path_NM+set}" = set; then :
6278 $as_echo_n "(cached) " >&6
6280 if test -n "$NM"; then
6281 # Let the user override the test.
6284 lt_nm_to_check
="${ac_tool_prefix}nm"
6285 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6286 lt_nm_to_check
="$lt_nm_to_check nm"
6288 for lt_tmp_nm
in $lt_nm_to_check; do
6289 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6290 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6292 test -z "$ac_dir" && ac_dir
=.
6293 tmp_nm
="$ac_dir/$lt_tmp_nm"
6294 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6295 # Check to see if the nm accepts a BSD-compat flag.
6296 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6297 # nm: unknown option "B" ignored
6298 # Tru64's nm complains that /dev/null is an invalid object file
6299 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6300 */dev
/null
* |
*'Invalid file or object type'*)
6301 lt_cv_path_NM
="$tmp_nm -B"
6305 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6307 lt_cv_path_NM
="$tmp_nm -p"
6311 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6312 continue # so that we can try to find one that supports BSD flags
6321 : ${lt_cv_path_NM=no}
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6325 $as_echo "$lt_cv_path_NM" >&6; }
6326 if test "$lt_cv_path_NM" != "no"; then
6329 # Didn't find any BSD compatible name lister, look for dumpbin.
6330 if test -n "$DUMPBIN"; then :
6331 # Let the user override the test.
6333 if test -n "$ac_tool_prefix"; then
6334 for ac_prog
in dumpbin
"link -dump"
6336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6337 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6341 $as_echo_n "(cached) " >&6
6343 if test -n "$DUMPBIN"; then
6344 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6350 test -z "$as_dir" && as_dir
=.
6351 for ac_exec_ext
in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 DUMPBIN
=$ac_cv_prog_DUMPBIN
6364 if test -n "$DUMPBIN"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6366 $as_echo "$DUMPBIN" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 test -n "$DUMPBIN" && break
6376 if test -z "$DUMPBIN"; then
6377 ac_ct_DUMPBIN
=$DUMPBIN
6378 for ac_prog
in dumpbin
"link -dump"
6380 # Extract the first word of "$ac_prog", so it can be a program name with args.
6381 set dummy
$ac_prog; ac_word
=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6387 if test -n "$ac_ct_DUMPBIN"; then
6388 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6394 test -z "$as_dir" && as_dir
=.
6395 for ac_exec_ext
in '' $ac_executable_extensions; do
6396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6397 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6408 if test -n "$ac_ct_DUMPBIN"; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6410 $as_echo "$ac_ct_DUMPBIN" >&6; }
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6417 test -n "$ac_ct_DUMPBIN" && break
6420 if test "x$ac_ct_DUMPBIN" = x
; then
6423 case $cross_compiling:$ac_tool_warned in
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned
=yes ;;
6429 DUMPBIN
=$ac_ct_DUMPBIN
6433 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6435 DUMPBIN
="$DUMPBIN -symbols"
6443 if test "$DUMPBIN" != ":"; then
6447 test -z "$NM" && NM
=nm
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6455 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6456 if test "${lt_cv_nm_interface+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6459 lt_cv_nm_interface
="BSD nm"
6460 echo "int some_variable = 0;" > conftest.
$ac_ext
6461 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6462 (eval "$ac_compile" 2>conftest.err
)
6463 cat conftest.err
>&5
6464 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6465 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6466 cat conftest.err
>&5
6467 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6468 cat conftest.out
>&5
6469 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6470 lt_cv_nm_interface
="MS dumpbin"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6475 $as_echo "$lt_cv_nm_interface" >&6; }
6477 # find the maximum length of command line arguments
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6479 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len
=-1;
6502 cygwin
* | mingw
* | cegcc
*)
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len
=8192;
6514 # On MiNT this can take a long time and run out of memory.
6515 lt_cv_sys_max_cmd_len
=8192;
6519 # On AmigaOS with pdksh, this test takes hours, literally.
6520 # So we just punt and use a minimum line length of 8192.
6521 lt_cv_sys_max_cmd_len
=8192;
6524 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6525 # This has been around since 386BSD, at least. Likely further.
6526 if test -x /sbin
/sysctl
; then
6527 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6528 elif test -x /usr
/sbin
/sysctl
; then
6529 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6531 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6533 # And add a safety zone
6534 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6535 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6539 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6540 lt_cv_sys_max_cmd_len
=196608
6544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6546 # nice to cause kernel panics so lets avoid the loop below.
6547 # First set a reasonable default.
6548 lt_cv_sys_max_cmd_len
=16384
6550 if test -x /sbin
/sysconfig
; then
6551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6552 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6557 lt_cv_sys_max_cmd_len
=102400
6559 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6560 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6561 if test -n "$kargmax"; then
6562 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6564 lt_cv_sys_max_cmd_len
=32768
6568 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6569 if test -n "$lt_cv_sys_max_cmd_len"; then
6570 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6571 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6573 # Make teststring a little bigger before we do anything with it.
6574 # a 1K string should be a reasonable start.
6575 for i
in 1 2 3 4 5 6 7 8 ; do
6576 teststring
=$teststring$teststring
6578 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6579 # If test is not a shell built-in, we'll probably end up computing a
6580 # maximum length that is only half of the actual maximum length, but
6582 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6583 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6584 test $i != 17 # 1/2 MB should be enough
6587 teststring
=$teststring$teststring
6589 # Only check the string length outside the loop.
6590 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6592 # Add a significant safety factor because C++ compilers can tack on
6593 # massive amounts of additional arguments before passing them to the
6594 # linker. It appears as though 1/2 is a usable value.
6595 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6602 if test -n $lt_cv_sys_max_cmd_len ; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6604 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6607 $as_echo "none" >&6; }
6609 max_cmd_len
=$lt_cv_sys_max_cmd_len
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6621 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6622 # Try some XSI features
6625 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6627 && eval 'test $(( 1 + 1 )) -eq 2 \
6628 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6631 $as_echo "$xsi_shell" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6635 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6637 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6639 && lt_shell_append=yes
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6641 $as_echo "$lt_shell_append" >&6; }
6644 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6654 # test EBCDIC or ASCII
6655 case `echo X|tr X '\101'` in
6656 A) # ASCII based system
6657 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6658 lt_SP2NL='tr \040 \012'
6659 lt_NL2SP='tr \015\012 \040\040'
6661 *) # EBCDIC based system
6662 lt_SP2NL='tr \100 \n'
6663 lt_NL2SP='tr \r\n \100\100'
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6676 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6677 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6678 $as_echo_n "(cached
) " >&6
6680 lt_cv_ld_reload_flag='-r'
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6683 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6684 reload_flag=$lt_cv_ld_reload_flag
6685 case $reload_flag in
6687 *) reload_flag=" $reload_flag" ;;
6689 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6692 if test "$GCC" = yes; then
6693 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6695 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6708 if test -n "$ac_tool_prefix"; then
6709 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6712 $as_echo_n "checking
for $ac_word...
" >&6; }
6713 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6714 $as_echo_n "(cached
) " >&6
6716 if test -n "$OBJDUMP"; then
6717 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir=.
6724 for ac_exec_ext in '' $ac_executable_extensions; do
6725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6736 OBJDUMP=$ac_cv_prog_OBJDUMP
6737 if test -n "$OBJDUMP"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6739 $as_echo "$OBJDUMP" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6742 $as_echo "no
" >&6; }
6747 if test -z "$ac_cv_prog_OBJDUMP"; then
6748 ac_ct_OBJDUMP=$OBJDUMP
6749 # Extract the first word of "objdump
", so it can be a program name with args.
6750 set dummy objdump; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6752 $as_echo_n "checking
for $ac_word...
" >&6; }
6753 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6754 $as_echo_n "(cached
) " >&6
6756 if test -n "$ac_ct_OBJDUMP"; then
6757 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763 test -z "$as_dir" && as_dir=.
6764 for ac_exec_ext in '' $ac_executable_extensions; do
6765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6766 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6776 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6777 if test -n "$ac_ct_OBJDUMP"; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6779 $as_echo "$ac_ct_OBJDUMP" >&6; }
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6782 $as_echo "no
" >&6; }
6785 if test "x
$ac_ct_OBJDUMP" = x; then
6788 case $cross_compiling:$ac_tool_warned in
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6791 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6792 ac_tool_warned=yes ;;
6794 OBJDUMP=$ac_ct_OBJDUMP
6797 OBJDUMP="$ac_cv_prog_OBJDUMP"
6800 test -z "$OBJDUMP" && OBJDUMP=objdump
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6808 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6809 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6810 $as_echo_n "(cached
) " >&6
6812 lt_cv_file_magic_cmd='$MAGIC_CMD'
6813 lt_cv_file_magic_test_file=
6814 lt_cv_deplibs_check_method='unknown'
6815 # Need to set the preceding variable on all platforms that support
6816 # interlibrary dependencies.
6817 # 'none' -- dependencies not supported.
6818 # `unknown' -- same as none, but documents that we really don't know.
6819 # 'pass_all' -- all dependencies passed with no checks.
6820 # 'test_compile' -- check by making test program.
6821 # 'file_magic [[regex]]' -- check by looking for files in library path
6822 # which responds to the $file_magic_cmd with a given extended regex.
6823 # If you have `file' or equivalent on your system and you're not sure
6824 # whether `pass_all' will *always* work, you probably want this one.
6828 lt_cv_deplibs_check_method=pass_all
6832 lt_cv_deplibs_check_method=pass_all
6836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6837 lt_cv_file_magic_cmd='/usr/bin/file -L'
6838 lt_cv_file_magic_test_file=/shlib/libc.so
6842 # func_win32_libid is a shell function defined in ltmain.sh
6843 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6844 lt_cv_file_magic_cmd='func_win32_libid'
6848 # Base MSYS/MinGW do not provide the 'file' command needed by
6849 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6850 # unless we find 'file', for example because we are cross-compiling.
6851 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6852 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6853 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6854 lt_cv_file_magic_cmd='func_win32_libid'
6856 # Keep this pattern in sync with the one in func_win32_libid.
6857 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6858 lt_cv_file_magic_cmd='$OBJDUMP -f'
6863 # use the weaker test based on 'objdump'. See mingw*.
6864 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6865 lt_cv_file_magic_cmd='$OBJDUMP -f'
6868 darwin* | rhapsody*)
6869 lt_cv_deplibs_check_method=pass_all
6872 freebsd* | dragonfly*)
6873 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6876 # Not sure whether the presence of OpenBSD here was a mistake.
6877 # Let's accept both of them until this is cleared up.
6878 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6879 lt_cv_file_magic_cmd=/usr/bin/file
6880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6884 lt_cv_deplibs_check_method=pass_all
6889 lt_cv_deplibs_check_method=pass_all
6893 lt_cv_deplibs_check_method=pass_all
6896 hpux10.20* | hpux11*)
6897 lt_cv_file_magic_cmd=/usr/bin/file
6900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6904 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]'
6905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6919 irix5* | irix6* | nonstopux*)
6921 *-32|*"-32 ") libmagic=32-bit;;
6922 *-n32|*"-n32 ") libmagic=N32;;
6923 *-64|*"-64 ") libmagic=64-bit;;
6924 *) libmagic=never-match;;
6926 lt_cv_deplibs_check_method=pass_all
6929 # This must be Linux ELF.
6930 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6931 lt_cv_deplibs_check_method=pass_all
6935 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6944 lt_cv_file_magic_cmd=/usr/bin/file
6945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6949 lt_cv_deplibs_check_method=pass_all
6953 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6960 osf3* | osf4* | osf5*)
6961 lt_cv_deplibs_check_method=pass_all
6965 lt_cv_deplibs_check_method=pass_all
6969 lt_cv_deplibs_check_method=pass_all
6972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6973 lt_cv_deplibs_check_method=pass_all
6977 case $host_vendor in
6979 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]'
6980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6983 lt_cv_deplibs_check_method=pass_all
6986 lt_cv_file_magic_cmd='/bin/file'
6987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6990 lt_cv_file_magic_cmd='/bin/file'
6991 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6992 lt_cv_file_magic_test_file=/lib/libc.so
6995 lt_cv_deplibs_check_method=pass_all
6998 lt_cv_deplibs_check_method=pass_all
7004 lt_cv_deplibs_check_method=pass_all
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7010 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7011 file_magic_cmd=$lt_cv_file_magic_cmd
7012 deplibs_check_method=$lt_cv_deplibs_check_method
7013 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}ar; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7030 $as_echo_n "checking
for $ac_word...
" >&6; }
7031 if test "${ac_cv_prog_AR+set}" = set; then :
7032 $as_echo_n "(cached
) " >&6
7034 if test -n "$AR"; then
7035 ac_cv_prog_AR="$AR" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_prog_AR="${ac_tool_prefix}ar"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7055 if test -n "$AR"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7057 $as_echo "$AR" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7060 $as_echo "no
" >&6; }
7065 if test -z "$ac_cv_prog_AR"; then
7067 # Extract the first word of "ar", so it can be a program name with args.
7068 set dummy ar; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7070 $as_echo_n "checking
for $ac_word...
" >&6; }
7071 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7072 $as_echo_n "(cached
) " >&6
7074 if test -n "$ac_ct_AR"; then
7075 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_prog_ac_ct_AR="ar"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7094 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7095 if test -n "$ac_ct_AR"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7097 $as_echo "$ac_ct_AR" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7100 $as_echo "no
" >&6; }
7103 if test "x
$ac_ct_AR" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7109 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7110 ac_tool_warned=yes ;;
7118 test -z "$AR" && AR=ar
7119 test -z "$AR_FLAGS" && AR_FLAGS=cru
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}strip; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7135 $as_echo_n "checking
for $ac_word...
" >&6; }
7136 if test "${ac_cv_prog_STRIP+set}" = set; then :
7137 $as_echo_n "(cached
) " >&6
7139 if test -n "$STRIP"; then
7140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7159 STRIP=$ac_cv_prog_STRIP
7160 if test -n "$STRIP"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7162 $as_echo "$STRIP" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7165 $as_echo "no
" >&6; }
7170 if test -z "$ac_cv_prog_STRIP"; then
7172 # Extract the first word of "strip
", so it can be a program name with args.
7173 set dummy strip; ac_word=$2
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7175 $as_echo_n "checking
for $ac_word...
" >&6; }
7176 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7177 $as_echo_n "(cached
) " >&6
7179 if test -n "$ac_ct_STRIP"; then
7180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7189 ac_cv_prog_ac_ct_STRIP="strip
"
7190 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7199 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7200 if test -n "$ac_ct_STRIP"; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7202 $as_echo "$ac_ct_STRIP" >&6; }
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7205 $as_echo "no
" >&6; }
7208 if test "x
$ac_ct_STRIP" = x; then
7211 case $cross_compiling:$ac_tool_warned in
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7214 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7215 ac_tool_warned=yes ;;
7220 STRIP="$ac_cv_prog_STRIP"
7223 test -z "$STRIP" && STRIP=:
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ranlib; 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 test "${ac_cv_prog_RANLIB+set}" = set; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$RANLIB"; then
7239 ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7258 RANLIB=$ac_cv_prog_RANLIB
7259 if test -n "$RANLIB"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7261 $as_echo "$RANLIB" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7269 if test -z "$ac_cv_prog_RANLIB"; then
7270 ac_ct_RANLIB=$RANLIB
7271 # Extract the first word of "ranlib
", so it can be a program name with args.
7272 set dummy ranlib; 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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7276 $as_echo_n "(cached
) " >&6
7278 if test -n "$ac_ct_RANLIB"; then
7279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7299 if test -n "$ac_ct_RANLIB"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7301 $as_echo "$ac_ct_RANLIB" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7304 $as_echo "no
" >&6; }
7307 if test "x
$ac_ct_RANLIB" = 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 RANLIB=$ac_ct_RANLIB
7319 RANLIB="$ac_cv_prog_RANLIB"
7322 test -z "$RANLIB" && RANLIB=:
7329 # Determine commands to create old-style static archives.
7330 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7331 old_postinstall_cmds='chmod 644 $oldlib'
7332 old_postuninstall_cmds=
7334 if test -n "$RANLIB"; then
7337 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7340 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7343 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7348 lock_old_archive_extraction=yes ;;
7350 lock_old_archive_extraction=no ;;
7391 # If no C compiler was specified, use CC.
7394 # If no C compiler flags were specified, use CFLAGS.
7395 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7397 # Allow CC to be a program name with arguments.
7401 # Check for command to grab the raw symbol name followed by C symbol from nm.
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7403 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7404 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7405 $as_echo_n "(cached
) " >&6
7408 # These are sane defaults that work on at least a few old systems.
7409 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7411 # Character class describing NM global symbol codes.
7412 symcode='[BCDEGRST]'
7414 # Regexp to match symbols that can be accessed directly from C.
7415 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7417 # Define system-specific variables.
7422 cygwin* | mingw* | pw32* | cegcc*)
7423 symcode='[ABCDGISTW]'
7426 if test "$host_cpu" = ia64; then
7427 symcode='[ABCDEGRST]'
7431 symcode='[BCDEGRST]'
7434 symcode='[BCDEGQRST]'
7445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7453 # If we're using GNU nm, then use its standard symbol codes.
7454 case `$NM -V 2>&1` in
7455 *GNU* | *'with BFD'*)
7456 symcode='[ABCDGIRSTW]' ;;
7459 # Transform an extracted symbol line into a proper C declaration.
7460 # Some systems (esp. on ia64) link data and code symbols differently,
7461 # so use this general approach.
7462 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7464 # Transform an extracted symbol line into symbol name and symbol address
7465 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7466 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'"
7468 # Handle CRLF in mingw tool chain
7472 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7476 # Try without a prefix underscore, then with it.
7477 for ac_symprfx in "" "_
"; do
7479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7480 symxfrm="\\1 $ac_symprfx\\2 \\2"
7482 # Write the raw and C identifiers.
7483 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7484 # Fake it for dumpbin and say T for any non-static function
7485 # and D for any global variable.
7486 # Also find C++ and __fastcall symbols from MSVC++,
7487 # which start with @ or ?.
7488 lt_cv_sys_global_symbol_pipe="$AWK '"\
7489 " {last_section=section; section=\$ 3};"\
7490 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7491 " \$ 0!~/External *\|/{next};"\
7492 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7493 " {if(hide[section]) next};"\
7494 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7495 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7496 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7497 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7498 " ' prfx
=^
$ac_symprfx"
7500 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7503 # Check to see that the pipe works correctly.
7507 cat > conftest.$ac_ext <<_LT_EOF
7512 void nm_test_func(void);
7513 void nm_test_func(void){}
7517 int main(){nm_test_var='a';nm_test_func();return(0);}
7520 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7521 (eval $ac_compile) 2>&5
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7524 test $ac_status = 0; }; then
7525 # Now try to grab the symbols.
7527 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7528 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7531 test $ac_status = 0; } && test -s "$nlist"; then
7532 # Try sorting and uniquifying the output.
7533 if sort "$nlist" | uniq > "$nlist"T; then
7534 mv -f "$nlist"T "$nlist"
7539 # Make sure that we snagged all the symbols we need.
7540 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7541 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7542 cat <<_LT_EOF > conftest.$ac_ext
7548 # Now generate the symbol file.
7549 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7551 cat <<_LT_EOF >> conftest.$ac_ext
7553 /* The mapping between symbol names and symbols. */
7558 lt__PROGRAM__LTX_preloaded_symbols[] =
7560 { "@PROGRAM@
", (void *) 0 },
7562 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7563 cat <<\_LT_EOF >> conftest.$ac_ext
7567 /* This works around a problem in FreeBSD linker */
7568 #ifdef FREEBSD_WORKAROUND
7569 static const void *lt_preloaded_setup() {
7570 return lt__PROGRAM__LTX_preloaded_symbols;
7578 # Now try linking the two files.
7579 mv conftest.$ac_objext conftstm.$ac_objext
7580 lt_save_LIBS="$LIBS"
7581 lt_save_CFLAGS="$CFLAGS"
7582 LIBS="conftstm.
$ac_objext"
7583 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7584 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7585 (eval $ac_link) 2>&5
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7588 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7591 LIBS="$lt_save_LIBS"
7592 CFLAGS="$lt_save_CFLAGS"
7594 echo "cannot
find nm_test_func
in $nlist" >&5
7597 echo "cannot
find nm_test_var
in $nlist" >&5
7600 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7603 echo "$progname: failed program was
:" >&5
7604 cat conftest.$ac_ext >&5
7606 rm -rf conftest* conftst*
7608 # Do not use the global_symbol_pipe unless it works.
7609 if test "$pipe_works" = yes; then
7612 lt_cv_sys_global_symbol_pipe=
7618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7619 lt_cv_sys_global_symbol_to_cdecl=
7621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7623 $as_echo "failed
" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7626 $as_echo "ok
" >&6; }
7650 # Check whether --enable-libtool-lock was given.
7651 if test "${enable_libtool_lock+set}" = set; then :
7652 enableval=$enable_libtool_lock;
7655 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7657 # Some flags need to be propagated to the compiler or linker for good
7661 # Find out which ABI we are using.
7662 echo 'int i;' > conftest.$ac_ext
7663 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7664 (eval $ac_compile) 2>&5
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7667 test $ac_status = 0; }; then
7668 case `/usr/bin/file conftest.$ac_objext` in
7680 # Find out which ABI we are using.
7681 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7682 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7683 (eval $ac_compile) 2>&5
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7686 test $ac_status = 0; }; then
7687 if test "$lt_cv_prog_gnu_ld" = yes; then
7688 case `/usr/bin/file conftest.$ac_objext` in
7690 LD="${LD-ld} -melf32bsmip"
7693 LD="${LD-ld} -melf32bmipn32"
7696 LD="${LD-ld} -melf64bmip"
7700 case `/usr/bin/file conftest.$ac_objext` in
7716 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7717 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7718 # Find out which ABI we are using.
7719 echo 'int i;' > conftest.$ac_ext
7720 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7721 (eval $ac_compile) 2>&5
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7724 test $ac_status = 0; }; then
7725 case `/usr/bin/file conftest.o` in
7728 x86_64-*kfreebsd*-gnu)
7729 LD="${LD-ld} -m elf_i386_fbsd
"
7732 LD="${LD-ld} -m elf_i386
"
7734 ppc64-*linux*|powerpc64-*linux*)
7735 LD="${LD-ld} -m elf32ppclinux
"
7738 LD="${LD-ld} -m elf_s390
"
7741 LD="${LD-ld} -m elf32_sparc
"
7747 x86_64-*kfreebsd*-gnu)
7748 LD="${LD-ld} -m elf_x86_64_fbsd
"
7751 LD="${LD-ld} -m elf_x86_64
"
7753 ppc*-*linux*|powerpc*-*linux*)
7754 LD="${LD-ld} -m elf64ppc
"
7756 s390*-*linux*|s390*-*tpf*)
7757 LD="${LD-ld} -m elf64_s390
"
7760 LD="${LD-ld} -m elf64_sparc
"
7770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7771 SAVE_CFLAGS="$CFLAGS"
7772 CFLAGS="$CFLAGS -belf"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7774 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7775 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7776 $as_echo_n "(cached
) " >&6
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7795 if ac_fn_c_try_link "$LINENO"; then :
7796 lt_cv_cc_needs_belf=yes
7798 lt_cv_cc_needs_belf=no
7800 rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7810 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7811 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7813 CFLAGS="$SAVE_CFLAGS"
7817 # Find out which ABI we are using.
7818 echo 'int i;' > conftest.$ac_ext
7819 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7820 (eval $ac_compile) 2>&5
7822 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7823 test $ac_status = 0; }; then
7824 case `/usr/bin/file conftest.o` in
7826 case $lt_cv_prog_gnu_ld in
7827 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7829 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7841 need_locks="$enable_libtool_lock"
7845 rhapsody* | darwin*)
7846 if test -n "$ac_tool_prefix"; then
7847 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7848 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7850 $as_echo_n "checking
for $ac_word...
" >&6; }
7851 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7852 $as_echo_n "(cached
) " >&6
7854 if test -n "$DSYMUTIL"; then
7855 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7874 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7875 if test -n "$DSYMUTIL"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7877 $as_echo "$DSYMUTIL" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7880 $as_echo "no
" >&6; }
7885 if test -z "$ac_cv_prog_DSYMUTIL"; then
7886 ac_ct_DSYMUTIL=$DSYMUTIL
7887 # Extract the first word of "dsymutil
", so it can be a program name with args.
7888 set dummy dsymutil; ac_word=$2
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7890 $as_echo_n "checking
for $ac_word...
" >&6; }
7891 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7892 $as_echo_n "(cached
) " >&6
7894 if test -n "$ac_ct_DSYMUTIL"; then
7895 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7904 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7914 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7915 if test -n "$ac_ct_DSYMUTIL"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7917 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7920 $as_echo "no
" >&6; }
7923 if test "x
$ac_ct_DSYMUTIL" = x; then
7926 case $cross_compiling:$ac_tool_warned in
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7929 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7930 ac_tool_warned=yes ;;
7932 DSYMUTIL=$ac_ct_DSYMUTIL
7935 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7938 if test -n "$ac_tool_prefix"; then
7939 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7940 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7942 $as_echo_n "checking
for $ac_word...
" >&6; }
7943 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7944 $as_echo_n "(cached
) " >&6
7946 if test -n "$NMEDIT"; then
7947 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7956 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7966 NMEDIT=$ac_cv_prog_NMEDIT
7967 if test -n "$NMEDIT"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7969 $as_echo "$NMEDIT" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7972 $as_echo "no
" >&6; }
7977 if test -z "$ac_cv_prog_NMEDIT"; then
7978 ac_ct_NMEDIT=$NMEDIT
7979 # Extract the first word of "nmedit
", so it can be a program name with args.
7980 set dummy nmedit; ac_word=$2
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7982 $as_echo_n "checking
for $ac_word...
" >&6; }
7983 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7984 $as_echo_n "(cached
) " >&6
7986 if test -n "$ac_ct_NMEDIT"; then
7987 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8006 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8007 if test -n "$ac_ct_NMEDIT"; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8009 $as_echo "$ac_ct_NMEDIT" >&6; }
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8012 $as_echo "no
" >&6; }
8015 if test "x
$ac_ct_NMEDIT" = x; then
8018 case $cross_compiling:$ac_tool_warned in
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8021 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8022 ac_tool_warned=yes ;;
8024 NMEDIT=$ac_ct_NMEDIT
8027 NMEDIT="$ac_cv_prog_NMEDIT"
8030 if test -n "$ac_tool_prefix"; then
8031 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8032 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8034 $as_echo_n "checking
for $ac_word...
" >&6; }
8035 if test "${ac_cv_prog_LIPO+set}" = set; then :
8036 $as_echo_n "(cached
) " >&6
8038 if test -n "$LIPO"; then
8039 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8058 LIPO=$ac_cv_prog_LIPO
8059 if test -n "$LIPO"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8061 $as_echo "$LIPO" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8064 $as_echo "no
" >&6; }
8069 if test -z "$ac_cv_prog_LIPO"; then
8071 # Extract the first word of "lipo
", so it can be a program name with args.
8072 set dummy lipo; ac_word=$2
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8074 $as_echo_n "checking
for $ac_word...
" >&6; }
8075 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8076 $as_echo_n "(cached
) " >&6
8078 if test -n "$ac_ct_LIPO"; then
8079 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_prog_ac_ct_LIPO="lipo
"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8098 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8099 if test -n "$ac_ct_LIPO"; then
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8101 $as_echo "$ac_ct_LIPO" >&6; }
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8104 $as_echo "no
" >&6; }
8107 if test "x
$ac_ct_LIPO" = x; then
8110 case $cross_compiling:$ac_tool_warned in
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8113 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8114 ac_tool_warned=yes ;;
8119 LIPO="$ac_cv_prog_LIPO"
8122 if test -n "$ac_tool_prefix"; then
8123 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8124 set dummy ${ac_tool_prefix}otool; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8126 $as_echo_n "checking
for $ac_word...
" >&6; }
8127 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8128 $as_echo_n "(cached
) " >&6
8130 if test -n "$OTOOL"; then
8131 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8140 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8150 OTOOL=$ac_cv_prog_OTOOL
8151 if test -n "$OTOOL"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8153 $as_echo "$OTOOL" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8156 $as_echo "no
" >&6; }
8161 if test -z "$ac_cv_prog_OTOOL"; then
8163 # Extract the first word of "otool
", so it can be a program name with args.
8164 set dummy otool; ac_word=$2
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8166 $as_echo_n "checking
for $ac_word...
" >&6; }
8167 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8168 $as_echo_n "(cached
) " >&6
8170 if test -n "$ac_ct_OTOOL"; then
8171 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_prog_ac_ct_OTOOL="otool
"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8190 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8191 if test -n "$ac_ct_OTOOL"; then
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8193 $as_echo "$ac_ct_OTOOL" >&6; }
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8196 $as_echo "no
" >&6; }
8199 if test "x
$ac_ct_OTOOL" = x; then
8202 case $cross_compiling:$ac_tool_warned in
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8205 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8206 ac_tool_warned=yes ;;
8211 OTOOL="$ac_cv_prog_OTOOL"
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8218 $as_echo_n "checking
for $ac_word...
" >&6; }
8219 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8220 $as_echo_n "(cached
) " >&6
8222 if test -n "$OTOOL64"; then
8223 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8242 OTOOL64=$ac_cv_prog_OTOOL64
8243 if test -n "$OTOOL64"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8245 $as_echo "$OTOOL64" >&6; }
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8248 $as_echo "no
" >&6; }
8253 if test -z "$ac_cv_prog_OTOOL64"; then
8254 ac_ct_OTOOL64=$OTOOL64
8255 # Extract the first word of "otool64
", so it can be a program name with args.
8256 set dummy otool64; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8258 $as_echo_n "checking
for $ac_word...
" >&6; }
8259 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8260 $as_echo_n "(cached
) " >&6
8262 if test -n "$ac_ct_OTOOL64"; then
8263 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8282 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8283 if test -n "$ac_ct_OTOOL64"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8285 $as_echo "$ac_ct_OTOOL64" >&6; }
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8288 $as_echo "no
" >&6; }
8291 if test "x
$ac_ct_OTOOL64" = x; then
8294 case $cross_compiling:$ac_tool_warned in
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8297 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8298 ac_tool_warned=yes ;;
8300 OTOOL64=$ac_ct_OTOOL64
8303 OTOOL64="$ac_cv_prog_OTOOL64"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8333 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8334 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8335 $as_echo_n "(cached
) " >&6
8337 lt_cv_apple_cc_single_mod=no
8338 if test -z "${LT_MULTI_MODULE}"; then
8339 # By default we will add the -single_module flag. You can override
8340 # by either setting the environment variable LT_MULTI_MODULE
8341 # non-empty at configure time, or by adding -multi_module to the
8343 rm -rf libconftest.dylib*
8344 echo "int foo
(void
){return 1;}" > conftest.c
8345 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8346 -dynamiclib -Wl,-single_module conftest.c
" >&5
8347 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8348 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8350 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8351 lt_cv_apple_cc_single_mod=yes
8353 cat conftest.err >&5
8355 rm -rf libconftest.dylib*
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8360 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8362 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8363 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8364 $as_echo_n "(cached
) " >&6
8366 lt_cv_ld_exported_symbols_list=no
8367 save_LDFLAGS=$LDFLAGS
8368 echo "_main
" > conftest.sym
8369 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8381 if ac_fn_c_try_link "$LINENO"; then :
8382 lt_cv_ld_exported_symbols_list=yes
8384 lt_cv_ld_exported_symbols_list=no
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 LDFLAGS="$save_LDFLAGS"
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8392 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8394 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8395 if test "${lt_cv_ld_force_load+set}" = set; then :
8396 $as_echo_n "(cached
) " >&6
8398 lt_cv_ld_force_load=no
8399 cat > conftest.c << _LT_EOF
8400 int forced_loaded() { return 2;}
8402 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8403 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8404 echo "$AR cru libconftest.a conftest.o
" >&5
8405 $AR cru libconftest.a conftest.o 2>&5
8406 echo "$RANLIB libconftest.a
" >&5
8407 $RANLIB libconftest.a 2>&5
8408 cat > conftest.c << _LT_EOF
8409 int main() { return 0;}
8411 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8412 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8414 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8415 lt_cv_ld_force_load=yes
8417 cat conftest.err >&5
8419 rm -f conftest.err libconftest.a conftest conftest.c
8420 rm -rf conftest.dSYM
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8424 $as_echo "$lt_cv_ld_force_load" >&6; }
8426 rhapsody* | darwin1.[012])
8427 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8429 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8430 darwin*) # darwin 5.x on
8431 # if running on 10.5 or later, the deployment target defaults
8432 # to the OS version, if on x86, and 10.4, the deployment
8433 # target defaults to 10.4. Don't you love it?
8434 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8435 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8436 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8438 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8440 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8444 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8445 _lt_dar_single_mod='$single_module'
8447 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8448 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8450 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8452 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8453 _lt_dsymutil='~$DSYMUTIL $lib || :'
8460 for ac_header in dlfcn.h
8462 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8464 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8478 enable_win32_dll=yes
8481 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8482 if test -n "$ac_tool_prefix"; then
8483 # Extract the first word of "${ac_tool_prefix}as
", so it can be a program name with args.
8484 set dummy ${ac_tool_prefix}as; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8486 $as_echo_n "checking
for $ac_word...
" >&6; }
8487 if test "${ac_cv_prog_AS+set}" = set; then :
8488 $as_echo_n "(cached
) " >&6
8490 if test -n "$AS"; then
8491 ac_cv_prog_AS="$AS" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8500 ac_cv_prog_AS="${ac_tool_prefix}as
"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8511 if test -n "$AS"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
8513 $as_echo "$AS" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8516 $as_echo "no
" >&6; }
8521 if test -z "$ac_cv_prog_AS"; then
8523 # Extract the first word of "as
", so it can be a program name with args.
8524 set dummy as; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8526 $as_echo_n "checking
for $ac_word...
" >&6; }
8527 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
8528 $as_echo_n "(cached
) " >&6
8530 if test -n "$ac_ct_AS"; then
8531 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 test -z "$as_dir" && as_dir=.
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8540 ac_cv_prog_ac_ct_AS="as
"
8541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8550 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8551 if test -n "$ac_ct_AS"; then
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AS" >&5
8553 $as_echo "$ac_ct_AS" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8556 $as_echo "no
" >&6; }
8559 if test "x
$ac_ct_AS" = x; then
8562 case $cross_compiling:$ac_tool_warned in
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8565 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8566 ac_tool_warned=yes ;;
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
8576 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8578 $as_echo_n "checking
for $ac_word...
" >&6; }
8579 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8580 $as_echo_n "(cached
) " >&6
8582 if test -n "$DLLTOOL"; then
8583 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8602 DLLTOOL=$ac_cv_prog_DLLTOOL
8603 if test -n "$DLLTOOL"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
8605 $as_echo "$DLLTOOL" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8608 $as_echo "no
" >&6; }
8613 if test -z "$ac_cv_prog_DLLTOOL"; then
8614 ac_ct_DLLTOOL=$DLLTOOL
8615 # Extract the first word of "dlltool
", so it can be a program name with args.
8616 set dummy dlltool; ac_word=$2
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8618 $as_echo_n "checking
for $ac_word...
" >&6; }
8619 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8620 $as_echo_n "(cached
) " >&6
8622 if test -n "$ac_ct_DLLTOOL"; then
8623 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 test -z "$as_dir" && as_dir=.
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8632 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
8633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8642 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8643 if test -n "$ac_ct_DLLTOOL"; then
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
8645 $as_echo "$ac_ct_DLLTOOL" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8648 $as_echo "no
" >&6; }
8651 if test "x
$ac_ct_DLLTOOL" = x; then
8654 case $cross_compiling:$ac_tool_warned in
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8657 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8658 ac_tool_warned=yes ;;
8660 DLLTOOL=$ac_ct_DLLTOOL
8663 DLLTOOL="$ac_cv_prog_DLLTOOL"
8666 if test -n "$ac_tool_prefix"; then
8667 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
8668 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8670 $as_echo_n "checking
for $ac_word...
" >&6; }
8671 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8672 $as_echo_n "(cached
) " >&6
8674 if test -n "$OBJDUMP"; then
8675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8684 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8694 OBJDUMP=$ac_cv_prog_OBJDUMP
8695 if test -n "$OBJDUMP"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
8697 $as_echo "$OBJDUMP" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8700 $as_echo "no
" >&6; }
8705 if test -z "$ac_cv_prog_OBJDUMP"; then
8706 ac_ct_OBJDUMP=$OBJDUMP
8707 # Extract the first word of "objdump
", so it can be a program name with args.
8708 set dummy objdump; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8710 $as_echo_n "checking
for $ac_word...
" >&6; }
8711 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8712 $as_echo_n "(cached
) " >&6
8714 if test -n "$ac_ct_OBJDUMP"; then
8715 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
8725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8734 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8735 if test -n "$ac_ct_OBJDUMP"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
8737 $as_echo "$ac_ct_OBJDUMP" >&6; }
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8740 $as_echo "no
" >&6; }
8743 if test "x
$ac_ct_OBJDUMP" = x; then
8746 case $cross_compiling:$ac_tool_warned in
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8749 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8750 ac_tool_warned=yes ;;
8752 OBJDUMP=$ac_ct_OBJDUMP
8755 OBJDUMP="$ac_cv_prog_OBJDUMP"
8761 test -z "$AS" && AS=as
8767 test -z "$DLLTOOL" && DLLTOOL=dlltool
8773 test -z "$OBJDUMP" && OBJDUMP=objdump
8785 # Check whether --enable-shared was given.
8786 if test "${enable_shared+set}" = set; then :
8787 enableval=$enable_shared; p=${PACKAGE-default}
8789 yes) enable_shared=yes ;;
8790 no) enable_shared=no ;;
8793 # Look at the argument we got. We use all the common list separators.
8794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8795 for pkg in $enableval; do
8797 if test "X
$pkg" = "X
$p"; then
8816 # Check whether --enable-static was given.
8817 if test "${enable_static+set}" = set; then :
8818 enableval=$enable_static; p=${PACKAGE-default}
8820 yes) enable_static=yes ;;
8821 no) enable_static=no ;;
8824 # Look at the argument we got. We use all the common list separators.
8825 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8826 for pkg in $enableval; do
8828 if test "X
$pkg" = "X
$p"; then
8848 # Check whether --with-pic was given.
8849 if test "${with_pic+set}" = set; then :
8850 withval=$with_pic; pic_mode="$withval"
8856 test -z "$pic_mode" && pic_mode=default
8864 # Check whether --enable-fast-install was given.
8865 if test "${enable_fast_install+set}" = set; then :
8866 enableval=$enable_fast_install; p=${PACKAGE-default}
8868 yes) enable_fast_install=yes ;;
8869 no) enable_fast_install=no ;;
8871 enable_fast_install=no
8872 # Look at the argument we got. We use all the common list separators.
8873 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8874 for pkg in $enableval; do
8876 if test "X
$pkg" = "X
$p"; then
8877 enable_fast_install=yes
8884 enable_fast_install=yes
8897 # This can be used to rebuild libtool when needed
8898 LIBTOOL_DEPS="$ltmain"
8900 # Always use our own libtool.
8901 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8928 test -z "$LN_S" && LN_S="ln -s"
8943 if test -n "${ZSH_VERSION+set}" ; then
8944 setopt NO_GLOB_SUBST
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8948 $as_echo_n "checking
for objdir...
" >&6; }
8949 if test "${lt_cv_objdir+set}" = set; then :
8950 $as_echo_n "(cached
) " >&6
8952 rm -f .libs 2>/dev/null
8953 mkdir .libs 2>/dev/null
8954 if test -d .libs; then
8957 # MS-DOS does not allow filenames that begin with a dot.
8960 rmdir .libs 2>/dev/null
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8963 $as_echo "$lt_cv_objdir" >&6; }
8964 objdir=$lt_cv_objdir
8970 cat >>confdefs.h <<_ACEOF
8971 #define LT_OBJDIR "$lt_cv_objdir/"
8979 # AIX sometimes has problems with the GCC collect2 program. For some
8980 # reason, if we set the COLLECT_NAMES environment variable, the problems
8981 # vanish in a puff of smoke.
8982 if test "X
${COLLECT_NAMES+set}" != Xset; then
8984 export COLLECT_NAMES
8991 can_build_shared=yes
8993 # All known linkers require a `.a' archive for static linking (except MSVC,
8994 # which needs '.lib').
8997 with_gnu_ld="$lt_cv_prog_gnu_ld"
9000 old_CFLAGS="$CFLAGS"
9002 # Set sane defaults for various variables
9003 test -z "$CC" && CC=cc
9004 test -z "$LTCC" && LTCC=$CC
9005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9006 test -z "$LD" && LD=ld
9007 test -z "$ac_objext" && ac_objext=o
9009 for cc_temp in $compiler""; do
9011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9017 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
9020 # Only perform the check for file, if the check method requires it
9021 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9022 case $deplibs_check_method in
9024 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
9026 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
9027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9028 $as_echo_n "(cached
) " >&6
9032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9035 lt_save_MAGIC_CMD="$MAGIC_CMD"
9036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9037 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9038 for ac_dir in $ac_dummy; do
9040 test -z "$ac_dir" && ac_dir=.
9041 if test -f $ac_dir/${ac_tool_prefix}file; then
9042 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9043 if test -n "$file_magic_test_file"; then
9044 case $deplibs_check_method in
9046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9049 $EGREP "$file_magic_regex" > /dev/null; then
9054 *** Warning: the command libtool uses to detect shared libraries,
9055 *** $file_magic_cmd, produces output that libtool cannot recognize.
9056 *** The result is that libtool may fail to recognize shared libraries
9057 *** as such. This will affect the creation of libtool libraries that
9058 *** depend on shared libraries, but programs linked with such libtool
9059 *** libraries will work regardless of this problem. Nevertheless, you
9060 *** may want to report the problem to your system manager and/or to
9061 *** bug-libtool@gnu.org
9071 MAGIC_CMD="$lt_save_MAGIC_CMD"
9076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9077 if test -n "$MAGIC_CMD"; then
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9079 $as_echo "$MAGIC_CMD" >&6; }
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9082 $as_echo "no
" >&6; }
9089 if test -z "$lt_cv_path_MAGIC_CMD"; then
9090 if test -n "$ac_tool_prefix"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
9092 $as_echo_n "checking
for file...
" >&6; }
9093 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9094 $as_echo_n "(cached
) " >&6
9098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9101 lt_save_MAGIC_CMD="$MAGIC_CMD"
9102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9103 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9104 for ac_dir in $ac_dummy; do
9106 test -z "$ac_dir" && ac_dir=.
9107 if test -f $ac_dir/file; then
9108 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9109 if test -n "$file_magic_test_file"; then
9110 case $deplibs_check_method in
9112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9115 $EGREP "$file_magic_regex" > /dev/null; then
9120 *** Warning: the command libtool uses to detect shared libraries,
9121 *** $file_magic_cmd, produces output that libtool cannot recognize.
9122 *** The result is that libtool may fail to recognize shared libraries
9123 *** as such. This will affect the creation of libtool libraries that
9124 *** depend on shared libraries, but programs linked with such libtool
9125 *** libraries will work regardless of this problem. Nevertheless, you
9126 *** may want to report the problem to your system manager and/or to
9127 *** bug-libtool@gnu.org
9137 MAGIC_CMD="$lt_save_MAGIC_CMD"
9142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9143 if test -n "$MAGIC_CMD"; then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9145 $as_echo "$MAGIC_CMD" >&6; }
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9148 $as_echo "no
" >&6; }
9161 # Use C for the default configuration in the libtool script
9165 ac_cpp='$CPP $CPPFLAGS'
9166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9171 # Source file extension for C test sources.
9174 # Object file extension for compiled C test sources.
9178 # Code to be used in simple compile tests
9179 lt_simple_compile_test_code="int some_variable
= 0;"
9181 # Code to be used in simple link tests
9182 lt_simple_link_test_code='int main(){return(0);}'
9190 # If no C compiler was specified, use CC.
9193 # If no C compiler flags were specified, use CFLAGS.
9194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9196 # Allow CC to be a program name with arguments.
9199 # Save the default compiler, since it gets overwritten when the other
9200 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9201 compiler_DEFAULT=$CC
9203 # save warnings/boilerplate of simple test code
9204 ac_outfile=conftest.$ac_objext
9205 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9207 _lt_compiler_boilerplate=`cat conftest.err`
9210 ac_outfile=conftest.$ac_objext
9211 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9213 _lt_linker_boilerplate=`cat conftest.err`
9218 ## There is no encapsulation within the following macros, do not change
9219 ## the running order or otherwise move them around unless you know exactly
9220 ## what you are doing...
9221 if test -n "$compiler"; then
9223 lt_prog_compiler_no_builtin_flag=
9225 if test "$GCC" = yes; then
9226 case $cc_basename in
9228 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9230 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9234 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9235 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9236 $as_echo_n "(cached
) " >&6
9238 lt_cv_prog_compiler_rtti_exceptions=no
9239 ac_outfile=conftest.$ac_objext
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241 lt_compiler_flag="-fno-rtti -fno-exceptions"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.
", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 # The option is referenced via a variable to avoid confusing sed.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>conftest.err)
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9256 if (exit $ac_status) && test -s "$ac_outfile"; then
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings other than the usual output.
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_rtti_exceptions=yes
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9269 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9271 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9272 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9284 lt_prog_compiler_wl=
9285 lt_prog_compiler_pic=
9286 lt_prog_compiler_static=
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9289 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9291 if test "$GCC" = yes; then
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_static='-static'
9297 # All AIX code is PIC.
9298 if test "$host_cpu" = ia64; then
9299 # AIX 5 now supports IA64 processor
9300 lt_prog_compiler_static='-Bstatic'
9307 # see comment about AmigaOS4 .so support
9308 lt_prog_compiler_pic='-fPIC'
9311 # FIXME: we need at least 68020 code to build shared libraries, but
9312 # adding the `-m68020' flag to GCC prevents building anything better,
9314 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9320 # PIC is the default for these OSes.
9323 mingw* | cygwin* | pw32* | os2* | cegcc*)
9324 # This hack is so that the source file can tell whether it is being
9325 # built for inclusion in a dll (and should export symbols for example).
9326 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9327 # (--disable-auto-import) libraries
9328 lt_prog_compiler_pic='-DDLL_EXPORT'
9331 darwin* | rhapsody*)
9332 # PIC is the default on this platform
9333 # Common symbols not allowed in MH_DYLIB files
9334 lt_prog_compiler_pic='-fno-common'
9338 # PIC is the default for Haiku.
9339 # The "-static" flag exists, but is broken.
9340 lt_prog_compiler_static=
9344 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9345 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9346 # sets the default TLS model and affects inlining.
9352 lt_prog_compiler_pic='-fPIC'
9358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9359 # Instead, we relocate shared libraries at runtime.
9363 # Just because we use GCC doesn't mean we suddenly get shared libraries
9364 # on systems that don't support them.
9365 lt_prog_compiler_can_build_shared=no
9370 # QNX uses GNU C++, but need to define -shared option too, otherwise
9372 lt_prog_compiler_pic='-fPIC -shared'
9376 if test -d /usr/nec; then
9377 lt_prog_compiler_pic=-Kconform_pic
9382 lt_prog_compiler_pic='-fPIC'
9386 case $cc_basename in
9387 nvcc*) # Cuda Compiler Driver 2.2
9388 lt_prog_compiler_wl='-Xlinker '
9389 lt_prog_compiler_pic='-Xcompiler -fPIC'
9393 # PORTME Check for flag to pass linker flags through the system compiler.
9396 lt_prog_compiler_wl='-Wl,'
9397 if test "$host_cpu" = ia64; then
9398 # AIX 5 now supports IA64 processor
9399 lt_prog_compiler_static='-Bstatic'
9401 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9405 mingw* | cygwin* | pw32* | os2* | cegcc*)
9406 # This hack is so that the source file can tell whether it is being
9407 # built for inclusion in a dll (and should export symbols for example).
9408 lt_prog_compiler_pic='-DDLL_EXPORT'
9411 hpux9* | hpux10* | hpux11*)
9412 lt_prog_compiler_wl='-Wl,'
9413 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9420 lt_prog_compiler_pic='+Z'
9423 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9424 lt_prog_compiler_static='${wl}-a ${wl}archive'
9427 irix5* | irix6* | nonstopux*)
9428 lt_prog_compiler_wl='-Wl,'
9429 # PIC (with -KPIC) is the default.
9430 lt_prog_compiler_static='-non_shared'
9433 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9434 case $cc_basename in
9435 # old Intel for x86_64 which still supported -KPIC.
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-static'
9441 # icc used to be incompatible with GCC.
9442 # ICC 10 doesn't accept -KPIC any more.
9444 lt_prog_compiler_wl='-Wl,'
9445 lt_prog_compiler_pic='-fPIC'
9446 lt_prog_compiler_static='-static'
9448 # Lahey Fortran 8.1.
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='--shared'
9452 lt_prog_compiler_static='--static'
9454 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9455 # Portland Group compilers (*not* the Pentium gcc compiler,
9456 # which looks to be a dead project)
9457 lt_prog_compiler_wl='-Wl,'
9458 lt_prog_compiler_pic='-fpic'
9459 lt_prog_compiler_static='-Bstatic'
9462 lt_prog_compiler_wl='-Wl,'
9463 # All Alpha code is PIC.
9464 lt_prog_compiler_static='-non_shared'
9466 xl* | bgxl* | bgf* | mpixl*)
9467 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9468 lt_prog_compiler_wl='-Wl,'
9469 lt_prog_compiler_pic='-qpic'
9470 lt_prog_compiler_static='-qstaticlink'
9473 case `$CC -V 2>&1 | sed 5q` in
9474 *Sun\ F* | *Sun*Fortran*)
9475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9478 lt_prog_compiler_wl=''
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-Bstatic'
9484 lt_prog_compiler_wl='-Wl,'
9492 lt_prog_compiler_pic='-KPIC'
9493 lt_prog_compiler_static='-Bstatic'
9497 # QNX uses GNU C++, but need to define -shared option too, otherwise
9499 lt_prog_compiler_pic='-fPIC -shared'
9502 osf3* | osf4* | osf5*)
9503 lt_prog_compiler_wl='-Wl,'
9504 # All OSF/1 code is PIC.
9505 lt_prog_compiler_static='-non_shared'
9509 lt_prog_compiler_static='-non_shared'
9513 lt_prog_compiler_pic='-KPIC'
9514 lt_prog_compiler_static='-Bstatic'
9515 case $cc_basename in
9516 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9517 lt_prog_compiler_wl='-Qoption ld ';;
9519 lt_prog_compiler_wl='-Wl,';;
9524 lt_prog_compiler_wl='-Qoption ld '
9525 lt_prog_compiler_pic='-PIC'
9526 lt_prog_compiler_static='-Bstatic'
9529 sysv4 | sysv4.2uw2* | sysv4.3*)
9530 lt_prog_compiler_wl='-Wl,'
9531 lt_prog_compiler_pic='-KPIC'
9532 lt_prog_compiler_static='-Bstatic'
9536 if test -d /usr/nec ;then
9537 lt_prog_compiler_pic='-Kconform_pic'
9538 lt_prog_compiler_static='-Bstatic'
9542 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9543 lt_prog_compiler_wl='-Wl,'
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9549 lt_prog_compiler_wl='-Wl,'
9550 lt_prog_compiler_can_build_shared=no
9554 lt_prog_compiler_pic='-pic'
9555 lt_prog_compiler_static='-Bstatic'
9559 lt_prog_compiler_can_build_shared=no
9565 # For platforms which do not support PIC, -DPIC is meaningless:
9567 lt_prog_compiler_pic=
9570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9574 $as_echo "$lt_prog_compiler_pic" >&6; }
9582 # Check to make sure the PIC flag actually works.
9584 if test -n "$lt_prog_compiler_pic"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9586 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9587 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9588 $as_echo_n "(cached
) " >&6
9590 lt_cv_prog_compiler_pic_works=no
9591 ac_outfile=conftest.$ac_objext
9592 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9594 # Insert the option either (1) after the last *FLAGS variable, or
9595 # (2) before a word containing "conftest.
", or (3) at the end.
9596 # Note that $ac_compile itself does not contain backslashes and begins
9597 # with a dollar sign (not a hyphen), so the echo should work correctly.
9598 # The option is referenced via a variable to avoid confusing sed.
9599 lt_compile=`echo "$ac_compile" | $SED \
9600 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602 -e 's:$: $lt_compiler_flag:'`
9603 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9604 (eval "$lt_compile" 2>conftest.err)
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9608 if (exit $ac_status) && test -s "$ac_outfile"; then
9609 # The compiler can only warn and ignore the option if not recognized
9610 # So say no if there are warnings other than the usual output.
9611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9613 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9614 lt_cv_prog_compiler_pic_works=yes
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9621 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9623 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9624 case $lt_prog_compiler_pic in
9626 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9629 lt_prog_compiler_pic=
9630 lt_prog_compiler_can_build_shared=no
9641 # Check to make sure the static flag actually works.
9643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9645 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9646 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9647 $as_echo_n "(cached
) " >&6
9649 lt_cv_prog_compiler_static_works=no
9650 save_LDFLAGS="$LDFLAGS"
9651 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9654 # The linker can only warn and ignore the option if not recognized
9655 # So say no if there are warnings
9656 if test -s conftest.err; then
9657 # Append any errors to the config.log.
9658 cat conftest.err 1>&5
9659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9661 if diff conftest.exp conftest.er2 >/dev/null; then
9662 lt_cv_prog_compiler_static_works=yes
9665 lt_cv_prog_compiler_static_works=yes
9669 LDFLAGS="$save_LDFLAGS"
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9673 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9675 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9678 lt_prog_compiler_static=
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9688 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9689 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9690 $as_echo_n "(cached
) " >&6
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.
", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9735 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9743 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9744 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9745 $as_echo_n "(cached
) " >&6
9747 lt_cv_prog_compiler_c_o=no
9748 $RM -r conftest 2>/dev/null
9752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9754 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9755 # Insert the option either (1) after the last *FLAGS variable, or
9756 # (2) before a word containing "conftest.
", or (3) at the end.
9757 # Note that $ac_compile itself does not contain backslashes and begins
9758 # with a dollar sign (not a hyphen), so the echo should work correctly.
9759 lt_compile=`echo "$ac_compile" | $SED \
9760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9762 -e 's:$: $lt_compiler_flag:'`
9763 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9764 (eval "$lt_compile" 2>out/conftest.err)
9766 cat out/conftest.err >&5
9767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9770 # The compiler can only warn and ignore the option if not recognized
9771 # So say no if there are warnings
9772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9775 lt_cv_prog_compiler_c_o=yes
9780 # SGI C++ compiler will create directory out/ii_files/ for
9781 # template instantiation
9782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9783 $RM out/* && rmdir out
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9795 hard_links="nottested
"
9796 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9797 # do not overwrite the value of need_locks provided by the user
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9799 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9802 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9804 ln conftest.a conftest.b 2>&5 || hard_links=no
9805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9807 $as_echo "$hard_links" >&6; }
9808 if test "$hard_links" = no; then
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9810 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9823 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9826 allow_undefined_flag=
9827 always_export_symbols=no
9829 archive_expsym_cmds=
9830 compiler_needs_object=no
9831 enable_shared_with_static_runtimes=no
9832 export_dynamic_flag_spec=
9833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9834 hardcode_automatic=no
9836 hardcode_direct_absolute=no
9837 hardcode_libdir_flag_spec=
9838 hardcode_libdir_flag_spec_ld=
9839 hardcode_libdir_separator=
9841 hardcode_shlibpath_var=unsupported
9843 link_all_deplibs=unknown
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9855 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9856 # as well as any symbol that contains `d'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++.
9871 if test "$GCC" != yes; then
9876 # we just hope/assume this is gcc and not c89 (= MSVC++)
9886 # On some targets, GNU ld is compatible enough with the native linker
9887 # that we're better off using the native interface for both.
9888 lt_use_gnu_ld_interface=no
9889 if test "$with_gnu_ld" = yes; then
9892 # The AIX port of GNU ld has always aspired to compatibility
9893 # with the native linker. However, as the warning in the GNU ld
9894 # block says, versions before 2.19.5* couldn't really create working
9895 # shared libraries, regardless of the interface used.
9896 case `$LD -v 2>&1` in
9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9901 lt_use_gnu_ld_interface=yes
9906 lt_use_gnu_ld_interface=yes
9911 if test "$lt_use_gnu_ld_interface" = yes; then
9912 # If archive_cmds runs LD, not CC, wlarc should be empty
9915 # Set some defaults for GNU ld with shared library support. These
9916 # are reset later if shared libraries are not supported. Putting them
9917 # here allows them to be overridden if necessary.
9918 runpath_var=LD_RUN_PATH
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 export_dynamic_flag_spec='${wl}--export-dynamic'
9921 # ancient GNU ld didn't support --whole-archive et. al.
9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9923 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9925 whole_archive_flag_spec=
9927 supports_anon_versioning=no
9928 case `$LD -v 2>&1` in
9929 *GNU\ gold*) supports_anon_versioning=yes ;;
9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9933 *\ 2.11.*) ;; # other 2.11 versions
9934 *) supports_anon_versioning=yes ;;
9937 # See if GNU ld supports shared libraries.
9940 # On AIX/PPC, the GNU linker is very broken
9941 if test "$host_cpu" != ia64; then
9945 *** Warning: the GNU linker, at least up to release 2.19, is reported
9946 *** to be unable to reliably create shared libraries on AIX.
9947 *** Therefore, libtool is disabling shared libraries support. If you
9948 *** really care for shared libraries, you may want to install binutils
9949 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9950 *** You will then need to restart the configuration process.
9959 # see comment about AmigaOS4 .so support
9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9961 archive_expsym_cmds=''
9964 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)'
9965 hardcode_libdir_flag_spec
='-L$libdir'
9966 hardcode_minus_L
=yes
9972 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9973 allow_undefined_flag
=unsupported
9974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9975 # support --undefined. This deserves some investigation. FIXME
9976 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9982 cygwin
* | mingw
* | pw32
* | cegcc
*)
9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9984 # as there is no search path for DLLs.
9985 hardcode_libdir_flag_spec
='-L$libdir'
9986 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9987 allow_undefined_flag
=unsupported
9988 always_export_symbols
=no
9989 enable_shared_with_static_runtimes
=yes
9990 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9992 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9993 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9994 # If the export-symbols file already is a .def file (1st line
9995 # is EXPORTS), use it as is; otherwise, prepend...
9996 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9997 cp $export_symbols $output_objdir/$soname.def;
9999 echo EXPORTS > $output_objdir/$soname.def;
10000 cat $export_symbols >> $output_objdir/$soname.def;
10002 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10009 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 link_all_deplibs
=yes
10015 hardcode_shlibpath_var
=no
10016 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10017 export_dynamic_flag_spec
='${wl}-E'
10018 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10019 # Instead, shared libraries are loaded at an image base (0x10000000 by
10020 # default) and relocated if they conflict, which is a slow very memory
10021 # consuming and fragmenting process. To avoid this, we pick a random,
10022 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10023 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10024 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10025 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'
10028 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10030 if test "$host_os" = linux-dietlibc
; then
10031 case $cc_basename in
10032 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10035 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
10036 && test "$tmp_diet" = no
10039 tmp_sharedflag
='-shared'
10040 case $cc_basename,$host_cpu in
10041 pgcc
*) # Portland Group C compiler
10042 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'
10043 tmp_addflag
=' $pic_flag'
10045 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10046 # Portland Group f77 and f90 compilers
10047 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'
10048 tmp_addflag
=' $pic_flag -Mnomain' ;;
10049 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10050 tmp_addflag
=' -i_dynamic' ;;
10051 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10052 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10053 ifc
* | ifort
*) # Intel Fortran compiler
10054 tmp_addflag
=' -nofor_main' ;;
10055 lf95
*) # Lahey Fortran 8.1
10056 whole_archive_flag_spec
=
10057 tmp_sharedflag
='--shared' ;;
10058 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10059 tmp_sharedflag
='-qmkshrobj'
10061 nvcc
*) # Cuda Compiler Driver 2.2
10062 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'
10063 compiler_needs_object
=yes
10066 case `$CC -V 2>&1 | sed 5q` in
10067 *Sun\ C
*) # Sun C 5.9
10068 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'
10069 compiler_needs_object
=yes
10070 tmp_sharedflag
='-G' ;;
10071 *Sun\ F
*) # Sun Fortran 8.3
10072 tmp_sharedflag
='-G' ;;
10074 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076 if test "x$supports_anon_versioning" = xyes
; then
10077 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10078 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10079 echo "local: *; };" >> $output_objdir/$libname.ver~
10080 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10083 case $cc_basename in
10084 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10085 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10086 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10087 hardcode_libdir_flag_spec
=
10088 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
10089 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10090 if test "x$supports_anon_versioning" = xyes
; then
10091 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10093 echo "local: *; };" >> $output_objdir/$libname.ver~
10094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10104 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10105 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10108 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10119 *** create shared libraries on Solaris systems. Therefore, libtool
10120 *** is disabling shared libraries support. We urge you to upgrade GNU
10121 *** binutils to release 2.9.1 or newer. Another option is to modify
10122 *** your PATH or compiler configuration so that the native linker is
10123 *** used, and then restart.
10126 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10127 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10128 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10134 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10135 case `$LD -v 2>&1` in
10136 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10140 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10141 *** reliably create shared libraries on SCO systems. Therefore, libtool
10142 *** is disabling shared libraries support. We urge you to upgrade GNU
10143 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10144 *** your PATH or compiler configuration so that the native linker is
10145 *** used, and then restart.
10150 # For security reasons, it is highly recommended that you always
10151 # use absolute paths for naming shared libraries, and exclude the
10152 # DT_RUNPATH tag from executables and libraries. But doing so
10153 # requires that you compile everything twice, which is a pain.
10154 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10155 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10156 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10166 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_direct
=yes
10169 hardcode_shlibpath_var
=no
10173 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10174 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10182 if test "$ld_shlibs" = no
; then
10184 hardcode_libdir_flag_spec
=
10185 export_dynamic_flag_spec
=
10186 whole_archive_flag_spec
=
10189 # PORTME fill in a description of your system's linker (not GNU ld)
10192 allow_undefined_flag
=unsupported
10193 always_export_symbols
=yes
10194 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'
10195 # Note: this linker hardcodes the directories in LIBPATH if there
10196 # are no directories specified by -L.
10197 hardcode_minus_L
=yes
10198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10199 # Neither direct hardcoding nor static linking is supported with a
10201 hardcode_direct
=unsupported
10206 if test "$host_cpu" = ia64
; then
10207 # On IA64, the linker does run time linking by default, so we don't
10208 # have to do anything special.
10209 aix_use_runtimelinking
=no
10210 exp_sym_flag
='-Bexport'
10213 # If we're using GNU nm, then we don't want the "-C" option.
10214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10215 # Also, AIX nm treats weak defined symbols like other global
10216 # defined symbols, whereas GNU nm marks them as "W".
10217 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10218 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'
10220 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'
10222 aix_use_runtimelinking
=no
10224 # Test if we are trying to use run time linking or normal
10225 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10226 # need to do runtime linking.
10227 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10228 for ld_flag
in $LDFLAGS; do
10229 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10230 aix_use_runtimelinking
=yes
10237 exp_sym_flag
='-bexport'
10238 no_entry_flag
='-bnoentry'
10241 # When large executables or shared objects are built, AIX ld can
10242 # have problems creating the table of contents. If linking a library
10243 # or program results in "error TOC overflow" add -mminimal-toc to
10244 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10245 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10248 hardcode_direct
=yes
10249 hardcode_direct_absolute
=yes
10250 hardcode_libdir_separator
=':'
10251 link_all_deplibs
=yes
10252 file_list_spec
='${wl}-f,'
10254 if test "$GCC" = yes; then
10255 case $host_os in aix4.
[012]|aix4.
[012].
*)
10256 # We only want to do this on AIX 4.2 and lower, the check
10257 # below for broken collect2 doesn't work under 4.3+
10258 collect2name
=`${CC} -print-prog-name=collect2`
10259 if test -f "$collect2name" &&
10260 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10262 # We have reworked collect2
10265 # We have old collect2
10266 hardcode_direct
=unsupported
10267 # It fails to find uninstalled libraries when the uninstalled
10268 # path is not listed in the libpath. Setting hardcode_minus_L
10269 # to unsupported forces relinking
10270 hardcode_minus_L
=yes
10271 hardcode_libdir_flag_spec
='-L$libdir'
10272 hardcode_libdir_separator
=
10276 shared_flag
='-shared'
10277 if test "$aix_use_runtimelinking" = yes; then
10278 shared_flag
="$shared_flag "'${wl}-G'
10282 if test "$host_cpu" = ia64
; then
10283 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10284 # chokes on -Wl,-G. The following line is correct:
10287 if test "$aix_use_runtimelinking" = yes; then
10288 shared_flag
='${wl}-G'
10290 shared_flag
='${wl}-bM:SRE'
10295 export_dynamic_flag_spec
='${wl}-bexpall'
10296 # It seems that -bexpall does not export symbols beginning with
10297 # underscore (_), so it is better to generate a list of symbols to export.
10298 always_export_symbols
=yes
10299 if test "$aix_use_runtimelinking" = yes; then
10300 # Warning - without using the other runtime loading flags (-brtl),
10301 # -berok will link without error, but may produce a broken library.
10302 allow_undefined_flag
='-berok'
10303 # Determine the default libpath from the value encoded in an
10304 # empty executable.
10305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10316 if ac_fn_c_try_link
"$LINENO"; then :
10318 lt_aix_libpath_sed
='
10319 /Import File Strings/,/^$/ {
10325 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10326 # Check for a 64-bit object if we didn't find anything.
10327 if test -z "$aix_libpath"; then
10328 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331 rm -f core conftest.err conftest.
$ac_objext \
10332 conftest
$ac_exeext conftest.
$ac_ext
10333 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10335 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10336 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"
10338 if test "$host_cpu" = ia64
; then
10339 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10340 allow_undefined_flag
="-z nodefs"
10341 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"
10343 # Determine the default libpath from the value encoded in an
10344 # empty executable.
10345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10356 if ac_fn_c_try_link
"$LINENO"; then :
10358 lt_aix_libpath_sed
='
10359 /Import File Strings/,/^$/ {
10365 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10366 # Check for a 64-bit object if we didn't find anything.
10367 if test -z "$aix_libpath"; then
10368 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10371 rm -f core conftest.err conftest.
$ac_objext \
10372 conftest
$ac_exeext conftest.
$ac_ext
10373 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10375 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10376 # Warning - without using the other run time loading flags,
10377 # -berok will link without error, but may produce a broken library.
10378 no_undefined_flag
=' ${wl}-bernotok'
10379 allow_undefined_flag
=' ${wl}-berok'
10380 if test "$with_gnu_ld" = yes; then
10381 # We only use this code for GNU lds that support --whole-archive.
10382 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10384 # Exported symbols can be pulled into shared objects from archives
10385 whole_archive_flag_spec
='$convenience'
10387 archive_cmds_need_lc
=yes
10388 # This is similar to how AIX traditionally builds its shared libraries.
10389 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'
10397 # see comment about AmigaOS4 .so support
10398 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10399 archive_expsym_cmds
=''
10402 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)'
10403 hardcode_libdir_flag_spec
='-L$libdir'
10404 hardcode_minus_L
=yes
10410 export_dynamic_flag_spec
=-rdynamic
10413 cygwin
* | mingw
* | pw32
* | cegcc
*)
10414 # When not using gcc, we currently assume that we are using
10415 # Microsoft Visual C++.
10416 # hardcode_libdir_flag_spec is actually meaningless, as there is
10417 # no search path for DLLs.
10418 hardcode_libdir_flag_spec
=' '
10419 allow_undefined_flag
=unsupported
10420 # Tell ltmain to make .lib files, not .a files.
10422 # Tell ltmain to make .dll files, not .so files.
10424 # FIXME: Setting linknames here is a bad hack.
10425 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10426 # The linker will automatically build a .lib file if we build a DLL.
10427 old_archive_from_new_cmds
='true'
10428 # FIXME: Should let the user specify the lib program.
10429 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10430 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10431 enable_shared_with_static_runtimes
=yes
10434 darwin
* | rhapsody
*)
10437 archive_cmds_need_lc
=no
10439 hardcode_automatic
=yes
10440 hardcode_shlibpath_var
=unsupported
10441 if test "$lt_cv_ld_force_load" = "yes"; then
10442 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\"`'
10444 whole_archive_flag_spec
=''
10446 link_all_deplibs
=yes
10447 allow_undefined_flag
="$_lt_dar_allow_undefined"
10448 case $cc_basename in
10449 ifort
*) _lt_dar_can_shared
=yes ;;
10450 *) _lt_dar_can_shared
=$GCC ;;
10452 if test "$_lt_dar_can_shared" = "yes"; then
10453 output_verbose_link_cmd
=func_echo_all
10454 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10455 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10456 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}"
10457 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}"
10466 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec
='-L$libdir'
10468 hardcode_shlibpath_var
=no
10475 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10476 # support. Future versions do this automatically, but an explicit c++rt0.o
10477 # does not break anything, and helps significantly (at the cost of a little
10480 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10481 hardcode_libdir_flag_spec
='-R$libdir'
10482 hardcode_direct
=yes
10483 hardcode_shlibpath_var
=no
10486 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10488 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10489 hardcode_direct
=yes
10490 hardcode_minus_L
=yes
10491 hardcode_shlibpath_var
=no
10494 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10495 freebsd
* | dragonfly
*)
10496 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10497 hardcode_libdir_flag_spec
='-R$libdir'
10498 hardcode_direct
=yes
10499 hardcode_shlibpath_var
=no
10503 if test "$GCC" = yes; then
10504 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10506 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'
10508 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10509 hardcode_libdir_separator
=:
10510 hardcode_direct
=yes
10512 # hardcode_minus_L: Not really in the search PATH,
10513 # but as the default location of the library.
10514 hardcode_minus_L
=yes
10515 export_dynamic_flag_spec
='${wl}-E'
10519 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10520 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10522 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10524 if test "$with_gnu_ld" = no
; then
10525 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10526 hardcode_libdir_flag_spec_ld
='+b $libdir'
10527 hardcode_libdir_separator
=:
10528 hardcode_direct
=yes
10529 hardcode_direct_absolute
=yes
10530 export_dynamic_flag_spec
='${wl}-E'
10531 # hardcode_minus_L: Not really in the search PATH,
10532 # but as the default location of the library.
10533 hardcode_minus_L
=yes
10538 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10541 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10544 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10547 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10553 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10560 # Older versions of the 11.00 compiler do not understand -b yet
10561 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10563 $as_echo_n "checking if $CC understands -b... " >&6; }
10564 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10567 lt_cv_prog_compiler__b
=no
10568 save_LDFLAGS
="$LDFLAGS"
10569 LDFLAGS
="$LDFLAGS -b"
10570 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10571 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10572 # The linker can only warn and ignore the option if not recognized
10573 # So say no if there are warnings
10574 if test -s conftest.err
; then
10575 # Append any errors to the config.log.
10576 cat conftest.err
1>&5
10577 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10578 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10579 if diff conftest.exp conftest.er2
>/dev
/null
; then
10580 lt_cv_prog_compiler__b
=yes
10583 lt_cv_prog_compiler__b
=yes
10587 LDFLAGS
="$save_LDFLAGS"
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10591 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10593 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10594 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10596 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10602 if test "$with_gnu_ld" = no
; then
10603 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10604 hardcode_libdir_separator
=:
10609 hardcode_shlibpath_var
=no
10612 hardcode_direct
=yes
10613 hardcode_direct_absolute
=yes
10614 export_dynamic_flag_spec
='${wl}-E'
10616 # hardcode_minus_L: Not really in the search PATH,
10617 # but as the default location of the library.
10618 hardcode_minus_L
=yes
10624 irix5
* | irix6
* | nonstopux
*)
10625 if test "$GCC" = yes; then
10626 archive_cmds
='$CC -shared $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'
10627 # Try to use the -exported_symbol ld option, if it does not
10628 # work, assume that -exports_file does not work either and
10629 # implicitly export all symbols.
10630 save_LDFLAGS
="$LDFLAGS"
10631 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10636 if ac_fn_c_try_link
"$LINENO"; then :
10637 archive_expsym_cmds
='$CC -shared $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'
10640 rm -f core conftest.err conftest.
$ac_objext \
10641 conftest
$ac_exeext conftest.
$ac_ext
10642 LDFLAGS
="$save_LDFLAGS"
10644 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'
10645 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'
10647 archive_cmds_need_lc
='no'
10648 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10649 hardcode_libdir_separator
=:
10651 link_all_deplibs
=yes
10655 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10656 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10658 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10660 hardcode_libdir_flag_spec
='-R$libdir'
10661 hardcode_direct
=yes
10662 hardcode_shlibpath_var
=no
10666 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10667 hardcode_direct
=yes
10668 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10669 hardcode_libdir_separator
=:
10670 hardcode_shlibpath_var
=no
10677 if test -f /usr
/libexec
/ld.so
; then
10678 hardcode_direct
=yes
10679 hardcode_shlibpath_var
=no
10680 hardcode_direct_absolute
=yes
10681 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10683 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10684 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10685 export_dynamic_flag_spec
='${wl}-E'
10688 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10689 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10690 hardcode_libdir_flag_spec
='-R$libdir'
10693 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10694 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10704 hardcode_libdir_flag_spec
='-L$libdir'
10705 hardcode_minus_L
=yes
10706 allow_undefined_flag
=unsupported
10707 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'
10708 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10712 if test "$GCC" = yes; then
10713 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10714 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'
10716 allow_undefined_flag
=' -expect_unresolved \*'
10717 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'
10719 archive_cmds_need_lc
='no'
10720 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10721 hardcode_libdir_separator
=:
10724 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10725 if test "$GCC" = yes; then
10726 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10727 archive_cmds
='$CC -shared${allow_undefined_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'
10728 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10730 allow_undefined_flag
=' -expect_unresolved \*'
10731 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'
10732 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~
10733 $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'
10735 # Both c and cxx compiler support -rpath directly
10736 hardcode_libdir_flag_spec
='-rpath $libdir'
10738 archive_cmds_need_lc
='no'
10739 hardcode_libdir_separator
=:
10743 no_undefined_flag
=' -z defs'
10744 if test "$GCC" = yes; then
10746 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10748 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10750 case `$CC -V 2>&1` in
10753 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10755 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10759 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10761 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10765 hardcode_libdir_flag_spec
='-R$libdir'
10766 hardcode_shlibpath_var
=no
10768 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10770 # The compiler driver will combine and reorder linker options,
10771 # but understands `-z linker_flag'. GCC discards it without `$wl',
10772 # but is careful enough not to reorder.
10773 # Supported since Solaris 2.6 (maybe 2.5.1?)
10774 if test "$GCC" = yes; then
10775 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10777 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10781 link_all_deplibs
=yes
10785 if test "x$host_vendor" = xsequent
; then
10786 # Use $CC to link under sequent, because it throws in some extra .o
10787 # files that make .init and .fini sections work.
10788 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10790 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_libdir_flag_spec
='-L$libdir'
10793 hardcode_direct
=yes
10794 hardcode_minus_L
=yes
10795 hardcode_shlibpath_var
=no
10799 case $host_vendor in
10801 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802 hardcode_direct
=yes # is this really true???
10805 ## LD is ld it makes a PLAMLIB
10806 ## CC just makes a GrossModule.
10807 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10808 reload_cmds
='$CC -r -o $output$reload_objs'
10812 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10813 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10816 runpath_var
='LD_RUN_PATH'
10817 hardcode_shlibpath_var
=no
10821 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10822 hardcode_shlibpath_var
=no
10823 export_dynamic_flag_spec
='-Bexport'
10827 if test -d /usr
/nec
; then
10828 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 hardcode_shlibpath_var
=no
10830 runpath_var
=LD_RUN_PATH
10831 hardcode_runpath_var
=yes
10836 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10837 no_undefined_flag
='${wl}-z,text'
10838 archive_cmds_need_lc
=no
10839 hardcode_shlibpath_var
=no
10840 runpath_var
='LD_RUN_PATH'
10842 if test "$GCC" = yes; then
10843 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 sysv5
* | sco3.2v5
* | sco5v6
*)
10852 # Note: We can NOT use -z defs as we might desire, because we do not
10853 # link with -lc, and that would cause any symbols used from libc to
10854 # always be unresolved, which means just about no library would
10855 # ever link correctly. If we're not using GNU ld we use -z text
10856 # though, which does catch some bad symbols but isn't as heavy-handed
10858 no_undefined_flag
='${wl}-z,text'
10859 allow_undefined_flag
='${wl}-z,nodefs'
10860 archive_cmds_need_lc
=no
10861 hardcode_shlibpath_var
=no
10862 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10863 hardcode_libdir_separator
=':'
10864 link_all_deplibs
=yes
10865 export_dynamic_flag_spec
='${wl}-Bexport'
10866 runpath_var
='LD_RUN_PATH'
10868 if test "$GCC" = yes; then
10869 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10878 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_libdir_flag_spec
='-L$libdir'
10880 hardcode_shlibpath_var
=no
10888 if test x
$host_vendor = xsni
; then
10890 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10891 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10898 $as_echo "$ld_shlibs" >&6; }
10899 test "$ld_shlibs" = no
&& can_build_shared
=no
10901 with_gnu_ld
=$with_gnu_ld
10918 # Do we need to explicitly link libc?
10920 case "x$archive_cmds_need_lc" in
10922 # Assume -lc should be added
10923 archive_cmds_need_lc
=yes
10925 if test "$enable_shared" = yes && test "$GCC" = yes; then
10926 case $archive_cmds in
10928 # FIXME: we may have to deal with multi-command sequences.
10931 # Test whether the compiler implicitly links with -lc since on some
10932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10933 # to ld, don't add -lc before -lgcc.
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10935 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10936 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10940 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10943 (eval $ac_compile) 2>&5
10945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10946 test $ac_status = 0; } 2>conftest.err
; then
10949 libobjs
=conftest.
$ac_objext
10951 wl
=$lt_prog_compiler_wl
10952 pic_flag
=$lt_prog_compiler_pic
10958 lt_save_allow_undefined_flag
=$allow_undefined_flag
10959 allow_undefined_flag
=
10960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10961 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10964 test $ac_status = 0; }
10966 lt_cv_archive_cmds_need_lc
=no
10968 lt_cv_archive_cmds_need_lc
=yes
10970 allow_undefined_flag
=$lt_save_allow_undefined_flag
10972 cat conftest.err
1>&5
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10978 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10979 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11143 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11145 if test "$GCC" = yes; then
11147 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11148 *) lt_awk_arg
="/^libraries:/" ;;
11151 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11152 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11154 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11155 case $lt_search_path_spec in
11157 # if the path contains ";" then we assume it to be the separator
11158 # otherwise default to the standard path separator (i.e. ":") - it is
11159 # assumed that no part of a normal pathname contains ";" but that should
11160 # okay in the real world where ";" in dirpaths is itself problematic.
11161 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11164 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11167 # Ok, now we have the path, separated by spaces, we can step through it
11168 # and add multilib dir if necessary.
11169 lt_tmp_lt_search_path_spec
=
11170 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11171 for lt_sys_path
in $lt_search_path_spec; do
11172 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11173 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11175 test -d "$lt_sys_path" && \
11176 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11179 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11180 BEGIN {RS=" "; FS="/|\n";} {
11183 for (lt_i = NF; lt_i > 0; lt_i--) {
11184 if ($lt_i != "" && $lt_i != ".") {
11185 if ($lt_i == "..") {
11188 if (lt_count == 0) {
11189 lt_foo="/" $lt_i lt_foo;
11196 if (lt_foo != "") { lt_freq[lt_foo]++; }
11197 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11199 # AWK program above erroneously prepends '/' to C:/dos/paths
11202 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11203 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11205 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11207 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11209 library_names_spec
=
11210 libname_spec
='lib$name'
11214 postuninstall_cmds
=
11218 shlibpath_overrides_runpath
=unknown
11220 dynamic_linker
="$host_os ld.so"
11221 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11222 need_lib_prefix
=unknown
11223 hardcode_into_libs
=no
11225 # when you set need_version to no, make sure it does not cause -set_version
11226 # flags to be left without arguments
11227 need_version
=unknown
11232 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11233 shlibpath_var
=LIBPATH
11235 # AIX 3 has no versioning support, so we append a major version to the name.
11236 soname_spec
='${libname}${release}${shared_ext}$major'
11243 hardcode_into_libs
=yes
11244 if test "$host_cpu" = ia64
; then
11245 # AIX 5 supports IA64
11246 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11247 shlibpath_var
=LD_LIBRARY_PATH
11249 # With GCC up to 2.95.x, collect2 would create an import file
11250 # for dependence libraries. The import file would start with
11251 # the line `#! .'. This would cause the generated library to
11252 # depend on `.', always an invalid library. This was fixed in
11253 # development snapshots of GCC prior to 3.0.
11255 aix4 | aix4.
[01] | aix4.
[01].
*)
11256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11258 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11261 can_build_shared
=no
11265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11266 # soname into executable. Probably we can add versioning support to
11267 # collect2, so additional links can be useful in future.
11268 if test "$aix_use_runtimelinking" = yes; then
11269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11270 # instead of lib<name>.a to let people know that these are not
11271 # typical AIX shared libraries.
11272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11274 # We preserve .a as extension for shared libraries through AIX4.2
11275 # and later when we are not doing run time linking.
11276 library_names_spec
='${libname}${release}.a $libname.a'
11277 soname_spec
='${libname}${release}${shared_ext}$major'
11279 shlibpath_var
=LIBPATH
11286 # Since July 2007 AmigaOS4 officially supports .so libraries.
11287 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 library_names_spec
='$libname.ixlibrary $libname.a'
11292 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11293 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'
11299 library_names_spec
='${libname}${shared_ext}'
11300 dynamic_linker
="$host_os ld.so"
11301 shlibpath_var
=LIBRARY_PATH
11307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 soname_spec
='${libname}${release}${shared_ext}$major'
11309 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11310 shlibpath_var
=LD_LIBRARY_PATH
11311 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11312 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11313 # the default ld.so.conf also contains /usr/contrib/lib and
11314 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11315 # libtool to hard-code these into programs
11318 cygwin
* | mingw
* | pw32
* | cegcc
*)
11319 version_type
=windows
11324 case $GCC,$host_os in
11325 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11326 library_names_spec
='$libname.dll.a'
11327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11328 postinstall_cmds
='base_file=`basename \${file}`~
11329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11330 dldir=$destdir/`dirname \$dlpath`~
11331 test -d \$dldir || mkdir -p \$dldir~
11332 $install_prog $dir/$dlname \$dldir/$dlname~
11333 chmod a+x \$dldir/$dlname~
11334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11337 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11338 dlpath=$dir/\$dldll~
11340 shlibpath_overrides_runpath
=yes
11344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11345 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11347 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11350 # MinGW DLLs use traditional 'lib' prefix
11351 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11354 # pw32 DLLs use 'pw' prefix rather than 'lib'
11355 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11361 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11364 dynamic_linker
='Win32 ld.exe'
11365 # FIXME: first we should search . and the directory the executable is in
11369 darwin
* | rhapsody
*)
11370 dynamic_linker
="$host_os dyld"
11371 version_type
=darwin
11374 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11375 soname_spec
='${libname}${release}${major}$shared_ext'
11376 shlibpath_overrides_runpath
=yes
11377 shlibpath_var
=DYLD_LIBRARY_PATH
11378 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11380 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11381 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11389 soname_spec
='${libname}${release}${shared_ext}$major'
11390 shlibpath_var
=LD_LIBRARY_PATH
11397 freebsd
* | dragonfly
*)
11398 # DragonFly does not have aout. When/if they implement a new
11399 # versioning mechanism, adjust this.
11400 if test -x /usr
/bin
/objformat
; then
11401 objformat
=`/usr/bin/objformat`
11404 freebsd
[123]*) objformat
=aout
;;
11405 *) objformat
=elf
;;
11408 version_type
=freebsd-
$objformat
11409 case $version_type in
11411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11416 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11420 shlibpath_var
=LD_LIBRARY_PATH
11423 shlibpath_overrides_runpath
=yes
11425 freebsd3.
[01]* | freebsdelf3.
[01]*)
11426 shlibpath_overrides_runpath
=yes
11427 hardcode_into_libs
=yes
11429 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11430 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11431 shlibpath_overrides_runpath
=no
11432 hardcode_into_libs
=yes
11434 *) # from 4.6 on, and DragonFly
11435 shlibpath_overrides_runpath
=yes
11436 hardcode_into_libs
=yes
11445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11446 soname_spec
='${libname}${release}${shared_ext}$major'
11447 shlibpath_var
=LD_LIBRARY_PATH
11448 hardcode_into_libs
=yes
11455 dynamic_linker
="$host_os runtime_loader"
11456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11457 soname_spec
='${libname}${release}${shared_ext}$major'
11458 shlibpath_var
=LIBRARY_PATH
11459 shlibpath_overrides_runpath
=yes
11460 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11461 hardcode_into_libs
=yes
11464 hpux9
* | hpux10
* | hpux11
*)
11465 # Give a soname corresponding to the major version so that dld.sl refuses to
11466 # link against other versions.
11473 hardcode_into_libs
=yes
11474 dynamic_linker
="$host_os dld.so"
11475 shlibpath_var
=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec
='${libname}${release}${shared_ext}$major'
11479 if test "X$HPUX_IA64_MODE" = X32
; then
11480 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11482 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11484 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11488 hardcode_into_libs
=yes
11489 dynamic_linker
="$host_os dld.sl"
11490 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11491 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11493 soname_spec
='${libname}${release}${shared_ext}$major'
11494 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11495 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11499 dynamic_linker
="$host_os dld.sl"
11500 shlibpath_var
=SHLIB_PATH
11501 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11503 soname_spec
='${libname}${release}${shared_ext}$major'
11506 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11507 postinstall_cmds
='chmod 555 $lib'
11508 # or fails outright, so override atomically:
11509 install_override_mode
=555
11516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11517 soname_spec
='${libname}${release}${shared_ext}$major'
11518 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11519 shlibpath_var
=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath
=no
11521 hardcode_into_libs
=yes
11524 irix5
* | irix6
* | nonstopux
*)
11526 nonstopux
*) version_type
=nonstopux
;;
11528 if test "$lt_cv_prog_gnu_ld" = yes; then
11536 soname_spec
='${libname}${release}${shared_ext}$major'
11537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11539 irix5
* | nonstopux
*)
11540 libsuff
= shlibsuff
=
11543 case $LD in # libtool.m4 will add one of these switches to LD
11544 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11545 libsuff
= shlibsuff
= libmagic
=32-bit;;
11546 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11547 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11548 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11549 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11550 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11554 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11555 shlibpath_overrides_runpath
=no
11556 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11557 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11558 hardcode_into_libs
=yes
11561 # No shared lib support for Linux oldld, aout, or coff.
11562 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11566 # This must be Linux ELF.
11567 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11571 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 soname_spec
='${libname}${release}${shared_ext}$major'
11573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11574 shlibpath_var
=LD_LIBRARY_PATH
11575 shlibpath_overrides_runpath
=no
11577 # Some binutils ld are patched to set DT_RUNPATH
11578 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11581 lt_cv_shlibpath_overrides_runpath
=no
11582 save_LDFLAGS
=$LDFLAGS
11583 save_libdir
=$libdir
11584 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11585 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11597 if ac_fn_c_try_link
"$LINENO"; then :
11598 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11599 lt_cv_shlibpath_overrides_runpath
=yes
11602 rm -f core conftest.err conftest.
$ac_objext \
11603 conftest
$ac_exeext conftest.
$ac_ext
11604 LDFLAGS
=$save_LDFLAGS
11605 libdir
=$save_libdir
11609 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11611 # This implies no fast_install, which is unacceptable.
11612 # Some rework will be needed to allow for fast_install
11613 # before this can be enabled.
11614 hardcode_into_libs
=yes
11616 # Add ABI-specific directories to the system library path.
11617 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
11619 # Append ld.so.conf contents to the search path
11620 if test -f /etc
/ld.so.conf
; then
11621 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' ' '`
11622 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11626 # We used to test for /lib/ld.so.1 and disable shared libraries on
11627 # powerpc, because MkLinux only supported shared libraries with the
11628 # GNU dynamic linker. Since this was broken with cross compilers,
11629 # most powerpc-linux boxes support dynamic linking these days and
11630 # people can always --disable-shared, the test was removed, and we
11631 # assume the GNU/Linux dynamic linker is in use.
11632 dynamic_linker
='GNU/Linux ld.so'
11639 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11641 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11642 dynamic_linker
='NetBSD (a.out) ld.so'
11644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11645 soname_spec
='${libname}${release}${shared_ext}$major'
11646 dynamic_linker
='NetBSD ld.elf_so'
11648 shlibpath_var
=LD_LIBRARY_PATH
11649 shlibpath_overrides_runpath
=yes
11650 hardcode_into_libs
=yes
11655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 shlibpath_var
=LD_LIBRARY_PATH
11657 shlibpath_overrides_runpath
=yes
11664 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11665 soname_spec
='${libname}${release}${shared_ext}$major'
11666 shlibpath_var
=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath
=no
11668 hardcode_into_libs
=yes
11669 dynamic_linker
='ldqnx.so'
11674 sys_lib_dlsearch_path_spec
="/usr/lib"
11676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11678 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11679 *) need_version
=no
;;
11681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11682 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11683 shlibpath_var
=LD_LIBRARY_PATH
11684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11686 openbsd2.
[89] | openbsd2.
[89].
*)
11687 shlibpath_overrides_runpath
=no
11690 shlibpath_overrides_runpath
=yes
11694 shlibpath_overrides_runpath
=yes
11699 libname_spec
='$name'
11702 library_names_spec
='$libname${shared_ext} $libname.a'
11703 dynamic_linker
='OS/2 ld.exe'
11704 shlibpath_var
=LIBPATH
11707 osf3
* | osf4
* | osf5
*)
11711 soname_spec
='${libname}${release}${shared_ext}$major'
11712 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11713 shlibpath_var
=LD_LIBRARY_PATH
11714 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11715 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec
='${libname}${release}${shared_ext}$major'
11728 shlibpath_var
=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath
=yes
11730 hardcode_into_libs
=yes
11731 # ldd complains unless libraries are executable
11732 postinstall_cmds
='chmod +x $lib'
11737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11738 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11739 shlibpath_var
=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath
=yes
11741 if test "$with_gnu_ld" = yes; then
11749 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11750 soname_spec
='${libname}${release}${shared_ext}$major'
11751 shlibpath_var
=LD_LIBRARY_PATH
11752 case $host_vendor in
11754 shlibpath_overrides_runpath
=no
11756 runpath_var
=LD_RUN_PATH
11764 shlibpath_overrides_runpath
=no
11765 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11771 if test -d /usr
/nec
;then
11773 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11774 soname_spec
='$libname${shared_ext}.$major'
11775 shlibpath_var
=LD_LIBRARY_PATH
11779 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11780 version_type
=freebsd-elf
11783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 soname_spec
='${libname}${release}${shared_ext}$major'
11785 shlibpath_var
=LD_LIBRARY_PATH
11786 shlibpath_overrides_runpath
=yes
11787 hardcode_into_libs
=yes
11788 if test "$with_gnu_ld" = yes; then
11789 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11791 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11794 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11798 sys_lib_dlsearch_path_spec
='/usr/lib'
11802 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var
=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath
=no
11809 hardcode_into_libs
=yes
11814 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec
='${libname}${release}${shared_ext}$major'
11816 shlibpath_var
=LD_LIBRARY_PATH
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11824 $as_echo "$dynamic_linker" >&6; }
11825 test "$dynamic_linker" = no
&& can_build_shared
=no
11827 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11828 if test "$GCC" = yes; then
11829 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11832 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11833 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11835 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11836 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11931 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11933 if test -n "$hardcode_libdir_flag_spec" ||
11934 test -n "$runpath_var" ||
11935 test "X$hardcode_automatic" = "Xyes" ; then
11937 # We can hardcode non-existent directories.
11938 if test "$hardcode_direct" != no
&&
11939 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11940 # have to relink, otherwise we might link with an installed library
11941 # when we should be linking with a yet-to-be-installed one
11942 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11943 test "$hardcode_minus_L" != no
; then
11944 # Linking always hardcodes the temporary library directory.
11945 hardcode_action
=relink
11947 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11948 hardcode_action
=immediate
11951 # We cannot hardcode anything, or else we can only hardcode existing
11953 hardcode_action
=unsupported
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11956 $as_echo "$hardcode_action" >&6; }
11958 if test "$hardcode_action" = relink ||
11959 test "$inherit_rpath" = yes; then
11960 # Fast installation is not supported
11961 enable_fast_install
=no
11962 elif test "$shlibpath_overrides_runpath" = yes ||
11963 test "$enable_shared" = no
; then
11964 # Fast installation is not necessary
11965 enable_fast_install
=needless
11973 if test "x$enable_dlopen" != xyes
; then
11974 enable_dlopen
=unknown
11975 enable_dlopen_self
=unknown
11976 enable_dlopen_self_static
=unknown
11983 lt_cv_dlopen
="load_add_on"
11985 lt_cv_dlopen_self
=yes
11988 mingw
* | pw32
* | cegcc
*)
11989 lt_cv_dlopen
="LoadLibrary"
11994 lt_cv_dlopen
="dlopen"
11999 # if libdl is installed we need to link against it
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12001 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12002 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12005 ac_check_lib_save_LIBS
=$LIBS
12007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12025 if ac_fn_c_try_link
"$LINENO"; then :
12026 ac_cv_lib_dl_dlopen
=yes
12028 ac_cv_lib_dl_dlopen
=no
12030 rm -f core conftest.err conftest.
$ac_objext \
12031 conftest
$ac_exeext conftest.
$ac_ext
12032 LIBS
=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12035 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12036 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12037 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12040 lt_cv_dlopen
="dyld"
12042 lt_cv_dlopen_self
=yes
12049 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12050 if test "x$ac_cv_func_shl_load" = x
""yes; then :
12051 lt_cv_dlopen
="shl_load"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12054 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12055 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12056 $as_echo_n "(cached) " >&6
12058 ac_check_lib_save_LIBS
=$LIBS
12060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12073 return shl_load ();
12078 if ac_fn_c_try_link
"$LINENO"; then :
12079 ac_cv_lib_dld_shl_load
=yes
12081 ac_cv_lib_dld_shl_load
=no
12083 rm -f core conftest.err conftest.
$ac_objext \
12084 conftest
$ac_exeext conftest.
$ac_ext
12085 LIBS
=$ac_check_lib_save_LIBS
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12088 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12089 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
12090 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12092 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12093 if test "x$ac_cv_func_dlopen" = x
""yes; then :
12094 lt_cv_dlopen
="dlopen"
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12097 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12098 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12099 $as_echo_n "(cached) " >&6
12101 ac_check_lib_save_LIBS
=$LIBS
12103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12121 if ac_fn_c_try_link
"$LINENO"; then :
12122 ac_cv_lib_dl_dlopen
=yes
12124 ac_cv_lib_dl_dlopen
=no
12126 rm -f core conftest.err conftest.
$ac_objext \
12127 conftest
$ac_exeext conftest.
$ac_ext
12128 LIBS
=$ac_check_lib_save_LIBS
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12131 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12132 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
12133 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12136 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12137 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12140 ac_check_lib_save_LIBS
=$LIBS
12141 LIBS
="-lsvld $LIBS"
12142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12160 if ac_fn_c_try_link
"$LINENO"; then :
12161 ac_cv_lib_svld_dlopen
=yes
12163 ac_cv_lib_svld_dlopen
=no
12165 rm -f core conftest.err conftest.
$ac_objext \
12166 conftest
$ac_exeext conftest.
$ac_ext
12167 LIBS
=$ac_check_lib_save_LIBS
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12170 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12171 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
12172 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12175 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12176 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12179 ac_check_lib_save_LIBS
=$LIBS
12181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12194 return dld_link ();
12199 if ac_fn_c_try_link
"$LINENO"; then :
12200 ac_cv_lib_dld_dld_link
=yes
12202 ac_cv_lib_dld_dld_link
=no
12204 rm -f core conftest.err conftest.
$ac_objext \
12205 conftest
$ac_exeext conftest.
$ac_ext
12206 LIBS
=$ac_check_lib_save_LIBS
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12209 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12210 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
12211 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12232 if test "x$lt_cv_dlopen" != xno
; then
12238 case $lt_cv_dlopen in
12240 save_CPPFLAGS
="$CPPFLAGS"
12241 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12243 save_LDFLAGS
="$LDFLAGS"
12244 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12247 LIBS
="$lt_cv_dlopen_libs $LIBS"
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12250 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12251 if test "${lt_cv_dlopen_self+set}" = set; then :
12252 $as_echo_n "(cached) " >&6
12254 if test "$cross_compiling" = yes; then :
12255 lt_cv_dlopen_self
=cross
12257 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12258 lt_status
=$lt_dlunknown
12259 cat > conftest.
$ac_ext <<_LT_EOF
12260 #line $LINENO "configure"
12261 #include "confdefs.h"
12270 # define LT_DLGLOBAL RTLD_GLOBAL
12273 # define LT_DLGLOBAL DL_GLOBAL
12275 # define LT_DLGLOBAL 0
12279 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280 find out it does not work in some platform. */
12281 #ifndef LT_DLLAZY_OR_NOW
12283 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12286 # define LT_DLLAZY_OR_NOW DL_LAZY
12289 # define LT_DLLAZY_OR_NOW RTLD_NOW
12292 # define LT_DLLAZY_OR_NOW DL_NOW
12294 # define LT_DLLAZY_OR_NOW 0
12301 /* When -fvisbility=hidden is used, assume the code has been annotated
12302 correspondingly for the symbols needed. */
12303 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12304 void fnord () __attribute__((visibility("default")));
12307 void fnord () { int i=42; }
12310 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12311 int status = $lt_dlunknown;
12315 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12318 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12319 else puts (dlerror ());
12321 /* dlclose (self); */
12329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12330 (eval $ac_link) 2>&5
12332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12333 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12334 (.
/conftest
; exit; ) >&5 2>/dev
/null
12336 case x
$lt_status in
12337 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12338 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12339 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12342 # compilation failed
12343 lt_cv_dlopen_self
=no
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12351 $as_echo "$lt_cv_dlopen_self" >&6; }
12353 if test "x$lt_cv_dlopen_self" = xyes
; then
12354 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12356 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12357 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12360 if test "$cross_compiling" = yes; then :
12361 lt_cv_dlopen_self_static
=cross
12363 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12364 lt_status
=$lt_dlunknown
12365 cat > conftest.
$ac_ext <<_LT_EOF
12366 #line $LINENO "configure"
12367 #include "confdefs.h"
12376 # define LT_DLGLOBAL RTLD_GLOBAL
12379 # define LT_DLGLOBAL DL_GLOBAL
12381 # define LT_DLGLOBAL 0
12385 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12386 find out it does not work in some platform. */
12387 #ifndef LT_DLLAZY_OR_NOW
12389 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12392 # define LT_DLLAZY_OR_NOW DL_LAZY
12395 # define LT_DLLAZY_OR_NOW RTLD_NOW
12398 # define LT_DLLAZY_OR_NOW DL_NOW
12400 # define LT_DLLAZY_OR_NOW 0
12407 /* When -fvisbility=hidden is used, assume the code has been annotated
12408 correspondingly for the symbols needed. */
12409 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12410 void fnord () __attribute__((visibility("default")));
12413 void fnord () { int i=42; }
12416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12417 int status = $lt_dlunknown;
12421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12425 else puts (dlerror ());
12427 /* dlclose (self); */
12435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12436 (eval $ac_link) 2>&5
12438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12439 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12440 (.
/conftest
; exit; ) >&5 2>/dev
/null
12442 case x
$lt_status in
12443 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12444 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12445 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12448 # compilation failed
12449 lt_cv_dlopen_self_static
=no
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12457 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12460 CPPFLAGS
="$save_CPPFLAGS"
12461 LDFLAGS
="$save_LDFLAGS"
12466 case $lt_cv_dlopen_self in
12467 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12468 *) enable_dlopen_self
=unknown
;;
12471 case $lt_cv_dlopen_self_static in
12472 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12473 *) enable_dlopen_self_static
=unknown
;;
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12496 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12497 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12498 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12499 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12501 $as_echo "yes" >&6; }
12503 # FIXME - insert some real tests, host_os isn't really good enough
12506 if test -n "$STRIP" ; then
12507 striplib
="$STRIP -x"
12508 old_striplib
="$STRIP -S"
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12510 $as_echo "yes" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12534 # Report which library types will actually be built
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12536 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12538 $as_echo "$can_build_shared" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12541 $as_echo_n "checking whether to build shared libraries... " >&6; }
12542 test "$can_build_shared" = "no" && enable_shared
=no
12544 # On AIX, shared libraries and static libraries use the same namespace, and
12545 # are all built from PIC.
12548 test "$enable_shared" = yes && enable_static
=no
12549 if test -n "$RANLIB"; then
12550 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12551 postinstall_cmds
='$RANLIB $lib'
12556 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12557 test "$enable_shared" = yes && enable_static
=no
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12562 $as_echo "$enable_shared" >&6; }
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12565 $as_echo_n "checking whether to build static libraries... " >&6; }
12566 # Make sure either enable_shared or enable_static is yes.
12567 test "$enable_shared" = yes || enable_static
=yes
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12569 $as_echo "$enable_static" >&6; }
12576 ac_cpp
='$CPP $CPPFLAGS'
12577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12595 ac_config_commands
="$ac_config_commands libtool"
12600 # Only expand once:
12603 if test -n "$ac_tool_prefix"; then
12604 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12605 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607 $as_echo_n "checking for $ac_word... " >&6; }
12608 if test "${ac_cv_prog_RC+set}" = set; then :
12609 $as_echo_n "(cached) " >&6
12611 if test -n "$RC"; then
12612 ac_cv_prog_RC
="$RC" # Let the user override the test.
12614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12615 for as_dir
in $PATH
12618 test -z "$as_dir" && as_dir
=.
12619 for ac_exec_ext
in '' $ac_executable_extensions; do
12620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12621 ac_cv_prog_RC
="${ac_tool_prefix}windres"
12622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12632 if test -n "$RC"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12634 $as_echo "$RC" >&6; }
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12642 if test -z "$ac_cv_prog_RC"; then
12644 # Extract the first word of "windres", so it can be a program name with args.
12645 set dummy windres
; ac_word
=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if test "${ac_cv_prog_ac_ct_RC+set}" = set; then :
12649 $as_echo_n "(cached) " >&6
12651 if test -n "$ac_ct_RC"; then
12652 ac_cv_prog_ac_ct_RC
="$ac_ct_RC" # Let the user override the test.
12654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12655 for as_dir
in $PATH
12658 test -z "$as_dir" && as_dir
=.
12659 for ac_exec_ext
in '' $ac_executable_extensions; do
12660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12661 ac_cv_prog_ac_ct_RC
="windres"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671 ac_ct_RC
=$ac_cv_prog_ac_ct_RC
12672 if test -n "$ac_ct_RC"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12674 $as_echo "$ac_ct_RC" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12680 if test "x$ac_ct_RC" = x
; then
12683 case $cross_compiling:$ac_tool_warned in
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12687 ac_tool_warned
=yes ;;
12692 RC
="$ac_cv_prog_RC"
12698 # Source file extension for RC test sources.
12701 # Object file extension for compiled RC test sources.
12705 # Code to be used in simple compile tests
12706 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12708 # Code to be used in simple link tests
12709 lt_simple_link_test_code
="$lt_simple_compile_test_code"
12711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12718 # If no C compiler was specified, use CC.
12721 # If no C compiler flags were specified, use CFLAGS.
12722 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12724 # Allow CC to be a program name with arguments.
12728 # save warnings/boilerplate of simple test code
12729 ac_outfile
=conftest.
$ac_objext
12730 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12731 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12732 _lt_compiler_boilerplate
=`cat conftest.err`
12735 ac_outfile
=conftest.
$ac_objext
12736 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12737 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12738 _lt_linker_boilerplate
=`cat conftest.err`
12742 # Allow CC to be a program name with arguments.
12749 for cc_temp
in $compiler""; do
12751 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12752 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12757 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12759 lt_cv_prog_compiler_c_o_RC
=yes
12761 if test -n "$compiler"; then
12770 ac_cpp
='$CPP $CPPFLAGS'
12771 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12772 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12773 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12780 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12781 if test "${ac_cv_c_const+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12790 /* FIXME: Include the comments suggested by Paul. */
12791 #ifndef __cplusplus
12792 /* Ultrix mips cc rejects this. */
12793 typedef int charset[2];
12795 /* SunOS 4.1.1 cc rejects this. */
12796 char const *const *pcpcc;
12798 /* NEC SVR4.0.2 mips cc rejects this. */
12799 struct point {int x, y;};
12800 static struct point const zero = {0,0};
12801 /* AIX XL C 1.02.0.0 rejects this.
12802 It does not let you subtract one const X* pointer from another in
12803 an arm of an if-expression whose if-part is not a constant
12805 const char *g = "string";
12806 pcpcc = &g + (g ? g-g : 0);
12807 /* HPUX 7.0 cc rejects these. */
12809 ppc = (char**) pcpcc;
12810 pcpcc = (char const *const *) ppc;
12811 { /* SCO 3.2v4 cc rejects this. */
12813 char const *s = 0 ? (char *) 0 : (char const *) 0;
12818 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12819 int x[] = {25, 17};
12820 const int *foo = &x[0];
12823 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12824 typedef const int *iptr;
12828 { /* AIX XL C 1.02.0.0 rejects this saying
12829 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12830 struct s { int j; const int *ap[3]; };
12831 struct s *b; b->j = 5;
12833 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12834 const int foo = 10;
12835 if (!foo) return 0;
12837 return !cs[0] && !zero.x;
12844 if ac_fn_c_try_compile
"$LINENO"; then :
12849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12852 $as_echo "$ac_cv_c_const" >&6; }
12853 if test $ac_cv_c_const = no
; then
12855 $as_echo "#define const /**/" >>confdefs.h
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12860 $as_echo_n "checking for inline... " >&6; }
12861 if test "${ac_cv_c_inline+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12865 for ac_kw
in inline __inline__ __inline
; do
12866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h. */
12868 #ifndef __cplusplus
12870 static $ac_kw foo_t static_foo () {return 0; }
12871 $ac_kw foo_t foo () {return 0; }
12875 if ac_fn_c_try_compile
"$LINENO"; then :
12876 ac_cv_c_inline
=$ac_kw
12878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12879 test "$ac_cv_c_inline" != no
&& break
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12884 $as_echo "$ac_cv_c_inline" >&6; }
12886 case $ac_cv_c_inline in
12889 case $ac_cv_c_inline in
12891 *) ac_val
=$ac_cv_c_inline;;
12893 cat >>confdefs.h
<<_ACEOF
12894 #ifndef __cplusplus
12895 #define inline $ac_val
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
12902 $as_echo_n "checking for working volatile... " >&6; }
12903 if test "${ac_cv_c_volatile+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h. */
12914 int * volatile y = (int *) 0;
12920 if ac_fn_c_try_compile
"$LINENO"; then :
12921 ac_cv_c_volatile
=yes
12923 ac_cv_c_volatile
=no
12925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
12928 $as_echo "$ac_cv_c_volatile" >&6; }
12929 if test $ac_cv_c_volatile = no
; then
12931 $as_echo "#define volatile /**/" >>confdefs.h
12935 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12936 if test "x$ac_cv_type_off_t" = x
""yes; then :
12940 cat >>confdefs.h
<<_ACEOF
12941 #define off_t long int
12946 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12947 if test "x$ac_cv_type_pid_t" = x
""yes; then :
12951 cat >>confdefs.h
<<_ACEOF
12957 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12958 if test "x$ac_cv_type_size_t" = x
""yes; then :
12962 cat >>confdefs.h
<<_ACEOF
12963 #define size_t unsigned int
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12969 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12970 if test "${ac_cv_type_uid_t+set}" = set; then :
12971 $as_echo_n "(cached) " >&6
12973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <sys/types.h>
12978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12979 $EGREP "uid_t" >/dev
/null
2>&1; then :
12980 ac_cv_type_uid_t
=yes
12982 ac_cv_type_uid_t
=no
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12988 $as_echo "$ac_cv_type_uid_t" >&6; }
12989 if test $ac_cv_type_uid_t = no
; then
12991 $as_echo "#define uid_t int" >>confdefs.h
12994 $as_echo "#define gid_t int" >>confdefs.h
12998 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
12999 case $ac_cv_c_int8_t in #(
13003 cat >>confdefs.h
<<_ACEOF
13004 #define int8_t $ac_cv_c_int8_t
13009 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
13010 case $ac_cv_c_int16_t in #(
13014 cat >>confdefs.h
<<_ACEOF
13015 #define int16_t $ac_cv_c_int16_t
13020 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
13021 case $ac_cv_c_int32_t in #(
13025 cat >>confdefs.h
<<_ACEOF
13026 #define int32_t $ac_cv_c_int32_t
13031 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
13032 case $ac_cv_c_int64_t in #(
13036 cat >>confdefs.h
<<_ACEOF
13037 #define int64_t $ac_cv_c_int64_t
13042 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
13043 case $ac_cv_c_uint8_t in #(
13047 $as_echo "#define _UINT8_T 1" >>confdefs.h
13050 cat >>confdefs.h
<<_ACEOF
13051 #define uint8_t $ac_cv_c_uint8_t
13056 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
13057 case $ac_cv_c_uint16_t in #(
13062 cat >>confdefs.h
<<_ACEOF
13063 #define uint16_t $ac_cv_c_uint16_t
13068 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
13069 case $ac_cv_c_uint32_t in #(
13073 $as_echo "#define _UINT32_T 1" >>confdefs.h
13076 cat >>confdefs.h
<<_ACEOF
13077 #define uint32_t $ac_cv_c_uint32_t
13082 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
13083 case $ac_cv_c_uint64_t in #(
13087 $as_echo "#define _UINT64_T 1" >>confdefs.h
13090 cat >>confdefs.h
<<_ACEOF
13091 #define uint64_t $ac_cv_c_uint64_t
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13097 $as_echo_n "checking return type of signal handlers... " >&6; }
13098 if test "${ac_cv_type_signal+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13102 /* end confdefs.h. */
13103 #include <sys/types.h>
13104 #include <signal.h>
13109 return *(signal (0, 0)) (0) == 1;
13114 if ac_fn_c_try_compile
"$LINENO"; then :
13115 ac_cv_type_signal
=int
13117 ac_cv_type_signal
=void
13119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13122 $as_echo "$ac_cv_type_signal" >&6; }
13124 cat >>confdefs.h
<<_ACEOF
13125 #define RETSIGTYPE $ac_cv_type_signal
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C 1999 vararg macro support" >&5
13130 $as_echo_n "checking for ISO C 1999 vararg macro support... " >&6; }
13131 if test "${ax_cv_cpp_vararg_macro_iso+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
13134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13137 #define macro(a, ...) func(a, __VA_ARGS__)
13138 int func(int a, int b, int c);
13144 int i = macro(1, 2, 3);
13151 if ac_fn_c_try_compile
"$LINENO"; then :
13152 ax_cv_cpp_vararg_macro_iso
=yes
13154 ax_cv_cpp_vararg_macro_iso
=no
13157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_iso" >&5
13161 $as_echo "$ax_cv_cpp_vararg_macro_iso" >&6; }
13162 if test "x$ax_cv_cpp_vararg_macro_iso" = x
""yes; then :
13164 $as_echo "#define HAVE_CPP_VARARG_MACRO_ISO 1" >>confdefs.h
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU GCC vararg macro support" >&5
13169 $as_echo_n "checking for GNU GCC vararg macro support... " >&6; }
13170 if test "${ax_cv_cpp_vararg_macro_gcc+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13176 #define macro(a, b...) func(a, b)
13177 int func(int a, int b, int c);
13183 int i = macro(1, 2, 3);
13190 if ac_fn_c_try_compile
"$LINENO"; then :
13191 ax_cv_cpp_vararg_macro_gcc
=yes
13193 ax_cv_cpp_vararg_macro_gcc
=no
13196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cpp_vararg_macro_gcc" >&5
13200 $as_echo "$ax_cv_cpp_vararg_macro_gcc" >&6; }
13201 if test "x$ax_cv_cpp_vararg_macro_gcc" = x
""yes; then :
13203 $as_echo "#define HAVE_CPP_VARARG_MACRO_GCC 1" >>confdefs.h
13208 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13209 #include <sys/types.h>
13211 #include <ws2tcpip.h>
13213 #include <sys/socket.h>
13218 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13223 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13224 if test "${ax_cv_socklen_t_equiv+set}" = set; then :
13225 $as_echo_n "(cached) " >&6
13228 #AS_CASE is not supported on <autoconf-2.60
13230 *-mingw*) ax_cv_socklen_t_equiv
=int
;;
13232 # Systems have either "struct sockaddr *" or
13233 # "void *" as the second argument to getpeername
13234 for arg2
in "struct sockaddr" void
; do
13235 for t
in int size_t unsigned long
"unsigned long"; do
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 #include <sys/types.h>
13240 #include <sys/socket.h>
13241 int getpeername (int, $arg2 *, $t *);
13248 getpeername(0,0,&len);
13255 if ac_fn_c_try_compile
"$LINENO"; then :
13256 ax_cv_socklen_t_equiv
="$t"; break
13259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13261 test -n "$ax_cv_socklen_t_equiv" && break
13266 if test "x$ax_cv_socklen_t_equiv" = x
""; then :
13267 as_fn_error $?
"Cannot find a type to use in place of socklen_t" "$LINENO" 5
13270 cat >>confdefs.h
<<_ACEOF
13271 #define socklen_t $ax_cv_socklen_t_equiv
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_socklen_t_equiv" >&5
13279 $as_echo "$ax_cv_socklen_t_equiv" >&6; }
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler empty array size" >&5
13286 $as_echo_n "checking for C compiler empty array size... " >&6; }
13287 if test "${ax_cv_c_empty_array+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13297 struct { int foo; int bar[0]; } mystruct;
13304 if ac_fn_c_try_compile
"$LINENO"; then :
13305 ax_cv_c_empty_array
=0
13307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13314 struct { int foo; int bar[]; } mystruct;
13321 if ac_fn_c_try_compile
"$LINENO"; then :
13322 ax_cv_c_empty_array
=
13324 as_fn_error $?
"C compiler is unable to creaty empty arrays" "$LINENO" 5
13327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_empty_array" >&5
13334 $as_echo "$ax_cv_c_empty_array" >&6; }
13335 cat >>confdefs.h
<<_ACEOF
13336 #define EMPTY_ARRAY_SIZE $ax_cv_c_empty_array
13339 # The cast to long int works around a bug in the HP C Compiler
13340 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13341 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13342 # This bug is HP SR number 8606223364.
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13344 $as_echo_n "checking size of unsigned int... " >&6; }
13345 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
13346 $as_echo_n "(cached) " >&6
13348 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
13351 if test "$ac_cv_type_unsigned_int" = yes; then
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13354 as_fn_error
77 "cannot compute sizeof (unsigned int)
13355 See \`config.log' for more details" "$LINENO" 5; }
13357 ac_cv_sizeof_unsigned_int
=0
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13363 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13367 cat >>confdefs.h
<<_ACEOF
13368 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13372 # The cast to long int works around a bug in the HP C Compiler
13373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375 # This bug is HP SR number 8606223364.
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13377 $as_echo_n "checking size of unsigned long... " >&6; }
13378 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
13379 $as_echo_n "(cached) " >&6
13381 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
13384 if test "$ac_cv_type_unsigned_long" = yes; then
13385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387 as_fn_error
77 "cannot compute sizeof (unsigned long)
13388 See \`config.log' for more details" "$LINENO" 5; }
13390 ac_cv_sizeof_unsigned_long
=0
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13396 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13400 cat >>confdefs.h
<<_ACEOF
13401 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13406 stdio.h stdarg.h stdbool.h limits.h \
13407 time.h errno.h fcntl.h io.h direct.h \
13408 ctype.h sys
/types.h sys
/socket.h \
13409 signal.h unistd.h dlfcn.h \
13410 netinet
/in.h netinet
/in_systm.h \
13411 netinet
/tcp.h arpa
/inet.h netdb.h \
13412 windows.h winsock2.h ws2tcpip.h \
13415 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13416 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13417 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13418 cat >>confdefs.h
<<_ACEOF
13419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13427 sys
/time.h sys
/ioctl.h sys
/stat.h \
13428 sys
/mman.h sys
/file.h sys
/wait.h \
13429 unistd.h signal.h libgen.h stropts.h \
13430 syslog.h
pwd.h grp.h \
13431 sys
/sockio.h sys
/uio.h linux
/sockios.h \
13432 linux
/types.h sys
/poll.h sys
/epoll.h err.h \
13435 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13436 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13437 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13438 cat >>confdefs.h
<<_ACEOF
13439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448 #ifdef HAVE_STDLIB_H
13449 #include <stdlib.h>
13451 #ifdef HAVE_SYS_TYPES_H
13452 #include <sys/types.h>
13454 #ifdef HAVE_SYS_SOCKET_H
13455 #include <sys/socket.h>
13457 #ifdef HAVE_NETINET_IN_H
13458 #include <netinet/in.h>
13460 #ifdef HAVE_WINDOWS_H
13461 #include <windows.h>
13463 #ifdef HAVE_WINSOCK2_H
13464 #include <winsock2.h>
13466 #ifdef HAVE_WS2TCPIP_H
13467 #include <ws2tcpip.h>
13469 #ifdef HAVE_NETINET_IN_SYSTM_H
13470 #include <netinet/in_systm.h>
13472 #ifdef HAVE_NETINET_IP_H
13473 #include <netinet/ip.h>
13477 for ac_header
in net
/if.h netinet
/ip.h netinet
/if_ether.h resolv.h sys
/un.h
13479 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13480 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "${SOCKET_INCLUDES}
13483 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13484 cat >>confdefs.h
<<_ACEOF
13485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13493 ac_fn_c_check_type
"$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "${SOCKET_INCLUDES}
13496 if test "x$ac_cv_type_in_addr_t" = x
""yes; then :
13498 cat >>confdefs.h
<<_ACEOF
13499 #define HAVE_IN_ADDR_T 1
13505 $as_echo "#define in_addr_t uint32_t" >>confdefs.h
13509 ac_fn_c_check_type
"$LINENO" "struct iphdr" "ac_cv_type_struct_iphdr" "${SOCKET_INCLUDES}
13512 if test "x$ac_cv_type_struct_iphdr" = x
""yes; then :
13514 $as_echo "#define HAVE_IPHDR 1" >>confdefs.h
13518 ac_fn_c_check_type
"$LINENO" "struct sock_extended_err" "ac_cv_type_struct_sock_extended_err" "${SOCKET_INCLUDES}
13521 if test "x$ac_cv_type_struct_sock_extended_err" = x
""yes; then :
13523 $as_echo "#define HAVE_SOCK_EXTENDED_ERR 1" >>confdefs.h
13527 ac_fn_c_check_type
"$LINENO" "struct msghdr" "ac_cv_type_struct_msghdr" "${SOCKET_INCLUDES}
13530 if test "x$ac_cv_type_struct_msghdr" = x
""yes; then :
13532 $as_echo "#define HAVE_MSGHDR 1" >>confdefs.h
13536 ac_fn_c_check_type
"$LINENO" "struct cmsghdr" "ac_cv_type_struct_cmsghdr" "${SOCKET_INCLUDES}
13539 if test "x$ac_cv_type_struct_cmsghdr" = x
""yes; then :
13541 $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
13545 ac_fn_c_check_type
"$LINENO" "struct in_pktinfo" "ac_cv_type_struct_in_pktinfo" "${SOCKET_INCLUDES}
13548 if test "x$ac_cv_type_struct_in_pktinfo" = x
""yes; then :
13550 $as_echo "#define HAVE_IN_PKTINFO 1" >>confdefs.h
13554 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "${SOCKET_INCLUDES}
13557 if test "x$ac_cv_type_struct_sockaddr_in6" = x
""yes; then :
13560 as_fn_error $?
"struct sockaddr_in6 not found, needed for ipv6 transport support." "$LINENO" 5
13563 ac_fn_c_check_decl
"$LINENO" "SO_MARK" "ac_cv_have_decl_SO_MARK" "${SOCKET_INCLUDES}
13566 if test "x$ac_cv_have_decl_SO_MARK" = x
""yes; then :
13572 cat >>confdefs.h
<<_ACEOF
13573 #define HAVE_DECL_SO_MARK $ac_have_decl
13577 ac_fn_c_check_decl
"$LINENO" "SIGHUP" "ac_cv_have_decl_SIGHUP" "
13578 #ifdef HAVE_SIGNAL_H
13579 #include <signal.h>
13584 if test "x$ac_cv_have_decl_SIGHUP" = x
""yes; then :
13590 cat >>confdefs.h
<<_ACEOF
13591 #define HAVE_DECL_SIGHUP $ac_have_decl
13593 if test $ac_have_decl = 1; then :
13597 $as_echo "#define SIGHUP 1" >>confdefs.h
13601 ac_fn_c_check_decl
"$LINENO" "SIGINT" "ac_cv_have_decl_SIGINT" "
13602 #ifdef HAVE_SIGNAL_H
13603 #include <signal.h>
13608 if test "x$ac_cv_have_decl_SIGINT" = x
""yes; then :
13614 cat >>confdefs.h
<<_ACEOF
13615 #define HAVE_DECL_SIGINT $ac_have_decl
13617 if test $ac_have_decl = 1; then :
13621 $as_echo "#define SIGINT 2" >>confdefs.h
13625 ac_fn_c_check_decl
"$LINENO" "SIGUSR1" "ac_cv_have_decl_SIGUSR1" "
13626 #ifdef HAVE_SIGNAL_H
13627 #include <signal.h>
13632 if test "x$ac_cv_have_decl_SIGUSR1" = x
""yes; then :
13638 cat >>confdefs.h
<<_ACEOF
13639 #define HAVE_DECL_SIGUSR1 $ac_have_decl
13641 if test $ac_have_decl = 1; then :
13645 $as_echo "#define SIGUSR1 10" >>confdefs.h
13649 ac_fn_c_check_decl
"$LINENO" "SIGUSR2" "ac_cv_have_decl_SIGUSR2" "
13650 #ifdef HAVE_SIGNAL_H
13651 #include <signal.h>
13656 if test "x$ac_cv_have_decl_SIGUSR2" = x
""yes; then :
13662 cat >>confdefs.h
<<_ACEOF
13663 #define HAVE_DECL_SIGUSR2 $ac_have_decl
13665 if test $ac_have_decl = 1; then :
13669 $as_echo "#define SIGUSR2 12" >>confdefs.h
13673 ac_fn_c_check_decl
"$LINENO" "SIGTERM" "ac_cv_have_decl_SIGTERM" "
13674 #ifdef HAVE_SIGNAL_H
13675 #include <signal.h>
13680 if test "x$ac_cv_have_decl_SIGTERM" = x
""yes; then :
13686 cat >>confdefs.h
<<_ACEOF
13687 #define HAVE_DECL_SIGTERM $ac_have_decl
13689 if test $ac_have_decl = 1; then :
13693 $as_echo "#define SIGTERM 15" >>confdefs.h
13698 for ac_header
in vfork.h
13700 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13701 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
13702 cat >>confdefs.h
<<_ACEOF
13703 #define HAVE_VFORK_H 1
13710 for ac_func
in fork vfork
13712 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13713 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13714 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13715 cat >>confdefs.h
<<_ACEOF
13716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13722 if test "x$ac_cv_func_fork" = xyes
; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13724 $as_echo_n "checking for working fork... " >&6; }
13725 if test "${ac_cv_func_fork_works+set}" = set; then :
13726 $as_echo_n "(cached) " >&6
13728 if test "$cross_compiling" = yes; then :
13729 ac_cv_func_fork_works
=cross
13731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 $ac_includes_default
13738 /* By Ruediger Kuhlmann. */
13739 return fork () < 0;
13745 if ac_fn_c_try_run
"$LINENO"; then :
13746 ac_cv_func_fork_works
=yes
13748 ac_cv_func_fork_works
=no
13750 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13751 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13756 $as_echo "$ac_cv_func_fork_works" >&6; }
13759 ac_cv_func_fork_works
=$ac_cv_func_fork
13761 if test "x$ac_cv_func_fork_works" = xcross
; then
13763 *-*-amigaos* |
*-*-msdosdjgpp*)
13764 # Override, as these systems have only a dummy fork() stub
13765 ac_cv_func_fork_works
=no
13768 ac_cv_func_fork_works
=yes
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13772 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13774 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13775 if test "x$ac_cv_func_vfork" = xyes
; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13777 $as_echo_n "checking for working vfork... " >&6; }
13778 if test "${ac_cv_func_vfork_works+set}" = set; then :
13779 $as_echo_n "(cached) " >&6
13781 if test "$cross_compiling" = yes; then :
13782 ac_cv_func_vfork_works
=cross
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 /* Thanks to Paul Eggert for this test. */
13787 $ac_includes_default
13788 #include <sys/wait.h>
13789 #ifdef HAVE_VFORK_H
13790 # include <vfork.h>
13792 /* On some sparc systems, changes by the child to local and incoming
13793 argument registers are propagated back to the parent. The compiler
13794 is told about this with #include <vfork.h>, but some compilers
13795 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13796 static variable whose address is put into a register that is
13797 clobbered by the vfork. */
13800 sparc_address_test (int arg)
13802 sparc_address_test (arg) int arg;
13805 static pid_t child;
13823 pid_t parent = getpid ();
13826 sparc_address_test (0);
13831 /* Here is another test for sparc vfork register problems. This
13832 test uses lots of local variables, at least as many local
13833 variables as main has allocated so far including compiler
13834 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13835 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13836 reuse the register of parent for one of the local variables,
13837 since it will think that parent can't possibly be used any more
13838 in this routine. Assigning to the local variable will thus
13839 munge parent in the parent process. */
13841 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13842 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13843 /* Convince the compiler that p..p7 are live; otherwise, it might
13844 use the same hardware register for all 8 local variables. */
13845 if (p != p1 || p != p2 || p != p3 || p != p4
13846 || p != p5 || p != p6 || p != p7)
13849 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13850 from child file descriptors. If the child closes a descriptor
13851 before it execs or exits, this munges the parent's descriptor
13852 as well. Test for this by closing stdout in the child. */
13853 _exit(close(fileno(stdout)) != 0);
13858 while (wait(&status) != child)
13861 /* Was there some problem with vforking? */
13864 /* Did the child fail? (This shouldn't happen.) */
13867 /* Did the vfork/compiler bug occur? */
13868 || parent != getpid()
13870 /* Did the file descriptor bug occur? */
13871 || fstat(fileno(stdout), &st) != 0
13876 if ac_fn_c_try_run
"$LINENO"; then :
13877 ac_cv_func_vfork_works
=yes
13879 ac_cv_func_vfork_works
=no
13881 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13882 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13887 $as_echo "$ac_cv_func_vfork_works" >&6; }
13890 if test "x$ac_cv_func_fork_works" = xcross
; then
13891 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13893 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13896 if test "x$ac_cv_func_vfork_works" = xyes
; then
13898 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13902 $as_echo "#define vfork fork" >>confdefs.h
13905 if test "x$ac_cv_func_fork_works" = xyes
; then
13907 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13913 daemon chroot getpwnam setuid nice system getpid dup dup2 \
13914 getpass strerror syslog openlog mlockall getgrnam setgid \
13915 setgroups stat flock readv writev
time gettimeofday \
13916 ctime memset vsnprintf strdup \
13917 setsid chdir putenv getpeername unlink \
13918 chsize ftruncate execve getpeereid
umask basename dirname access \
13922 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13923 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13924 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13925 cat >>confdefs.h
<<_ACEOF
13926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13934 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13935 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13936 $as_echo_n "(cached) " >&6
13938 ac_check_lib_save_LIBS
=$LIBS
13940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13943 /* Override any GCC internal prototype to avoid an error.
13944 Use char because int might match the return type of a GCC
13945 builtin and then its argument prototype would still apply. */
13958 if ac_fn_c_try_link
"$LINENO"; then :
13959 ac_cv_lib_dl_dlopen
=yes
13961 ac_cv_lib_dl_dlopen
=no
13963 rm -f core conftest.err conftest.
$ac_objext \
13964 conftest
$ac_exeext conftest.
$ac_ext
13965 LIBS
=$ac_check_lib_save_LIBS
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13968 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13969 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnsl" >&5
13977 $as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
13978 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then :
13979 $as_echo_n "(cached) " >&6
13981 ac_check_lib_save_LIBS
=$LIBS
13983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 /* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
13996 return inet_ntoa ();
14001 if ac_fn_c_try_link
"$LINENO"; then :
14002 ac_cv_lib_nsl_inet_ntoa
=yes
14004 ac_cv_lib_nsl_inet_ntoa
=no
14006 rm -f core conftest.err conftest.
$ac_objext \
14007 conftest
$ac_exeext conftest.
$ac_ext
14008 LIBS
=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntoa" >&5
14011 $as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
14012 if test "x$ac_cv_lib_nsl_inet_ntoa" = x
""yes; then :
14013 SOCKETS_LIBS
="${SOCKETS_LIBS} -lnsl"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14018 $as_echo_n "checking for socket in -lsocket... " >&6; }
14019 if test "${ac_cv_lib_socket_socket+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14022 ac_check_lib_save_LIBS
=$LIBS
14023 LIBS
="-lsocket $LIBS"
14024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14025 /* end confdefs.h. */
14027 /* Override any GCC internal prototype to avoid an error.
14028 Use char because int might match the return type of a GCC
14029 builtin and then its argument prototype would still apply. */
14042 if ac_fn_c_try_link
"$LINENO"; then :
14043 ac_cv_lib_socket_socket
=yes
14045 ac_cv_lib_socket_socket
=no
14047 rm -f core conftest.err conftest.
$ac_objext \
14048 conftest
$ac_exeext conftest.
$ac_ext
14049 LIBS
=$ac_check_lib_save_LIBS
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14052 $as_echo "$ac_cv_lib_socket_socket" >&6; }
14053 if test "x$ac_cv_lib_socket_socket" = x
""yes; then :
14054 SOCKETS_LIBS
="${SOCKETS_LIBS} -lsocket"
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
14059 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
14060 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then :
14061 $as_echo_n "(cached) " >&6
14063 ac_check_lib_save_LIBS
=$LIBS
14064 LIBS
="-lresolv $LIBS"
14065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14066 /* end confdefs.h. */
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14074 char gethostbyname ();
14078 return gethostbyname ();
14083 if ac_fn_c_try_link
"$LINENO"; then :
14084 ac_cv_lib_resolv_gethostbyname
=yes
14086 ac_cv_lib_resolv_gethostbyname
=no
14088 rm -f core conftest.err conftest.
$ac_objext \
14089 conftest
$ac_exeext conftest.
$ac_ext
14090 LIBS
=$ac_check_lib_save_LIBS
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
14093 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
14094 if test "x$ac_cv_lib_resolv_gethostbyname" = x
""yes; then :
14095 SOCKETS_LIBS
="${SOCKETS_LIBS} -lresolv"
14102 LIBS
="${LIBS} ${SOCKETS_LIBS}"
14103 for ac_func
in sendmsg recvmsg inet_ntop inet_pton
14105 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14107 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14108 cat >>confdefs.h
<<_ACEOF
14109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14115 for ac_func
in res_init
14117 ac_fn_c_check_func
"$LINENO" "res_init" "ac_cv_func_res_init"
14118 if test "x$ac_cv_func_res_init" = x
""yes; then :
14119 cat >>confdefs.h
<<_ACEOF
14120 #define HAVE_RES_INIT 1
14126 # Windows use stdcall for winsock so we cannot auto detect these
14129 if test "${WIN32}" = "yes"; then
14132 $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
14136 $as_echo "#define HAVE_RECV 1" >>confdefs.h
14140 $as_echo "#define HAVE_RECVFROM 1" >>confdefs.h
14144 $as_echo "#define HAVE_SEND 1" >>confdefs.h
14148 $as_echo "#define HAVE_SENDTO 1" >>confdefs.h
14152 $as_echo "#define HAVE_LISTEN 1" >>confdefs.h
14156 $as_echo "#define HAVE_ACCEPT 1" >>confdefs.h
14160 $as_echo "#define HAVE_CONNECT 1" >>confdefs.h
14164 $as_echo "#define HAVE_BIND 1" >>confdefs.h
14168 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
14172 $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14176 $as_echo "#define HAVE_INET_NTOA 1" >>confdefs.h
14180 $as_echo "#define HAVE_SETSOCKOPT 1" >>confdefs.h
14184 $as_echo "#define HAVE_GETSOCKOPT 1" >>confdefs.h
14188 $as_echo "#define HAVE_GETSOCKNAME 1" >>confdefs.h
14192 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14196 for ac_func
in socket recv recvfrom send sendto listen accept connect
bind select gethostbyname inet_ntoa
14198 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14199 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14200 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14201 cat >>confdefs.h
<<_ACEOF
14202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14206 as_fn_error $?
"Required library function not found" "$LINENO" 5
14211 for ac_func
in setsockopt getsockopt getsockname poll
14213 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14214 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14215 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14216 cat >>confdefs.h
<<_ACEOF
14217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14227 old_CFLAGS
="${CFLAGS}"
14228 CFLAGS
="${CFLAGS} ${TAP_CFLAGS}"
14230 net
/if_tun.h net
/tun
/if_tun.h \
14235 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14236 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14237 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14238 cat >>confdefs.h
<<_ACEOF
14239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14241 have_tap_header
="yes"
14247 ac_fn_c_check_decl
"$LINENO" "TUNSETPERSIST" "ac_cv_have_decl_TUNSETPERSIST" "
14248 #ifdef HAVE_LINUX_IF_TUN_H
14249 #include <linux/if_tun.h>
14254 if test "x$ac_cv_have_decl_TUNSETPERSIST" = x
""yes; then :
14260 cat >>confdefs.h
<<_ACEOF
14261 #define HAVE_DECL_TUNSETPERSIST $ac_have_decl
14263 if test $ac_have_decl = 1; then :
14265 $as_echo "#define ENABLE_FEATURE_TUN_PERSIST 1" >>confdefs.h
14269 CFLAGS
="${old_CFLAGS}"
14270 test "${have_tap_header}" = "yes" || as_fn_error $?
"no tap header could be found" "$LINENO" 5
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setcon in -lselinux" >&5
14273 $as_echo_n "checking for setcon in -lselinux... " >&6; }
14274 if test "${ac_cv_lib_selinux_setcon+set}" = set; then :
14275 $as_echo_n "(cached) " >&6
14277 ac_check_lib_save_LIBS
=$LIBS
14278 LIBS
="-lselinux $LIBS"
14279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14282 /* Override any GCC internal prototype to avoid an error.
14283 Use char because int might match the return type of a GCC
14284 builtin and then its argument prototype would still apply. */
14297 if ac_fn_c_try_link
"$LINENO"; then :
14298 ac_cv_lib_selinux_setcon
=yes
14300 ac_cv_lib_selinux_setcon
=no
14302 rm -f core conftest.err conftest.
$ac_objext \
14303 conftest
$ac_exeext conftest.
$ac_ext
14304 LIBS
=$ac_check_lib_save_LIBS
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setcon" >&5
14307 $as_echo "$ac_cv_lib_selinux_setcon" >&6; }
14308 if test "x$ac_cv_lib_selinux_setcon" = x
""yes; then :
14309 SELINUX_LIBS
="-lselinux"
14317 if test -z "${LIBPAM_LIBS}"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14319 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14320 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
14321 $as_echo_n "(cached) " >&6
14323 ac_check_lib_save_LIBS
=$LIBS
14325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14326 /* end confdefs.h. */
14328 /* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14338 return pam_start ();
14343 if ac_fn_c_try_link
"$LINENO"; then :
14344 ac_cv_lib_pam_pam_start
=yes
14346 ac_cv_lib_pam_pam_start
=no
14348 rm -f core conftest.err conftest.
$ac_objext \
14349 conftest
$ac_exeext conftest.
$ac_ext
14350 LIBS
=$ac_check_lib_save_LIBS
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14353 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14354 if test "x$ac_cv_lib_pam_pam_start" = x
""yes; then :
14355 LIBPAM_LIBS
="-lpam"
14361 case "${with_mem_check}" in
14363 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
14364 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
14366 CFLAGS
="${CFLAGS} -g -fno-inline"
14368 $as_echo "#define USE_VALGRIND 1" >>confdefs.h
14372 as_fn_error $?
"valgrind headers not found." "$LINENO" 5
14379 ac_fn_c_check_header_mongrel
"$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default"
14380 if test "x$ac_cv_header_dmalloc_h" = x
""yes; then :
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ldmalloc" >&5
14382 $as_echo_n "checking for malloc in -ldmalloc... " >&6; }
14383 if test "${ac_cv_lib_dmalloc_malloc+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14386 ac_check_lib_save_LIBS
=$LIBS
14387 LIBS
="-ldmalloc $LIBS"
14388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14406 if ac_fn_c_try_link
"$LINENO"; then :
14407 ac_cv_lib_dmalloc_malloc
=yes
14409 ac_cv_lib_dmalloc_malloc
=no
14411 rm -f core conftest.err conftest.
$ac_objext \
14412 conftest
$ac_exeext conftest.
$ac_ext
14413 LIBS
=$ac_check_lib_save_LIBS
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_malloc" >&5
14416 $as_echo "$ac_cv_lib_dmalloc_malloc" >&6; }
14417 if test "x$ac_cv_lib_dmalloc_malloc" = x
""yes; then :
14419 LIBS
="${LIBS} -ldmalloc"
14421 $as_echo "#define DMALLOC 1" >>confdefs.h
14425 as_fn_error $?
"dmalloc library not found." "$LINENO" 5
14430 as_fn_error $?
"dmalloc headers not found." "$LINENO" 5
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_mem_ctrl in -lssl" >&5
14438 $as_echo_n "checking for CRYPTO_mem_ctrl in -lssl... " >&6; }
14439 if test "${ac_cv_lib_ssl_CRYPTO_mem_ctrl+set}" = set; then :
14440 $as_echo_n "(cached) " >&6
14442 ac_check_lib_save_LIBS
=$LIBS
14444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 /* Override any GCC internal prototype to avoid an error.
14448 Use char because int might match the return type of a GCC
14449 builtin and then its argument prototype would still apply. */
14453 char CRYPTO_mem_ctrl ();
14457 return CRYPTO_mem_ctrl ();
14462 if ac_fn_c_try_link
"$LINENO"; then :
14463 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=yes
14465 ac_cv_lib_ssl_CRYPTO_mem_ctrl
=no
14467 rm -f core conftest.err conftest.
$ac_objext \
14468 conftest
$ac_exeext conftest.
$ac_ext
14469 LIBS
=$ac_check_lib_save_LIBS
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&5
14472 $as_echo "$ac_cv_lib_ssl_CRYPTO_mem_ctrl" >&6; }
14473 if test "x$ac_cv_lib_ssl_CRYPTO_mem_ctrl" = x
""yes; then :
14476 $as_echo "#define CRYPTO_MDEBUG 1" >>confdefs.h
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&5
14479 $as_echo "$as_me: NOTE: OpenSSL library must be compiled with CRYPTO_MDEBUG" >&6;}
14482 as_fn_error $?
"Memory Debugging function in OpenSSL library not found." "$LINENO" 5
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_CRYPTO" >&5
14492 $as_echo_n "checking for OPENSSL_CRYPTO... " >&6; }
14494 if test -n "$OPENSSL_CRYPTO_CFLAGS"; then
14495 pkg_cv_OPENSSL_CRYPTO_CFLAGS
="$OPENSSL_CRYPTO_CFLAGS"
14496 elif test -n "$PKG_CONFIG"; then
14497 if test -n "$PKG_CONFIG" && \
14498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14499 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14502 test $ac_status = 0; }; then
14503 pkg_cv_OPENSSL_CRYPTO_CFLAGS
=`$PKG_CONFIG --cflags "libcrypto >= 0.9.6" 2>/dev/null`
14504 test "x$?" != "x0" && pkg_failed
=yes
14511 if test -n "$OPENSSL_CRYPTO_LIBS"; then
14512 pkg_cv_OPENSSL_CRYPTO_LIBS
="$OPENSSL_CRYPTO_LIBS"
14513 elif test -n "$PKG_CONFIG"; then
14514 if test -n "$PKG_CONFIG" && \
14515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.6\""; } >&5
14516 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.6") 2>&5
14518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14519 test $ac_status = 0; }; then
14520 pkg_cv_OPENSSL_CRYPTO_LIBS
=`$PKG_CONFIG --libs "libcrypto >= 0.9.6" 2>/dev/null`
14521 test "x$?" != "x0" && pkg_failed
=yes
14531 if test $pkg_failed = yes; then
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14535 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14536 _pkg_short_errors_supported
=yes
14538 _pkg_short_errors_supported
=no
14540 if test $_pkg_short_errors_supported = yes; then
14541 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14543 OPENSSL_CRYPTO_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.6" 2>&1`
14545 # Put the nasty error message in config.log where it belongs
14546 echo "$OPENSSL_CRYPTO_PKG_ERRORS" >&5
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14549 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14550 if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then :
14551 $as_echo_n "(cached) " >&6
14553 ac_check_lib_save_LIBS
=$LIBS
14554 LIBS
="-lcrypto $LIBS"
14555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14573 if ac_fn_c_try_link
"$LINENO"; then :
14574 ac_cv_lib_crypto_RSA_new
=yes
14576 ac_cv_lib_crypto_RSA_new
=no
14578 rm -f core conftest.err conftest.
$ac_objext \
14579 conftest
$ac_exeext conftest.
$ac_ext
14580 LIBS
=$ac_check_lib_save_LIBS
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14583 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14584 if test "x$ac_cv_lib_crypto_RSA_new" = x
""yes; then :
14586 have_openssl_crypto
="yes"
14587 OPENSSL_CRYPTO_LIBS
="-lcrypto"
14593 elif test $pkg_failed = untried
; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14595 $as_echo "no" >&6; }
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
14597 $as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
14598 if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14601 ac_check_lib_save_LIBS
=$LIBS
14602 LIBS
="-lcrypto $LIBS"
14603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14604 /* end confdefs.h. */
14606 /* Override any GCC internal prototype to avoid an error.
14607 Use char because int might match the return type of a GCC
14608 builtin and then its argument prototype would still apply. */
14621 if ac_fn_c_try_link
"$LINENO"; then :
14622 ac_cv_lib_crypto_RSA_new
=yes
14624 ac_cv_lib_crypto_RSA_new
=no
14626 rm -f core conftest.err conftest.
$ac_objext \
14627 conftest
$ac_exeext conftest.
$ac_ext
14628 LIBS
=$ac_check_lib_save_LIBS
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
14631 $as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
14632 if test "x$ac_cv_lib_crypto_RSA_new" = x
""yes; then :
14634 have_openssl_crypto
="yes"
14635 OPENSSL_CRYPTO_LIBS
="-lcrypto"
14642 OPENSSL_CRYPTO_CFLAGS
=$pkg_cv_OPENSSL_CRYPTO_CFLAGS
14643 OPENSSL_CRYPTO_LIBS
=$pkg_cv_OPENSSL_CRYPTO_LIBS
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645 $as_echo "yes" >&6; }
14646 have_openssl_crypto
="yes"
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_SSL" >&5
14652 $as_echo_n "checking for OPENSSL_SSL... " >&6; }
14654 if test -n "$OPENSSL_SSL_CFLAGS"; then
14655 pkg_cv_OPENSSL_SSL_CFLAGS
="$OPENSSL_SSL_CFLAGS"
14656 elif test -n "$PKG_CONFIG"; then
14657 if test -n "$PKG_CONFIG" && \
14658 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14659 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14662 test $ac_status = 0; }; then
14663 pkg_cv_OPENSSL_SSL_CFLAGS
=`$PKG_CONFIG --cflags "libssl >= 0.9.6" 2>/dev/null`
14664 test "x$?" != "x0" && pkg_failed
=yes
14671 if test -n "$OPENSSL_SSL_LIBS"; then
14672 pkg_cv_OPENSSL_SSL_LIBS
="$OPENSSL_SSL_LIBS"
14673 elif test -n "$PKG_CONFIG"; then
14674 if test -n "$PKG_CONFIG" && \
14675 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssl >= 0.9.6\""; } >&5
14676 ($PKG_CONFIG --exists --print-errors "libssl >= 0.9.6") 2>&5
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; then
14680 pkg_cv_OPENSSL_SSL_LIBS
=`$PKG_CONFIG --libs "libssl >= 0.9.6" 2>/dev/null`
14681 test "x$?" != "x0" && pkg_failed
=yes
14691 if test $pkg_failed = yes; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14693 $as_echo "no" >&6; }
14695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14696 _pkg_short_errors_supported
=yes
14698 _pkg_short_errors_supported
=no
14700 if test $_pkg_short_errors_supported = yes; then
14701 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14703 OPENSSL_SSL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libssl >= 0.9.6" 2>&1`
14705 # Put the nasty error message in config.log where it belongs
14706 echo "$OPENSSL_SSL_PKG_ERRORS" >&5
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14709 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14710 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then :
14711 $as_echo_n "(cached) " >&6
14713 ac_check_lib_save_LIBS
=$LIBS
14715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14724 char SSL_CTX_new ();
14728 return SSL_CTX_new ();
14733 if ac_fn_c_try_link
"$LINENO"; then :
14734 ac_cv_lib_ssl_SSL_CTX_new
=yes
14736 ac_cv_lib_ssl_SSL_CTX_new
=no
14738 rm -f core conftest.err conftest.
$ac_objext \
14739 conftest
$ac_exeext conftest.
$ac_ext
14740 LIBS
=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14743 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14744 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = x
""yes; then :
14746 have_openssl_ssl
="yes"
14747 OPENSSL_SSL_LIBS
="-lssl"
14753 elif test $pkg_failed = untried
; then
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 $as_echo "no" >&6; }
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_new in -lssl" >&5
14757 $as_echo_n "checking for SSL_CTX_new in -lssl... " >&6; }
14758 if test "${ac_cv_lib_ssl_SSL_CTX_new+set}" = set; then :
14759 $as_echo_n "(cached) " >&6
14761 ac_check_lib_save_LIBS
=$LIBS
14763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14766 /* Override any GCC internal prototype to avoid an error.
14767 Use char because int might match the return type of a GCC
14768 builtin and then its argument prototype would still apply. */
14772 char SSL_CTX_new ();
14776 return SSL_CTX_new ();
14781 if ac_fn_c_try_link
"$LINENO"; then :
14782 ac_cv_lib_ssl_SSL_CTX_new
=yes
14784 ac_cv_lib_ssl_SSL_CTX_new
=no
14786 rm -f core conftest.err conftest.
$ac_objext \
14787 conftest
$ac_exeext conftest.
$ac_ext
14788 LIBS
=$ac_check_lib_save_LIBS
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_new" >&5
14791 $as_echo "$ac_cv_lib_ssl_SSL_CTX_new" >&6; }
14792 if test "x$ac_cv_lib_ssl_SSL_CTX_new" = x
""yes; then :
14794 have_openssl_ssl
="yes"
14795 OPENSSL_SSL_LIBS
="-lssl"
14802 OPENSSL_SSL_CFLAGS
=$pkg_cv_OPENSSL_SSL_CFLAGS
14803 OPENSSL_SSL_LIBS
=$pkg_cv_OPENSSL_SSL_LIBS
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14805 $as_echo "yes" >&6; }
14806 have_openssl_ssl
="yes"
14809 if test "${have_openssl_crypto}" = "yes"; then
14810 saved_CFLAGS
="${CFLAGS}"
14811 saved_LIBS
="${LIBS}"
14812 CFLAGS
="${CFLAGS} ${OPENSSL_CRYPTO_CFLAGS}"
14813 LIBS
="${LIBS} ${OPENSSL_CRYPTO_LIBS}"
14814 for ac_func
in EVP_CIPHER_CTX_set_key_length
14816 ac_fn_c_check_func
"$LINENO" "EVP_CIPHER_CTX_set_key_length" "ac_cv_func_EVP_CIPHER_CTX_set_key_length"
14817 if test "x$ac_cv_func_EVP_CIPHER_CTX_set_key_length" = x
""yes; then :
14818 cat >>confdefs.h
<<_ACEOF
14819 #define HAVE_EVP_CIPHER_CTX_SET_KEY_LENGTH 1
14825 have_openssl_engine
="yes"
14827 ENGINE_load_builtin_engines \
14828 ENGINE_register_all_complete \
14832 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14833 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
14834 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
14835 cat >>confdefs.h
<<_ACEOF
14836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14840 have_openssl_engine
="no"; break
14846 CFLAGS
="${saved_CFLAGS}"
14847 LIBS
="${saved_LIBS}"
14852 have_polarssl_ssl
="yes"
14853 have_polarssl_crypto
="yes"
14854 if test -z "${POLARSSL_LIBS}"; then
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
14856 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
14857 if test "${ac_cv_lib_polarssl_ssl_init+set}" = set; then :
14858 $as_echo_n "(cached) " >&6
14860 ac_check_lib_save_LIBS
=$LIBS
14861 LIBS
="-lpolarssl $LIBS"
14862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14863 /* end confdefs.h. */
14865 /* Override any GCC internal prototype to avoid an error.
14866 Use char because int might match the return type of a GCC
14867 builtin and then its argument prototype would still apply. */
14875 return ssl_init ();
14880 if ac_fn_c_try_link
"$LINENO"; then :
14881 ac_cv_lib_polarssl_ssl_init
=yes
14883 ac_cv_lib_polarssl_ssl_init
=no
14885 rm -f core conftest.err conftest.
$ac_objext \
14886 conftest
$ac_exeext conftest.
$ac_ext
14887 LIBS
=$ac_check_lib_save_LIBS
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
14890 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
14891 if test "x$ac_cv_lib_polarssl_ssl_init" = x
""yes; then :
14892 POLARSSL_LIBS
="-lpolarssl"
14895 have_polarssl_ssl
="no"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aes_crypt_cbc in -lpolarssl" >&5
14897 $as_echo_n "checking for aes_crypt_cbc in -lpolarssl... " >&6; }
14898 if test "${ac_cv_lib_polarssl_aes_crypt_cbc+set}" = set; then :
14899 $as_echo_n "(cached) " >&6
14901 ac_check_lib_save_LIBS
=$LIBS
14902 LIBS
="-lpolarssl $LIBS"
14903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14912 char aes_crypt_cbc ();
14916 return aes_crypt_cbc ();
14921 if ac_fn_c_try_link
"$LINENO"; then :
14922 ac_cv_lib_polarssl_aes_crypt_cbc
=yes
14924 ac_cv_lib_polarssl_aes_crypt_cbc
=no
14926 rm -f core conftest.err conftest.
$ac_objext \
14927 conftest
$ac_exeext conftest.
$ac_ext
14928 LIBS
=$ac_check_lib_save_LIBS
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_aes_crypt_cbc" >&5
14931 $as_echo "$ac_cv_lib_polarssl_aes_crypt_cbc" >&6; }
14932 if test "x$ac_cv_lib_polarssl_aes_crypt_cbc" = x
""yes; then :
14933 cat >>confdefs.h
<<_ACEOF
14934 #define HAVE_LIBPOLARSSL 1
14937 LIBS
="-lpolarssl $LIBS"
14940 have_polarssl_crypto
="no"
14950 if test "${with_crypto_library}" = "polarssl" ; then
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking polarssl version" >&5
14952 $as_echo_n "checking polarssl version... " >&6; }
14953 old_CFLAGS
="${CFLAGS}"
14954 CFLAGS
="${POLARSSL_CFLAGS} ${CFLAGS}"
14955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14958 #include <polarssl/version.h>
14964 #if POLARSSL_VERSION_NUMBER < 0x01010000
14965 #error invalid version
14973 if ac_fn_c_try_compile
"$LINENO"; then :
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14975 $as_echo "ok" >&6; }
14977 as_fn_error $?
"invalid polarssl version" "$LINENO" 5
14980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14981 CFLAGS
="${old_CFLAGS}"
14987 if test -z "${LZO_LIBS}"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo2" >&5
14989 $as_echo_n "checking for lzo1x_1_15_compress in -llzo2... " >&6; }
14990 if test "${ac_cv_lib_lzo2_lzo1x_1_15_compress+set}" = set; then :
14991 $as_echo_n "(cached) " >&6
14993 ac_check_lib_save_LIBS
=$LIBS
14994 LIBS
="-llzo2 $LIBS"
14995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14998 /* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
15004 char lzo1x_1_15_compress ();
15008 return lzo1x_1_15_compress ();
15013 if ac_fn_c_try_link
"$LINENO"; then :
15014 ac_cv_lib_lzo2_lzo1x_1_15_compress
=yes
15016 ac_cv_lib_lzo2_lzo1x_1_15_compress
=no
15018 rm -f core conftest.err conftest.
$ac_objext \
15019 conftest
$ac_exeext conftest.
$ac_ext
15020 LIBS
=$ac_check_lib_save_LIBS
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_15_compress" >&5
15023 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_15_compress" >&6; }
15024 if test "x$ac_cv_lib_lzo2_lzo1x_1_15_compress" = x
""yes; then :
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_15_compress in -llzo" >&5
15028 $as_echo_n "checking for lzo1x_1_15_compress in -llzo... " >&6; }
15029 if test "${ac_cv_lib_lzo_lzo1x_1_15_compress+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15032 ac_check_lib_save_LIBS
=$LIBS
15034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15037 /* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
15043 char lzo1x_1_15_compress ();
15047 return lzo1x_1_15_compress ();
15052 if ac_fn_c_try_link
"$LINENO"; then :
15053 ac_cv_lib_lzo_lzo1x_1_15_compress
=yes
15055 ac_cv_lib_lzo_lzo1x_1_15_compress
=no
15057 rm -f core conftest.err conftest.
$ac_objext \
15058 conftest
$ac_exeext conftest.
$ac_ext
15059 LIBS
=$ac_check_lib_save_LIBS
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo_lzo1x_1_15_compress" >&5
15062 $as_echo "$ac_cv_lib_lzo_lzo1x_1_15_compress" >&6; }
15063 if test "x$ac_cv_lib_lzo_lzo1x_1_15_compress" = x
""yes; then :
15074 if test "${have_lzo}" = "yes"; then
15075 saved_CFLAGS
="${CFLAGS}"
15076 CFLAGS
="${CFLAGS} ${LZO_CFLAGS}"
15077 for ac_header
in lzo
/lzoutil.h
15079 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzoutil.h" "ac_cv_header_lzo_lzoutil_h" "$ac_includes_default"
15080 if test "x$ac_cv_header_lzo_lzoutil_h" = x
""yes; then :
15081 cat >>confdefs.h
<<_ACEOF
15082 #define HAVE_LZO_LZOUTIL_H 1
15086 for ac_header
in lzoutil.h
15088 ac_fn_c_check_header_mongrel
"$LINENO" "lzoutil.h" "ac_cv_header_lzoutil_h" "$ac_includes_default"
15089 if test "x$ac_cv_header_lzoutil_h" = x
""yes; then :
15090 cat >>confdefs.h
<<_ACEOF
15091 #define HAVE_LZOUTIL_H 1
15095 as_fn_error $?
"lzoutil.h is missing" "$LINENO" 5
15106 for ac_header
in lzo
/lzo1x.h
15108 ac_fn_c_check_header_mongrel
"$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
15109 if test "x$ac_cv_header_lzo_lzo1x_h" = x
""yes; then :
15110 cat >>confdefs.h
<<_ACEOF
15111 #define HAVE_LZO_LZO1X_H 1
15115 for ac_header
in lzo1x.h
15117 ac_fn_c_check_header_mongrel
"$LINENO" "lzo1x.h" "ac_cv_header_lzo1x_h" "$ac_includes_default"
15118 if test "x$ac_cv_header_lzo1x_h" = x
""yes; then :
15119 cat >>confdefs.h
<<_ACEOF
15120 #define HAVE_LZO1X_H 1
15124 as_fn_error $?
"lzo1x.h is missing" "$LINENO" 5
15135 CFLAGS
="${saved_CFLAGS}"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15141 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15143 if test -n "$PKCS11_HELPER_CFLAGS"; then
15144 pkg_cv_PKCS11_HELPER_CFLAGS
="$PKCS11_HELPER_CFLAGS"
15145 elif test -n "$PKG_CONFIG"; then
15146 if test -n "$PKG_CONFIG" && \
15147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15148 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151 test $ac_status = 0; }; then
15152 pkg_cv_PKCS11_HELPER_CFLAGS
=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15153 test "x$?" != "x0" && pkg_failed
=yes
15160 if test -n "$PKCS11_HELPER_LIBS"; then
15161 pkg_cv_PKCS11_HELPER_LIBS
="$PKCS11_HELPER_LIBS"
15162 elif test -n "$PKG_CONFIG"; then
15163 if test -n "$PKG_CONFIG" && \
15164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.02\""; } >&5
15165 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.02") 2>&5
15167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168 test $ac_status = 0; }; then
15169 pkg_cv_PKCS11_HELPER_LIBS
=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.02" 2>/dev/null`
15170 test "x$?" != "x0" && pkg_failed
=yes
15180 if test $pkg_failed = yes; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15185 _pkg_short_errors_supported
=yes
15187 _pkg_short_errors_supported
=no
15189 if test $_pkg_short_errors_supported = yes; then
15190 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15192 PKCS11_HELPER_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.02" 2>&1`
15194 # Put the nasty error message in config.log where it belongs
15195 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15199 elif test $pkg_failed = untried
; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15201 $as_echo "no" >&6; }
15205 PKCS11_HELPER_CFLAGS
=$pkg_cv_PKCS11_HELPER_CFLAGS
15206 PKCS11_HELPER_LIBS
=$pkg_cv_PKCS11_HELPER_LIBS
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15208 $as_echo "yes" >&6; }
15209 have_pkcs11_helper
="yes"
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking git checkout" >&5
15213 $as_echo_n "checking git checkout... " >&6; }
15215 if test -n "${GIT}" -a -d "${srcdir}/.git"; then
15217 $as_echo "#define HAVE_CONFIG_VERSION_H 1" >>confdefs.h
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GIT_CHECKOUT}" >&5
15222 $as_echo "${GIT_CHECKOUT}" >&6; }
15224 if test -n "${SP_PLATFORM_WINDOWS}"; then
15226 cat >>confdefs.h
<<_ACEOF
15227 #define PATH_SEPARATOR '\\\\'
15231 cat >>confdefs.h
<<_ACEOF
15232 #define PATH_SEPARATOR_STR "\\\\"
15237 cat >>confdefs.h
<<_ACEOF
15238 #define PATH_SEPARATOR '/'
15242 cat >>confdefs.h
<<_ACEOF
15243 #define PATH_SEPARATOR_STR "/"
15248 if test "${enable_x509_alt_username}" = "yes"; then
15249 if test "${with_crypto_library}" = "polarssl" ; then
15250 as_fn_error $?
"PolarSSL does not support the --x509-username-field feature" "$LINENO" 5
15254 $as_echo "#define ENABLE_X509ALTUSERNAME 1" >>confdefs.h
15258 test "${ac_cv_header_sys_uio_h}" = "yes" &&
15259 $as_echo "#define HAVE_IOVEC 1" >>confdefs.h
15261 test "${enable_multi}" = "yes" &&
15262 $as_echo "#define ENABLE_CLIENT_SERVER 1" >>confdefs.h
15264 test "${enable_server}" = "no" &&
15265 $as_echo "#define ENABLE_CLIENT_ONLY 1" >>confdefs.h
15267 test "${enable_management}" = "yes" &&
15268 $as_echo "#define ENABLE_MANAGEMENT 1" >>confdefs.h
15270 test "${enable_socks}" = "yes" &&
15271 $as_echo "#define ENABLE_SOCKS 1" >>confdefs.h
15273 test "${enable_http_proxy}" = "yes" &&
15274 $as_echo "#define ENABLE_HTTP_PROXY 1" >>confdefs.h
15276 test "${enable_multihome}" = "yes" &&
15277 $as_echo "#define ENABLE_MULTIHOME 1" >>confdefs.h
15279 test "${enable_debug}" = "yes" &&
15280 $as_echo "#define ENABLE_DEBUG 1" >>confdefs.h
15282 test "${enable_small}" = "yes" &&
15283 $as_echo "#define ENABLE_SMALL 1" >>confdefs.h
15285 test "${enable_fragment}" = "yes" &&
15286 $as_echo "#define ENABLE_FRAGMENT 1" >>confdefs.h
15288 test "${enable_port_share}" = "yes" &&
15289 $as_echo "#define ENABLE_PORT_SHARE 1" >>confdefs.h
15291 test "${enable_def_auth}" = "yes" &&
15292 $as_echo "#define ENABLE_DEF_AUTH 1" >>confdefs.h
15294 test "${enable_pf}" = "yes" &&
15295 $as_echo "#define ENABLE_PF 1" >>confdefs.h
15297 test "${enable_strict_options}" = "yes" &&
15298 $as_echo "#define ENABLE_STRICT_OPTIONS_CHECK 1" >>confdefs.h
15300 test "${enable_password_save}" = "yes" &&
15301 $as_echo "#define ENABLE_PASSWORD_SAVE 1" >>confdefs.h
15303 test "${enable_systemd}" = "yes" &&
15304 $as_echo "#define ENABLE_SYSTEMD 1" >>confdefs.h
15307 case "${with_crypto_library}" in
15309 have_crypto_crypto
="${have_openssl_crypto}"
15310 have_crypto_ssl
="${have_openssl_ssl}"
15311 CRYPTO_CRYPTO_CFLAGS
="${OPENSSL_CRYPTO_CFLAGS}"
15312 CRYPTO_CRYPTO_LIBS
="${OPENSSL_CRYPTO_LIBS}"
15313 CRYPTO_SSL_CFLAGS
="${OPENSSL_SSL_CFLAGS}"
15314 CRYPTO_SSL_LIBS
="${OPENSSL_SSL_LIBS}"
15316 $as_echo "#define ENABLE_CRYPTO_OPENSSL 1" >>confdefs.h
15318 test "${have_openssl_engine}" = "yes" &&
15319 $as_echo "#define HAVE_OPENSSL_ENGINE 1" >>confdefs.h
15323 have_crypto_crypto
="${have_polarssl_crypto}"
15324 have_crypto_ssl
="${have_polarssl_ssl}"
15325 CRYPTO_CRYPTO_CFLAGS
="${POLARSSL_CFLAGS}"
15326 CRYPTO_CRYPTO_LIBS
="${POLARSSL_LIBS}"
15328 $as_echo "#define ENABLE_CRYPTO_POLARSSL 1" >>confdefs.h
15333 if test "${enable_ssl}" = "yes"; then
15334 test "${enable_crypto}" != "yes" && as_fn_error $?
"crypto must be enabled for ssl" "$LINENO" 5
15335 test "${have_crypto_ssl}" != "yes" && as_fn_error $?
"${with_ssl_library} ssl is required but missing" "$LINENO" 5
15336 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_SSL_CFLAGS}"
15337 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_SSL_LIBS}"
15339 $as_echo "#define ENABLE_SSL 1" >>confdefs.h
15343 if test "${enable_crypto}" = "yes"; then
15344 test "${have_crypto_crypto}" != "yes" && as_fn_error $?
"${with_crypto_library} crypto is required but missing" "$LINENO" 5
15345 OPTIONAL_CRYPTO_CFLAGS
="${OPTIONAL_CRYPTO_CFLAGS} ${CRYPTO_CRYPTO_CFLAGS}"
15346 OPTIONAL_CRYPTO_LIBS
="${OPTIONAL_CRYPTO_LIBS} ${CRYPTO_CRYPTO_LIBS}"
15348 $as_echo "#define ENABLE_CRYPTO 1" >>confdefs.h
15352 if test "${enable_plugins}" = "yes"; then
15353 OPTIONAL_DL_LIBS
="${DL_LIBS}"
15355 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
15357 test "${enable_eurephia}" = "yes" &&
15358 $as_echo "#define ENABLE_EUREPHIA 1" >>confdefs.h
15361 enable_plugin_auth_pam
="no"
15362 enable_plugin_down_root
="no"
15365 if test "${enable_iproute2}" = "yes"; then
15366 test -z "${IPROUTE}" && as_fn_error $?
"ip utility is required but missing" "$LINENO" 5
15368 $as_echo "#define ENABLE_IPROUTE 1" >>confdefs.h
15371 if test "${WIN32}" != "yes"; then
15372 test -z "${ROUTE}" && as_fn_error $?
"route utility is required but missing" "$LINENO" 5
15373 test -z "${IFCONFIG}" && as_fn_error $?
"ifconfig utility is required but missing" "$LINENO" 5
15377 if test "${enable_selinux}" = "yes"; then
15378 test -z "${SELINUX_LIBS}" && as_fn_error $?
"libselinux required but missing" "$LINENO" 5
15379 OPTIONAL_SELINUX_LIBS
="${SELINUX_LIBS}"
15381 $as_echo "#define ENABLE_SELINUX 1" >>confdefs.h
15385 if test "${enable_lzo}" = "yes"; then
15386 test "${have_lzo}" != "yes" && as_fn_error $?
"lzo enabled but missing" "$LINENO" 5
15387 OPTIONAL_LZO_CFLAGS
="${LZO_CFLAGS}"
15388 OPTIONAL_LZO_LIBS
="${LZO_LIBS}"
15390 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15393 if test "${enable_lzo_stub}" = "yes"; then
15394 test "${enable_lzo}" = "yes" && as_fn_error $?
"Cannot have both lzo stub and lzo enabled" "$LINENO" 5
15396 $as_echo "#define ENABLE_LZO_STUB 1" >>confdefs.h
15399 $as_echo "#define ENABLE_LZO 1" >>confdefs.h
15403 if test "${enable_pkcs11}" = "yes"; then
15404 test "${have_pkcs11_helper}" != "yes" && as_fn_error $?
"PKCS11 enabled but libpkcs11-helper is missing" "$LINENO" 5
15405 test "${enable_ssl}" != "yes" && as_fn_error $?
"PKCS11 can be enabled only if SSL is enabled" "$LINENO" 5
15406 OPTIONAL_PKCS11_HELPER_CFLAGS
="${PKCS11_HELPER_CFLAGS}"
15407 OPTIONAL_PKCS11_HELPER_LIBS
="${PKCS11_HELPER_LIBS}"
15409 $as_echo "#define ENABLE_PKCS11 1" >>confdefs.h
15413 if test "${enable_pedantic}" = "yes"; then
15414 enable_strict
="yes"
15415 CFLAGS
="${CFLAGS} -pedantic"
15416 test "${WIN32}" != "yes" && CFLAGS
="${CFLAGS} -ansi"
15418 if test "${enable_strict}" = "yes"; then
15419 CFLAGS
="${CFLAGS} -Wall -Wno-unused-parameter -Wno-unused-function"
15422 if test "${WIN32}" = "yes"; then
15423 test -z "${MAN2HTML}" && as_fn_error $?
"man2html is required for win32" "$LINENO" 5
15426 if test "${enable_plugin_auth_pam}" = "yes"; then
15427 PLUGIN_AUTH_PAM_CFLAGS
="${LIBPAM_CFLAGS}"
15428 if test "${enable_pam_dlopen}" = "yes"; then
15430 $as_echo "#define USE_PAM_DLOPEN 1" >>confdefs.h
15432 PLUGIN_AUTH_PAM_LIBS
="${DL_LIBS}"
15434 test -z "${LIBPAM_LIBS}" && as_fn_error $?
"libpam required but missing" "$LINENO" 5
15435 PLUGIN_AUTH_PAM_LIBS
="${LIBPAM_LIBS}"
15439 CONFIGURE_DEFINES
="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
15441 cat >>confdefs.h
<<_ACEOF
15442 #define CONFIGURE_DEFINES "`echo ${CONFIGURE_DEFINES}`"
15446 TAP_WIN_COMPONENT_ID
="tap0901"
15447 TAP_WIN_MIN_MAJOR
="9"
15448 TAP_WIN_MIN_MINOR
="9"
15450 cat >>confdefs.h
<<_ACEOF
15451 #define TAP_WIN_COMPONENT_ID "${TAP_WIN_COMPONENT_ID}"
15455 cat >>confdefs.h
<<_ACEOF
15456 #define TAP_WIN_MIN_MAJOR ${TAP_WIN_MIN_MAJOR}
15460 cat >>confdefs.h
<<_ACEOF
15461 #define TAP_WIN_MIN_MINOR ${TAP_WIN_MIN_MINOR}
15480 if test "${WIN32}" = "yes"; then
15488 if test "${GIT_CHECKOUT}" = "yes"; then
15490 GIT_CHECKOUT_FALSE
='#'
15492 GIT_CHECKOUT_TRUE
='#'
15493 GIT_CHECKOUT_FALSE
=
15496 if test "${enable_plugin_auth_pam}" = "yes"; then
15497 ENABLE_PLUGIN_AUTH_PAM_TRUE
=
15498 ENABLE_PLUGIN_AUTH_PAM_FALSE
='#'
15500 ENABLE_PLUGIN_AUTH_PAM_TRUE
='#'
15501 ENABLE_PLUGIN_AUTH_PAM_FALSE
=
15504 if test "${enable_plugin_down_root}" = "yes"; then
15505 ENABLE_PLUGIN_DOWN_ROOT_TRUE
=
15506 ENABLE_PLUGIN_DOWN_ROOT_FALSE
='#'
15508 ENABLE_PLUGIN_DOWN_ROOT_TRUE
='#'
15509 ENABLE_PLUGIN_DOWN_ROOT_FALSE
=
15513 plugindir
="${with_plugindir}"
15514 sampledir
="\$(docdir)/sample"
15518 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"
15520 ac_config_files
="$ac_config_files tests/t_client.sh"
15522 cat >confcache
<<\_ACEOF
15523 # This file is a shell script that caches the results of configure
15524 # tests run on this system so they can be shared between configure
15525 # scripts and configure runs, see configure's option --config-cache.
15526 # It is not useful on other systems. If it contains results you don't
15527 # want to keep, you may remove or edit it.
15529 # config.status only pays attention to the cache file if you give it
15530 # the --recheck option to rerun configure.
15532 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15533 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15534 # following values.
15538 # The following way of writing the cache mishandles newlines in values,
15539 # but we know of no workaround that is simple, portable, and efficient.
15540 # So, we kill variables containing newlines.
15541 # Ultrix sh set writes to stderr and can't be redirected directly,
15542 # and sets the high bit in the cache file unless we assign to the vars.
15544 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15545 eval ac_val
=\$
$ac_var
15549 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15550 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15553 _ | IFS | as_nl
) ;; #(
15554 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15555 *) { eval $ac_var=; unset $ac_var;} ;;
15561 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562 *${as_nl}ac_space
=\
*)
15563 # `set' does not quote correctly, so add quotes: double-quote
15564 # substitution turns \\\\ into \\, and sed turns \\ into \.
15567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15570 # `set' quotes correctly as required by POSIX, so do not add quotes.
15571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15580 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15582 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15584 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15585 if test -w "$cache_file"; then
15586 test "x$cache_file" != "x/dev/null" &&
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15588 $as_echo "$as_me: updating cache $cache_file" >&6;}
15589 cat confcache
>$cache_file
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15592 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15597 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15598 # Let make expand exec_prefix.
15599 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15601 DEFS
=-DHAVE_CONFIG_H
15606 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15607 # 1. Remove the extension, and $U if already installed.
15608 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15609 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15611 # will be set to the directory where LIBOBJS objects are built.
15612 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15613 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15615 LIBOBJS
=$ac_libobjs
15617 LTLIBOBJS
=$ac_ltlibobjs
15620 if test -n "$EXEEXT"; then
15622 am__EXEEXT_FALSE
='#'
15624 am__EXEEXT_TRUE
='#'
15628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15629 as_fn_error $?
"conditional \"AMDEP\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15633 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15636 if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
15637 as_fn_error $?
"conditional \"WIN32\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15640 if test -z "${GIT_CHECKOUT_TRUE}" && test -z "${GIT_CHECKOUT_FALSE}"; then
15641 as_fn_error $?
"conditional \"GIT_CHECKOUT\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15644 if test -z "${ENABLE_PLUGIN_AUTH_PAM_TRUE}" && test -z "${ENABLE_PLUGIN_AUTH_PAM_FALSE}"; then
15645 as_fn_error $?
"conditional \"ENABLE_PLUGIN_AUTH_PAM\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15648 if test -z "${ENABLE_PLUGIN_DOWN_ROOT_TRUE}" && test -z "${ENABLE_PLUGIN_DOWN_ROOT_FALSE}"; then
15649 as_fn_error $?
"conditional \"ENABLE_PLUGIN_DOWN_ROOT\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15653 : ${CONFIG_STATUS=./config.status}
15655 ac_clean_files_save
=$ac_clean_files
15656 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15662 # Generated by $as_me.
15663 # Run this file to recreate the current configuration.
15664 # Compiler output produced by configure, useful for debugging
15665 # configure, is in config.log if it exists.
15668 ac_cs_recheck=false
15671 SHELL=\${CONFIG_SHELL-$SHELL}
15674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15675 ## -------------------- ##
15676 ## M4sh Initialization. ##
15677 ## -------------------- ##
15679 # Be more Bourne compatible
15680 DUALCASE
=1; export DUALCASE
# for MKS sh
15681 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685 # is contrary to our usage. Disable this feature.
15686 alias -g '${1+"$@"}'='"$@"'
15687 setopt NO_GLOB_SUBST
15689 case `(set -o) 2>/dev/null` in #(
15701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15702 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705 # Prefer a ksh shell builtin over an external printf program on Solaris,
15706 # but without wasting forks for bash or zsh.
15707 if test -z "$BASH_VERSION$ZSH_VERSION" \
15708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709 as_echo='print
-r --'
15710 as_echo_n='print
-rn --'
15711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s
\n'
15713 as_echo_n='printf %s
'
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15717 as_echo_n='/usr
/ucb
/echo -n'
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15727 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15729 export as_echo_n_body
15730 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15732 export as_echo_body
15733 as_echo='sh
-c $as_echo_body as_echo
'
15736 # The user is always right.
15737 if test "${PATH_SEPARATOR+set}" != set; then
15739 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15747 # We need space, tab and new line, in precisely that order. Quoting is
15748 # there to prevent editors from complaining about space-tab.
15749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750 # splitting by setting IFS to empty value.)
15753 # Find who we are. Look in the path if we contain no directory separator.
15755 *[\\/]* ) as_myself=$0 ;;
15756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15760 test -z "$as_dir" && as_dir=.
15761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15767 # We did not find ourselves, most probably we were run as `sh COMMAND'
15768 # in which case we are not to be found in the path.
15769 if test "x$as_myself" = x
; then
15772 if test ! -f "$as_myself"; then
15773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15777 # Unset variables that we do not need and which cause bugs (e.g. in
15778 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15779 # suppresses any "Segmentation fault" message there. '((' could
15780 # trigger a bug in pdksh 5.2.14.
15781 for as_var
in BASH_ENV ENV MAIL MAILPATH
15782 do eval test x\
${$as_var+set} = xset \
15783 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15796 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15799 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15800 # ----------------------------------------
15801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15803 # script with STATUS, using 1 if that was 0.
15806 as_status
=$1; test $as_status -eq 0 && as_status
=1
15808 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15811 $as_echo "$as_me: error: $2" >&2
15812 as_fn_exit
$as_status
15816 # as_fn_set_status STATUS
15817 # -----------------------
15818 # Set $? to STATUS, without forking.
15819 as_fn_set_status
()
15822 } # as_fn_set_status
15824 # as_fn_exit STATUS
15825 # -----------------
15826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15830 as_fn_set_status
$1
15834 # as_fn_unset ax_cv_socklen_t_equiv
15835 # ---------------------------------
15836 # Portably unset VAR.
15839 { eval $1=; unset $1;}
15841 as_unset
=as_fn_unset
15842 # as_fn_append ax_cv_socklen_t_equiv VALUE
15843 # ----------------------------------------
15844 # Append the text in VALUE to the end of the definition contained in VAR. Take
15845 # advantage of any shell optimizations that allow amortized linear growth over
15846 # repeated appends, instead of the typical quadratic growth present in naive
15848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15849 eval 'as_fn_append ()
15860 # as_fn_arith ARG...
15861 # ------------------
15862 # Perform arithmetic evaluation on the ARGs, and store the result in the
15863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15864 # must be portable across $(()) and expr.
15865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15866 eval 'as_fn_arith ()
15873 as_val
=`expr "$@" || test $? -eq 1`
15878 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15879 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15885 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15886 as_basename
=basename
15891 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15897 as_me
=`$as_basename -- "$0" ||
15898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15899 X"$0" : 'X\(//\)$' \| \
15900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15902 sed '/^.*\/\([^/][^/]*\)\/*$/{
15916 # Avoid depending upon Character Ranges.
15917 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15918 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15919 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15920 as_cr_digits
='0123456789'
15921 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15923 ECHO_C
= ECHO_N
= ECHO_T
=
15924 case `echo -n x` in #(((((
15926 case `echo 'xy\c'` in
15927 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15929 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15936 rm -f conf$$ conf$$.exe conf$$.
file
15937 if test -d conf$$.dir
; then
15938 rm -f conf$$.dir
/conf$$.
file
15941 mkdir conf$$.dir
2>/dev
/null
15943 if (echo >conf$$.
file) 2>/dev
/null
; then
15944 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15946 # ... but there are two gotchas:
15947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15949 # In both cases, we have to default to `cp -p'.
15950 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15952 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15960 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15961 rmdir conf$$.dir
2>/dev
/null
15966 # Create "$as_dir" as a directory, including parents if necessary.
15971 -*) as_dir
=.
/$as_dir;;
15973 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15977 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15978 *) as_qdir
=$as_dir;;
15980 as_dirs
="'$as_qdir' $as_dirs"
15981 as_dir
=`$as_dirname -- "$as_dir" ||
15982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15983 X"$as_dir" : 'X\(//\)[^/]' \| \
15984 X"$as_dir" : 'X\(//\)$' \| \
15985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15986 $as_echo X"$as_dir" |
15987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991 /^X\(\/\/\)[^/].*/{
16004 test -d "$as_dir" && break
16006 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16007 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
16011 if mkdir
-p .
2>/dev
/null
; then
16012 as_mkdir_p
='mkdir -p "$as_dir"'
16014 test -d .
/-p && rmdir .
/-p
16018 if test -x / >/dev
/null
2>&1; then
16019 as_test_x
='test -x'
16021 if ls -dL / >/dev
/null
2>&1; then
16028 if test -d "$1"; then
16034 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16035 ???[sx]*):;;*)false;;esac;fi
16039 as_executable_p
=$as_test_x
16041 # Sed expression to map a string onto a valid CPP name.
16042 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16044 # Sed expression to map a string onto a valid variable name.
16045 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16049 ## ----------------------------------- ##
16050 ## Main body of $CONFIG_STATUS script. ##
16051 ## ----------------------------------- ##
16053 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16056 # Save the log message, to keep $0 and so on meaningful, and to
16057 # report actual input values of CONFIG_FILES etc. instead of their
16058 # values after options handling.
16060 This file was extended by OpenVPN $as_me 2.3.0, which was
16061 generated by GNU Autoconf 2.66. Invocation command line was
16063 CONFIG_FILES = $CONFIG_FILES
16064 CONFIG_HEADERS = $CONFIG_HEADERS
16065 CONFIG_LINKS = $CONFIG_LINKS
16066 CONFIG_COMMANDS = $CONFIG_COMMANDS
16069 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16074 case $ac_config_files in *"
16075 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
16078 case $ac_config_headers in *"
16079 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
16083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16084 # Files that config.status was made for.
16085 config_files="$ac_config_files"
16086 config_headers="$ac_config_headers"
16087 config_commands="$ac_config_commands"
16091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16093 \`$as_me' instantiates files and other configuration actions
16094 from templates according to the current configuration. Unless the files
16095 and actions are specified as TAGs, all are instantiated by default.
16097 Usage: $0 [OPTION]... [TAG]...
16099 -h, --help print this help, then exit
16100 -V, --version print version number and configuration settings, then exit
16101 --config print configuration, then exit
16102 -q, --quiet, --silent
16103 do not print progress messages
16104 -d, --debug don't remove temporary files
16105 --recheck update $as_me by reconfiguring in the same conditions
16106 --file=FILE[:TEMPLATE]
16107 instantiate the configuration file FILE
16108 --header=FILE[:TEMPLATE]
16109 instantiate the configuration header FILE
16111 Configuration files:
16114 Configuration headers:
16117 Configuration commands:
16120 Report bugs to <openvpn-users@lists.sourceforge.net>."
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16126 OpenVPN config.status 2.3.0
16127 configured by $0, generated by GNU Autoconf 2.66,
16128 with options \\"\$ac_cs_config\\"
16130 Copyright (C) 2010 Free Software Foundation, Inc.
16131 This config.status script is free software; the Free Software Foundation
16132 gives unlimited permission to copy, distribute and modify it."
16139 test -n "\$AWK" || AWK=awk
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16143 # The default lists apply if the user does not specify any file.
16149 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
16150 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
16161 # Handling of the options.
16162 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
16164 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
16165 $as_echo "$ac_cs_version"; exit ;;
16166 --config |
--confi |
--conf |
--con |
--co |
--c )
16167 $as_echo "$ac_cs_config"; exit ;;
16168 --debug |
--debu |
--deb |
--de |
--d |
-d )
16170 --file |
--fil |
--fi |
--f )
16173 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16175 as_fn_append CONFIG_FILES
" '$ac_optarg'"
16176 ac_need_defaults
=false
;;
16177 --header |
--heade |
--head |
--hea )
16180 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16182 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
16183 ac_need_defaults
=false
;;
16185 # Conflict between --help and --header
16186 as_fn_error $?
"ambiguous option: \`$1'
16187 Try \`$0 --help' for more information.";;
16188 --help |
--hel |
-h )
16189 $as_echo "$ac_cs_usage"; exit ;;
16190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
16191 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
16194 # This is an error.
16195 -*) as_fn_error $?
"unrecognized option: \`$1'
16196 Try \`$0 --help' for more information." ;;
16198 *) as_fn_append ac_config_targets
" $1"
16199 ac_need_defaults
=false
;;
16205 ac_configure_extra_args
=
16207 if $ac_cs_silent; then
16209 ac_configure_extra_args
="$ac_configure_extra_args --silent"
16213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16214 if \$ac_cs_recheck; then
16215 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16218 CONFIG_SHELL='$SHELL'
16219 export CONFIG_SHELL
16224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16229 ## Running $as_me. ##
16235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16242 # The HP-UX ksh and POSIX shell print the target directory to stdout
16243 # if CDPATH is set.
16244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16246 sed_quote_subst='$sed_quote_subst'
16247 double_quote_subst='$double_quote_subst'
16248 delay_variable_subst='$delay_variable_subst'
16249 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16250 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16251 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16252 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16254 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16255 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16256 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16257 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16258 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16259 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16260 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16261 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16262 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16263 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16264 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16265 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16266 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16267 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16268 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16269 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16270 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16271 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16272 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16273 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16274 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16275 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16276 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16277 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16278 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16279 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16280 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16281 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16282 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16283 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16286 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16287 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16288 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16289 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16290 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16291 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16292 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16293 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16294 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16295 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16296 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16297 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16299 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"`'
16300 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16301 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16302 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16303 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16305 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16306 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16307 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16308 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16309 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16310 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16311 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16312 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16313 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16314 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16315 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16316 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16317 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16318 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16319 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16320 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16321 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16322 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16323 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16324 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16325 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16326 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16327 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16328 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16329 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16330 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16331 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16332 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16333 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16334 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16335 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16336 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16337 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16338 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16339 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16340 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16346 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16347 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16348 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16349 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16350 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16351 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16352 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16353 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16354 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16355 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16356 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16357 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16358 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16359 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16360 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16361 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16362 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16363 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16364 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16365 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16366 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16367 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16368 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16369 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16370 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16371 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
16372 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
16373 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
16374 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16375 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
16376 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
16377 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
16378 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
16379 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
16380 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
16381 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
16382 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
16383 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
16384 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16385 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16386 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
16387 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
16388 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
16389 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
16390 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16391 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
16392 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
16393 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
16394 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16395 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
16396 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
16397 hardcode_libdir_flag_spec_ld_RC='`$ECHO "$hardcode_libdir_flag_spec_ld_RC" | $SED "$delay_single_quote_subst"`'
16398 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
16399 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
16400 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
16401 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
16402 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
16403 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
16404 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
16405 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
16406 fix_srcfile_path_RC='`$ECHO "$fix_srcfile_path_RC" | $SED "$delay_single_quote_subst"`'
16407 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
16408 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
16409 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16410 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
16411 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
16412 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
16413 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
16416 LTCFLAGS='$LTCFLAGS'
16417 compiler='$compiler_DEFAULT'
16419 # A function that is used when there is no print builtin or printf.
16420 func_fallback_echo ()
16422 eval 'cat <<_LTECHO_EOF
16427 # Quote evaled strings.
16443 deplibs_check_method \
16452 lt_cv_sys_global_symbol_pipe \
16453 lt_cv_sys_global_symbol_to_cdecl \
16454 lt_cv_sys_global_symbol_to_c_name_address \
16455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16456 lt_prog_compiler_no_builtin_flag \
16457 lt_prog_compiler_wl \
16458 lt_prog_compiler_pic \
16459 lt_prog_compiler_static \
16460 lt_cv_prog_compiler_c_o \
16468 export_dynamic_flag_spec \
16469 whole_archive_flag_spec \
16470 compiler_needs_object \
16472 allow_undefined_flag \
16473 no_undefined_flag \
16474 hardcode_libdir_flag_spec \
16475 hardcode_libdir_flag_spec_ld \
16476 hardcode_libdir_separator \
16481 variables_saved_for_relink \
16483 library_names_spec \
16485 install_override_mode \
16492 lt_prog_compiler_no_builtin_flag_RC \
16493 lt_prog_compiler_wl_RC \
16494 lt_prog_compiler_pic_RC \
16495 lt_prog_compiler_static_RC \
16496 lt_cv_prog_compiler_c_o_RC \
16497 export_dynamic_flag_spec_RC \
16498 whole_archive_flag_spec_RC \
16499 compiler_needs_object_RC \
16501 allow_undefined_flag_RC \
16502 no_undefined_flag_RC \
16503 hardcode_libdir_flag_spec_RC \
16504 hardcode_libdir_flag_spec_ld_RC \
16505 hardcode_libdir_separator_RC \
16506 fix_srcfile_path_RC \
16507 exclude_expsyms_RC \
16508 include_expsyms_RC \
16509 file_list_spec_RC; do
16510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16511 *[\\\\\\\`\\"\\\$]*)
16512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16520 # Double-quote double-evaled strings.
16521 for var in reload_cmds \
16522 old_postinstall_cmds \
16523 old_postuninstall_cmds \
16525 extract_expsyms_cmds \
16526 old_archive_from_new_cmds \
16527 old_archive_from_expsyms_cmds \
16529 archive_expsym_cmds \
16531 module_expsym_cmds \
16532 export_symbols_cmds \
16535 postuninstall_cmds \
16537 sys_lib_search_path_spec \
16538 sys_lib_dlsearch_path_spec \
16540 old_archive_cmds_RC \
16541 old_archive_from_new_cmds_RC \
16542 old_archive_from_expsyms_cmds_RC \
16544 archive_expsym_cmds_RC \
16546 module_expsym_cmds_RC \
16547 export_symbols_cmds_RC \
16548 prelink_cmds_RC; do
16549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16550 *[\\\\\\\`\\"\\\$]*)
16551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16559 ac_aux_dir='$ac_aux_dir'
16560 xsi_shell='$xsi_shell'
16561 lt_shell_append='$lt_shell_append'
16563 # See if we are running on zsh, and set the options which allow our
16564 # commands through without removal of \ escapes INIT.
16565 if test -n "\${ZSH_VERSION+set}" ; then
16566 setopt NO_GLOB_SUBST
16572 TIMESTAMP='$TIMESTAMP'
16583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16585 # Handling of arguments.
16586 for ac_config_target
in $ac_config_targets
16588 case $ac_config_target in
16589 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
16590 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
16591 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
16592 "version.sh") CONFIG_FILES
="$CONFIG_FILES version.sh" ;;
16593 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16594 "build/Makefile") CONFIG_FILES
="$CONFIG_FILES build/Makefile" ;;
16595 "build/msvc/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/Makefile" ;;
16596 "build/msvc/msvc-generate/Makefile") CONFIG_FILES
="$CONFIG_FILES build/msvc/msvc-generate/Makefile" ;;
16597 "distro/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/Makefile" ;;
16598 "distro/rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES distro/rpm/Makefile" ;;
16599 "distro/rpm/openvpn.spec") CONFIG_FILES
="$CONFIG_FILES distro/rpm/openvpn.spec" ;;
16600 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
16601 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
16602 "src/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES src/compat/Makefile" ;;
16603 "src/openvpn/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpn/Makefile" ;;
16604 "src/openvpnserv/Makefile") CONFIG_FILES
="$CONFIG_FILES src/openvpnserv/Makefile" ;;
16605 "src/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/Makefile" ;;
16606 "src/plugins/auth-pam/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/auth-pam/Makefile" ;;
16607 "src/plugins/down-root/Makefile") CONFIG_FILES
="$CONFIG_FILES src/plugins/down-root/Makefile" ;;
16608 "tests/Makefile") CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
16609 "sample/Makefile") CONFIG_FILES
="$CONFIG_FILES sample/Makefile" ;;
16610 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
16611 "tests/t_client.sh") CONFIG_FILES
="$CONFIG_FILES tests/t_client.sh" ;;
16613 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16618 # If the user did not use the arguments to specify the items to instantiate,
16619 # then the envvar interface is used. Set only those that are not.
16620 # We use the long form for the default assignment because of an extremely
16621 # bizarre bug on SunOS 4.1.3.
16622 if $ac_need_defaults; then
16623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16625 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16628 # Have a temporary directory for convenience. Make it in the build tree
16629 # simply because there is no reason against having it here, and in addition,
16630 # creating and moving files from /tmp can sometimes cause problems.
16631 # Hook for its removal unless debugging.
16632 # Note that there is a small window in which the directory will not be cleaned:
16633 # after its creation but before its name has been assigned to `$tmp'.
16637 trap 'exit_status=$?
16638 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16640 trap 'as_fn_exit 1' 1 2 13 15
16642 # Create a (secure) tmp directory for tmp files.
16645 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16646 test -n "$tmp" && test -d "$tmp"
16649 tmp
=.
/conf$$
-$RANDOM
16650 (umask 077 && mkdir
"$tmp")
16651 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
16653 # Set up the scripts for CONFIG_FILES section.
16654 # No need to generate them if there are no CONFIG_FILES.
16655 # This happens for instance with `./config.status config.h'.
16656 if test -n "$CONFIG_FILES"; then
16659 ac_cr
=`echo X | tr X '\015'`
16660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16661 # But we know of no other shell where ac_cr would be empty at this
16662 # point, so we can use a bashism as a fallback.
16663 if test "x$ac_cr" = x
; then
16664 eval ac_cr
=\$
\'\\r
\'
16666 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16670 ac_cs_awk_cr
=$ac_cr
16673 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16678 echo "cat >conf$$subs.awk <<_ACEOF" &&
16679 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16681 } >conf$$subs.sh ||
16682 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16683 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16685 for ac_last_try in false false false false false :; do
16686 . ./conf$$subs.sh ||
16687 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16689 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
16690 if test $ac_delim_n = $ac_delim_num; then
16692 elif $ac_last_try; then
16693 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
16695 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16698 rm -f conf$$subs.sh
16700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16701 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
16705 s/^/S["/; s
/!.
*/"]=/
16715 s/\(.\{148\}\)..*/\1/
16717 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16722 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16729 s/\(.\{148\}\)..*/\1/
16731 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16735 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16740 ' <conf$$subs.awk | sed '
16745 ' >>$CONFIG_STATUS || ac_write_fail=1
16746 rm -f conf$$subs.awk
16747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
16750 for (key in S) S_is_set[key] = 1
16756 nfields = split(line, field, "@
")
16758 len = length(field[1])
16759 for (i = 2; i < nfields; i++) {
16761 keylen = length(key)
16762 if (S_is_set[key]) {
16764 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16765 len += length(value) + length(field[++i])
16776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16777 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16778 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16781 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
16782 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16787 # trailing colons and then remove the whole line if VPATH becomes empty
16788 # (actually we leave an empty line to preserve line numbers).
16789 if test "x
$srcdir" = x.; then
16790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16809 fi # test -n "$CONFIG_FILES"
16811 # Set up the scripts for CONFIG_HEADERS section.
16812 # No need to generate them if there are no CONFIG_HEADERS.
16813 # This happens for instance with `./config.status Makefile'.
16814 if test -n "$CONFIG_HEADERS"; then
16815 cat >"$tmp/defines.
awk" <<\_ACAWK ||
16819 # Transform confdefs.h into an awk script `defines.awk', embedded as
16820 # here-document in config.status, that substitutes the proper values into
16821 # config.h.in to produce config.h.
16823 # Create a delimiter string that does not exist in confdefs.h, to ease
16824 # handling of long lines.
16826 for ac_last_try in false false :; do
16827 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
16828 if test -z "$ac_t"; then
16830 elif $ac_last_try; then
16831 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16833 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16837 # For the awk script, D is an array of macro values keyed by name,
16838 # likewise P contains macro parameters if any. Preserve backslash
16839 # newline sequences.
16841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16843 s/.\{148\}/&'"$ac_delim"'/g
16846 s/^[ ]*#[ ]*define[ ][ ]*/ /
16853 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16855 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16860 D["\
1"]=" \
3\\\\\\n
"\\/p
16862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16867 s/.\{148\}/&'"$ac_delim"'/g
16872 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16875 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16877 ' <confdefs.h | sed '
16878 s/'"$ac_delim"'/"\\\
16879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 for (key in D) D_is_set[key] = 1
16885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16887 split(line, arg, " ")
16888 if (arg[1] == "#") {
16892 defundef
= substr
(arg
[1], 2)
16895 split(mac1
, mac2
, "(") #)
16897 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16898 if (D_is_set
[macro
]) {
16899 # Preserve the white space surrounding the "#".
16900 print prefix
"define", macro P
[macro
] D
[macro
]
16903 # Replace #undef with comments. This is necessary, for example,
16904 # in the case of _POSIX_SOURCE, which is predefined and required
16905 # on some systems where configure will not decide to define it.
16906 if (defundef
== "undef") {
16907 print
"/*", prefix defundef
, macro
, "*/"
16915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16916 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16917 fi # test -n "$CONFIG_HEADERS"
16920 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16925 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16927 case $ac_mode$ac_tag in
16929 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16930 :[FH
]-) ac_tag
=-:-;;
16931 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16948 -) ac_f
="$tmp/stdin";;
16949 *) # Look for the file first in the build tree, then in the source tree
16950 # (if the path is not absolute). The absolute path cannot be DOS-style,
16951 # because $ac_f cannot contain `:'.
16955 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16957 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16959 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16960 as_fn_append ac_file_inputs
" '$ac_f'"
16963 # Let's still pretend it is `configure' which instantiates (i.e., don't
16964 # use $as_me), people would be surprised to read:
16965 # /* config.h. Generated by config.status. */
16966 configure_input
='Generated from '`
16967 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16969 if test x
"$ac_file" != x-
; then
16970 configure_input
="$ac_file. $configure_input"
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16972 $as_echo "$as_me: creating $ac_file" >&6;}
16974 # Neutralize special characters interpreted by sed in replacement strings.
16975 case $configure_input in #(
16976 *\
&* |
*\|
* |
*\\* )
16977 ac_sed_conf_input
=`$as_echo "$configure_input" |
16978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16979 *) ac_sed_conf_input
=$configure_input;;
16983 *:-:* |
*:-) cat >"$tmp/stdin" \
16984 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16989 ac_dir
=`$as_dirname -- "$ac_file" ||
16990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16991 X"$ac_file" : 'X\(//\)[^/]' \| \
16992 X"$ac_file" : 'X\(//\)$' \| \
16993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16994 $as_echo X"$ac_file" |
16995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16999 /^X\(\/\/\)[^/].*/{
17012 as_dir
="$ac_dir"; as_fn_mkdir_p
17016 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17018 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17019 # A ".." for each directory in $ac_dir_suffix.
17020 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17021 case $ac_top_builddir_sub in
17022 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17023 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17026 ac_abs_top_builddir
=$ac_pwd
17027 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17028 # for backward compatibility:
17029 ac_top_builddir
=$ac_top_build_prefix
17032 .
) # We are building in place.
17034 ac_top_srcdir
=$ac_top_builddir_sub
17035 ac_abs_top_srcdir
=$ac_pwd ;;
17036 [\\/]* | ?
:[\\/]* ) # Absolute name.
17037 ac_srcdir
=$srcdir$ac_dir_suffix;
17038 ac_top_srcdir
=$srcdir
17039 ac_abs_top_srcdir
=$srcdir ;;
17040 *) # Relative name.
17041 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17042 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17043 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17045 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17055 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
17056 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
17058 ac_MKDIR_P
=$MKDIR_P
17060 [\\/$
]* | ?
:[\\/]* ) ;;
17061 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
17065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17066 # If the template does not know about datarootdir, expand it.
17067 # FIXME: This hack should be removed a few years after 2.60.
17068 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17080 *datarootdir
*) ac_datarootdir_seen
=yes;;
17081 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17086 ac_datarootdir_hack='
17087 s&@datadir@&$datadir&g
17088 s&@docdir@&$docdir&g
17089 s&@infodir@&$infodir&g
17090 s&@localedir@&$localedir&g
17091 s&@mandir@&$mandir&g
17092 s&\\\${datarootdir}&$datarootdir&g' ;;
17096 # Neutralize VPATH when `$srcdir' = `.'.
17097 # Shell code in configure.ac might set extrasub.
17098 # FIXME: do we really want to maintain this feature?
17099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17100 ac_sed_extra="$ac_vpsub
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17105 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17106 s|@configure_input@|
$ac_sed_conf_input|
;t t
17107 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17108 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17109 s
&@srcdir@
&$ac_srcdir&;t t
17110 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17111 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17112 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17113 s
&@builddir@
&$ac_builddir&;t t
17114 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17115 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17116 s
&@INSTALL@
&$ac_INSTALL&;t t
17117 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
17118 $ac_datarootdir_hack
17120 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17121 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
17123 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17124 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17127 which seems to be undefined. Please make sure it is defined" >&5
17128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17129 which seems to be undefined. Please make sure it is defined" >&2;}
17133 -) cat "$tmp/out" && rm -f "$tmp/out";;
17134 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17142 if test x"$ac_file" != x-; then
17144 $as_echo "/* $configure_input */" \
17145 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17146 } >"$tmp/config.h" \
17147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17148 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17150 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17153 mv "$tmp/config.h" "$ac_file" \
17154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 $as_echo "/* $configure_input */" \
17158 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17159 || as_fn_error $? "could not create -" "$LINENO" 5
17161 # Compute "$ac_file"'s index
in $config_headers.
17164 for _am_header
in $config_headers :; do
17165 case $_am_header in
17166 $_am_arg |
$_am_arg:* )
17169 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
17172 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17173 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174 X"$_am_arg" : 'X\(//\)[^/]' \| \
17175 X"$_am_arg" : 'X\(//\)$' \| \
17176 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17177 $as_echo X"$_am_arg" |
17178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17182 /^X\(\/\/\)[^/].*/{
17194 s/.*/./; q'`/stamp-h
$_am_stamp_count
17197 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17198 $as_echo "$as_me: executing $ac_file commands" >&6;}
17203 case $ac_file$ac_mode in
17204 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
17205 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17206 # are listed without --file. Let's play safe and only enable the eval
17207 # if we detect the quoting.
17208 case $CONFIG_FILES in
17209 *\'*) eval set x
"$CONFIG_FILES" ;;
17210 *) set x
$CONFIG_FILES ;;
17215 # Strip MF so we end up with the name of the file.
17216 mf
=`echo "$mf" | sed -e 's/:.*$//'`
17217 # Check whether this is an Automake generated Makefile or not.
17218 # We used to match only the files named `Makefile.in', but
17219 # some people rename them; so instead we look at the file content.
17220 # Grep'ing the first line is not enough: some people post-process
17221 # each Makefile.in and add a new line on top of each file to say so.
17222 # Grep'ing the whole file is not good either: AIX grep has a line
17223 # limit of 2048, but all sed's we know have understand at least 4000.
17224 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
17225 dirpart
=`$as_dirname -- "$mf" ||
17226 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17227 X"$mf" : 'X\(//\)[^/]' \| \
17228 X"$mf" : 'X\(//\)$' \| \
17229 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17235 /^X\(\/\/\)[^/].*/{
17251 # Extract the definition of DEPDIR, am__include, and am__quote
17252 # from the Makefile without running `make'.
17253 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
17254 test -z "$DEPDIR" && continue
17255 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
17256 test -z "am__include" && continue
17257 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
17258 # When using ansi2knr, U may be empty or an underscore; expand it
17259 U
=`sed -n 's/^U = //p' < "$mf"`
17260 # Find all dependency output files, they are included files with
17261 # $(DEPDIR) in their names. We invoke sed twice because it is the
17262 # simplest approach to changing $(DEPDIR) to its actual value in the
17264 for file in `sed -n "
17265 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17266 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17267 # Make sure the directory exists.
17268 test -f "$dirpart/$file" && continue
17269 fdir
=`$as_dirname -- "$file" ||
17270 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17271 X"$file" : 'X\(//\)[^/]' \| \
17272 X"$file" : 'X\(//\)$' \| \
17273 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17274 $as_echo X"$file" |
17275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17279 /^X\(\/\/\)[^/].*/{
17292 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
17293 # echo "creating $dirpart/$file"
17294 echo '# dummy' > "$dirpart/$file"
17301 # See if we are running on zsh, and set the options which allow our
17302 # commands through without removal of \ escapes.
17303 if test -n "${ZSH_VERSION+set}" ; then
17304 setopt NO_GLOB_SUBST
17307 cfgfile
="${ofile}T"
17308 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17311 cat <<_LT_EOF >> "$cfgfile"
17314 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17315 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17316 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17317 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17319 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17320 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17322 # Written by Gordon Matzigkeit, 1996
17324 # This file is part of GNU Libtool.
17326 # GNU Libtool is free software; you can redistribute it and/or
17327 # modify it under the terms of the GNU General Public License as
17328 # published by the Free Software Foundation; either version 2 of
17329 # the License, or (at your option) any later version.
17331 # As a special exception to the GNU General Public License,
17332 # if you distribute this file as part of a program or library that
17333 # is built using GNU Libtool, you may include this file under the
17334 # same distribution terms that you use for the rest of that program.
17336 # GNU Libtool is distributed in the hope that it will be useful,
17337 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17338 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17339 # GNU General Public License for more details.
17341 # You should have received a copy of the GNU General Public License
17342 # along with GNU Libtool; see the file COPYING. If not, a copy
17343 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17344 # obtained by writing to the Free Software Foundation, Inc.,
17345 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17348 # The names of the tagged configurations supported by this script.
17349 available_tags="RC "
17351 # ### BEGIN LIBTOOL CONFIG
17353 # Which release of libtool.m4 was used?
17354 macro_version=$macro_version
17355 macro_revision=$macro_revision
17357 # Assembler program.
17360 # DLL creation program.
17361 DLLTOOL=$lt_DLLTOOL
17363 # Object dumper program.
17364 OBJDUMP=$lt_OBJDUMP
17366 # Whether or not to build shared libraries.
17367 build_libtool_libs=$enable_shared
17369 # Whether or not to build static libraries.
17370 build_old_libs=$enable_static
17372 # What type of objects to build.
17375 # Whether or not to optimize for fast installation.
17376 fast_install=$enable_fast_install
17378 # Shell to use when invoking shell scripts.
17381 # An echo program that protects backslashes.
17385 host_alias=$host_alias
17389 # The build system.
17390 build_alias=$build_alias
17394 # A sed program that does not truncate output.
17397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17398 Xsed="\$SED -e 1s/^X//"
17400 # A grep program that handles long lines.
17406 # A literal string matcher.
17409 # A BSD- or MS-compatible name lister.
17412 # Whether we need soft or hard links.
17415 # What is the maximum length of a command?
17416 max_cmd_len=$max_cmd_len
17418 # Object file suffix (normally "o").
17421 # Executable file suffix (normally "").
17424 # whether the shell understands "unset".
17427 # turn spaces into newlines.
17430 # turn newlines into spaces.
17433 # Method to check whether dependent libraries are shared objects.
17434 deplibs_check_method=$lt_deplibs_check_method
17436 # Command to use when deplibs_check_method == "file_magic".
17437 file_magic_cmd=$lt_file_magic_cmd
17441 AR_FLAGS=$lt_AR_FLAGS
17443 # A symbol stripping program.
17446 # Commands used to install an old-style archive.
17448 old_postinstall_cmds=$lt_old_postinstall_cmds
17449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17451 # Whether to use a lock for old archive extraction.
17452 lock_old_archive_extraction=$lock_old_archive_extraction
17457 # LTCC compiler flags.
17458 LTCFLAGS=$lt_CFLAGS
17460 # Take the output of nm and produce a listing of raw symbols and C names.
17461 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17463 # Transform the output of nm in a proper C declaration.
17464 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17466 # Transform the output of nm in a C name address pair.
17467 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17469 # Transform the output of nm in a C name address pair when lib prefix is needed.
17470 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17472 # The name of the directory that contains temporary libtool files.
17475 # Used to examine libraries when file_magic_cmd begins with "file".
17476 MAGIC_CMD=$MAGIC_CMD
17478 # Must we lock files when doing compilation?
17479 need_locks=$lt_need_locks
17481 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17482 DSYMUTIL=$lt_DSYMUTIL
17484 # Tool to change global to local symbols on Mac OS X.
17487 # Tool to manipulate fat objects and archives on Mac OS X.
17490 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17493 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17494 OTOOL64=$lt_OTOOL64
17496 # Old archive suffix (normally "a").
17499 # Shared library suffix (normally ".so").
17500 shrext_cmds=$lt_shrext_cmds
17502 # The commands to extract the exported symbol list from a shared archive.
17503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17505 # Variables whose values should be saved in libtool wrapper scripts and
17506 # restored at link time.
17507 variables_saved_for_relink=$lt_variables_saved_for_relink
17509 # Do we need the "lib" prefix for modules?
17510 need_lib_prefix=$need_lib_prefix
17512 # Do we need a version for libraries?
17513 need_version=$need_version
17515 # Library versioning type.
17516 version_type=$version_type
17518 # Shared library runtime path variable.
17519 runpath_var=$runpath_var
17521 # Shared library path variable.
17522 shlibpath_var=$shlibpath_var
17524 # Is shlibpath searched before the hard-coded library search path?
17525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17527 # Format of library name prefix.
17528 libname_spec=$lt_libname_spec
17530 # List of archive names. First name is the real one, the rest are links.
17531 # The last name is the one that the linker finds with -lNAME
17532 library_names_spec=$lt_library_names_spec
17534 # The coded name of the library, if different from the real name.
17535 soname_spec=$lt_soname_spec
17537 # Permission mode override for installation of shared libraries.
17538 install_override_mode=$lt_install_override_mode
17540 # Command to use after installation of a shared archive.
17541 postinstall_cmds=$lt_postinstall_cmds
17543 # Command to use after uninstallation of a shared archive.
17544 postuninstall_cmds=$lt_postuninstall_cmds
17546 # Commands used to finish a libtool library installation in a directory.
17547 finish_cmds=$lt_finish_cmds
17549 # As "finish_cmds", except a single script fragment to be evaled but
17551 finish_eval=$lt_finish_eval
17553 # Whether we should hardcode library paths into libraries.
17554 hardcode_into_libs=$hardcode_into_libs
17556 # Compile-time system search path for libraries.
17557 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17559 # Run-time system search path for libraries.
17560 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17562 # Whether dlopen is supported.
17563 dlopen_support=$enable_dlopen
17565 # Whether dlopen of programs is supported.
17566 dlopen_self=$enable_dlopen_self
17568 # Whether dlopen of statically linked programs is supported.
17569 dlopen_self_static=$enable_dlopen_self_static
17571 # Commands to strip libraries.
17572 old_striplib=$lt_old_striplib
17573 striplib=$lt_striplib
17576 # The linker used to build libraries.
17579 # How to create reloadable object files.
17580 reload_flag=$lt_reload_flag
17581 reload_cmds=$lt_reload_cmds
17583 # Commands used to build an old-style archive.
17584 old_archive_cmds=$lt_old_archive_cmds
17586 # A language specific compiler.
17589 # Is the compiler the GNU compiler?
17592 # Compiler flag to turn off builtin functions.
17593 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17595 # How to pass a linker flag through the compiler.
17596 wl=$lt_lt_prog_compiler_wl
17598 # Additional compiler flags for building library objects.
17599 pic_flag=$lt_lt_prog_compiler_pic
17601 # Compiler flag to prevent dynamic linking.
17602 link_static_flag=$lt_lt_prog_compiler_static
17604 # Does compiler simultaneously support -c and -o options?
17605 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17607 # Whether or not to add -lc for building shared libraries.
17608 build_libtool_need_lc=$archive_cmds_need_lc
17610 # Whether or not to disallow shared libs when runtime libs are static.
17611 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17613 # Compiler flag to allow reflexive dlopens.
17614 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17616 # Compiler flag to generate shared objects directly from archives.
17617 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17619 # Whether the compiler copes with passing no objects directly.
17620 compiler_needs_object=$lt_compiler_needs_object
17622 # Create an old-style archive from a shared archive.
17623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17625 # Create a temporary old-style archive to link instead of a shared archive.
17626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17628 # Commands used to build a shared archive.
17629 archive_cmds=$lt_archive_cmds
17630 archive_expsym_cmds=$lt_archive_expsym_cmds
17632 # Commands used to build a loadable module if different from building
17633 # a shared archive.
17634 module_cmds=$lt_module_cmds
17635 module_expsym_cmds=$lt_module_expsym_cmds
17637 # Whether we are building with GNU ld or not.
17638 with_gnu_ld=$lt_with_gnu_ld
17640 # Flag that allows shared libraries with undefined symbols to be built.
17641 allow_undefined_flag=$lt_allow_undefined_flag
17643 # Flag that enforces no undefined symbols.
17644 no_undefined_flag=$lt_no_undefined_flag
17646 # Flag to hardcode \$libdir into a binary during linking.
17647 # This must work even if \$libdir does not exist
17648 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17650 # If ld is used when linking, flag to hardcode \$libdir into a binary
17651 # during linking. This must work even if \$libdir does not exist.
17652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17654 # Whether we need a single "-rpath" flag with a separated argument.
17655 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17657 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17658 # DIR into the resulting binary.
17659 hardcode_direct=$hardcode_direct
17661 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17662 # DIR into the resulting binary and the resulting library dependency is
17663 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17664 # library is relocated.
17665 hardcode_direct_absolute=$hardcode_direct_absolute
17667 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17668 # into the resulting binary.
17669 hardcode_minus_L=$hardcode_minus_L
17671 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17672 # into the resulting binary.
17673 hardcode_shlibpath_var=$hardcode_shlibpath_var
17675 # Set to "yes" if building a shared library automatically hardcodes DIR
17676 # into the library and all subsequent libraries and executables linked
17678 hardcode_automatic=$hardcode_automatic
17680 # Set to yes if linker adds runtime paths of dependent libraries
17681 # to runtime path list.
17682 inherit_rpath=$inherit_rpath
17684 # Whether libtool must link a program against all its dependency libraries.
17685 link_all_deplibs=$link_all_deplibs
17687 # Fix the shell variable \$srcfile for the compiler.
17688 fix_srcfile_path=$lt_fix_srcfile_path
17690 # Set to "yes" if exported symbols are required.
17691 always_export_symbols=$always_export_symbols
17693 # The commands to list exported symbols.
17694 export_symbols_cmds=$lt_export_symbols_cmds
17696 # Symbols that should not be listed in the preloaded symbols.
17697 exclude_expsyms=$lt_exclude_expsyms
17699 # Symbols that must always be exported.
17700 include_expsyms=$lt_include_expsyms
17702 # Commands necessary for linking programs (against libraries) with templates.
17703 prelink_cmds=$lt_prelink_cmds
17705 # Specify filename containing input files.
17706 file_list_spec=$lt_file_list_spec
17708 # How to hardcode a shared library path into an executable.
17709 hardcode_action=$hardcode_action
17711 # ### END LIBTOOL CONFIG
17717 cat <<\_LT_EOF
>> "$cfgfile"
17718 # AIX sometimes has problems with the GCC collect2 program. For some
17719 # reason, if we set the COLLECT_NAMES environment variable, the problems
17720 # vanish in a puff of smoke.
17721 if test "X${COLLECT_NAMES+set}" != Xset
; then
17723 export COLLECT_NAMES
17730 ltmain
="$ac_aux_dir/ltmain.sh"
17733 # We use sed instead of cat because bash on DJGPP gets confused if
17734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17735 # text mode, it properly converts lines to CR/LF. This bash problem
17736 # is reportedly fixed, but why not run on old versions too?
17737 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17738 ||
(rm -f "$cfgfile"; exit 1)
17742 cat << \_LT_EOF
>> "$cfgfile"
17744 # func_dirname file append nondir_replacement
17745 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17746 # otherwise set result to NONDIR_REPLACEMENT.
17750 */*) func_dirname_result
="${1%/*}${2}" ;;
17751 * ) func_dirname_result
="${3}" ;;
17755 # func_basename file
17758 func_basename_result
="${1##*/}"
17761 # func_dirname_and_basename file append nondir_replacement
17762 # perform func_basename and func_dirname in a single function
17764 # dirname: Compute the dirname of FILE. If nonempty,
17765 # add APPEND to the result, otherwise set result
17766 # to NONDIR_REPLACEMENT.
17767 # value returned in "$func_dirname_result"
17768 # basename: Compute filename of FILE.
17769 # value retuned in "$func_basename_result"
17770 # Implementation must be kept synchronized with func_dirname
17771 # and func_basename. For efficiency, we do not delegate to
17772 # those functions but instead duplicate the functionality here.
17773 func_dirname_and_basename
()
17776 */*) func_dirname_result
="${1%/*}${2}" ;;
17777 * ) func_dirname_result
="${3}" ;;
17779 func_basename_result
="${1##*/}"
17782 # func_stripname prefix suffix name
17783 # strip PREFIX and SUFFIX off of NAME.
17784 # PREFIX and SUFFIX must not contain globbing or regex special
17785 # characters, hashes, percent signs, but SUFFIX may contain a leading
17786 # dot (in which case that matches only a dot).
17789 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17790 # positional parameters, so assign one to ordinary parameter first.
17791 func_stripname_result
=${3}
17792 func_stripname_result
=${func_stripname_result#"${1}"}
17793 func_stripname_result
=${func_stripname_result%"${2}"}
17799 func_opt_split_opt
=${1%%=*}
17800 func_opt_split_arg
=${1#*=}
17807 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
17808 *) func_lo2o_result
=${1} ;;
17812 # func_xform libobj-or-source
17815 func_xform_result
=${1%.*}.lo
17818 # func_arith arithmetic-term...
17821 func_arith_result
=$
(( $
* ))
17825 # STRING may not start with a hyphen.
17828 func_len_result
=${#1}
17833 *) # Bourne compatible functions.
17834 cat << \_LT_EOF
>> "$cfgfile"
17836 # func_dirname file append nondir_replacement
17837 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17838 # otherwise set result to NONDIR_REPLACEMENT.
17841 # Extract subdirectory from the argument.
17842 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
17843 if test "X$func_dirname_result" = "X${1}"; then
17844 func_dirname_result
="${3}"
17846 func_dirname_result
="$func_dirname_result${2}"
17850 # func_basename file
17853 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
17857 # func_stripname prefix suffix name
17858 # strip PREFIX and SUFFIX off of NAME.
17859 # PREFIX and SUFFIX must not contain globbing or regex special
17860 # characters, hashes, percent signs, but SUFFIX may contain a leading
17861 # dot (in which case that matches only a dot).
17862 # func_strip_suffix prefix name
17866 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17867 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17872 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
17873 my_sed_long_arg
='1s/^-[^=]*=//'
17878 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17879 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17885 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
17888 # func_xform libobj-or-source
17891 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17894 # func_arith arithmetic-term...
17897 func_arith_result
=`expr "$@"`
17901 # STRING may not start with a hyphen.
17904 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17910 case $lt_shell_append in
17912 cat << \_LT_EOF
>> "$cfgfile"
17914 # func_append var value
17915 # Append VALUE to the end of shell variable VAR.
17923 cat << \_LT_EOF
>> "$cfgfile"
17925 # func_append var value
17926 # Append VALUE to the end of shell variable VAR.
17937 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17938 ||
(rm -f "$cfgfile"; exit 1)
17940 mv -f "$cfgfile" "$ofile" ||
17941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17945 cat <<_LT_EOF >> "$ofile"
17947 # ### BEGIN LIBTOOL TAG CONFIG: RC
17949 # The linker used to build libraries.
17952 # How to create reloadable object files.
17953 reload_flag=$lt_reload_flag_RC
17954 reload_cmds=$lt_reload_cmds_RC
17956 # Commands used to build an old-style archive.
17957 old_archive_cmds=$lt_old_archive_cmds_RC
17959 # A language specific compiler.
17962 # Is the compiler the GNU compiler?
17965 # Compiler flag to turn off builtin functions.
17966 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17968 # How to pass a linker flag through the compiler.
17969 wl=$lt_lt_prog_compiler_wl_RC
17971 # Additional compiler flags for building library objects.
17972 pic_flag=$lt_lt_prog_compiler_pic_RC
17974 # Compiler flag to prevent dynamic linking.
17975 link_static_flag=$lt_lt_prog_compiler_static_RC
17977 # Does compiler simultaneously support -c and -o options?
17978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17980 # Whether or not to add -lc for building shared libraries.
17981 build_libtool_need_lc=$archive_cmds_need_lc_RC
17983 # Whether or not to disallow shared libs when runtime libs are static.
17984 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17986 # Compiler flag to allow reflexive dlopens.
17987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17989 # Compiler flag to generate shared objects directly from archives.
17990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17992 # Whether the compiler copes with passing no objects directly.
17993 compiler_needs_object=$lt_compiler_needs_object_RC
17995 # Create an old-style archive from a shared archive.
17996 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17998 # Create a temporary old-style archive to link instead of a shared archive.
17999 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18001 # Commands used to build a shared archive.
18002 archive_cmds=$lt_archive_cmds_RC
18003 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18005 # Commands used to build a loadable module if different from building
18006 # a shared archive.
18007 module_cmds=$lt_module_cmds_RC
18008 module_expsym_cmds=$lt_module_expsym_cmds_RC
18010 # Whether we are building with GNU ld or not.
18011 with_gnu_ld=$lt_with_gnu_ld_RC
18013 # Flag that allows shared libraries with undefined symbols to be built.
18014 allow_undefined_flag=$lt_allow_undefined_flag_RC
18016 # Flag that enforces no undefined symbols.
18017 no_undefined_flag=$lt_no_undefined_flag_RC
18019 # Flag to hardcode \$libdir into a binary during linking.
18020 # This must work even if \$libdir does not exist
18021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18023 # If ld is used when linking, flag to hardcode \$libdir into a binary
18024 # during linking. This must work even if \$libdir does not exist.
18025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18027 # Whether we need a single "-rpath" flag with a separated argument.
18028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18030 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18031 # DIR into the resulting binary.
18032 hardcode_direct=$hardcode_direct_RC
18034 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18035 # DIR into the resulting binary and the resulting library dependency is
18036 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18037 # library is relocated.
18038 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18040 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18041 # into the resulting binary.
18042 hardcode_minus_L=$hardcode_minus_L_RC
18044 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18045 # into the resulting binary.
18046 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18048 # Set to "yes" if building a shared library automatically hardcodes DIR
18049 # into the library and all subsequent libraries and executables linked
18051 hardcode_automatic=$hardcode_automatic_RC
18053 # Set to yes if linker adds runtime paths of dependent libraries
18054 # to runtime path list.
18055 inherit_rpath=$inherit_rpath_RC
18057 # Whether libtool must link a program against all its dependency libraries.
18058 link_all_deplibs=$link_all_deplibs_RC
18060 # Fix the shell variable \$srcfile for the compiler.
18061 fix_srcfile_path=$lt_fix_srcfile_path_RC
18063 # Set to "yes" if exported symbols are required.
18064 always_export_symbols=$always_export_symbols_RC
18066 # The commands to list exported symbols.
18067 export_symbols_cmds=$lt_export_symbols_cmds_RC
18069 # Symbols that should not be listed in the preloaded symbols.
18070 exclude_expsyms=$lt_exclude_expsyms_RC
18072 # Symbols that must always be exported.
18073 include_expsyms=$lt_include_expsyms_RC
18075 # Commands necessary for linking programs (against libraries) with templates.
18076 prelink_cmds=$lt_prelink_cmds_RC
18078 # Specify filename containing input files.
18079 file_list_spec=$lt_file_list_spec_RC
18081 # How to hardcode a shared library path into an executable.
18082 hardcode_action=$hardcode_action_RC
18084 # ### END LIBTOOL TAG CONFIG: RC
18088 "tests/t_client.sh":F
) chmod +x
tests
/t_client.sh
;;
18096 ac_clean_files
=$ac_clean_files_save
18098 test $ac_write_fail = 0 ||
18099 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
18102 # configure is writing to config.log, and then calls config.status.
18103 # config.status does its own redirection, appending to config.log.
18104 # Unfortunately, on DOS this fails, as config.log is still kept open
18105 # by configure, so config.status won't be able to write to it; its
18106 # output is simply discarded. So we exec the FD to /dev/null,
18107 # effectively closing config.log, so it can be properly (re)opened and
18108 # appended to by config.status. When coming back to configure, we
18109 # need to make the FD available again.
18110 if test "$no_create" != yes; then
18112 ac_config_status_args
=
18113 test "$silent" = yes &&
18114 ac_config_status_args
="$ac_config_status_args --quiet"
18116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18119 # would make configure fail if this is the last instruction.
18120 $ac_cs_success || as_fn_exit
1
18122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}