2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for courier-authlib 0.69.0.
5 # Report bugs to <courier-users@lists.sourceforge.net>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: courier-users@lists.sourceforge.net about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL
=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE
= GREP_OPTIONS
=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir
=.
/$as_dir;;
332 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
336 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs
="'$as_qdir' $as_dirs"
340 as_dir
=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
366 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p
()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
409 as_val
=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status
=$1; test $as_status -eq 0 && as_status
=1
423 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit
$as_status
430 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
437 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
449 as_me
=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits
='0123456789'
473 as_cr_alnum
=$as_cr_Letters$as_cr_digits
476 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
477 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x
"$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec
=no
; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C
= ECHO_N
= ECHO_T
=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
524 rm -f conf$$ conf$$.exe conf$$.
file
525 if test -d conf$$.dir
; then
526 rm -f conf$$.dir
/conf$$.
file
529 mkdir conf$$.dir
2>/dev
/null
531 if (echo >conf$$.
file) 2>/dev
/null
; then
532 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
540 elif ln conf$$.
file conf$$
2>/dev
/null
; then
548 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
549 rmdir conf$$.dir
2>/dev
/null
551 if mkdir
-p .
2>/dev
/null
; then
552 as_mkdir_p
='mkdir -p "$as_dir"'
554 test -d .
/-p && rmdir .
/-p
559 as_executable_p
=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL
=${CONFIG_SHELL-/bin/sh}
569 lt_ltdl_dir
='libltdl'
571 lt_dlopen_dir
=$lt_ltdl_dir
574 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
585 ac_default_prefix
=/usr
/local
587 ac_config_libobj_dir
=.
594 # Identity of this package.
595 PACKAGE_NAME
='courier-authlib'
596 PACKAGE_TARNAME
='courier-authlib'
597 PACKAGE_VERSION
='0.69.0'
598 PACKAGE_STRING
='courier-authlib 0.69.0'
599 PACKAGE_BUGREPORT
='courier-users@lists.sourceforge.net'
602 ac_unique_file
="courierauth.h"
603 # Factoring default headers for most tests.
604 ac_includes_default
="\
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
616 # ifdef HAVE_STDLIB_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
639 enable_option_checking
=no
640 ac_subst_vars
='ltdl_LTLIBOBJS
662 HAVE_AUTHSQLITE_FALSE
705 CONVENIENCE_LTDL_FALSE
706 CONVENIENCE_LTDL_TRUE
710 sys_symbol_underscore
790 INSTALL_STRIP_PROGRAM
832 program_transform_name
845 enable_option_checking
847 enable_dependency_tracking
866 with_authpam_libraries
893 ac_precious_vars
='build_alias
907 ac_subdirs_all
='libltdl
908 libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog'
910 # Initialize some variables set by options.
912 ac_init_version
=false
913 ac_unrecognized_opts
=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name
=s
,x
,x
,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir
='${exec_prefix}/bin'
939 sbindir
='${exec_prefix}/sbin'
940 libexecdir
='${exec_prefix}/libexec'
941 datarootdir
='${prefix}/share'
942 datadir
='${datarootdir}'
943 sysconfdir
='${prefix}/etc'
944 sharedstatedir
='${prefix}/com'
945 localstatedir
='${prefix}/var'
946 includedir
='${prefix}/include'
947 oldincludedir
='/usr/include'
948 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir
='${datarootdir}/info'
954 libdir
='${exec_prefix}/lib'
955 localedir
='${datarootdir}/locale'
956 mandir
='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\
$ac_option
970 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
983 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
986 -build |
--build |
--buil |
--bui |
--bu)
987 ac_prev
=build_alias
;;
988 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
989 build_alias
=$ac_optarg ;;
991 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
992 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
993 ac_prev
=cache_file
;;
994 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
995 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
996 cache_file
=$ac_optarg ;;
999 cache_file
=config.cache
;;
1001 -datadir |
--datadir |
--datadi |
--datad)
1003 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1004 datadir
=$ac_optarg ;;
1006 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1007 |
--dataroo |
--dataro |
--datar)
1008 ac_prev
=datarootdir
;;
1009 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1010 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1011 datarootdir
=$ac_optarg ;;
1013 -disable-* |
--disable-*)
1014 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1017 as_fn_error $?
"invalid feature name: $ac_useropt"
1018 ac_useropt_orig
=$ac_useropt
1019 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_
$ac_useropt"
1024 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep
=', ';;
1027 eval enable_
$ac_useropt=no
;;
1029 -docdir |
--docdir |
--docdi |
--doc |
--do)
1031 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1032 docdir
=$ac_optarg ;;
1034 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1036 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1037 dvidir
=$ac_optarg ;;
1039 -enable-* |
--enable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error $?
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=\
$ac_optarg ;;
1055 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1056 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1057 |
--exec |
--exe |
--ex)
1058 ac_prev
=exec_prefix
;;
1059 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1060 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1061 |
--exec=* |
--exe=* |
--ex=*)
1062 exec_prefix
=$ac_optarg ;;
1064 -gas |
--gas |
--ga |
--g)
1065 # Obsolete; use --with-gas.
1068 -help |
--help |
--hel |
--he |
-h)
1069 ac_init_help
=long
;;
1070 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1071 ac_init_help
=recursive
;;
1072 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1073 ac_init_help
=short
;;
1075 -host |
--host |
--hos |
--ho)
1076 ac_prev
=host_alias
;;
1077 -host=* |
--host=* |
--hos=* |
--ho=*)
1078 host_alias
=$ac_optarg ;;
1080 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1082 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1084 htmldir
=$ac_optarg ;;
1086 -includedir |
--includedir |
--includedi |
--included |
--include \
1087 |
--includ |
--inclu |
--incl |
--inc)
1088 ac_prev
=includedir
;;
1089 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1090 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1091 includedir
=$ac_optarg ;;
1093 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1095 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1096 infodir
=$ac_optarg ;;
1098 -libdir |
--libdir |
--libdi |
--libd)
1100 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1101 libdir
=$ac_optarg ;;
1103 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1104 |
--libexe |
--libex |
--libe)
1105 ac_prev
=libexecdir
;;
1106 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1107 |
--libexe=* |
--libex=* |
--libe=*)
1108 libexecdir
=$ac_optarg ;;
1110 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1111 ac_prev
=localedir
;;
1112 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1113 localedir
=$ac_optarg ;;
1115 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1116 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1117 ac_prev
=localstatedir
;;
1118 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1119 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1120 localstatedir
=$ac_optarg ;;
1122 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1124 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1125 mandir
=$ac_optarg ;;
1127 -nfp |
--nfp |
--nf)
1128 # Obsolete; use --without-fp.
1131 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1132 |
--no-cr |
--no-c |
-n)
1135 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1136 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1139 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1140 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1141 |
--oldin |
--oldi |
--old |
--ol |
--o)
1142 ac_prev
=oldincludedir
;;
1143 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1144 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1145 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1146 oldincludedir
=$ac_optarg ;;
1148 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1150 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1151 prefix
=$ac_optarg ;;
1153 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1154 |
--program-pre |
--program-pr |
--program-p)
1155 ac_prev
=program_prefix
;;
1156 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1157 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1158 program_prefix
=$ac_optarg ;;
1160 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1161 |
--program-suf |
--program-su |
--program-s)
1162 ac_prev
=program_suffix
;;
1163 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1164 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1165 program_suffix
=$ac_optarg ;;
1167 -program-transform-name |
--program-transform-name \
1168 |
--program-transform-nam |
--program-transform-na \
1169 |
--program-transform-n |
--program-transform- \
1170 |
--program-transform |
--program-transfor \
1171 |
--program-transfo |
--program-transf \
1172 |
--program-trans |
--program-tran \
1173 |
--progr-tra |
--program-tr |
--program-t)
1174 ac_prev
=program_transform_name
;;
1175 -program-transform-name=* |
--program-transform-name=* \
1176 |
--program-transform-nam=* |
--program-transform-na=* \
1177 |
--program-transform-n=* |
--program-transform-=* \
1178 |
--program-transform=* |
--program-transfor=* \
1179 |
--program-transfo=* |
--program-transf=* \
1180 |
--program-trans=* |
--program-tran=* \
1181 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1182 program_transform_name
=$ac_optarg ;;
1184 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1186 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1187 pdfdir
=$ac_optarg ;;
1189 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1191 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1194 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1195 |
-silent |
--silent |
--silen |
--sile |
--sil)
1198 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1200 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1202 sbindir
=$ac_optarg ;;
1204 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1205 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1206 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1208 ac_prev
=sharedstatedir
;;
1209 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1210 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1211 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1213 sharedstatedir
=$ac_optarg ;;
1215 -site |
--site |
--sit)
1217 -site=* |
--site=* |
--sit=*)
1220 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1222 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1223 srcdir
=$ac_optarg ;;
1225 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1226 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1227 ac_prev
=sysconfdir
;;
1228 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1229 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1230 sysconfdir
=$ac_optarg ;;
1232 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1233 ac_prev
=target_alias
;;
1234 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1235 target_alias
=$ac_optarg ;;
1237 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1240 -version |
--version |
--versio |
--versi |
--vers |
-V)
1241 ac_init_version
=: ;;
1244 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1247 as_fn_error $?
"invalid package name: $ac_useropt"
1248 ac_useropt_orig
=$ac_useropt
1249 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep
=', ';;
1257 eval with_
$ac_useropt=\
$ac_optarg ;;
1259 -without-* |
--without-*)
1260 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1263 as_fn_error $?
"invalid package name: $ac_useropt"
1264 ac_useropt_orig
=$ac_useropt
1265 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep
=', ';;
1273 eval with_
$ac_useropt=no
;;
1276 # Obsolete; use --with-x.
1279 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1280 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1281 ac_prev
=x_includes
;;
1282 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1283 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1284 x_includes
=$ac_optarg ;;
1286 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1287 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1288 ac_prev
=x_libraries
;;
1289 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1290 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1291 x_libraries
=$ac_optarg ;;
1293 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1298 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1302 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1304 eval $ac_envvar=\
$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 if test -n "$ac_prev"; then
1319 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $?
"missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1326 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val
=\$
$ac_var
1338 # Remove trailing slashes.
1341 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\
$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$
]* | ?
:[\\/]* ) continue;;
1347 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1349 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target
=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x
; then
1361 if test "x$build_alias" = x
; then
1362 cross_compiling
=maybe
1363 elif test "x$build_alias" != "x$host_alias"; then
1369 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1371 test "$silent" = yes && exec 6>/dev
/null
1374 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1375 ac_ls_di
=`ls -di .` &&
1376 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1377 as_fn_error $?
"working directory cannot be determined"
1378 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 as_fn_error $?
"pwd does not report name of working directory"
1382 # Find the source files, if location was not specified.
1383 if test -z "$srcdir"; then
1384 ac_srcdir_defaulted
=yes
1385 # Try the directory containing this script, then the parent directory.
1386 ac_confdir
=`$as_dirname -- "$as_myself" ||
1387 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$as_myself" : 'X\(//\)[^/]' \| \
1389 X"$as_myself" : 'X\(//\)$' \| \
1390 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1391 $as_echo X"$as_myself" |
1392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1414 ac_srcdir_defaulted
=no
1416 if test ! -r "$srcdir/$ac_unique_file"; then
1417 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1418 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1420 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1422 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1432 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 for ac_var
in $ac_precious_vars; do
1435 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1437 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1442 # Report the --help message.
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1448 \`configure' configures courier-authlib 0.69.0 to adapt to many kinds of systems.
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1455 Defaults for the options are specified in brackets.
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking ...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1479 For better control, use the options below.
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1511 --build=BUILD configure
for building on BUILD
[guessed
]
1512 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1516 if test -n "$ac_init_help"; then
1517 case $ac_init_help in
1518 short | recursive
) echo "Configuration of courier-authlib 0.69.0:";;
1523 --disable-option-checking ignore unrecognized
--enable/--with options
1524 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1525 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1526 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1527 --disable-silent-rules verbose build output
(undo
: "make V=0")
1528 --enable-dependency-tracking
1529 do not reject slow dependency extractors
1530 --disable-dependency-tracking
1531 speeds up one-time build
1532 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1533 --enable-static[=PKGS
] build static libraries
[default
=yes]
1534 --enable-fast-install[=PKGS
]
1535 optimize
for fast installation
[default
=yes]
1536 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1537 --enable-ltdl-install install libltdl
1540 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1541 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1542 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1544 --with-aix-soname=aix|svr4|both
1545 shared library versioning
(aka
"SONAME") variant to
1546 provide on AIX
, [default
=aix
].
1547 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1548 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1549 compiler
's sysroot if not specified).
1550 --with-included-ltdl use the GNU ltdl sources included here
1551 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1552 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1553 --with-pkgconfdir=d Install config files in directory
1554 --with-db=gdbm Use the GDBM library.
1555 --with-db=db Use the libdb.a library.
1556 --without-authuserdb Do not include the authuserdb module
1559 --without-authpam Do not include the authpam module
1560 --with-authpam-libraries="libs" Link 'libs
' with authpam, this may be
1561 required for FreeBSD 3.3
1562 --without-authldap Do not include the authldap module
1563 --with-authldaprc=filename Expect to find authldaprc here
1564 --without-authpwd Do not include the authpwd module
1565 --without-authshadow Do not include the authshadow module
1566 --with-authpgsqlrc=filename Expect to find authpgsql here
1567 --without-authpgsql Do not include the authpgsql module
1568 --with-pgsql-libs=DIR Look for pgsql libs in this dir
1569 --with-pgsql-includes=DIR Look for pgsql includes in this dir
1570 --with-authmysqlrc=filename Expect to find authmysql here
1571 --without-authmysql Do not include the authmysql module
1572 --with-mysql-libs=DIR Look for mysql libs in this dir
1573 --with-mysql-includes=DIR Look for mysql includes in this dir
1574 --with-authsqliterc=filename Expect to find authmysql here
1575 --without-authsqlite Do not include the authsqlite module
1576 --with-sqlite-libs=DIR Look for sqlite libs in this dir
1577 --with-sqlite-includes=DIR Look for sqlite includes in this dir
1578 --without-authcustom Do not include the authcustom module
1579 --with-pipeprog=filename Expect to find the pipe-prog here
1580 --without-authpipe Do not include the authpipe module
1581 --with-authdaemonrc=filename Expect to find authdaemonrc here
1582 --with-authdaemonvar=directory Directory where authdaemon.pid and
1583 the listening socket is created
1584 --with-mailuser=user Specify mail user name (defaults to
1585 courier, daemon, admin, bin, or root)
1586 --with-mailgroup=group Specify mail group name (defaults to courier,
1587 daemon, sys, adm, or root)
1588 --without-stdheaderdir Header files will be installed into a directory
1589 not in the compiler's default search path.
1591 Some influential environment variables
:
1592 CC C compiler
command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1595 nonstandard directory
<lib dir
>
1596 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1597 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1598 you have headers
in a nonstandard directory
<include dir
>
1599 CXX C
++ compiler
command
1600 CXXFLAGS C
++ compiler flags
1603 User-defined run-time library search path.
1604 CXXCPP C
++ preprocessor
1606 Use these variables to override the choices made by
`configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1609 Report bugs to <courier-users@lists.sourceforge.net>.
1614 if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1639 .) # We are building in place.
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
1644 ac_srcdir=$srcdir$ac_dir_suffix;
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1661 $SHELL "$ac_srcdir/configure" --help=recursive
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 cd "$ac_pwd" || { ac_status=$?; break; }
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1672 courier-authlib configure 0.69.0
1673 generated by GNU Autoconf 2.69
1675 Copyright (C) 2012 Free Software Foundation, Inc.
1676 This configure script is free software; the Free Software Foundation
1677 gives unlimited permission to copy, distribute and modify it.
1682 ## ------------------------ ##
1683 ## Autoconf initialization. ##
1684 ## ------------------------ ##
1686 # ac_fn_c_try_compile LINENO
1687 # --------------------------
1688 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_compile ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1696 *) ac_try_echo
=$ac_try;;
1698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1702 if test -s conftest.err
; then
1703 grep -v '^ *+' conftest.err
>conftest.er1
1704 cat conftest.er1
>&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.
$ac_objext; then :
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.
$ac_ext >&5
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status
$ac_retval
1722 } # ac_fn_c_try_compile
1724 # ac_fn_cxx_try_compile LINENO
1725 # ----------------------------
1726 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_cxx_try_compile
()
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 rm -f conftest.
$ac_objext
1731 if { { ac_try
="$ac_compile"
1733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_cxx_try_compile
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1771 *) ac_try_echo
=$ac_try;;
1773 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 if test -s conftest.err
; then
1778 grep -v '^ *+' conftest.err
>conftest.er1
1779 cat conftest.er1
>&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i
&& {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.
$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status
$ac_retval
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 rm -f conftest.
$ac_objext conftest
$ac_exeext
1806 if { { ac_try
="$ac_link"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists and can be compiled using the include files in
1848 # INCLUDES, setting the cache variable VAR accordingly.
1849 ac_fn_c_check_header_compile ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1862 if ac_fn_c_try_compile "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_header_compile
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1886 *) ac_try_echo
=$ac_try;;
1888 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=$ac_status
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1918 # ac_fn_c_check_func LINENO FUNC VAR
1919 # ----------------------------------
1920 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1921 ac_fn_c_check_func ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933 #define $2 innocuous_$2
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1941 # include <limits.h>
1943 # include <assert.h>
1948 /* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined __stub_$2 || defined __stub___$2
1970 if ac_fn_c_try_link "$LINENO"; then :
1975 rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 } # ac_fn_c_check_func
1985 # ac_fn_cxx_try_cpp LINENO
1986 # ------------------------
1987 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1988 ac_fn_cxx_try_cpp ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_cpp conftest.$ac_ext"
1993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1994 *) ac_try_echo
=$ac_try;;
1996 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000 if test -s conftest.err
; then
2001 grep -v '^ *+' conftest.err
>conftest.er1
2002 cat conftest.er1
>&5
2003 mv -f conftest.er1 conftest.err
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; } > conftest.i
&& {
2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2008 test ! -s conftest.err
2012 $as_echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.
$ac_ext >&5
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status
$ac_retval
2020 } # ac_fn_cxx_try_cpp
2022 # ac_fn_cxx_try_link LINENO
2023 # -------------------------
2024 # Try to link conftest.$ac_ext, and return whether this succeeded.
2025 ac_fn_cxx_try_link
()
2027 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2028 rm -f conftest.
$ac_objext conftest
$ac_exeext
2029 if { { ac_try
="$ac_link"
2031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2032 *) ac_try_echo=$ac_try;;
2034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2035 $as_echo "$ac_try_echo"; } >&5
2036 (eval "$ac_link") 2>conftest.err
2038 if test -s conftest.err; then
2039 grep -v '^ *+' conftest.err >conftest.er1
2040 cat conftest.er1 >&5
2041 mv -f conftest.er1 conftest.err
2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2044 test $ac_status = 0; } && {
2045 test -z "$ac_cxx_werror_flag" ||
2046 test ! -s conftest.err
2047 } && test -s conftest$ac_exeext && {
2048 test "$cross_compiling" = yes ||
2049 test -x conftest$ac_exeext
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2060 # interfere with the next link command; also delete a directory that is
2061 # left behind by Apple's compiler. We do this before executing the actions.
2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064 as_fn_set_status $ac_retval
2066 } # ac_fn_cxx_try_link
2068 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2069 # ---------------------------------------------
2070 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2072 ac_fn_c_check_decl ()
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 #ifndef $as_decl_name
2090 (void) $as_decl_use;
2092 (void) $as_decl_name;
2100 if ac_fn_c_try_compile "$LINENO"; then :
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 } # ac_fn_c_check_decl
2114 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115 # -------------------------------------------
2116 # Tests whether TYPE exists after having included INCLUDES, setting cache
2117 # variable VAR accordingly.
2118 ac_fn_c_check_type ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2152 if ac_fn_c_try_compile "$LINENO"; then :
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_type
2168 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2169 # -------------------------------------------------------
2170 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2171 # the include files in INCLUDES and setting the cache variable VAR
2173 ac_fn_c_check_header_mongrel ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if eval \${$3+:} false; then :
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if eval \${$3+:} false; then :
2180 $as_echo_n "(cached) " >&6
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 # Is the header compilable?
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2188 $as_echo_n "checking $2 usability... " >&6; }
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_header_compiler=yes
2197 ac_header_compiler=no
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2201 $as_echo "$ac_header_compiler" >&6; }
2203 # Is the header present?
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2205 $as_echo_n "checking $2 presence... " >&6; }
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2210 if ac_fn_c_try_cpp "$LINENO"; then :
2211 ac_header_preproc=yes
2213 ac_header_preproc=no
2215 rm -f conftest.err conftest.i conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2217 $as_echo "$ac_header_preproc" >&6; }
2219 # So? What about this header?
2220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2223 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2229 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2231 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2233 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2235 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 ( $as_echo "## -------------------------------------------------- ##
2239 ## Report this to courier-users@lists.sourceforge.net ##
2240 ## -------------------------------------------------- ##"
2241 ) | sed "s/^/$as_me: WARNING: /" >&2
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2249 eval "$3=\$ac_header_compiler"
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_header_mongrel
2258 cat >config.log <<_ACEOF
2259 This file contains any messages produced by compilers while
2260 running configure, to aid debugging if configure makes a mistake.
2262 It was created by courier-authlib $as_me 0.69.0, which was
2263 generated by GNU Autoconf 2.69. Invocation command line was
2275 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2276 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2277 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2278 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2279 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2281 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2282 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2284 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2285 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2286 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2287 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2288 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2289 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2290 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 $as_echo "PATH: $as_dir"
2315 # Keep a trace of the command line.
2316 # Strip out --no-create and --no-recursion so they do not pile up.
2317 # Strip out --silent because we don't want to record it for future runs.
2318 # Also quote any args containing shell meta-characters.
2319 # Make two passes to allow for proper duplicate-argument suppression.
2323 ac_must_keep_next=false
2329 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2330 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2331 | -silent | --silent | --silen | --sile | --sil)
2334 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2337 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2339 as_fn_append ac_configure_args1 " '$ac_arg'"
2340 if test $ac_must_keep_next = true; then
2341 ac_must_keep_next=false # Got value, back to normal.
2344 *=* | --config-cache | -C | -disable-* | --disable-* \
2345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2347 | -with-* | --with-* | -without-* | --without-* | --x)
2348 case "$ac_configure_args0 " in
2349 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2352 -* ) ac_must_keep_next=true ;;
2355 as_fn_append ac_configure_args " '$ac_arg'"
2360 { ac_configure_args0=; unset ac_configure_args0;}
2361 { ac_configure_args1=; unset ac_configure_args1;}
2363 # When interrupted or exit'd, cleanup temporary files, and complete
2364 # config.log. We remove comments because anyway the quotes in there
2365 # would cause problems or look ugly.
2366 # WARNING: Use '\'' to represent an apostrophe within the trap.
2367 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2368 trap 'exit_status=$?
2369 # Save into config.log some information that might help in debugging.
2373 $as_echo "## ---------------- ##
2374 ## Cache variables. ##
2375 ## ---------------- ##"
2377 # The following way of writing the cache mishandles newlines in values,
2379 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2380 eval ac_val=\$$ac_var
2384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2388 _ | IFS | as_nl) ;; #(
2389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2390 *) { eval $ac_var=; unset $ac_var;} ;;
2395 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2396 *${as_nl}ac_space=\ *)
2398 "s/'\''/'\''\\\\'\'''\''/g;
2399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409 $as_echo "## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##"
2413 for ac_var in $ac_subst_vars
2415 eval ac_val=\$$ac_var
2417 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 $as_echo "$ac_var='\''$ac_val'\''"
2423 if test -n "$ac_subst_files"; then
2424 $as_echo "## ------------------- ##
2425 ## File substitutions. ##
2426 ## ------------------- ##"
2428 for ac_var in $ac_subst_files
2430 eval ac_val=\$$ac_var
2432 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2434 $as_echo "$ac_var='\''$ac_val'\''"
2439 if test -s confdefs.h; then
2440 $as_echo "## ----------- ##
2447 test "$ac_signal" != 0 &&
2448 $as_echo "$as_me: caught signal $ac_signal"
2449 $as_echo "$as_me: exit $exit_status"
2451 rm -f core *.core core.conftest.* &&
2452 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2455 for ac_signal in 1 2 13 15; do
2456 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2461 rm -f -r conftest* confdefs.h
2463 $as_echo "/* confdefs.h */" > confdefs.h
2465 # Predefined preprocessor variables.
2467 cat >>confdefs.h <<_ACEOF
2468 #define PACKAGE_NAME "$PACKAGE_NAME"
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_STRING "$PACKAGE_STRING"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_URL "$PACKAGE_URL"
2492 # Let the site file select an alternate cache file if it wants to.
2493 # Prefer an explicitly selected file to automatically selected ones.
2496 if test -n "$CONFIG_SITE"; then
2497 # We do not want a PATH search for config.site.
2498 case $CONFIG_SITE in #((
2499 -*) ac_site_file1=./$CONFIG_SITE;;
2500 */*) ac_site_file1=$CONFIG_SITE;;
2501 *) ac_site_file1=./$CONFIG_SITE;;
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2518 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 as_fn_error $? "failed to load site
script $ac_site_file
2521 See \
`config.log' for more details" "$LINENO" 5; }
2525 if test -r "$cache_file"; then
2526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2530 $as_echo "$as_me: loading cache $cache_file" >&6;}
2532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2538 $as_echo "$as_me: creating cache $cache_file" >&6;}
2542 # Check that the precious variables saved in the cache have kept the same
2544 ac_cache_corrupted=false
2545 for ac_var in $ac_precious_vars; do
2546 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2547 eval ac_new_set=\$ac_env_${ac_var}_set
2548 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2549 eval ac_new_val=\$ac_env_${ac_var}_value
2550 case $ac_old_set,$ac_new_set in
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2553 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2557 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2561 if test "x$ac_old_val" != "x$ac_new_val"; then
2562 # differences in whitespace do not lead to failure.
2563 ac_old_val_w=`echo x
$ac_old_val`
2564 ac_new_val_w=`echo x
$ac_new_val`
2565 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2567 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2568 ac_cache_corrupted=:
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2571 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2572 eval $ac_var=\$ac_old_val
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2575 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2577 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2580 # Pass precious variables to config.status.
2581 if test "$ac_new_set" = set; then
2583 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2584 *) ac_arg=$ac_var=$ac_new_val ;;
2586 case " $ac_configure_args " in
2587 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2588 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2592 if $ac_cache_corrupted; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2596 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2597 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2599 ## -------------------- ##
2600 ## Main body of script. ##
2601 ## -------------------- ##
2604 ac_cpp='$CPP $CPPFLAGS'
2605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2613 am__api_version='1.15'
2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2617 if test -f "$ac_dir/install-sh"; then
2619 ac_install_sh="$ac_aux_dir/install-sh -c"
2621 elif test -f "$ac_dir/install.sh"; then
2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2625 elif test -f "$ac_dir/shtool"; then
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2631 if test -z "$ac_aux_dir"; then
2632 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2635 # These three variables are undocumented and unsupported,
2636 # and are intended to be withdrawn in a future Autoconf release.
2637 # They can cause serious problems if a builder's source tree is in a directory
2638 # whose full name contains unusual characters.
2639 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2640 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2641 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2644 # Find a good install program. We prefer a C program (faster),
2645 # so one script is as good as another. But avoid the broken or
2646 # incompatible versions:
2647 # SysV /etc/install, /usr/sbin/install
2648 # SunOS /usr/etc/install
2649 # IRIX /sbin/install
2651 # AmigaOS /C/install, which installs bootblocks on floppy discs
2652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2655 # OS/2's system install, which has a completely different semantic
2656 # ./install, which can be erroneously created by make from ./install.sh.
2657 # Reject install programs that cannot install multiple files.
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2660 if test -z "$INSTALL"; then
2661 if ${ac_cv_path_install+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 # Account for people who put trailing slashes in PATH elements.
2670 case $as_dir/ in #((
2671 ./ | .// | /[cC]/* | \
2672 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2673 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2676 # OSF1 and SCO ODT 3.0 have their own names for install.
2677 # Don't use installbsd from OSF since it installs stuff as root
2679 for ac_prog in ginstall scoinst install; do
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2682 if test $ac_prog = install &&
2683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684 # AIX install. It has an incompatible calling convention.
2686 elif test $ac_prog = install &&
2687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2688 # program-specific install script used by HP pwplus--don't use.
2691 rm -rf conftest.one conftest.two conftest.dir
2692 echo one > conftest.one
2693 echo two > conftest.two
2695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2696 test -s conftest.one && test -s conftest.two &&
2697 test -s conftest.dir/conftest.one &&
2698 test -s conftest.dir/conftest.two
2700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2713 rm -rf conftest.one conftest.two conftest.dir
2716 if test "${ac_cv_path_install+set}" = set; then
2717 INSTALL=$ac_cv_path_install
2719 # As a last resort, use the slow shell script. Don't cache a
2720 # value for INSTALL within a source directory, because that will
2721 # break other packages using the cache if that directory is
2722 # removed, or if the value is a relative name.
2723 INSTALL=$ac_install_sh
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2727 $as_echo "$INSTALL" >&6; }
2729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2730 # It thinks the first close brace ends the variable substitution.
2731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2738 $as_echo_n "checking whether build environment is sane... " >&6; }
2739 # Reject unsafe characters in $srcdir or the absolute working directory
2740 # name. Accept space and tab only in the latter.
2744 *[\\\"\#\$\&\'\`$am_lf]*)
2745 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2748 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2749 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2752 # Do 'set' in a subshell so we don't clobber the current shell's
2753 # arguments. Must try -L first in case configure is actually a
2754 # symlink; some systems play weird games with the mod time of symlinks
2755 # (eg FreeBSD returns the mod time of the symlink's containing
2759 for am_try
in 1 2; do
2760 echo "timestamp, slept: $am_has_slept" > conftest.
file
2761 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2762 if test "$*" = "X"; then
2764 set X
`ls -t "$srcdir/configure" conftest.file`
2766 if test "$*" != "X $srcdir/configure conftest.file" \
2767 && test "$*" != "X conftest.file $srcdir/configure"; then
2769 # If neither matched, then we have a broken ls. This can happen
2770 # if, for instance, CONFIG_SHELL is bash and it inherits a
2771 # broken ls alias from the environment. This has actually
2772 # happened. Such a system could not be considered "sane".
2773 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2774 alias in your environment" "$LINENO" 5
2776 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2783 test "$2" = conftest.
file
2789 as_fn_error $?
"newly created file is older than distributed files!
2790 Check your system clock" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794 # If we didn't sleep, we still need to ensure time stamps of config.status and
2795 # generated files are strictly newer.
2797 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2804 test "$program_prefix" != NONE
&&
2805 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2806 # Use a double $ so make ignores it.
2807 test "$program_suffix" != NONE
&&
2808 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2809 # Double any \ or $.
2810 # By default was `s,x,x', remove it if useless.
2811 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2812 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2814 # Expand $ac_aux_dir to an absolute path.
2815 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2817 if test x
"${MISSING+set}" != xset
; then
2820 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2822 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --is-lightweight"; then
2827 am_missing_run
="$MISSING "
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2831 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2834 if test x
"${install_sh+set}" != xset
; then
2837 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2839 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2843 # Installed binaries are usually stripped using 'strip' when the user
2844 # run "make install-strip". However 'strip' might not be the right
2845 # tool to use in cross-compilation environments, therefore Automake
2846 # will honor the 'STRIP' environment variable to overrule this program.
2847 if test "$cross_compiling" != no
; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2850 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_STRIP+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$STRIP"; then
2857 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2866 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 STRIP
=$ac_cv_prog_STRIP
2877 if test -n "$STRIP"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879 $as_echo "$STRIP" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2887 if test -z "$ac_cv_prog_STRIP"; then
2889 # Extract the first word of "strip", so it can be a program name with args.
2890 set dummy strip
; ac_word
=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$ac_ct_STRIP"; then
2897 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir
=.
2904 for ac_exec_ext
in '' $ac_executable_extensions; do
2905 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_ac_ct_STRIP
="strip"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2917 if test -n "$ac_ct_STRIP"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2919 $as_echo "$ac_ct_STRIP" >&6; }
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2925 if test "x$ac_ct_STRIP" = x
; then
2928 case $cross_compiling:$ac_tool_warned in
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned
=yes ;;
2937 STRIP
="$ac_cv_prog_STRIP"
2941 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2944 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2945 if test -z "$MKDIR_P"; then
2946 if ${ac_cv_path_mkdir+:} false
; then :
2947 $as_echo_n "(cached) " >&6
2949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2950 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2953 test -z "$as_dir" && as_dir
=.
2954 for ac_prog
in mkdir gmkdir
; do
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2957 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2958 'mkdir (GNU coreutils) '* | \
2959 'mkdir (coreutils) '* | \
2960 'mkdir (fileutils) '4.1*)
2961 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2971 test -d .
/--version && rmdir .
/--version
2972 if test "${ac_cv_path_mkdir+set}" = set; then
2973 MKDIR_P
="$ac_cv_path_mkdir -p"
2975 # As a last resort, use the slow shell script. Don't cache a
2976 # value for MKDIR_P within a source directory, because that will
2977 # break other packages using the cache if that directory is
2978 # removed, or if the value is a relative name.
2979 MKDIR_P
="$ac_install_sh -d"
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2983 $as_echo "$MKDIR_P" >&6; }
2985 for ac_prog
in gawk mawk nawk
awk
2987 # Extract the first word of "$ac_prog", so it can be a program name with args.
2988 set dummy
$ac_prog; ac_word
=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_AWK+:} false
; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$AWK"; then
2995 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir
=.
3002 for ac_exec_ext
in '' $ac_executable_extensions; do
3003 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_AWK
="$ac_prog"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015 if test -n "$AWK"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3017 $as_echo "$AWK" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3024 test -n "$AWK" && break
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3028 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3030 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3031 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3032 $as_echo_n "(cached) " >&6
3034 cat >conftest.
make <<\_ACEOF
3037 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3039 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3040 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3042 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3044 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3048 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 $as_echo "yes" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 SET_MAKE
="MAKE=${MAKE-make}"
3058 rm -rf .tst
2>/dev
/null
3059 mkdir .tst
2>/dev
/null
3060 if test -d .tst
; then
3065 rmdir .tst
2>/dev
/null
3067 # Check whether --enable-silent-rules was given.
3068 if test "${enable_silent_rules+set}" = set; then :
3069 enableval
=$enable_silent_rules;
3072 case $enable_silent_rules in # (((
3073 yes) AM_DEFAULT_VERBOSITY
=0;;
3074 no
) AM_DEFAULT_VERBOSITY
=1;;
3075 *) AM_DEFAULT_VERBOSITY
=1;;
3077 am_make
=${MAKE-make}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3079 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3080 if ${am_cv_make_support_nested_variables+:} false
; then :
3081 $as_echo_n "(cached) " >&6
3083 if $as_echo 'TRUE=$(BAR$(V))
3089 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3090 am_cv_make_support_nested_variables
=yes
3092 am_cv_make_support_nested_variables
=no
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3096 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 if test $am_cv_make_support_nested_variables = yes; then
3099 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3101 AM_V
=$AM_DEFAULT_VERBOSITY
3102 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3106 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3107 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3108 # is not polluted with repeated "-I."
3109 am__isrc
=' -I$(srcdir)'
3110 # test to see if srcdir already configured
3111 if test -f $srcdir/config.status
; then
3112 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3116 # test whether we have cygpath
3117 if test -z "$CYGPATH_W"; then
3118 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3119 CYGPATH_W
='cygpath -w'
3126 # Define the identity of the package.
3127 PACKAGE
='courier-authlib'
3131 cat >>confdefs.h
<<_ACEOF
3132 #define PACKAGE "$PACKAGE"
3136 cat >>confdefs.h
<<_ACEOF
3137 #define VERSION "$VERSION"
3140 # Some tools Automake needs.
3142 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3145 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3148 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3151 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3154 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3156 # For better backward compatibility. To be removed once Automake 1.9.x
3157 # dies out for good. For more background, see:
3158 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3159 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3160 mkdir_p
='$(MKDIR_P)'
3162 # We need awk for the "check" target (and possibly the TAP driver). The
3163 # system "awk" is bad on some platforms.
3164 # Always define AMTAR for backward compatibility. Yes, it's still used
3165 # in the wild :-( We should find a proper way to deprecate it ...
3169 # We'll loop over all known methods to create a tar archive until one works.
3170 _am_tools
='gnutar pax cpio none'
3172 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3179 # POSIX will say in a future version that running "rm -f" with no argument
3180 # is OK; and we want to be able to make that assumption in our Makefile
3181 # recipes. So use an aggressive probe to check that the usage we want is
3182 # actually supported "in the wild" to an acceptable degree.
3183 # See automake bug#10828.
3184 # To make any issue more visible, cause the running configure to be aborted
3185 # by default if the 'rm' program in use doesn't match our expectations; the
3186 # user can still override this though.
3187 if rm -f && rm -fr && rm -rf; then : OK
; else
3191 Your 'rm' program seems unable to run without file operands specified
3192 on the command line, even when the '-f' option is present. This is contrary
3193 to the behaviour of most rm programs out there, and not conforming with
3194 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3196 Please tell bug-automake@gnu.org about your system, including the value
3197 of your $PATH and any error possibly output before this message. This
3198 can help us improve future automake versions.
3201 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3202 echo 'Configuration will proceed anyway, since you have set the' >&2
3203 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3207 Aborting the configuration process, to ensure you take notice of the issue.
3209 You can download and install GNU coreutils to get an 'rm' implementation
3210 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3212 If you want to complete the configuration process using your problematic
3213 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3214 to "yes", and re-run configure.
3217 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3221 ac_config_headers
="$ac_config_headers courier_auth_config.h"
3223 >confdefs.h
# Kill PACKAGE_ macros
3225 LPATH
="$PATH:/usr/local/bin"
3227 for ac_prog
in gawk mawk nawk
awk
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy
$ac_prog; ac_word
=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_AWK+:} false
; then :
3234 $as_echo_n "(cached) " >&6
3236 if test -n "$AWK"; then
3237 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3243 test -z "$as_dir" && as_dir
=.
3244 for ac_exec_ext
in '' $ac_executable_extensions; do
3245 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_AWK
="$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 if test -n "$AWK"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3259 $as_echo "$AWK" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3266 test -n "$AWK" && break
3270 ac_cpp
='$CPP $CPPFLAGS'
3271 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3274 if test -n "$ac_tool_prefix"; then
3275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3276 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3278 $as_echo_n "checking for $ac_word... " >&6; }
3279 if ${ac_cv_prog_CC+:} false
; then :
3280 $as_echo_n "(cached) " >&6
3282 if test -n "$CC"; then
3283 ac_cv_prog_CC
="$CC" # Let the user override the test.
3285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3289 test -z "$as_dir" && as_dir
=.
3290 for ac_exec_ext
in '' $ac_executable_extensions; do
3291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3292 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 if test -n "$CC"; then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3305 $as_echo "$CC" >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308 $as_echo "no" >&6; }
3313 if test -z "$ac_cv_prog_CC"; then
3315 # Extract the first word of "gcc", so it can be a program name with args.
3316 set dummy gcc
; ac_word
=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$ac_ct_CC"; then
3323 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3332 ac_cv_prog_ac_ct_CC
="gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3343 if test -n "$ac_ct_CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345 $as_echo "$ac_ct_CC" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3351 if test "x$ac_ct_CC" = x
; then
3354 case $cross_compiling:$ac_tool_warned in
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 ac_tool_warned
=yes ;;
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false
; then :
3373 $as_echo_n "(cached) " >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC
="$CC" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_exec_ext
in '' $ac_executable_extensions; do
3384 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc
; ac_word
=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false
; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC
="$CC" # Let the user override the test.
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected
=yes
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy
$ac_cv_prog_CC
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3447 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3453 if test -n "$CC"; then
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3455 $as_echo "$CC" >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3458 $as_echo "no" >&6; }
3463 if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog
in cl.exe
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false
; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC
="$CC" # Let the user override the test.
3477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir
=.
3482 for ac_exec_ext
in '' $ac_executable_extensions; do
3483 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3504 test -n "$CC" && break
3507 if test -z "$CC"; then
3509 for ac_prog
in cl.exe
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy
$ac_prog; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir
=.
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3528 ac_cv_prog_ac_ct_CC
="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$ac_ct_CC" && break
3551 if test "x$ac_ct_CC" = x
; then
3554 case $cross_compiling:$ac_tool_warned in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned
=yes ;;
3567 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569 as_fn_error $?
"no acceptable C compiler found in \$PATH
3570 See \`config.log' for more details" "$LINENO" 5; }
3572 # Provide some information about the compiler.
3573 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3576 for ac_option
in --version -v -V -qversion; do
3577 { { ac_try
="$ac_compiler $ac_option >&5"
3579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3583 $as_echo "$ac_try_echo"; } >&5
3584 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3586 if test -s conftest.err; then
3588 ... rest of stderr output deleted ...
3589 10q' conftest.err >conftest.er1
3590 cat conftest.er1 >&5
3592 rm -f conftest.er1 conftest.err
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }
3597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3598 /* end confdefs.h. */
3608 ac_clean_files_save=$ac_clean_files
3609 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3610 # Try to create an executable without -o first, disregard a.out.
3611 # It will help us diagnose broken compilers, and finding out an intuition
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3614 $as_echo_n "checking whether the C compiler works... " >&6; }
3615 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3617 # The possible output files:
3618 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3621 for ac_file in $ac_files
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3630 if { { ac_try="$ac_link_default"
3632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3633 *) ac_try_echo
=$ac_try;;
3635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link_default") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; then :
3641 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3642 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3643 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3644 # so that the user can short-circuit this test for compilers unknown to
3646 for ac_file
in $ac_files ''
3648 test -f "$ac_file" ||
continue
3650 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3653 # We found the default executable, but exeext='' is most
3657 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3659 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 # We set ac_cv_exeext here because the later test for it is not
3662 # safe: cross compilers may not add the suffix if given an `-o'
3663 # argument, so we may need to know it at that point already.
3664 # Even if this section looks crufty: it has the advantage of
3671 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3676 if test -z "$ac_file"; then :
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.
$ac_ext >&5
3682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error
77 "C compiler cannot create executables
3685 See \`config.log' for more details" "$LINENO" 5; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3688 $as_echo "yes" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3691 $as_echo_n "checking for C compiler default output file name... " >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3693 $as_echo "$ac_file" >&6; }
3694 ac_exeext
=$ac_cv_exeext
3696 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3697 ac_clean_files
=$ac_clean_files_save
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3699 $as_echo_n "checking for suffix of executables... " >&6; }
3700 if { { ac_try
="$ac_link"
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_link") 2>&5
3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3710 test $ac_status = 0; }; then :
3711 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3712 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3713 # work properly (i.e., refer to `conftest.exe'), while it won't with
3715 for ac_file
in conftest.exe conftest conftest.
*; do
3716 test -f "$ac_file" ||
continue
3718 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3719 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3725 { { $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 $?
"cannot compute suffix of executables: cannot compile and link
3728 See \`config.log' for more details" "$LINENO" 5; }
3730 rm -f conftest conftest
$ac_cv_exeext
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3732 $as_echo "$ac_cv_exeext" >&6; }
3734 rm -f conftest.
$ac_ext
3735 EXEEXT
=$ac_cv_exeext
3737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3743 FILE *f = fopen ("conftest.out", "w");
3744 return ferror (f) || fclose (f) != 0;
3750 ac_clean_files
="$ac_clean_files conftest.out"
3751 # Check that the compiler produces executables we can run. If not, either
3752 # the compiler is broken, or we cross compile.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3754 $as_echo_n "checking whether we are cross compiling... " >&6; }
3755 if test "$cross_compiling" != yes; then
3756 { { ac_try
="$ac_link"
3758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_link") 2>&5
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }
3767 if { ac_try='./conftest$ac_cv_exeext'
3768 { { case "(($ac_try" in
3769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3770 *) ac_try_echo
=$ac_try;;
3772 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 $as_echo "$ac_try_echo"; } >&5
3774 (eval "$ac_try") 2>&5
3776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }; }; then
3780 if test "$cross_compiling" = maybe
; then
3783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785 as_fn_error $?
"cannot run C compiled programs.
3786 If you meant to cross compile, use \`--host'.
3787 See \`config.log' for more details" "$LINENO" 5; }
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3792 $as_echo "$cross_compiling" >&6; }
3794 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3795 ac_clean_files
=$ac_clean_files_save
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3797 $as_echo_n "checking for suffix of object files... " >&6; }
3798 if ${ac_cv_objext+:} false
; then :
3799 $as_echo_n "(cached) " >&6
3801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3812 rm -f conftest.o conftest.obj
3813 if { { ac_try
="$ac_compile"
3815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_compile") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 for ac_file in conftest.o conftest.obj conftest.*; do
3825 test -f "$ac_file" || continue;
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3828 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3833 $as_echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3839 See \
`config.log' for more details" "$LINENO" 5; }
3841 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3844 $as_echo "$ac_cv_objext" >&6; }
3845 OBJEXT=$ac_cv_objext
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3848 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3849 if ${ac_cv_c_compiler_gnu+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3866 if ac_fn_c_try_compile "$LINENO"; then :
3871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3876 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3877 if test $ac_compiler_gnu = yes; then
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3885 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3886 if ${ac_cv_prog_cc_g+:} false; then :
3887 $as_echo_n "(cached) " >&6
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 if ac_fn_c_try_compile "$LINENO"; then :
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3919 if ac_fn_c_try_compile "$LINENO"; then :
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_c_try_compile "$LINENO"; then :
3938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 ac_c_werror_flag=$ac_save_c_werror_flag
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3946 $as_echo "$ac_cv_prog_cc_g" >&6; }
3947 if test "$ac_test_CFLAGS" = set; then
3948 CFLAGS=$ac_save_CFLAGS
3949 elif test $ac_cv_prog_cc_g = yes; then
3950 if test "$GCC" = yes; then
3956 if test "$GCC" = yes; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3963 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3964 if ${ac_cv_prog_cc_c89+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 ac_cv_prog_cc_c89=no
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3975 struct buf { int x; };
3976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3977 static char *e (p, i)
3983 static char *f (char * (*g) (char **, int), char **p, ...)
3988 s = g (p, va_arg (v,int));
3993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3994 function prototypes and stuff, but not '\xHH' hex character constants.
3995 These don't provoke an error unfortunately, instead are silently treated
3996 as 'x'. The following induces an error, until -std is added to get
3997 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3998 array size at least. It's necessary to write '\x00'==0 to get something
3999 that's true only with -std. */
4000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4003 inside strings and character constants. */
4005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4007 int test (int i, double x);
4008 struct s1 {int (*f) (int a);};
4009 struct s2 {int (*f) (double a);};
4010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4016 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4022 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4024 CC="$ac_save_CC $ac_arg"
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_c89=$ac_arg
4028 rm -f core conftest.err conftest.$ac_objext
4029 test "x$ac_cv_prog_cc_c89" != "xno" && break
4031 rm -f conftest.$ac_ext
4036 case "x$ac_cv_prog_cc_c89" in
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4039 $as_echo "none needed" >&6; } ;;
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4042 $as_echo "unsupported" >&6; } ;;
4044 CC="$CC $ac_cv_prog_cc_c89"
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4046 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4048 if test "x$ac_cv_prog_cc_c89" != xno; then :
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4059 ac_cpp='$CPP $CPPFLAGS'
4060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4064 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4065 if ${am_cv_prog_cc_c_o+:} false; then :
4066 $as_echo_n "(cached) " >&6
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 # Make sure it works both with $CC and with simple cc.
4080 # Following AC_PROG_CC_C_O, we do the test twice because some
4081 # compilers refuse to overwrite an existing .o file with -o,
4082 # though they will create one.
4083 am_cv_prog_cc_c_o=yes
4085 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4086 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } \
4090 && test -f conftest2.$ac_objext; then
4093 am_cv_prog_cc_c_o=no
4097 rm -f core conftest*
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4101 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4102 if test "$am_cv_prog_cc_c_o" != yes; then
4103 # Losing compiler, so override with the script.
4104 # FIXME: It is wrong to rewrite CC.
4105 # But if we don't then we get into trouble of one sort or another.
4106 # A longer-term fix would be to have automake use am__CC in this case,
4107 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4108 CC="$am_aux_dir/compile $CC"
4111 ac_cpp='$CPP $CPPFLAGS'
4112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 DEPDIR="${am__leading_dot}deps"
4118 ac_config_commands="$ac_config_commands depfiles"
4121 am_make=${MAKE-make}
4122 cat > confinc << 'END'
4124 @echo this is the am__doit target
4127 # If we don't find an include directive, just comment out the code.
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4129 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4133 # First try GNU make style include.
4134 echo "include confinc" > confmf
4135 # Ignore all kinds of additional output from 'make'.
4136 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4137 *the\ am__doit\ target*)
4143 # Now try BSD make style include.
4144 if test "$am__include" = "#"; then
4145 echo '.include "confinc"' > confmf
4146 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4147 *the\ am__doit\ target*)
4148 am__include=.include
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4157 $as_echo "$_am_result" >&6; }
4158 rm -f confinc confmf
4160 # Check whether --enable-dependency-tracking was given.
4161 if test "${enable_dependency_tracking+set}" = set; then :
4162 enableval=$enable_dependency_tracking;
4165 if test "x$enable_dependency_tracking" != xno; then
4166 am_depcomp="$ac_aux_dir/depcomp"
4170 if test "x$enable_dependency_tracking" != xno; then
4180 depcc="$CC" am_compiler_list=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4183 $as_echo_n "checking dependency style of $depcc... " >&6; }
4184 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4188 # We make a subdir and do the tests there. Otherwise we can end up
4189 # making bogus files that we don't know about and never remove. For
4190 # instance it was reported that on HP-UX the gcc test will end up
4191 # making a dummy file named 'D' -- because '-MD' means "put the output
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4207 am_cv_CC_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4212 case " $depcc " in #(
4213 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4228 # Solaris 10 /bin/sh.
4229 echo '/* dummy */' > sub/conftst$i.h
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4233 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle '-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs.
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4245 # After this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested.
4247 if test "x$enable_dependency_tracking" = xyes; then
4253 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254 # This compiler won't grok '-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4262 if depmode=$depmode \
4263 source=sub/conftest.c object=$am__obj \
4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266 >/dev/null 2>conftest.err &&
4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CC_dependencies_compiler_type=$depmode
4289 am_cv_CC_dependencies_compiler_type=none
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4301 am__fastdepCC_FALSE='#'
4303 am__fastdepCC_TRUE='#'
4304 am__fastdepCC_FALSE=
4309 ac_cpp='$CXXCPP $CPPFLAGS'
4310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4313 if test -z "$CXX"; then
4314 if test -n "$CCC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_CXX+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 if test -n "$CXX"; then
4328 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 if test -n "$CXX"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4350 $as_echo "$CXX" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$CXX" && break
4360 if test -z "$CXX"; then
4362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 if test -n "$ac_ct_CXX"; then
4372 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_prog_ac_ct_CXX="$ac_prog"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4392 if test -n "$ac_ct_CXX"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4394 $as_echo "$ac_ct_CXX" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4401 test -n "$ac_ct_CXX" && break
4404 if test "x$ac_ct_CXX" = x; then
4407 case $cross_compiling:$ac_tool_warned in
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4419 # Provide some information about the compiler.
4420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4423 for ac_option in --version -v -V -qversion; do
4424 { { ac_try="$ac_compiler $ac_option >&5"
4426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4427 *) ac_try_echo
=$ac_try;;
4429 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4430 $as_echo "$ac_try_echo"; } >&5
4431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4433 if test -s conftest.err
; then
4435 ... rest of stderr output deleted ...
4436 10q' conftest.err
>conftest.er1
4437 cat conftest.er1
>&5
4439 rm -f conftest.er1 conftest.err
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4445 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4446 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4447 $as_echo_n "(cached) " >&6
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4463 if ac_fn_cxx_try_compile
"$LINENO"; then :
4468 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4469 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4473 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4474 if test $ac_compiler_gnu = yes; then
4479 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4480 ac_save_CXXFLAGS
=$CXXFLAGS
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4482 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4483 if ${ac_cv_prog_cxx_g+:} false
; then :
4484 $as_echo_n "(cached) " >&6
4486 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4487 ac_cxx_werror_flag
=yes
4490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4501 if ac_fn_cxx_try_compile
"$LINENO"; then :
4502 ac_cv_prog_cxx_g
=yes
4505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4516 if ac_fn_cxx_try_compile
"$LINENO"; then :
4519 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4532 if ac_fn_cxx_try_compile
"$LINENO"; then :
4533 ac_cv_prog_cxx_g
=yes
4535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4540 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4543 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4544 if test "$ac_test_CXXFLAGS" = set; then
4545 CXXFLAGS
=$ac_save_CXXFLAGS
4546 elif test $ac_cv_prog_cxx_g = yes; then
4547 if test "$GXX" = yes; then
4553 if test "$GXX" = yes; then
4560 ac_cpp
='$CPP $CPPFLAGS'
4561 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4565 depcc
="$CXX" am_compiler_list
=
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4568 $as_echo_n "checking dependency style of $depcc... " >&6; }
4569 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4570 $as_echo_n "(cached) " >&6
4572 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4573 # We make a subdir and do the tests there. Otherwise we can end up
4574 # making bogus files that we don't know about and never remove. For
4575 # instance it was reported that on HP-UX the gcc test will end up
4576 # making a dummy file named 'D' -- because '-MD' means "put the output
4580 # Copy depcomp to subdir because otherwise we won't find it if we're
4581 # using a relative directory.
4582 cp "$am_depcomp" conftest.dir
4584 # We will build objects and dependencies in a subdirectory because
4585 # it helps to detect inapplicable dependency modes. For instance
4586 # both Tru64's cc and ICC support -MD to output dependencies as a
4587 # side effect of compilation, but ICC will put the dependencies in
4588 # the current directory while Tru64 will put them in the object
4592 am_cv_CXX_dependencies_compiler_type
=none
4593 if test "$am_compiler_list" = ""; then
4594 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597 case " $depcc " in #(
4598 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4601 for depmode
in $am_compiler_list; do
4602 # Setup a source with many dependencies, because some compilers
4603 # like to wrap large dependency lists on column 80 (with \), and
4604 # we should not choose a depcomp mode which is confused by this.
4606 # We need to recreate these files for each test, as the compiler may
4607 # overwrite some of them when testing with obscure command lines.
4608 # This happens at least with the AIX C compiler.
4610 for i
in 1 2 3 4 5 6; do
4611 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4612 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4613 # Solaris 10 /bin/sh.
4614 echo '/* dummy */' > sub
/conftst
$i.h
4616 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4618 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4619 # mode. It turns out that the SunPro C++ compiler does not properly
4620 # handle '-M -o', and we need to detect this. Also, some Intel
4621 # versions had trouble with output in subdirs.
4622 am__obj
=sub
/conftest.
${OBJEXT-o}
4623 am__minus_obj
="-o $am__obj"
4626 # This depmode causes a compiler race in universal mode.
4627 test "$am__universal" = false ||
continue
4630 # After this tag, mechanisms are not by side-effect, so they'll
4631 # only be used when explicitly requested.
4632 if test "x$enable_dependency_tracking" = xyes
; then
4638 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4639 # This compiler won't grok '-c -o', but also, the minuso test has
4640 # not run yet. These depmodes are late enough in the game, and
4641 # so weak that their functioning should not be impacted.
4642 am__obj
=conftest.
${OBJEXT-o}
4647 if depmode
=$depmode \
4648 source=sub
/conftest.c object
=$am__obj \
4649 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4650 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4651 >/dev
/null
2>conftest.err
&&
4652 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4653 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4654 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4655 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4656 # icc doesn't choke on unknown options, it will just issue warnings
4657 # or remarks (even with -Werror). So we grep stderr for any message
4658 # that says an option was ignored or not supported.
4659 # When given -MP, icc 7.0 and 7.1 complain thusly:
4660 # icc: Command line warning: ignoring option '-M'; no argument required
4661 # The diagnosis changed in icc 8.0:
4662 # icc: Command line remark: option '-MP' not supported
4663 if (grep 'ignoring option' conftest.err ||
4664 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4665 am_cv_CXX_dependencies_compiler_type
=$depmode
4674 am_cv_CXX_dependencies_compiler_type
=none
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4679 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4680 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4683 test "x$enable_dependency_tracking" != xno \
4684 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4685 am__fastdepCXX_TRUE
=
4686 am__fastdepCXX_FALSE
='#'
4688 am__fastdepCXX_TRUE
='#'
4689 am__fastdepCXX_FALSE
=
4694 ac_cpp
='$CPP $CPPFLAGS'
4695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4699 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4700 # On Suns, sometimes $CPP names a directory.
4701 if test -n "$CPP" && test -d "$CPP"; then
4704 if test -z "$CPP"; then
4705 if ${ac_cv_prog_CPP+:} false
; then :
4706 $as_echo_n "(cached) " >&6
4708 # Double quotes because CPP needs to be expanded
4709 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4712 for ac_c_preproc_warn_flag
in '' yes
4714 # Use a header file that comes with gcc, so configuring glibc
4715 # with a fresh cross-compiler works.
4716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4717 # <limits.h> exists even on freestanding compilers.
4718 # On the NeXT, cc -E runs the code through the compiler's parser,
4719 # not just through cpp. "Syntax error" is here to catch this case.
4720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4723 # include <limits.h>
4725 # include <assert.h>
4729 if ac_fn_c_try_cpp
"$LINENO"; then :
4732 # Broken: fails on valid input.
4735 rm -f conftest.err conftest.i conftest.
$ac_ext
4737 # OK, works on sane cases. Now check whether nonexistent headers
4738 # can be detected and how.
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741 #include <ac_nonexistent.h>
4743 if ac_fn_c_try_cpp
"$LINENO"; then :
4744 # Broken: success on invalid input.
4747 # Passes both tests.
4751 rm -f conftest.err conftest.i conftest.
$ac_ext
4754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4755 rm -f conftest.i conftest.err conftest.
$ac_ext
4756 if $ac_preproc_ok; then :
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4769 $as_echo "$CPP" >&6; }
4771 for ac_c_preproc_warn_flag
in '' yes
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4782 # include <limits.h>
4784 # include <assert.h>
4788 if ac_fn_c_try_cpp
"$LINENO"; then :
4791 # Broken: fails on valid input.
4794 rm -f conftest.err conftest.i conftest.
$ac_ext
4796 # OK, works on sane cases. Now check whether nonexistent headers
4797 # can be detected and how.
4798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 #include <ac_nonexistent.h>
4802 if ac_fn_c_try_cpp
"$LINENO"; then :
4803 # Broken: success on invalid input.
4806 # Passes both tests.
4810 rm -f conftest.err conftest.i conftest.
$ac_ext
4813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4814 rm -f conftest.i conftest.err conftest.
$ac_ext
4815 if $ac_preproc_ok; then :
4818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4820 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4821 See \`config.log' for more details" "$LINENO" 5; }
4825 ac_cpp
='$CPP $CPPFLAGS'
4826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4832 $as_echo_n "checking whether ln -s works... " >&6; }
4834 if test "$LN_S" = "ln -s"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4839 $as_echo "no, using $LN_S" >&6; }
4844 for ac_prog
in perl5 perl
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy
$ac_prog; ac_word
=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_path_SYSCONFTOOL_PERL+:} false
; then :
4851 $as_echo_n "(cached) " >&6
4853 case $SYSCONFTOOL_PERL in
4855 ac_cv_path_SYSCONFTOOL_PERL
="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
4858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4862 test -z "$as_dir" && as_dir
=.
4863 for ac_exec_ext
in '' $ac_executable_extensions; do
4864 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_SYSCONFTOOL_PERL
="$as_dir/$ac_word$ac_exec_ext"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 SYSCONFTOOL_PERL
=$ac_cv_path_SYSCONFTOOL_PERL
4877 if test -n "$SYSCONFTOOL_PERL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5
4879 $as_echo "$SYSCONFTOOL_PERL" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4886 test -n "$SYSCONFTOOL_PERL" && break
4888 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL
="perl"
4891 if test "$SYSCONFTOOL_PERL" = "perl"
4893 as_fn_error $?
"perl not found - please install perl" "$LINENO" 5
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5
4897 $as_echo_n "checking for sysconftool...... " >&6; }
4899 for sysconf_dir
in $ac_aux_dir . .. ..
/..
4901 if test -f $srcdir/$sysconf_dir/sysconftool
4903 SYSCONFTOOL
=$srcdir/$sysconf_dir/sysconftool
4908 if test "$SYSCONFTOOL" = ""
4910 as_fn_error $?
"sysconftool missing - not in the package" "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5
4914 $as_echo "$SYSCONFTOOL" >&6; }
4915 SYSCONFTOOL
="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4927 macro_version
='2.4.6'
4928 macro_revision
='2.4.6'
4942 ltmain
=$ac_aux_dir/ltmain.sh
4944 # Make sure we can run config.sub.
4945 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4946 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4949 $as_echo_n "checking build system type... " >&6; }
4950 if ${ac_cv_build+:} false
; then :
4951 $as_echo_n "(cached) " >&6
4953 ac_build_alias
=$build_alias
4954 test "x$ac_build_alias" = x
&&
4955 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4956 test "x$ac_build_alias" = x
&&
4957 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4958 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4959 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4963 $as_echo "$ac_cv_build" >&6; }
4964 case $ac_cv_build in
4966 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4969 ac_save_IFS
=$IFS; IFS
='-'
4975 # Remember, the first character of IFS is used to create $*,
4976 # except with old shells:
4979 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4983 $as_echo_n "checking host system type... " >&6; }
4984 if ${ac_cv_host+:} false
; then :
4985 $as_echo_n "(cached) " >&6
4987 if test "x$host_alias" = x
; then
4988 ac_cv_host
=$ac_cv_build
4990 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4991 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4996 $as_echo "$ac_cv_host" >&6; }
4999 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5002 ac_save_IFS
=$IFS; IFS
='-'
5008 # Remember, the first character of IFS is used to create $*,
5009 # except with old shells:
5012 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5015 # Backslashify metacharacters that are still active within
5016 # double-quoted strings.
5017 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5019 # Same as above, but do not quote variable references.
5020 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5022 # Sed substitution to delay expansion of an escaped shell variable in a
5023 # double_quote_subst'ed string.
5024 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5026 # Sed substitution to delay expansion of an escaped single quote.
5027 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5029 # Sed substitution to avoid accidental globbing in evaled expressions
5030 no_glob_subst
='s/\*/\\\*/g'
5032 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5037 $as_echo_n "checking how to print strings... " >&6; }
5038 # Test print first, because it will be a builtin if present.
5039 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5040 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5042 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5045 # Use this function as a fallback that always works.
5046 func_fallback_echo ()
5048 eval 'cat <<_LTECHO_EOF
5052 ECHO='func_fallback_echo
'
5055 # func_echo_all arg...
5056 # Invoke $ECHO with all args, space-separated.
5063 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5064 $as_echo "printf" >&6; } ;;
5065 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5066 $as_echo "print -r" >&6; } ;;
5067 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5068 $as_echo "cat" >&6; } ;;
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5086 if ${ac_cv_path_SED+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5090 for ac_i in 1 2 3 4 5 6 7; do
5091 ac_script="$ac_script$as_nl$ac_script"
5093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5094 { ac_script=; unset ac_script;}
5095 if test -z "$SED"; then
5096 ac_path_SED_found=false
5097 # Loop through the user's path and
test for each of PROGNAME-LIST
5098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir
=.
5103 for ac_prog
in sed gsed
; do
5104 for ac_exec_ext
in '' $ac_executable_extensions; do
5105 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5106 as_fn_executable_p
"$ac_path_SED" ||
continue
5107 # Check for GNU ac_path_SED and select it if it is found.
5108 # Check for GNU $ac_path_SED
5109 case `"$ac_path_SED" --version 2>&1` in
5111 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5114 $as_echo_n 0123456789 >"conftest.in"
5117 cat "conftest.in" "conftest.in" >"conftest.tmp"
5118 mv "conftest.tmp" "conftest.in"
5119 cp "conftest.in" "conftest.nl"
5120 $as_echo '' >> "conftest.nl"
5121 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5122 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5123 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5124 if test $ac_count -gt ${ac_path_SED_max-0}; then
5125 # Best one so far, save it but keep looking for a better one
5126 ac_cv_path_SED
="$ac_path_SED"
5127 ac_path_SED_max
=$ac_count
5129 # 10*(2^10) chars as input seems more than enough
5130 test $ac_count -gt 10 && break
5132 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5135 $ac_path_SED_found && break 3
5140 if test -z "$ac_cv_path_SED"; then
5141 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5149 $as_echo "$ac_cv_path_SED" >&6; }
5150 SED
="$ac_cv_path_SED"
5153 test -z "$SED" && SED
=sed
5154 Xsed
="$SED -e 1s/^X//"
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5167 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5168 if ${ac_cv_path_GREP+:} false
; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -z "$GREP"; then
5172 ac_path_GREP_found
=false
5173 # Loop through the user's path and test for each of PROGNAME-LIST
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_prog
in grep ggrep
; do
5180 for ac_exec_ext
in '' $ac_executable_extensions; do
5181 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5182 as_fn_executable_p
"$ac_path_GREP" ||
continue
5183 # Check for GNU ac_path_GREP and select it if it is found.
5184 # Check for GNU $ac_path_GREP
5185 case `"$ac_path_GREP" --version 2>&1` in
5187 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5190 $as_echo_n 0123456789 >"conftest.in"
5193 cat "conftest.in" "conftest.in" >"conftest.tmp"
5194 mv "conftest.tmp" "conftest.in"
5195 cp "conftest.in" "conftest.nl"
5196 $as_echo 'GREP' >> "conftest.nl"
5197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5199 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5201 # Best one so far, save it but keep looking for a better one
5202 ac_cv_path_GREP
="$ac_path_GREP"
5203 ac_path_GREP_max
=$ac_count
5205 # 10*(2^10) chars as input seems more than enough
5206 test $ac_count -gt 10 && break
5208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5211 $ac_path_GREP_found && break 3
5216 if test -z "$ac_cv_path_GREP"; then
5217 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 ac_cv_path_GREP
=$GREP
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5225 $as_echo "$ac_cv_path_GREP" >&6; }
5226 GREP
="$ac_cv_path_GREP"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5230 $as_echo_n "checking for egrep... " >&6; }
5231 if ${ac_cv_path_EGREP+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5235 then ac_cv_path_EGREP
="$GREP -E"
5237 if test -z "$EGREP"; then
5238 ac_path_EGREP_found
=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5241 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5244 test -z "$as_dir" && as_dir
=.
5245 for ac_prog
in egrep; do
5246 for ac_exec_ext
in '' $ac_executable_extensions; do
5247 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5248 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5249 # Check for GNU ac_path_EGREP and select it if it is found.
5250 # Check for GNU $ac_path_EGREP
5251 case `"$ac_path_EGREP" --version 2>&1` in
5253 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5256 $as_echo_n 0123456789 >"conftest.in"
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'EGREP' >> "conftest.nl"
5263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5264 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5265 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_EGREP
="$ac_path_EGREP"
5269 ac_path_EGREP_max
=$ac_count
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5274 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5277 $ac_path_EGREP_found && break 3
5282 if test -z "$ac_cv_path_EGREP"; then
5283 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5286 ac_cv_path_EGREP
=$EGREP
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5292 $as_echo "$ac_cv_path_EGREP" >&6; }
5293 EGREP
="$ac_cv_path_EGREP"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297 $as_echo_n "checking for fgrep... " >&6; }
5298 if ${ac_cv_path_FGREP+:} false
; then :
5299 $as_echo_n "(cached) " >&6
5301 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5302 then ac_cv_path_FGREP
="$GREP -F"
5304 if test -z "$FGREP"; then
5305 ac_path_FGREP_found
=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5308 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5311 test -z "$as_dir" && as_dir
=.
5312 for ac_prog
in fgrep
; do
5313 for ac_exec_ext
in '' $ac_executable_extensions; do
5314 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5315 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5316 # Check for GNU ac_path_FGREP and select it if it is found.
5317 # Check for GNU $ac_path_FGREP
5318 case `"$ac_path_FGREP" --version 2>&1` in
5320 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5323 $as_echo_n 0123456789 >"conftest.in"
5326 cat "conftest.in" "conftest.in" >"conftest.tmp"
5327 mv "conftest.tmp" "conftest.in"
5328 cp "conftest.in" "conftest.nl"
5329 $as_echo 'FGREP' >> "conftest.nl"
5330 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5331 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5332 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334 # Best one so far, save it but keep looking for a better one
5335 ac_cv_path_FGREP
="$ac_path_FGREP"
5336 ac_path_FGREP_max
=$ac_count
5338 # 10*(2^10) chars as input seems more than enough
5339 test $ac_count -gt 10 && break
5341 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5344 $ac_path_FGREP_found && break 3
5349 if test -z "$ac_cv_path_FGREP"; then
5350 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 ac_cv_path_FGREP
=$FGREP
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359 $as_echo "$ac_cv_path_FGREP" >&6; }
5360 FGREP
="$ac_cv_path_FGREP"
5363 test -z "$GREP" && GREP
=grep
5383 # Check whether --with-gnu-ld was given.
5384 if test "${with_gnu_ld+set}" = set; then :
5385 withval
=$with_gnu_ld; test no
= "$withval" || with_gnu_ld
=yes
5391 if test yes = "$GCC"; then
5392 # Check if gcc -print-prog-name=ld gives a path.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5394 $as_echo_n "checking for ld used by $CC... " >&6; }
5397 # gcc leaves a trailing carriage return, which upsets mingw
5398 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5400 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5403 # Accept absolute paths.
5405 re_direlt
='/[^/][^/]*/\.\./'
5406 # Canonicalize the pathname of ld
5407 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5409 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5411 test -z "$LD" && LD
=$ac_prog
5414 # If it fails, then pretend we aren't using GCC.
5418 # If it is relative, then search for the first ld in PATH.
5422 elif test yes = "$with_gnu_ld"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5424 $as_echo_n "checking for GNU ld... " >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5427 $as_echo_n "checking for non-GNU ld... " >&6; }
5429 if ${lt_cv_path_LD+:} false
; then :
5430 $as_echo_n "(cached) " >&6
5432 if test -z "$LD"; then
5433 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
5434 for ac_dir
in $PATH; do
5436 test -z "$ac_dir" && ac_dir
=.
5437 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438 lt_cv_path_LD
=$ac_dir/$ac_prog
5439 # Check to see if the program is GNU ld. I'd rather use --version,
5440 # but apparently some variants of GNU ld only accept -v.
5441 # Break only if it was the GNU/non-GNU ld that we prefer.
5442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443 *GNU
* |
*'with BFD'*)
5444 test no
!= "$with_gnu_ld" && break
5447 test yes != "$with_gnu_ld" && break
5454 lt_cv_path_LD
=$LD # Let the user override the test with a path.
5459 if test -n "$LD"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5461 $as_echo "$LD" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5466 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5469 if ${lt_cv_prog_gnu_ld+:} false
; then :
5470 $as_echo_n "(cached) " >&6
5472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5473 case `$LD -v 2>&1 </dev/null` in
5474 *GNU
* |
*'with BFD'*)
5475 lt_cv_prog_gnu_ld
=yes
5478 lt_cv_prog_gnu_ld
=no
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5483 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5484 with_gnu_ld
=$lt_cv_prog_gnu_ld
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5495 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5496 if ${lt_cv_path_NM+:} false
; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$NM"; then
5500 # Let the user override the test.
5503 lt_nm_to_check
=${ac_tool_prefix}nm
5504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5505 lt_nm_to_check
="$lt_nm_to_check nm"
5507 for lt_tmp_nm
in $lt_nm_to_check; do
5508 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
5509 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5511 test -z "$ac_dir" && ac_dir
=.
5512 tmp_nm
=$ac_dir/$lt_tmp_nm
5513 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext"; then
5514 # Check to see if the nm accepts a BSD-compat flag.
5515 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5516 # nm: unknown option "B" ignored
5517 # Tru64's nm complains that /dev/null is an invalid object file
5518 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5520 mingw
*) lt_bad_file
=conftest.nm
/nofile
;;
5521 *) lt_bad_file
=/dev
/null
;;
5523 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5524 *$lt_bad_file* |
*'Invalid file or object type'*)
5525 lt_cv_path_NM
="$tmp_nm -B"
5529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5531 lt_cv_path_NM
="$tmp_nm -p"
5535 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5536 continue # so that we can try to find one that supports BSD flags
5545 : ${lt_cv_path_NM=no}
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5549 $as_echo "$lt_cv_path_NM" >&6; }
5550 if test no
!= "$lt_cv_path_NM"; then
5553 # Didn't find any BSD compatible name lister, look for dumpbin.
5554 if test -n "$DUMPBIN"; then :
5555 # Let the user override the test.
5557 if test -n "$ac_tool_prefix"; then
5558 for ac_prog
in dumpbin
"link -dump"
5560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5565 $as_echo_n "(cached) " >&6
5567 if test -n "$DUMPBIN"; then
5568 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir
=.
5575 for ac_exec_ext
in '' $ac_executable_extensions; do
5576 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5577 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 DUMPBIN
=$ac_cv_prog_DUMPBIN
5588 if test -n "$DUMPBIN"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5590 $as_echo "$DUMPBIN" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5597 test -n "$DUMPBIN" && break
5600 if test -z "$DUMPBIN"; then
5601 ac_ct_DUMPBIN
=$DUMPBIN
5602 for ac_prog
in dumpbin
"link -dump"
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy
$ac_prog; ac_word
=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5609 $as_echo_n "(cached) " >&6
5611 if test -n "$ac_ct_DUMPBIN"; then
5612 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir
=.
5619 for ac_exec_ext
in '' $ac_executable_extensions; do
5620 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5632 if test -n "$ac_ct_DUMPBIN"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5634 $as_echo "$ac_ct_DUMPBIN" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5641 test -n "$ac_ct_DUMPBIN" && break
5644 if test "x$ac_ct_DUMPBIN" = x
; then
5647 case $cross_compiling:$ac_tool_warned in
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned
=yes ;;
5653 DUMPBIN
=$ac_ct_DUMPBIN
5657 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5659 DUMPBIN
="$DUMPBIN -symbols -headers"
5667 if test : != "$DUMPBIN"; then
5671 test -z "$NM" && NM
=nm
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5679 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5680 if ${lt_cv_nm_interface+:} false
; then :
5681 $as_echo_n "(cached) " >&6
5683 lt_cv_nm_interface
="BSD nm"
5684 echo "int some_variable = 0;" > conftest.
$ac_ext
5685 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5686 (eval "$ac_compile" 2>conftest.err
)
5687 cat conftest.err
>&5
5688 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5689 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5690 cat conftest.err
>&5
5691 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5692 cat conftest.out
>&5
5693 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5694 lt_cv_nm_interface
="MS dumpbin"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5699 $as_echo "$lt_cv_nm_interface" >&6; }
5701 # find the maximum length of command line arguments
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5703 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5704 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5705 $as_echo_n "(cached) " >&6
5712 # On DJGPP, this test can blow up pretty badly due to problems in libc
5713 # (any single argument exceeding 2000 bytes causes a buffer overrun
5714 # during glob expansion). Even if it were fixed, the result of this
5715 # check would be larger than it should be.
5716 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5720 # Under GNU Hurd, this test is not required because there is
5721 # no limit to the length of command line arguments.
5722 # Libtool will interpret -1 as no limit whatsoever
5723 lt_cv_sys_max_cmd_len
=-1;
5726 cygwin
* | mingw
* | cegcc
*)
5727 # On Win9x/ME, this test blows up -- it succeeds, but takes
5728 # about 5 minutes as the teststring grows exponentially.
5729 # Worse, since 9x/ME are not pre-emptively multitasking,
5730 # you end up with a "frozen" computer, even though with patience
5731 # the test eventually succeeds (with a max line length of 256k).
5732 # Instead, let's just punt: use the minimum linelength reported by
5733 # all of the supported platforms: 8192 (on NT/2K/XP).
5734 lt_cv_sys_max_cmd_len
=8192;
5738 # On MiNT this can take a long time and run out of memory.
5739 lt_cv_sys_max_cmd_len
=8192;
5743 # On AmigaOS with pdksh, this test takes hours, literally.
5744 # So we just punt and use a minimum line length of 8192.
5745 lt_cv_sys_max_cmd_len
=8192;
5748 bitrig
* | darwin
* | dragonfly
* | freebsd
* | netbsd
* | openbsd
*)
5749 # This has been around since 386BSD, at least. Likely further.
5750 if test -x /sbin
/sysctl
; then
5751 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
5752 elif test -x /usr
/sbin
/sysctl
; then
5753 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
5755 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
5757 # And add a safety zone
5758 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5759 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5763 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5764 lt_cv_sys_max_cmd_len
=196608
5768 # The test takes a long time on OS/2.
5769 lt_cv_sys_max_cmd_len
=8192
5773 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5774 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5775 # nice to cause kernel panics so lets avoid the loop below.
5776 # First set a reasonable default.
5777 lt_cv_sys_max_cmd_len
=16384
5779 if test -x /sbin
/sysconfig
; then
5780 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5781 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
5786 lt_cv_sys_max_cmd_len
=102400
5788 sysv5
* | sco5v6
* | sysv4.2uw2
*)
5789 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5790 if test -n "$kargmax"; then
5791 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
5793 lt_cv_sys_max_cmd_len
=32768
5797 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
5798 if test -n "$lt_cv_sys_max_cmd_len" && \
5799 test undefined
!= "$lt_cv_sys_max_cmd_len"; then
5800 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 # Make teststring a little bigger before we do anything with it.
5804 # a 1K string should be a reasonable start.
5805 for i
in 1 2 3 4 5 6 7 8; do
5806 teststring
=$teststring$teststring
5808 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809 # If test is not a shell built-in, we'll probably end up computing a
5810 # maximum length that is only half of the actual maximum length, but
5812 while { test X
`env echo "$teststring$teststring" 2>/dev/null` \
5813 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
5814 test 17 != "$i" # 1/2 MB should be enough
5817 teststring
=$teststring$teststring
5819 # Only check the string length outside the loop.
5820 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5822 # Add a significant safety factor because C++ compilers can tack on
5823 # massive amounts of additional arguments before passing them to the
5824 # linker. It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5832 if test -n "$lt_cv_sys_max_cmd_len"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5837 $as_echo "none" >&6; }
5839 max_cmd_len
=$lt_cv_sys_max_cmd_len
5850 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5860 # test EBCDIC or ASCII
5861 case `echo X|tr X '\101'` in
5862 A
) # ASCII based system
5863 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5864 lt_SP2NL
='tr \040 \012'
5865 lt_NL2SP
='tr \015\012 \040\040'
5867 *) # EBCDIC based system
5868 lt_SP2NL
='tr \100 \n'
5869 lt_NL2SP
='tr \r\n \100\100'
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5882 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5883 if ${lt_cv_to_host_file_cmd+:} false
; then :
5884 $as_echo_n "(cached) " >&6
5889 *-*-mingw* ) # actually msys
5890 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
5893 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
5895 * ) # otherwise, assume *nix
5896 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
5902 *-*-mingw* ) # actually msys
5903 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
5906 lt_cv_to_host_file_cmd
=func_convert_file_noop
5908 * ) # otherwise, assume *nix
5909 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
5913 * ) # unhandled hosts (and "normal" native builds)
5914 lt_cv_to_host_file_cmd
=func_convert_file_noop
5920 to_host_file_cmd
=$lt_cv_to_host_file_cmd
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5922 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5929 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5930 if ${lt_cv_to_tool_file_cmd+:} false
; then :
5931 $as_echo_n "(cached) " >&6
5933 #assume ordinary cross tools, or native build.
5934 lt_cv_to_tool_file_cmd
=func_convert_file_noop
5938 *-*-mingw* ) # actually msys
5939 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
5947 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5949 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5956 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5957 if ${lt_cv_ld_reload_flag+:} false
; then :
5958 $as_echo_n "(cached) " >&6
5960 lt_cv_ld_reload_flag
='-r'
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5963 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5964 reload_flag
=$lt_cv_ld_reload_flag
5965 case $reload_flag in
5967 *) reload_flag
=" $reload_flag" ;;
5969 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5971 cygwin
* | mingw
* | pw32
* | cegcc
*)
5972 if test yes != "$GCC"; then
5977 if test yes = "$GCC"; then
5978 reload_cmds
='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5980 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
5993 if test -n "$ac_tool_prefix"; then
5994 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5995 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_OBJDUMP+:} false
; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$OBJDUMP"; then
6002 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir
=.
6009 for ac_exec_ext
in '' $ac_executable_extensions; do
6010 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 OBJDUMP
=$ac_cv_prog_OBJDUMP
6022 if test -n "$OBJDUMP"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6024 $as_echo "$OBJDUMP" >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6032 if test -z "$ac_cv_prog_OBJDUMP"; then
6033 ac_ct_OBJDUMP
=$OBJDUMP
6034 # Extract the first word of "objdump", so it can be a program name with args.
6035 set dummy objdump
; ac_word
=$2
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6037 $as_echo_n "checking for $ac_word... " >&6; }
6038 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 if test -n "$ac_ct_OBJDUMP"; then
6042 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir
=.
6049 for ac_exec_ext
in '' $ac_executable_extensions; do
6050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6051 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6062 if test -n "$ac_ct_OBJDUMP"; then
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6064 $as_echo "$ac_ct_OBJDUMP" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6067 $as_echo "no" >&6; }
6070 if test "x$ac_ct_OBJDUMP" = x
; then
6073 case $cross_compiling:$ac_tool_warned in
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6077 ac_tool_warned
=yes ;;
6079 OBJDUMP
=$ac_ct_OBJDUMP
6082 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6085 test -z "$OBJDUMP" && OBJDUMP
=objdump
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6096 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6097 if ${lt_cv_deplibs_check_method+:} false
; then :
6098 $as_echo_n "(cached) " >&6
6100 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6101 lt_cv_file_magic_test_file
=
6102 lt_cv_deplibs_check_method
='unknown'
6103 # Need to set the preceding variable on all platforms that support
6104 # interlibrary dependencies.
6105 # 'none' -- dependencies not supported.
6106 # 'unknown' -- same as none, but documents that we really don't know.
6107 # 'pass_all' -- all dependencies passed with no checks.
6108 # 'test_compile' -- check by making test program.
6109 # 'file_magic [[regex]]' -- check by looking for files in library path
6110 # that responds to the $file_magic_cmd with a given extended regex.
6111 # If you have 'file' or equivalent on your system and you're not sure
6112 # whether 'pass_all' will *always* work, you probably want this one.
6116 lt_cv_deplibs_check_method
=pass_all
6120 lt_cv_deplibs_check_method
=pass_all
6124 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6125 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6126 lt_cv_file_magic_test_file
=/shlib
/libc.so
6130 # func_win32_libid is a shell function defined in ltmain.sh
6131 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6132 lt_cv_file_magic_cmd
='func_win32_libid'
6136 # Base MSYS/MinGW do not provide the 'file' command needed by
6137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6138 # unless we find 'file', for example because we are cross-compiling.
6139 if ( file / ) >/dev
/null
2>&1; then
6140 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6141 lt_cv_file_magic_cmd
='func_win32_libid'
6143 # Keep this pattern in sync with the one in func_win32_libid.
6144 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6145 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6150 # use the weaker test based on 'objdump'. See mingw*.
6151 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6152 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6155 darwin
* | rhapsody
*)
6156 lt_cv_deplibs_check_method
=pass_all
6159 freebsd
* | dragonfly
*)
6160 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6163 # Not sure whether the presence of OpenBSD here was a mistake.
6164 # Let's accept both of them until this is cleared up.
6165 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6166 lt_cv_file_magic_cmd
=/usr
/bin
/file
6167 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6171 lt_cv_deplibs_check_method
=pass_all
6176 lt_cv_deplibs_check_method
=pass_all
6179 hpux10.20
* | hpux11
*)
6180 lt_cv_file_magic_cmd
=/usr
/bin
/file
6183 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6184 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
6187 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]'
6188 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
6191 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6192 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6198 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6199 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6202 irix5
* | irix6
* | nonstopux
*)
6204 *-32|
*"-32 ") libmagic
=32-bit;;
6205 *-n32|
*"-n32 ") libmagic
=N32
;;
6206 *-64|
*"-64 ") libmagic
=64-bit;;
6207 *) libmagic
=never-match
;;
6209 lt_cv_deplibs_check_method
=pass_all
6212 # This must be glibc/ELF.
6213 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
6214 lt_cv_deplibs_check_method
=pass_all
6218 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
> /dev
/null
; then
6219 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6226 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6227 lt_cv_file_magic_cmd
=/usr
/bin
/file
6228 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6232 lt_cv_deplibs_check_method
=pass_all
6236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6237 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6243 osf3
* | osf4
* | osf5
*)
6244 lt_cv_deplibs_check_method
=pass_all
6248 lt_cv_deplibs_check_method
=pass_all
6252 lt_cv_deplibs_check_method
=pass_all
6255 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6256 lt_cv_deplibs_check_method
=pass_all
6260 case $host_vendor in
6262 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]'
6263 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6266 lt_cv_deplibs_check_method
=pass_all
6269 lt_cv_file_magic_cmd
='/bin/file'
6270 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6273 lt_cv_file_magic_cmd
='/bin/file'
6274 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6275 lt_cv_file_magic_test_file
=/lib
/libc.so
6278 lt_cv_deplibs_check_method
=pass_all
6281 lt_cv_deplibs_check_method
=pass_all
6287 lt_cv_deplibs_check_method
=pass_all
6290 lt_cv_deplibs_check_method
=pass_all
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6296 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6300 if test "$build" = "$host"; then
6303 if ( shopt |
grep nocaseglob
) >/dev
/null
2>&1; then
6306 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6312 file_magic_cmd
=$lt_cv_file_magic_cmd
6313 deplibs_check_method
=$lt_cv_deplibs_check_method
6314 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6339 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_DLLTOOL+:} false
; then :
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$DLLTOOL"; then
6346 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir
=.
6353 for ac_exec_ext
in '' $ac_executable_extensions; do
6354 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6355 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 DLLTOOL
=$ac_cv_prog_DLLTOOL
6366 if test -n "$DLLTOOL"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6368 $as_echo "$DLLTOOL" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6376 if test -z "$ac_cv_prog_DLLTOOL"; then
6377 ac_ct_DLLTOOL
=$DLLTOOL
6378 # Extract the first word of "dlltool", so it can be a program name with args.
6379 set dummy dlltool
; ac_word
=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_DLLTOOL"; then
6386 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir
=.
6393 for ac_exec_ext
in '' $ac_executable_extensions; do
6394 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6406 if test -n "$ac_ct_DLLTOOL"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6408 $as_echo "$ac_ct_DLLTOOL" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6414 if test "x$ac_ct_DLLTOOL" = x
; then
6417 case $cross_compiling:$ac_tool_warned in
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned
=yes ;;
6423 DLLTOOL
=$ac_ct_DLLTOOL
6426 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6429 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6441 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6442 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
6443 $as_echo_n "(cached) " >&6
6445 lt_cv_sharedlib_from_linklib_cmd
='unknown'
6448 cygwin
* | mingw
* | pw32
* | cegcc
*)
6449 # two different shell functions defined in ltmain.sh;
6450 # decide which one to use based on capabilities of $DLLTOOL
6451 case `$DLLTOOL --help 2>&1` in
6452 *--identify-strict*)
6453 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
6456 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
6461 # fallback: assume linklib IS sharedlib
6462 lt_cv_sharedlib_from_linklib_cmd
=$ECHO
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6468 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6469 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
6470 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
6479 if test -n "$ac_tool_prefix"; then
6482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6483 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_AR+:} false
; then :
6487 $as_echo_n "(cached) " >&6
6489 if test -n "$AR"; then
6490 ac_cv_prog_AR
="$AR" # Let the user override the test.
6492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6496 test -z "$as_dir" && as_dir
=.
6497 for ac_exec_ext
in '' $ac_executable_extensions; do
6498 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 if test -n "$AR"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512 $as_echo "$AR" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6519 test -n "$AR" && break
6522 if test -z "$AR"; then
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy
$ac_prog; ac_word
=$2
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 $as_echo_n "checking for $ac_word... " >&6; }
6530 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6531 $as_echo_n "(cached) " >&6
6533 if test -n "$ac_ct_AR"; then
6534 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6536 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6540 test -z "$as_dir" && as_dir
=.
6541 for ac_exec_ext
in '' $ac_executable_extensions; do
6542 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6543 ac_cv_prog_ac_ct_AR
="$ac_prog"
6544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6554 if test -n "$ac_ct_AR"; then
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6556 $as_echo "$ac_ct_AR" >&6; }
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6563 test -n "$ac_ct_AR" && break
6566 if test "x$ac_ct_AR" = x
; then
6569 case $cross_compiling:$ac_tool_warned in
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned
=yes ;;
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6593 $as_echo_n "checking for archiver @FILE support... " >&6; }
6594 if ${lt_cv_ar_at_file+:} false
; then :
6595 $as_echo_n "(cached) " >&6
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6609 if ac_fn_c_try_compile
"$LINENO"; then :
6610 echo conftest.
$ac_objext > conftest.lst
6611 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6613 (eval $lt_ar_try) 2>&5
6615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616 test $ac_status = 0; }
6617 if test 0 -eq "$ac_status"; then
6618 # Ensure the archiver fails upon bogus file names.
6619 rm -f conftest.
$ac_objext libconftest.a
6620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6621 (eval $lt_ar_try) 2>&5
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }
6625 if test 0 -ne "$ac_status"; then
6629 rm -f conftest.
* libconftest.a
6632 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6636 $as_echo "$lt_cv_ar_at_file" >&6; }
6638 if test no
= "$lt_cv_ar_at_file"; then
6641 archiver_list_spec
=$lt_cv_ar_at_file
6650 if test -n "$ac_tool_prefix"; then
6651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6652 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 $as_echo_n "checking for $ac_word... " >&6; }
6655 if ${ac_cv_prog_STRIP+:} false
; then :
6656 $as_echo_n "(cached) " >&6
6658 if test -n "$STRIP"; then
6659 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6661 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6665 test -z "$as_dir" && as_dir
=.
6666 for ac_exec_ext
in '' $ac_executable_extensions; do
6667 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6678 STRIP
=$ac_cv_prog_STRIP
6679 if test -n "$STRIP"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6681 $as_echo "$STRIP" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684 $as_echo "no" >&6; }
6689 if test -z "$ac_cv_prog_STRIP"; then
6691 # Extract the first word of "strip", so it can be a program name with args.
6692 set dummy strip
; ac_word
=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6696 $as_echo_n "(cached) " >&6
6698 if test -n "$ac_ct_STRIP"; then
6699 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir
=.
6706 for ac_exec_ext
in '' $ac_executable_extensions; do
6707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_ac_ct_STRIP
="strip"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6719 if test -n "$ac_ct_STRIP"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6721 $as_echo "$ac_ct_STRIP" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6727 if test "x$ac_ct_STRIP" = x
; then
6730 case $cross_compiling:$ac_tool_warned in
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734 ac_tool_warned
=yes ;;
6739 STRIP
="$ac_cv_prog_STRIP"
6742 test -z "$STRIP" && STRIP
=:
6749 if test -n "$ac_tool_prefix"; then
6750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_RANLIB+:} false
; then :
6755 $as_echo_n "(cached) " >&6
6757 if test -n "$RANLIB"; then
6758 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6764 test -z "$as_dir" && as_dir
=.
6765 for ac_exec_ext
in '' $ac_executable_extensions; do
6766 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6767 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 RANLIB
=$ac_cv_prog_RANLIB
6778 if test -n "$RANLIB"; then
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6780 $as_echo "$RANLIB" >&6; }
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6788 if test -z "$ac_cv_prog_RANLIB"; then
6789 ac_ct_RANLIB
=$RANLIB
6790 # Extract the first word of "ranlib", so it can be a program name with args.
6791 set dummy ranlib
; ac_word
=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6795 $as_echo_n "(cached) " >&6
6797 if test -n "$ac_ct_RANLIB"; then
6798 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6804 test -z "$as_dir" && as_dir
=.
6805 for ac_exec_ext
in '' $ac_executable_extensions; do
6806 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6818 if test -n "$ac_ct_RANLIB"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6820 $as_echo "$ac_ct_RANLIB" >&6; }
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6826 if test "x$ac_ct_RANLIB" = x
; then
6829 case $cross_compiling:$ac_tool_warned in
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned
=yes ;;
6835 RANLIB
=$ac_ct_RANLIB
6838 RANLIB
="$ac_cv_prog_RANLIB"
6841 test -z "$RANLIB" && RANLIB
=:
6848 # Determine commands to create old-style static archives.
6849 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6850 old_postinstall_cmds
='chmod 644 $oldlib'
6851 old_postuninstall_cmds
=
6853 if test -n "$RANLIB"; then
6856 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6859 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6862 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6867 lock_old_archive_extraction
=yes ;;
6869 lock_old_archive_extraction
=no
;;
6910 # If no C compiler was specified, use CC.
6913 # If no C compiler flags were specified, use CFLAGS.
6914 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6916 # Allow CC to be a program name with arguments.
6920 # Check for command to grab the raw symbol name followed by C symbol from nm.
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6922 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6923 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6924 $as_echo_n "(cached) " >&6
6927 # These are sane defaults that work on at least a few old systems.
6928 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6930 # Character class describing NM global symbol codes.
6931 symcode
='[BCDEGRST]'
6933 # Regexp to match symbols that can be accessed directly from C.
6934 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6936 # Define system-specific variables.
6941 cygwin
* | mingw
* | pw32
* | cegcc
*)
6942 symcode
='[ABCDGISTW]'
6945 if test ia64
= "$host_cpu"; then
6946 symcode
='[ABCDEGRST]'
6950 symcode
='[BCDEGRST]'
6953 symcode
='[BCDEGQRST]'
6964 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6972 # If we're using GNU nm, then use its standard symbol codes.
6973 case `$NM -V 2>&1` in
6974 *GNU
* |
*'with BFD'*)
6975 symcode
='[ABCDGIRSTW]' ;;
6978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979 # Gets list of data symbols to import.
6980 lt_cv_sys_global_symbol_to_import
="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6981 # Adjust the below global symbol transforms to fixup imported variables.
6982 lt_cdecl_hook
=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6983 lt_c_name_hook
=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6984 lt_c_name_lib_hook
="\
6985 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6986 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6988 # Disable hooks by default.
6989 lt_cv_sys_global_symbol_to_import
=
6995 # Transform an extracted symbol line into a proper C declaration.
6996 # Some systems (esp. on ia64) link data and code symbols differently,
6997 # so use this general approach.
6998 lt_cv_sys_global_symbol_to_cdecl
="sed -n"\
7000 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7001 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7003 # Transform an extracted symbol line into symbol name and symbol address
7004 lt_cv_sys_global_symbol_to_c_name_address
="sed -n"\
7006 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7007 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7009 # Transform an extracted symbol line into symbol name with lib prefix and
7011 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
="sed -n"\
7012 $lt_c_name_lib_hook\
7013 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7014 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7017 # Handle CRLF in mingw tool chain
7021 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7025 # Try without a prefix underscore, then with it.
7026 for ac_symprfx
in "" "_"; do
7028 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7029 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7031 # Write the raw and C identifiers.
7032 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7033 # Fake it for dumpbin and say T for any non-static function,
7034 # D for any global variable and I for any imported variable.
7035 # Also find C++ and __fastcall symbols from MSVC++,
7036 # which start with @ or ?.
7037 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7038 " {last_section=section; section=\$ 3};"\
7039 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7040 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7041 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7042 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7043 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7044 " \$ 0!~/External *\|/{next};"\
7045 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7046 " {if(hide[section]) next};"\
7047 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7048 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7049 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7050 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7051 " ' prfx=^$ac_symprfx"
7053 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7055 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7057 # Check to see that the pipe works correctly.
7061 cat > conftest.
$ac_ext <<_LT_EOF
7066 void nm_test_func(void);
7067 void nm_test_func(void){}
7071 int main(){nm_test_var='a';nm_test_func();return(0);}
7074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7075 (eval $ac_compile) 2>&5
7077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078 test $ac_status = 0; }; then
7079 # Now try to grab the symbols.
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7082 (eval $NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; } && test -s "$nlist"; then
7086 # Try sorting and uniquifying the output.
7087 if sort "$nlist" |
uniq > "$nlist"T
; then
7088 mv -f "$nlist"T
"$nlist"
7093 # Make sure that we snagged all the symbols we need.
7094 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7095 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7096 cat <<_LT_EOF > conftest.$ac_ext
7097 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7098 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7099 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7100 relocations are performed -- see ld's documentation on pseudo-relocs. */
7101 # define LT_DLSYM_CONST
7102 #elif defined __osf__
7103 /* This system does not cope well with relocations in const data. */
7104 # define LT_DLSYM_CONST
7106 # define LT_DLSYM_CONST const
7114 # Now generate the symbol file.
7115 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7117 cat <<_LT_EOF >> conftest.$ac_ext
7119 /* The mapping between symbol names and symbols. */
7120 LT_DLSYM_CONST struct {
7124 lt__PROGRAM__LTX_preloaded_symbols[] =
7126 { "@PROGRAM@", (void *) 0 },
7128 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" |
$GREP -v main
>> conftest.
$ac_ext
7129 cat <<\_LT_EOF
>> conftest.
$ac_ext
7133 /* This works around a problem
in FreeBSD linker
*/
7134 #ifdef FREEBSD_WORKAROUND
7135 static const void
*lt_preloaded_setup
() {
7136 return lt__PROGRAM__LTX_preloaded_symbols
;
7144 # Now try linking the two files.
7145 mv conftest.
$ac_objext conftstm.
$ac_objext
7146 lt_globsym_save_LIBS
=$LIBS
7147 lt_globsym_save_CFLAGS
=$CFLAGS
7148 LIBS
=conftstm.
$ac_objext
7149 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151 (eval $ac_link) 2>&5
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; } && test -s conftest
$ac_exeext; then
7157 LIBS
=$lt_globsym_save_LIBS
7158 CFLAGS
=$lt_globsym_save_CFLAGS
7160 echo "cannot find nm_test_func in $nlist" >&5
7163 echo "cannot find nm_test_var in $nlist" >&5
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.
$ac_ext >&5
7172 rm -rf conftest
* conftst
*
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test yes = "$pipe_works"; then
7178 lt_cv_sys_global_symbol_pipe
=
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl
=
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189 $as_echo "failed" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192 $as_echo "ok" >&6; }
7195 # Response file support.
7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 nm_file_list_spec
='@'
7198 elif $NM --help 2>/dev
/null |
grep '[@]FILE' >/dev
/null
; then
7199 nm_file_list_spec
='@'
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7239 $as_echo_n "checking for sysroot... " >&6; }
7241 # Check whether --with-sysroot was given.
7242 if test "${with_sysroot+set}" = set; then :
7243 withval
=$with_sysroot;
7250 case $with_sysroot in #(
7252 if test yes = "$GCC"; then
7253 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
7257 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7263 $as_echo "$with_sysroot" >&6; }
7264 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7269 $as_echo "${lt_sysroot:-no}" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7276 $as_echo_n "checking for a working dd... " >&6; }
7277 if ${ac_cv_path_lt_DD+:} false
; then :
7278 $as_echo_n "(cached) " >&6
7280 printf 0123456789abcdef0123456789abcdef
>conftest.i
7281 cat conftest.i conftest.i
>conftest2.i
7283 if test -z "$lt_DD"; then
7284 ac_path_lt_DD_found
=false
7285 # Loop through the user's path and test for each of PROGNAME-LIST
7286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7290 test -z "$as_dir" && as_dir
=.
7291 for ac_prog
in dd; do
7292 for ac_exec_ext
in '' $ac_executable_extensions; do
7293 ac_path_lt_DD
="$as_dir/$ac_prog$ac_exec_ext"
7294 as_fn_executable_p
"$ac_path_lt_DD" ||
continue
7295 if "$ac_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
7296 cmp -s conftest.i conftest.out \
7297 && ac_cv_path_lt_DD
="$ac_path_lt_DD" ac_path_lt_DD_found
=:
7299 $ac_path_lt_DD_found && break 3
7304 if test -z "$ac_cv_path_lt_DD"; then
7308 ac_cv_path_lt_DD
=$lt_DD
7311 rm -f conftest.i conftest2.i conftest.out
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7314 $as_echo "$ac_cv_path_lt_DD" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7318 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7319 if ${lt_cv_truncate_bin+:} false
; then :
7320 $as_echo_n "(cached) " >&6
7322 printf 0123456789abcdef0123456789abcdef
>conftest.i
7323 cat conftest.i conftest.i
>conftest2.i
7325 if "$ac_cv_path_lt_DD" bs
=32 count
=1 <conftest2.i
>conftest.out
2>/dev
/null
; then
7326 cmp -s conftest.i conftest.out \
7327 && lt_cv_truncate_bin
="$ac_cv_path_lt_DD bs=4096 count=1"
7329 rm -f conftest.i conftest2.i conftest.out
7330 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin
="$SED -e 4q"
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7333 $as_echo "$lt_cv_truncate_bin" >&6; }
7341 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7344 for cc_temp
in $
*""; do
7346 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7347 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7352 func_cc_basename_result
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7355 # Check whether --enable-libtool-lock was given.
7356 if test "${enable_libtool_lock+set}" = set; then :
7357 enableval
=$enable_libtool_lock;
7360 test no
= "$enable_libtool_lock" || enable_libtool_lock
=yes
7362 # Some flags need to be propagated to the compiler or linker for good
7366 # Find out what ABI is being produced by ac_compile, and set mode
7367 # options accordingly.
7368 echo 'int i;' > conftest.
$ac_ext
7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7370 (eval $ac_compile) 2>&5
7372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7373 test $ac_status = 0; }; then
7374 case `/usr/bin/file conftest.$ac_objext` in
7386 # Find out what ABI is being produced by ac_compile, and set linker
7387 # options accordingly.
7388 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7390 (eval $ac_compile) 2>&5
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7393 test $ac_status = 0; }; then
7394 if test yes = "$lt_cv_prog_gnu_ld"; then
7395 case `/usr/bin/file conftest.$ac_objext` in
7397 LD
="${LD-ld} -melf32bsmip"
7400 LD
="${LD-ld} -melf32bmipn32"
7403 LD
="${LD-ld} -melf64bmip"
7407 case `/usr/bin/file conftest.$ac_objext` in
7424 # Find out what ABI is being produced by ac_compile, and set linker
7425 # options accordingly.
7426 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7433 case `/usr/bin/file conftest.$ac_objext` in
7441 case `/usr/bin/file conftest.$ac_objext` in
7443 emul
="${emul}btsmip"
7446 emul
="${emul}ltsmip"
7449 case `/usr/bin/file conftest.$ac_objext` in
7454 LD
="${LD-ld} -m $emul"
7459 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|powerpc
*-*linux
*| \
7460 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7461 # Find out what ABI is being produced by ac_compile, and set linker
7462 # options accordingly. Note that the listed cases only cover the
7463 # situations where additional linker options are needed (such as when
7464 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7465 # vice versa); the common cases where no linker options are needed do
7466 # not appear in the list.
7467 echo 'int i;' > conftest.
$ac_ext
7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7469 (eval $ac_compile) 2>&5
7471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472 test $ac_status = 0; }; then
7473 case `/usr/bin/file conftest.o` in
7476 x86_64-
*kfreebsd
*-gnu)
7477 LD
="${LD-ld} -m elf_i386_fbsd"
7480 case `/usr/bin/file conftest.o` in
7482 LD
="${LD-ld} -m elf32_x86_64"
7485 LD
="${LD-ld} -m elf_i386"
7489 powerpc64le-
*linux
*)
7490 LD
="${LD-ld} -m elf32lppclinux"
7493 LD
="${LD-ld} -m elf32ppclinux"
7496 LD
="${LD-ld} -m elf_s390"
7499 LD
="${LD-ld} -m elf32_sparc"
7505 x86_64-
*kfreebsd
*-gnu)
7506 LD
="${LD-ld} -m elf_x86_64_fbsd"
7509 LD
="${LD-ld} -m elf_x86_64"
7512 LD
="${LD-ld} -m elf64lppc"
7515 LD
="${LD-ld} -m elf64ppc"
7517 s390
*-*linux
*|s390
*-*tpf
*)
7518 LD
="${LD-ld} -m elf64_s390"
7521 LD
="${LD-ld} -m elf64_sparc"
7531 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7533 CFLAGS
="$CFLAGS -belf"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7535 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7536 if ${lt_cv_cc_needs_belf+:} false
; then :
7537 $as_echo_n "(cached) " >&6
7540 ac_cpp
='$CPP $CPPFLAGS'
7541 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7556 if ac_fn_c_try_link
"$LINENO"; then :
7557 lt_cv_cc_needs_belf
=yes
7559 lt_cv_cc_needs_belf
=no
7561 rm -f core conftest.err conftest.
$ac_objext \
7562 conftest
$ac_exeext conftest.
$ac_ext
7564 ac_cpp
='$CPP $CPPFLAGS'
7565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7571 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7572 if test yes != "$lt_cv_cc_needs_belf"; then
7573 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7578 # Find out what ABI is being produced by ac_compile, and set linker
7579 # options accordingly.
7580 echo 'int i;' > conftest.
$ac_ext
7581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7582 (eval $ac_compile) 2>&5
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 case `/usr/bin/file conftest.o` in
7588 case $lt_cv_prog_gnu_ld in
7591 i?
86-*-solaris*|x86_64-
*-solaris*)
7592 LD
="${LD-ld} -m elf_x86_64"
7595 LD
="${LD-ld} -m elf64_sparc"
7598 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7599 if ${LD-ld} -V |
grep _sol2
>/dev
/null
2>&1; then
7604 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7616 need_locks
=$enable_libtool_lock
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7620 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
7624 $as_echo_n "(cached) " >&6
7626 if test -n "$MANIFEST_TOOL"; then
7627 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
7629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7633 test -z "$as_dir" && as_dir
=.
7634 for ac_exec_ext
in '' $ac_executable_extensions; do
7635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
7647 if test -n "$MANIFEST_TOOL"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7649 $as_echo "$MANIFEST_TOOL" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7657 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7658 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
7659 # Extract the first word of "mt", so it can be a program name with args.
7660 set dummy mt
; ac_word
=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
7664 $as_echo_n "(cached) " >&6
7666 if test -n "$ac_ct_MANIFEST_TOOL"; then
7667 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7673 test -z "$as_dir" && as_dir
=.
7674 for ac_exec_ext
in '' $ac_executable_extensions; do
7675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7687 if test -n "$ac_ct_MANIFEST_TOOL"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7689 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7695 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
7698 case $cross_compiling:$ac_tool_warned in
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned
=yes ;;
7704 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
7707 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
7710 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7712 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7713 if ${lt_cv_path_mainfest_tool+:} false
; then :
7714 $as_echo_n "(cached) " >&6
7716 lt_cv_path_mainfest_tool
=no
7717 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7718 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
7719 cat conftest.err
>&5
7720 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
7721 lt_cv_path_mainfest_tool
=yes
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7726 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7727 if test yes != "$lt_cv_path_mainfest_tool"; then
7737 rhapsody
* | darwin
*)
7738 if test -n "$ac_tool_prefix"; then
7739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7740 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7744 $as_echo_n "(cached) " >&6
7746 if test -n "$DSYMUTIL"; then
7747 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir
=.
7754 for ac_exec_ext
in '' $ac_executable_extensions; do
7755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7767 if test -n "$DSYMUTIL"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7769 $as_echo "$DSYMUTIL" >&6; }
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7777 if test -z "$ac_cv_prog_DSYMUTIL"; then
7778 ac_ct_DSYMUTIL
=$DSYMUTIL
7779 # Extract the first word of "dsymutil", so it can be a program name with args.
7780 set dummy dsymutil
; ac_word
=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7784 $as_echo_n "(cached) " >&6
7786 if test -n "$ac_ct_DSYMUTIL"; then
7787 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7789 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir
=.
7794 for ac_exec_ext
in '' $ac_executable_extensions; do
7795 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7807 if test -n "$ac_ct_DSYMUTIL"; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7815 if test "x$ac_ct_DSYMUTIL" = x
; then
7818 case $cross_compiling:$ac_tool_warned in
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7822 ac_tool_warned
=yes ;;
7824 DSYMUTIL
=$ac_ct_DSYMUTIL
7827 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7832 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_NMEDIT+:} false
; then :
7836 $as_echo_n "(cached) " >&6
7838 if test -n "$NMEDIT"; then
7839 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir
=.
7846 for ac_exec_ext
in '' $ac_executable_extensions; do
7847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 NMEDIT
=$ac_cv_prog_NMEDIT
7859 if test -n "$NMEDIT"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7861 $as_echo "$NMEDIT" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7869 if test -z "$ac_cv_prog_NMEDIT"; then
7870 ac_ct_NMEDIT
=$NMEDIT
7871 # Extract the first word of "nmedit", so it can be a program name with args.
7872 set dummy nmedit
; ac_word
=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7876 $as_echo_n "(cached) " >&6
7878 if test -n "$ac_ct_NMEDIT"; then
7879 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7885 test -z "$as_dir" && as_dir
=.
7886 for ac_exec_ext
in '' $ac_executable_extensions; do
7887 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7899 if test -n "$ac_ct_NMEDIT"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7901 $as_echo "$ac_ct_NMEDIT" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7907 if test "x$ac_ct_NMEDIT" = x
; then
7910 case $cross_compiling:$ac_tool_warned in
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned
=yes ;;
7916 NMEDIT
=$ac_ct_NMEDIT
7919 NMEDIT
="$ac_cv_prog_NMEDIT"
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7924 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_prog_LIPO+:} false
; then :
7928 $as_echo_n "(cached) " >&6
7930 if test -n "$LIPO"; then
7931 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7937 test -z "$as_dir" && as_dir
=.
7938 for ac_exec_ext
in '' $ac_executable_extensions; do
7939 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7940 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 LIPO
=$ac_cv_prog_LIPO
7951 if test -n "$LIPO"; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7953 $as_echo "$LIPO" >&6; }
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7961 if test -z "$ac_cv_prog_LIPO"; then
7963 # Extract the first word of "lipo", so it can be a program name with args.
7964 set dummy lipo
; ac_word
=$2
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 $as_echo_n "checking for $ac_word... " >&6; }
7967 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7968 $as_echo_n "(cached) " >&6
7970 if test -n "$ac_ct_LIPO"; then
7971 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7977 test -z "$as_dir" && as_dir
=.
7978 for ac_exec_ext
in '' $ac_executable_extensions; do
7979 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7980 ac_cv_prog_ac_ct_LIPO
="lipo"
7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7991 if test -n "$ac_ct_LIPO"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7993 $as_echo "$ac_ct_LIPO" >&6; }
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7999 if test "x$ac_ct_LIPO" = x
; then
8002 case $cross_compiling:$ac_tool_warned in
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8006 ac_tool_warned
=yes ;;
8011 LIPO
="$ac_cv_prog_LIPO"
8014 if test -n "$ac_tool_prefix"; then
8015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8016 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018 $as_echo_n "checking for $ac_word... " >&6; }
8019 if ${ac_cv_prog_OTOOL+:} false
; then :
8020 $as_echo_n "(cached) " >&6
8022 if test -n "$OTOOL"; then
8023 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
8025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir
=.
8030 for ac_exec_ext
in '' $ac_executable_extensions; do
8031 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 OTOOL
=$ac_cv_prog_OTOOL
8043 if test -n "$OTOOL"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8045 $as_echo "$OTOOL" >&6; }
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8053 if test -z "$ac_cv_prog_OTOOL"; then
8055 # Extract the first word of "otool", so it can be a program name with args.
8056 set dummy otool
; ac_word
=$2
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8058 $as_echo_n "checking for $ac_word... " >&6; }
8059 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
8060 $as_echo_n "(cached) " >&6
8062 if test -n "$ac_ct_OTOOL"; then
8063 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
8065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8069 test -z "$as_dir" && as_dir
=.
8070 for ac_exec_ext
in '' $ac_executable_extensions; do
8071 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8072 ac_cv_prog_ac_ct_OTOOL
="otool"
8073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8083 if test -n "$ac_ct_OTOOL"; then
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8085 $as_echo "$ac_ct_OTOOL" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8088 $as_echo "no" >&6; }
8091 if test "x$ac_ct_OTOOL" = x
; then
8094 case $cross_compiling:$ac_tool_warned in
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8098 ac_tool_warned
=yes ;;
8103 OTOOL
="$ac_cv_prog_OTOOL"
8106 if test -n "$ac_tool_prefix"; then
8107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8108 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_prog_OTOOL64+:} false
; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$OTOOL64"; then
8115 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8124 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 OTOOL64
=$ac_cv_prog_OTOOL64
8135 if test -n "$OTOOL64"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8137 $as_echo "$OTOOL64" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8145 if test -z "$ac_cv_prog_OTOOL64"; then
8146 ac_ct_OTOOL64
=$OTOOL64
8147 # Extract the first word of "otool64", so it can be a program name with args.
8148 set dummy otool64
; ac_word
=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8152 $as_echo_n "(cached) " >&6
8154 if test -n "$ac_ct_OTOOL64"; then
8155 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir
=.
8162 for ac_exec_ext
in '' $ac_executable_extensions; do
8163 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8175 if test -n "$ac_ct_OTOOL64"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8177 $as_echo "$ac_ct_OTOOL64" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8183 if test "x$ac_ct_OTOOL64" = x
; then
8186 case $cross_compiling:$ac_tool_warned in
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8190 ac_tool_warned
=yes ;;
8192 OTOOL64
=$ac_ct_OTOOL64
8195 OTOOL64
="$ac_cv_prog_OTOOL64"
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8225 $as_echo_n "checking for -single_module linker flag... " >&6; }
8226 if ${lt_cv_apple_cc_single_mod+:} false
; then :
8227 $as_echo_n "(cached) " >&6
8229 lt_cv_apple_cc_single_mod
=no
8230 if test -z "$LT_MULTI_MODULE"; then
8231 # By default we will add the -single_module flag. You can override
8232 # by either setting the environment variable LT_MULTI_MODULE
8233 # non-empty at configure time, or by adding -multi_module to the
8235 rm -rf libconftest.dylib
*
8236 echo "int foo(void){return 1;}" > conftest.c
8237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8238 -dynamiclib -Wl,-single_module conftest.c" >&5
8239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8240 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
8242 # If there is a non-empty error log, and "single_module"
8243 # appears in it, assume the flag caused a linker warning
8244 if test -s conftest.err
&& $GREP single_module conftest.err
; then
8245 cat conftest.err
>&5
8246 # Otherwise, if the output was created with a 0 exit code from
8247 # the compiler, it worked.
8248 elif test -f libconftest.dylib
&& test 0 = "$_lt_result"; then
8249 lt_cv_apple_cc_single_mod
=yes
8251 cat conftest.err
>&5
8253 rm -rf libconftest.dylib
*
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8258 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8261 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8262 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
8263 $as_echo_n "(cached) " >&6
8265 lt_cv_ld_exported_symbols_list
=no
8266 save_LDFLAGS
=$LDFLAGS
8267 echo "_main" > conftest.sym
8268 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8280 if ac_fn_c_try_link
"$LINENO"; then :
8281 lt_cv_ld_exported_symbols_list
=yes
8283 lt_cv_ld_exported_symbols_list
=no
8285 rm -f core conftest.err conftest.
$ac_objext \
8286 conftest
$ac_exeext conftest.
$ac_ext
8287 LDFLAGS
=$save_LDFLAGS
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8291 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8294 $as_echo_n "checking for -force_load linker flag... " >&6; }
8295 if ${lt_cv_ld_force_load+:} false
; then :
8296 $as_echo_n "(cached) " >&6
8298 lt_cv_ld_force_load
=no
8299 cat > conftest.c
<< _LT_EOF
8300 int forced_loaded() { return 2;}
8302 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8303 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
8304 echo "$AR cru libconftest.a conftest.o" >&5
8305 $AR cru libconftest.a conftest.o
2>&5
8306 echo "$RANLIB libconftest.a" >&5
8307 $RANLIB libconftest.a
2>&5
8308 cat > conftest.c
<< _LT_EOF
8309 int main() { return 0;}
8311 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8312 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
8314 if test -s conftest.err
&& $GREP force_load conftest.err
; then
8315 cat conftest.err
>&5
8316 elif test -f conftest
&& test 0 = "$_lt_result" && $GREP forced_load conftest
>/dev
/null
2>&1; then
8317 lt_cv_ld_force_load
=yes
8319 cat conftest.err
>&5
8321 rm -f conftest.err libconftest.a conftest conftest.c
8322 rm -rf conftest.dSYM
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8326 $as_echo "$lt_cv_ld_force_load" >&6; }
8328 rhapsody
* | darwin1.
[012])
8329 _lt_dar_allow_undefined
='$wl-undefined ${wl}suppress' ;;
8331 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8332 darwin
*) # darwin 5.x on
8333 # if running on 10.5 or later, the deployment target defaults
8334 # to the OS version, if on x86, and 10.4, the deployment
8335 # target defaults to 10.4. Don't you love it?
8336 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8337 10.0,*86*-darwin8*|
10.0,*-darwin[91]*)
8338 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
8340 _lt_dar_allow_undefined
='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8342 _lt_dar_allow_undefined
='$wl-undefined ${wl}dynamic_lookup' ;;
8346 if test yes = "$lt_cv_apple_cc_single_mod"; then
8347 _lt_dar_single_mod
='$single_module'
8349 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8350 _lt_dar_export_syms
=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8352 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8354 if test : != "$DSYMUTIL" && test no
= "$lt_cv_ld_force_load"; then
8355 _lt_dsymutil
='~$DSYMUTIL $lib || :'
8362 # func_munge_path_list VARIABLE PATH
8363 # -----------------------------------
8364 # VARIABLE is name of variable containing _space_ separated list of
8365 # directories to be munged by the contents of PATH, which is string
8368 # string "DIR[ DIR]" will be prepended to VARIABLE
8370 # string "DIR[ DIR]" will be appended to VARIABLE
8371 # "DIRP[:DIRP]::[DIRA:]DIRA"
8372 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8373 # "DIRA[ DIRA]" will be appended to VARIABLE
8375 # VARIABLE will be replaced by "DIR[ DIR]"
8376 func_munge_path_list
()
8382 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$
$1\"
8385 eval $1=\"\$
$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8388 eval $1=\"\$
$1\
`$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8389 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$
$1\"
8392 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8399 $as_echo_n "checking for ANSI C header files... " >&6; }
8400 if ${ac_cv_header_stdc+:} false
; then :
8401 $as_echo_n "(cached) " >&6
8403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8418 if ac_fn_c_try_compile
"$LINENO"; then :
8419 ac_cv_header_stdc
=yes
8421 ac_cv_header_stdc
=no
8423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8425 if test $ac_cv_header_stdc = yes; then
8426 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8433 $EGREP "memchr" >/dev
/null
2>&1; then :
8436 ac_cv_header_stdc
=no
8442 if test $ac_cv_header_stdc = yes; then
8443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 $EGREP "free" >/dev
/null
2>&1; then :
8453 ac_cv_header_stdc
=no
8459 if test $ac_cv_header_stdc = yes; then
8460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8461 if test "$cross_compiling" = yes; then :
8464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8468 #if ((' ' & 0x0FF) == 0x020)
8469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8472 # define ISLOWER(c) \
8473 (('a' <= (c) && (c) <= 'i') \
8474 || ('j' <= (c) && (c) <= 'r') \
8475 || ('s' <= (c) && (c) <= 'z'))
8476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8484 for (i = 0; i < 256; i++)
8485 if (XOR (islower (i), ISLOWER (i))
8486 || toupper (i) != TOUPPER (i))
8491 if ac_fn_c_try_run
"$LINENO"; then :
8494 ac_cv_header_stdc
=no
8496 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8497 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8503 $as_echo "$ac_cv_header_stdc" >&6; }
8504 if test $ac_cv_header_stdc = yes; then
8506 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8510 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8511 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8512 inttypes.h stdint.h unistd.h
8514 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8515 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8517 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8518 cat >>confdefs.h
<<_ACEOF
8519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8527 for ac_header
in dlfcn.h
8529 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8531 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8532 cat >>confdefs.h
<<_ACEOF
8533 #define HAVE_DLFCN_H 1
8543 func_stripname_cnf
()
8546 .
*) func_stripname_result
=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8547 *) func_stripname_result
=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8549 } # func_stripname_cnf
8564 # Check whether --enable-shared was given.
8565 if test "${enable_shared+set}" = set; then :
8566 enableval
=$enable_shared; p
=${PACKAGE-default}
8568 yes) enable_shared
=yes ;;
8569 no
) enable_shared
=no
;;
8572 # Look at the argument we got. We use all the common list separators.
8573 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8574 for pkg
in $enableval; do
8576 if test "X$pkg" = "X$p"; then
8595 # Check whether --enable-static was given.
8596 if test "${enable_static+set}" = set; then :
8597 enableval
=$enable_static; p
=${PACKAGE-default}
8599 yes) enable_static
=yes ;;
8600 no
) enable_static
=no
;;
8603 # Look at the argument we got. We use all the common list separators.
8604 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8605 for pkg
in $enableval; do
8607 if test "X$pkg" = "X$p"; then
8627 # Check whether --with-pic was given.
8628 if test "${with_pic+set}" = set; then :
8629 withval
=$with_pic; lt_p
=${PACKAGE-default}
8631 yes|no
) pic_mode
=$withval ;;
8634 # Look at the argument we got. We use all the common list separators.
8635 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8636 for lt_pkg
in $withval; do
8638 if test "X$lt_pkg" = "X$lt_p"; then
8656 # Check whether --enable-fast-install was given.
8657 if test "${enable_fast_install+set}" = set; then :
8658 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8660 yes) enable_fast_install
=yes ;;
8661 no
) enable_fast_install
=no
;;
8663 enable_fast_install
=no
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8666 for pkg
in $enableval; do
8668 if test "X$pkg" = "X$p"; then
8669 enable_fast_install
=yes
8676 enable_fast_install
=yes
8686 shared_archive_member_spec
=
8687 case $host,$enable_shared in
8688 power
*-*-aix[5-9]*,yes)
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8690 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8692 # Check whether --with-aix-soname was given.
8693 if test "${with_aix_soname+set}" = set; then :
8694 withval
=$with_aix_soname; case $withval in
8698 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8701 lt_cv_with_aix_soname
=$with_aix_soname
8703 if ${lt_cv_with_aix_soname+:} false
; then :
8704 $as_echo_n "(cached) " >&6
8706 lt_cv_with_aix_soname
=aix
8709 with_aix_soname
=$lt_cv_with_aix_soname
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8713 $as_echo "$with_aix_soname" >&6; }
8714 if test aix
!= "$with_aix_soname"; then
8715 # For the AIX way of multilib, we name the shared archive member
8716 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8717 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8718 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8719 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8720 if test 64 = "${OBJECT_MODE-32}"; then
8721 shared_archive_member_spec
=shr_64
8723 shared_archive_member_spec
=shr
8741 # This can be used to rebuild libtool when needed
8742 LIBTOOL_DEPS
=$ltmain
8744 # Always use our own libtool.
8745 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8776 test -z "$LN_S" && LN_S
="ln -s"
8791 if test -n "${ZSH_VERSION+set}"; then
8792 setopt NO_GLOB_SUBST
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8796 $as_echo_n "checking for objdir... " >&6; }
8797 if ${lt_cv_objdir+:} false
; then :
8798 $as_echo_n "(cached) " >&6
8800 rm -f .libs
2>/dev
/null
8801 mkdir .libs
2>/dev
/null
8802 if test -d .libs
; then
8805 # MS-DOS does not allow filenames that begin with a dot.
8808 rmdir .libs
2>/dev
/null
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8811 $as_echo "$lt_cv_objdir" >&6; }
8812 objdir
=$lt_cv_objdir
8818 cat >>confdefs.h
<<_ACEOF
8819 #define LT_OBJDIR "$lt_cv_objdir/"
8827 # AIX sometimes has problems with the GCC collect2 program. For some
8828 # reason, if we set the COLLECT_NAMES environment variable, the problems
8829 # vanish in a puff of smoke.
8830 if test set != "${COLLECT_NAMES+set}"; then
8832 export COLLECT_NAMES
8839 can_build_shared
=yes
8841 # All known linkers require a '.a' archive for static linking (except MSVC,
8842 # which needs '.lib').
8845 with_gnu_ld
=$lt_cv_prog_gnu_ld
8850 # Set sane defaults for various variables
8851 test -z "$CC" && CC
=cc
8852 test -z "$LTCC" && LTCC
=$CC
8853 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8854 test -z "$LD" && LD
=ld
8855 test -z "$ac_objext" && ac_objext
=o
8857 func_cc_basename
$compiler
8858 cc_basename
=$func_cc_basename_result
8861 # Only perform the check for file, if the check method requires it
8862 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8863 case $deplibs_check_method in
8865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8868 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8869 $as_echo_n "(cached) " >&6
8873 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8876 lt_save_MAGIC_CMD
=$MAGIC_CMD
8877 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8878 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8879 for ac_dir
in $ac_dummy; do
8881 test -z "$ac_dir" && ac_dir
=.
8882 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8883 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8884 if test -n "$file_magic_test_file"; then
8885 case $deplibs_check_method in
8887 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8888 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8889 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8890 $EGREP "$file_magic_regex" > /dev
/null
; then
8895 *** Warning: the command libtool uses to detect shared libraries,
8896 *** $file_magic_cmd, produces output that libtool cannot recognize.
8897 *** The result is that libtool may fail to recognize shared libraries
8898 *** as such. This will affect the creation of libtool libraries that
8899 *** depend on shared libraries, but programs linked with such libtool
8900 *** libraries will work regardless of this problem. Nevertheless, you
8901 *** may want to report the problem to your system manager and/or to
8902 *** bug-libtool@gnu.org
8912 MAGIC_CMD
=$lt_save_MAGIC_CMD
8917 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8918 if test -n "$MAGIC_CMD"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8920 $as_echo "$MAGIC_CMD" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8930 if test -z "$lt_cv_path_MAGIC_CMD"; then
8931 if test -n "$ac_tool_prefix"; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8933 $as_echo_n "checking for file... " >&6; }
8934 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8935 $as_echo_n "(cached) " >&6
8939 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8942 lt_save_MAGIC_CMD
=$MAGIC_CMD
8943 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8944 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8945 for ac_dir
in $ac_dummy; do
8947 test -z "$ac_dir" && ac_dir
=.
8948 if test -f "$ac_dir/file"; then
8949 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8950 if test -n "$file_magic_test_file"; then
8951 case $deplibs_check_method in
8953 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8954 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8955 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8956 $EGREP "$file_magic_regex" > /dev
/null
; then
8961 *** Warning: the command libtool uses to detect shared libraries,
8962 *** $file_magic_cmd, produces output that libtool cannot recognize.
8963 *** The result is that libtool may fail to recognize shared libraries
8964 *** as such. This will affect the creation of libtool libraries that
8965 *** depend on shared libraries, but programs linked with such libtool
8966 *** libraries will work regardless of this problem. Nevertheless, you
8967 *** may want to report the problem to your system manager and/or to
8968 *** bug-libtool@gnu.org
8978 MAGIC_CMD
=$lt_save_MAGIC_CMD
8983 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8984 if test -n "$MAGIC_CMD"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8986 $as_echo "$MAGIC_CMD" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
9002 # Use C for the default configuration in the libtool script
9006 ac_cpp
='$CPP $CPPFLAGS'
9007 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9008 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9009 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9012 # Source file extension for C test sources.
9015 # Object file extension for compiled C test sources.
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code
="int some_variable = 0;"
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code
='int main(){return(0);}'
9031 # If no C compiler was specified, use CC.
9034 # If no C compiler flags were specified, use CFLAGS.
9035 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9037 # Allow CC to be a program name with arguments.
9040 # Save the default compiler, since it gets overwritten when the other
9041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9042 compiler_DEFAULT
=$CC
9044 # save warnings/boilerplate of simple test code
9045 ac_outfile
=conftest.
$ac_objext
9046 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9047 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9048 _lt_compiler_boilerplate
=`cat conftest.err`
9051 ac_outfile
=conftest.
$ac_objext
9052 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9053 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
9054 _lt_linker_boilerplate
=`cat conftest.err`
9058 if test -n "$compiler"; then
9060 lt_prog_compiler_no_builtin_flag
=
9062 if test yes = "$GCC"; then
9063 case $cc_basename in
9065 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9067 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9071 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9072 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9073 $as_echo_n "(cached) " >&6
9075 lt_cv_prog_compiler_rtti_exceptions
=no
9076 ac_outfile
=conftest.
$ac_objext
9077 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9078 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9079 # Insert the option either (1) after the last *FLAGS variable, or
9080 # (2) before a word containing "conftest.", or (3) at the end.
9081 # Note that $ac_compile itself does not contain backslashes and begins
9082 # with a dollar sign (not a hyphen), so the echo should work correctly.
9083 # The option is referenced via a variable to avoid confusing sed.
9084 lt_compile
=`echo "$ac_compile" | $SED \
9085 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9087 -e 's:$: $lt_compiler_flag:'`
9088 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9089 (eval "$lt_compile" 2>conftest.err
)
9091 cat conftest.err
>&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 if (exit $ac_status) && test -s "$ac_outfile"; then
9094 # The compiler can only warn and ignore the option if not recognized
9095 # So say no if there are warnings other than the usual output.
9096 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9097 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9098 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9099 lt_cv_prog_compiler_rtti_exceptions
=yes
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9106 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9108 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9109 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9121 lt_prog_compiler_wl
=
9122 lt_prog_compiler_pic
=
9123 lt_prog_compiler_static
=
9126 if test yes = "$GCC"; then
9127 lt_prog_compiler_wl
='-Wl,'
9128 lt_prog_compiler_static
='-static'
9132 # All AIX code is PIC.
9133 if test ia64
= "$host_cpu"; then
9134 # AIX 5 now supports IA64 processor
9135 lt_prog_compiler_static
='-Bstatic'
9137 lt_prog_compiler_pic
='-fPIC'
9143 # see comment about AmigaOS4 .so support
9144 lt_prog_compiler_pic
='-fPIC'
9147 # FIXME: we need at least 68020 code to build shared libraries, but
9148 # adding the '-m68020' flag to GCC prevents building anything better,
9150 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9155 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9156 # PIC is the default for these OSes.
9159 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9160 # This hack is so that the source file can tell whether it is being
9161 # built for inclusion in a dll (and should export symbols for example).
9162 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9163 # (--disable-auto-import) libraries
9164 lt_prog_compiler_pic
='-DDLL_EXPORT'
9167 lt_prog_compiler_static
='$wl-static'
9172 darwin
* | rhapsody
*)
9173 # PIC is the default on this platform
9174 # Common symbols not allowed in MH_DYLIB files
9175 lt_prog_compiler_pic
='-fno-common'
9179 # PIC is the default for Haiku.
9180 # The "-static" flag exists, but is broken.
9181 lt_prog_compiler_static
=
9185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9187 # sets the default TLS model and affects inlining.
9193 lt_prog_compiler_pic
='-fPIC'
9199 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9200 # Instead, we relocate shared libraries at runtime.
9204 # Just because we use GCC doesn't mean we suddenly get shared libraries
9205 # on systems that don't support them.
9206 lt_prog_compiler_can_build_shared
=no
9211 # QNX uses GNU C++, but need to define -shared option too, otherwise
9213 lt_prog_compiler_pic
='-fPIC -shared'
9217 if test -d /usr
/nec
; then
9218 lt_prog_compiler_pic
=-Kconform_pic
9223 lt_prog_compiler_pic
='-fPIC'
9227 case $cc_basename in
9228 nvcc
*) # Cuda Compiler Driver 2.2
9229 lt_prog_compiler_wl
='-Xlinker '
9230 if test -n "$lt_prog_compiler_pic"; then
9231 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
9236 # PORTME Check for flag to pass linker flags through the system compiler.
9239 lt_prog_compiler_wl
='-Wl,'
9240 if test ia64
= "$host_cpu"; then
9241 # AIX 5 now supports IA64 processor
9242 lt_prog_compiler_static
='-Bstatic'
9244 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9248 darwin
* | rhapsody
*)
9249 # PIC is the default on this platform
9250 # Common symbols not allowed in MH_DYLIB files
9251 lt_prog_compiler_pic
='-fno-common'
9252 case $cc_basename in
9254 # NAG Fortran compiler
9255 lt_prog_compiler_wl
='-Wl,-Wl,,'
9256 lt_prog_compiler_pic
='-PIC'
9257 lt_prog_compiler_static
='-Bstatic'
9262 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9263 # This hack is so that the source file can tell whether it is being
9264 # built for inclusion in a dll (and should export symbols for example).
9265 lt_prog_compiler_pic
='-DDLL_EXPORT'
9268 lt_prog_compiler_static
='$wl-static'
9273 hpux9
* | hpux10
* | hpux11
*)
9274 lt_prog_compiler_wl
='-Wl,'
9275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9282 lt_prog_compiler_pic
='+Z'
9285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9286 lt_prog_compiler_static
='$wl-a ${wl}archive'
9289 irix5
* | irix6
* | nonstopux
*)
9290 lt_prog_compiler_wl
='-Wl,'
9291 # PIC (with -KPIC) is the default.
9292 lt_prog_compiler_static
='-non_shared'
9295 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
9296 case $cc_basename in
9297 # old Intel for x86_64, which still supported -KPIC.
9299 lt_prog_compiler_wl
='-Wl,'
9300 lt_prog_compiler_pic
='-KPIC'
9301 lt_prog_compiler_static
='-static'
9303 # icc used to be incompatible with GCC.
9304 # ICC 10 doesn't accept -KPIC any more.
9306 lt_prog_compiler_wl
='-Wl,'
9307 lt_prog_compiler_pic
='-fPIC'
9308 lt_prog_compiler_static
='-static'
9310 # Lahey Fortran 8.1.
9312 lt_prog_compiler_wl
='-Wl,'
9313 lt_prog_compiler_pic
='--shared'
9314 lt_prog_compiler_static
='--static'
9317 # NAG Fortran compiler
9318 lt_prog_compiler_wl
='-Wl,-Wl,,'
9319 lt_prog_compiler_pic
='-PIC'
9320 lt_prog_compiler_static
='-Bstatic'
9323 # Fabrice Bellard et al's Tiny C Compiler
9324 lt_prog_compiler_wl
='-Wl,'
9325 lt_prog_compiler_pic
='-fPIC'
9326 lt_prog_compiler_static
='-static'
9328 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9329 # Portland Group compilers (*not* the Pentium gcc compiler,
9330 # which looks to be a dead project)
9331 lt_prog_compiler_wl
='-Wl,'
9332 lt_prog_compiler_pic
='-fpic'
9333 lt_prog_compiler_static
='-Bstatic'
9336 lt_prog_compiler_wl
='-Wl,'
9337 # All Alpha code is PIC.
9338 lt_prog_compiler_static
='-non_shared'
9340 xl
* | bgxl
* | bgf
* | mpixl
*)
9341 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9342 lt_prog_compiler_wl
='-Wl,'
9343 lt_prog_compiler_pic
='-qpic'
9344 lt_prog_compiler_static
='-qstaticlink'
9347 case `$CC -V 2>&1 | sed 5q` in
9348 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
9349 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9350 lt_prog_compiler_pic
='-KPIC'
9351 lt_prog_compiler_static
='-Bstatic'
9352 lt_prog_compiler_wl
=''
9354 *Sun\ F
* |
*Sun
*Fortran
*)
9355 lt_prog_compiler_pic
='-KPIC'
9356 lt_prog_compiler_static
='-Bstatic'
9357 lt_prog_compiler_wl
='-Qoption ld '
9361 lt_prog_compiler_pic
='-KPIC'
9362 lt_prog_compiler_static
='-Bstatic'
9363 lt_prog_compiler_wl
='-Wl,'
9365 *Intel
*\
[CF
]*Compiler
*)
9366 lt_prog_compiler_wl
='-Wl,'
9367 lt_prog_compiler_pic
='-fPIC'
9368 lt_prog_compiler_static
='-static'
9371 lt_prog_compiler_wl
='-Wl,'
9372 lt_prog_compiler_pic
='-fpic'
9373 lt_prog_compiler_static
='-Bstatic'
9381 lt_prog_compiler_pic
='-KPIC'
9382 lt_prog_compiler_static
='-Bstatic'
9386 # QNX uses GNU C++, but need to define -shared option too, otherwise
9388 lt_prog_compiler_pic
='-fPIC -shared'
9391 osf3
* | osf4
* | osf5
*)
9392 lt_prog_compiler_wl
='-Wl,'
9393 # All OSF/1 code is PIC.
9394 lt_prog_compiler_static
='-non_shared'
9398 lt_prog_compiler_static
='-non_shared'
9402 lt_prog_compiler_pic
='-KPIC'
9403 lt_prog_compiler_static
='-Bstatic'
9404 case $cc_basename in
9405 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
9406 lt_prog_compiler_wl
='-Qoption ld ';;
9408 lt_prog_compiler_wl
='-Wl,';;
9413 lt_prog_compiler_wl
='-Qoption ld '
9414 lt_prog_compiler_pic
='-PIC'
9415 lt_prog_compiler_static
='-Bstatic'
9418 sysv4 | sysv4.2uw2
* | sysv4.3
*)
9419 lt_prog_compiler_wl
='-Wl,'
9420 lt_prog_compiler_pic
='-KPIC'
9421 lt_prog_compiler_static
='-Bstatic'
9425 if test -d /usr
/nec
; then
9426 lt_prog_compiler_pic
='-Kconform_pic'
9427 lt_prog_compiler_static
='-Bstatic'
9431 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9432 lt_prog_compiler_wl
='-Wl,'
9433 lt_prog_compiler_pic
='-KPIC'
9434 lt_prog_compiler_static
='-Bstatic'
9438 lt_prog_compiler_wl
='-Wl,'
9439 lt_prog_compiler_can_build_shared
=no
9443 lt_prog_compiler_pic
='-pic'
9444 lt_prog_compiler_static
='-Bstatic'
9448 lt_prog_compiler_can_build_shared
=no
9454 # For platforms that do not support PIC, -DPIC is meaningless:
9456 lt_prog_compiler_pic
=
9459 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9465 if ${lt_cv_prog_compiler_pic+:} false
; then :
9466 $as_echo_n "(cached) " >&6
9468 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9471 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9472 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
9475 # Check to make sure the PIC flag actually works.
9477 if test -n "$lt_prog_compiler_pic"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9480 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9481 $as_echo_n "(cached) " >&6
9483 lt_cv_prog_compiler_pic_works
=no
9484 ac_outfile
=conftest.
$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9486 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile
=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9497 (eval "$lt_compile" 2>conftest.err
)
9499 cat conftest.err
>&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
9504 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9506 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9507 lt_cv_prog_compiler_pic_works
=yes
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9514 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9516 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9517 case $lt_prog_compiler_pic in
9519 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9522 lt_prog_compiler_pic
=
9523 lt_prog_compiler_can_build_shared
=no
9539 # Check to make sure the static flag actually works.
9541 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9543 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9544 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9545 $as_echo_n "(cached) " >&6
9547 lt_cv_prog_compiler_static_works
=no
9548 save_LDFLAGS
=$LDFLAGS
9549 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9550 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9551 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9552 # The linker can only warn and ignore the option if not recognized
9553 # So say no if there are warnings
9554 if test -s conftest.err
; then
9555 # Append any errors to the config.log.
9556 cat conftest.err
1>&5
9557 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9558 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9559 if diff conftest.exp conftest.er2
>/dev
/null
; then
9560 lt_cv_prog_compiler_static_works
=yes
9563 lt_cv_prog_compiler_static_works
=yes
9567 LDFLAGS
=$save_LDFLAGS
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9571 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9573 if test yes = "$lt_cv_prog_compiler_static_works"; then
9576 lt_prog_compiler_static
=
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9587 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9588 $as_echo_n "(cached) " >&6
9590 lt_cv_prog_compiler_c_o
=no
9591 $RM -r conftest
2>/dev
/null
9595 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9597 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9598 # Insert the option either (1) after the last *FLAGS variable, or
9599 # (2) before a word containing "conftest.", or (3) at the end.
9600 # Note that $ac_compile itself does not contain backslashes and begins
9601 # with a dollar sign (not a hyphen), so the echo should work correctly.
9602 lt_compile
=`echo "$ac_compile" | $SED \
9603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9605 -e 's:$: $lt_compiler_flag:'`
9606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9607 (eval "$lt_compile" 2>out
/conftest.err
)
9609 cat out
/conftest.err
>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9613 # The compiler can only warn and ignore the option if not recognized
9614 # So say no if there are warnings
9615 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9616 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9617 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9618 lt_cv_prog_compiler_c_o
=yes
9623 # SGI C++ compiler will create directory out/ii_files/ for
9624 # template instantiation
9625 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9626 $RM out
/* && rmdir out
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9633 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9642 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9643 $as_echo_n "(cached) " >&6
9645 lt_cv_prog_compiler_c_o
=no
9646 $RM -r conftest
2>/dev
/null
9650 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9652 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 lt_compile
=`echo "$ac_compile" | $SED \
9658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9660 -e 's:$: $lt_compiler_flag:'`
9661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9662 (eval "$lt_compile" 2>out
/conftest.err
)
9664 cat out
/conftest.err
>&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings
9670 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9671 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9672 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9673 lt_cv_prog_compiler_c_o
=yes
9678 # SGI C++ compiler will create directory out/ii_files/ for
9679 # template instantiation
9680 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9681 $RM out
/* && rmdir out
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9688 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9693 hard_links
=nottested
9694 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9695 # do not overwrite the value of need_locks provided by the user
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9697 $as_echo_n "checking if we can lock with hard links... " >&6; }
9700 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9702 ln conftest.a conftest.b
2>&5 || hard_links
=no
9703 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9705 $as_echo "$hard_links" >&6; }
9706 if test no
= "$hard_links"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9708 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9721 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9724 allow_undefined_flag
=
9725 always_export_symbols
=no
9727 archive_expsym_cmds
=
9728 compiler_needs_object
=no
9729 enable_shared_with_static_runtimes
=no
9730 export_dynamic_flag_spec
=
9731 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9732 hardcode_automatic
=no
9734 hardcode_direct_absolute
=no
9735 hardcode_libdir_flag_spec
=
9736 hardcode_libdir_separator
=
9738 hardcode_shlibpath_var
=unsupported
9740 link_all_deplibs
=unknown
9743 old_archive_from_new_cmds
=
9744 old_archive_from_expsyms_cmds
=
9745 thread_safe_flag_spec
=
9746 whole_archive_flag_spec
=
9747 # include_expsyms should be a list of space-separated symbols to be *always*
9748 # included in the symbol list
9750 # exclude_expsyms can be an extended regexp of symbols to exclude
9751 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9752 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9753 # as well as any symbol that contains 'd'.
9754 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9755 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9756 # platforms (ab)use it in PIC code, but their linkers get confused if
9757 # the symbol is explicitly referenced. Since portable code cannot
9758 # rely on this symbol name, it's probably fine to never include it in
9759 # preloaded symbol tables.
9760 # Exclude shared library initialization/finalization symbols.
9761 extract_expsyms_cmds
=
9764 cygwin
* | mingw
* | pw32
* | cegcc
*)
9765 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9766 # When not using gcc, we currently assume that we are using
9767 # Microsoft Visual C++.
9768 if test yes != "$GCC"; then
9773 # we just hope/assume this is gcc and not c89 (= MSVC++)
9783 # On some targets, GNU ld is compatible enough with the native linker
9784 # that we're better off using the native interface for both.
9785 lt_use_gnu_ld_interface
=no
9786 if test yes = "$with_gnu_ld"; then
9789 # The AIX port of GNU ld has always aspired to compatibility
9790 # with the native linker. However, as the warning in the GNU ld
9791 # block says, versions before 2.19.5* couldn't really create working
9792 # shared libraries, regardless of the interface used.
9793 case `$LD -v 2>&1` in
9794 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9795 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9796 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9798 lt_use_gnu_ld_interface
=yes
9803 lt_use_gnu_ld_interface
=yes
9808 if test yes = "$lt_use_gnu_ld_interface"; then
9809 # If archive_cmds runs LD, not CC, wlarc should be empty
9812 # Set some defaults for GNU ld with shared library support. These
9813 # are reset later if shared libraries are not supported. Putting them
9814 # here allows them to be overridden if necessary.
9815 runpath_var
=LD_RUN_PATH
9816 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9817 export_dynamic_flag_spec
='$wl--export-dynamic'
9818 # ancient GNU ld didn't support --whole-archive et. al.
9819 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9820 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9822 whole_archive_flag_spec
=
9824 supports_anon_versioning
=no
9825 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9826 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9827 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9828 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9829 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9830 *\
2.11.
*) ;; # other 2.11 versions
9831 *) supports_anon_versioning
=yes ;;
9834 # See if GNU ld supports shared libraries.
9837 # On AIX/PPC, the GNU linker is very broken
9838 if test ia64
!= "$host_cpu"; then
9842 *** Warning: the GNU linker, at least up to release 2.19, is reported
9843 *** to be unable to reliably create shared libraries on AIX.
9844 *** Therefore, libtool is disabling shared libraries support. If you
9845 *** really care for shared libraries, you may want to install binutils
9846 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9847 *** You will then need to restart the configuration process.
9856 # see comment about AmigaOS4 .so support
9857 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9858 archive_expsym_cmds
=''
9861 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)'
9862 hardcode_libdir_flag_spec
='-L$libdir'
9863 hardcode_minus_L
=yes
9869 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9870 allow_undefined_flag
=unsupported
9871 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9872 # support --undefined. This deserves some investigation. FIXME
9873 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9879 cygwin
* | mingw
* | pw32
* | cegcc
*)
9880 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9881 # as there is no search path for DLLs.
9882 hardcode_libdir_flag_spec
='-L$libdir'
9883 export_dynamic_flag_spec
='$wl--export-all-symbols'
9884 allow_undefined_flag
=unsupported
9885 always_export_symbols
=no
9886 enable_shared_with_static_runtimes
=yes
9887 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9888 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9890 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9891 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892 # If the export-symbols file already is a .def file, use it as
9893 # is; otherwise, prepend EXPORTS...
9894 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9895 cp $export_symbols $output_objdir/$soname.def;
9897 echo EXPORTS > $output_objdir/$soname.def;
9898 cat $export_symbols >> $output_objdir/$soname.def;
9900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9907 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9908 link_all_deplibs
=yes
9912 hardcode_libdir_flag_spec
='-L$libdir'
9913 hardcode_minus_L
=yes
9914 allow_undefined_flag
=unsupported
9916 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9917 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9918 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9919 $ECHO EXPORTS >> $output_objdir/$libname.def~
9920 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9921 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9922 emximp -o $lib $output_objdir/$libname.def'
9923 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9924 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9925 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9926 $ECHO EXPORTS >> $output_objdir/$libname.def~
9928 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9929 prefix_cmds="$prefix_cmds -e 1d";
9931 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9932 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9933 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9934 emximp -o $lib $output_objdir/$libname.def'
9935 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9936 enable_shared_with_static_runtimes
=yes
9941 hardcode_shlibpath_var
=no
9942 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9943 export_dynamic_flag_spec
='$wl-E'
9944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9945 # Instead, shared libraries are loaded at an image base (0x10000000 by
9946 # default) and relocated if they conflict, which is a slow very memory
9947 # consuming and fragmenting process. To avoid this, we pick a random,
9948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9950 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9951 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'
9954 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9956 if test linux-dietlibc
= "$host_os"; then
9957 case $cc_basename in
9958 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9961 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9962 && test no
= "$tmp_diet"
9964 tmp_addflag
=' $pic_flag'
9965 tmp_sharedflag
='-shared'
9966 case $cc_basename,$host_cpu in
9967 pgcc
*) # Portland Group C compiler
9968 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'
9969 tmp_addflag
=' $pic_flag'
9971 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9972 # Portland Group f77 and f90 compilers
9973 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'
9974 tmp_addflag
=' $pic_flag -Mnomain' ;;
9975 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9976 tmp_addflag
=' -i_dynamic' ;;
9977 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9978 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9979 ifc
* | ifort
*) # Intel Fortran compiler
9980 tmp_addflag
=' -nofor_main' ;;
9981 lf95
*) # Lahey Fortran 8.1
9982 whole_archive_flag_spec
=
9983 tmp_sharedflag
='--shared' ;;
9984 nagfor
*) # NAGFOR 5.3
9985 tmp_sharedflag
='-Wl,-shared' ;;
9986 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9987 tmp_sharedflag
='-qmkshrobj'
9989 nvcc
*) # Cuda Compiler Driver 2.2
9990 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'
9991 compiler_needs_object
=yes
9994 case `$CC -V 2>&1 | sed 5q` in
9995 *Sun\ C
*) # Sun C 5.9
9996 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'
9997 compiler_needs_object
=yes
9998 tmp_sharedflag
='-G' ;;
9999 *Sun\ F
*) # Sun Fortran 8.3
10000 tmp_sharedflag
='-G' ;;
10002 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10004 if test yes = "$supports_anon_versioning"; then
10005 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10006 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10007 echo "local: *; };" >> $output_objdir/$libname.ver~
10008 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10011 case $cc_basename in
10013 export_dynamic_flag_spec
='-rdynamic'
10015 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10016 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10017 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10018 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10019 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10020 if test yes = "$supports_anon_versioning"; then
10021 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10023 echo "local: *; };" >> $output_objdir/$libname.ver~
10024 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10034 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10035 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10038 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10039 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10044 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10048 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10049 *** create shared libraries on Solaris systems. Therefore, libtool
10050 *** is disabling shared libraries support. We urge you to upgrade GNU
10051 *** binutils to release 2.9.1 or newer. Another option is to modify
10052 *** your PATH or compiler configuration so that the native linker is
10053 *** used, and then restart.
10056 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10057 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10064 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10065 case `$LD -v 2>&1` in
10066 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10070 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10071 *** reliably create shared libraries on SCO systems. Therefore, libtool
10072 *** is disabling shared libraries support. We urge you to upgrade GNU
10073 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10074 *** your PATH or compiler configuration so that the native linker is
10075 *** used, and then restart.
10080 # For security reasons, it is highly recommended that you always
10081 # use absolute paths for naming shared libraries, and exclude the
10082 # DT_RUNPATH tag from executables and libraries. But doing so
10083 # requires that you compile everything twice, which is a pain.
10084 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10085 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10086 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10087 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10096 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_direct
=yes
10099 hardcode_shlibpath_var
=no
10103 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10104 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10105 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10112 if test no
= "$ld_shlibs"; then
10114 hardcode_libdir_flag_spec
=
10115 export_dynamic_flag_spec
=
10116 whole_archive_flag_spec
=
10119 # PORTME fill in a description of your system's linker (not GNU ld)
10122 allow_undefined_flag
=unsupported
10123 always_export_symbols
=yes
10124 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'
10125 # Note: this linker hardcodes the directories in LIBPATH if there
10126 # are no directories specified by -L.
10127 hardcode_minus_L
=yes
10128 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10129 # Neither direct hardcoding nor static linking is supported with a
10131 hardcode_direct
=unsupported
10136 if test ia64
= "$host_cpu"; then
10137 # On IA64, the linker does run time linking by default, so we don't
10138 # have to do anything special.
10139 aix_use_runtimelinking
=no
10140 exp_sym_flag
='-Bexport'
10143 # If we're using GNU nm, then we don't want the "-C" option.
10144 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10145 # Without the "-l" option, or with the "-B" option, AIX nm treats
10146 # weak defined symbols like other global defined symbols, whereas
10147 # GNU nm marks them as "W".
10148 # While the 'weak' keyword is ignored in the Export File, we need
10149 # it in the Import File for the 'aix-soname' feature, so we have
10150 # to replace the "-B" option with "-P" for AIX nm.
10151 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10152 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10154 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10156 aix_use_runtimelinking
=no
10158 # Test if we are trying to use run time linking or normal
10159 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10160 # have runtime linking enabled, and use it for executables.
10161 # For shared libraries, we enable/disable runtime linking
10162 # depending on the kind of the shared library created -
10163 # when "with_aix_soname,aix_use_runtimelinking" is:
10164 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10165 # "aix,yes" lib.so shared, rtl:yes, for executables
10166 # lib.a static archive
10167 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10168 # lib.a(lib.so.V) shared, rtl:no, for executables
10169 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10170 # lib.a(lib.so.V) shared, rtl:no
10171 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10172 # lib.a static archive
10173 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10174 for ld_flag
in $LDFLAGS; do
10175 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
10176 aix_use_runtimelinking
=yes
10180 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
10181 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10182 # so we don't have lib.a shared libs to link our executables.
10183 # We have to force runtime linking in this case.
10184 aix_use_runtimelinking
=yes
10185 LDFLAGS
="$LDFLAGS -Wl,-brtl"
10190 exp_sym_flag
='-bexport'
10191 no_entry_flag
='-bnoentry'
10194 # When large executables or shared objects are built, AIX ld can
10195 # have problems creating the table of contents. If linking a library
10196 # or program results in "error TOC overflow" add -mminimal-toc to
10197 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10198 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10201 hardcode_direct
=yes
10202 hardcode_direct_absolute
=yes
10203 hardcode_libdir_separator
=':'
10204 link_all_deplibs
=yes
10205 file_list_spec
='$wl-f,'
10206 case $with_aix_soname,$aix_use_runtimelinking in
10207 aix
,*) ;; # traditional, no import file
10208 svr4
,* |
*,yes) # use import file
10209 # The Import File defines what to hardcode.
10211 hardcode_direct_absolute
=no
10215 if test yes = "$GCC"; then
10216 case $host_os in aix4.
[012]|aix4.
[012].
*)
10217 # We only want to do this on AIX 4.2 and lower, the check
10218 # below for broken collect2 doesn't work under 4.3+
10219 collect2name
=`$CC -print-prog-name=collect2`
10220 if test -f "$collect2name" &&
10221 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10223 # We have reworked collect2
10226 # We have old collect2
10227 hardcode_direct
=unsupported
10228 # It fails to find uninstalled libraries when the uninstalled
10229 # path is not listed in the libpath. Setting hardcode_minus_L
10230 # to unsupported forces relinking
10231 hardcode_minus_L
=yes
10232 hardcode_libdir_flag_spec
='-L$libdir'
10233 hardcode_libdir_separator
=
10237 shared_flag
='-shared'
10238 if test yes = "$aix_use_runtimelinking"; then
10239 shared_flag
="$shared_flag "'$wl-G'
10241 # Need to ensure runtime linking is disabled for the traditional
10242 # shared library, or the linker may eventually find shared libraries
10243 # /with/ Import File - we do not want to mix them.
10244 shared_flag_aix
='-shared'
10245 shared_flag_svr4
='-shared $wl-G'
10248 if test ia64
= "$host_cpu"; then
10249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10250 # chokes on -Wl,-G. The following line is correct:
10253 if test yes = "$aix_use_runtimelinking"; then
10254 shared_flag
='$wl-G'
10256 shared_flag
='$wl-bM:SRE'
10258 shared_flag_aix
='$wl-bM:SRE'
10259 shared_flag_svr4
='$wl-G'
10263 export_dynamic_flag_spec
='$wl-bexpall'
10264 # It seems that -bexpall does not export symbols beginning with
10265 # underscore (_), so it is better to generate a list of symbols to export.
10266 always_export_symbols
=yes
10267 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10268 # Warning - without using the other runtime loading flags (-brtl),
10269 # -berok will link without error, but may produce a broken library.
10270 allow_undefined_flag
='-berok'
10271 # Determine the default libpath from the value encoded in an
10272 # empty executable.
10273 if test set = "${lt_cv_aix_libpath+set}"; then
10274 aix_libpath
=$lt_cv_aix_libpath
10276 if ${lt_cv_aix_libpath_+:} false
; then :
10277 $as_echo_n "(cached) " >&6
10279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10290 if ac_fn_c_try_link
"$LINENO"; then :
10292 lt_aix_libpath_sed
='
10293 /Import File Strings/,/^$/ {
10295 s/^0 *\([^ ]*\) *$/\1/
10299 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10300 # Check for a 64-bit object if we didn't find anything.
10301 if test -z "$lt_cv_aix_libpath_"; then
10302 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10305 rm -f core conftest.err conftest.
$ac_objext \
10306 conftest
$ac_exeext conftest.
$ac_ext
10307 if test -z "$lt_cv_aix_libpath_"; then
10308 lt_cv_aix_libpath_
=/usr
/lib
:/lib
10313 aix_libpath
=$lt_cv_aix_libpath_
10316 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
10317 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
10319 if test ia64
= "$host_cpu"; then
10320 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
10321 allow_undefined_flag
="-z nodefs"
10322 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"
10324 # Determine the default libpath from the value encoded in an
10325 # empty executable.
10326 if test set = "${lt_cv_aix_libpath+set}"; then
10327 aix_libpath
=$lt_cv_aix_libpath
10329 if ${lt_cv_aix_libpath_+:} false
; then :
10330 $as_echo_n "(cached) " >&6
10332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10333 /* end confdefs.h. */
10343 if ac_fn_c_try_link
"$LINENO"; then :
10345 lt_aix_libpath_sed
='
10346 /Import File Strings/,/^$/ {
10348 s/^0 *\([^ ]*\) *$/\1/
10352 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10353 # Check for a 64-bit object if we didn't find anything.
10354 if test -z "$lt_cv_aix_libpath_"; then
10355 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10358 rm -f core conftest.err conftest.
$ac_objext \
10359 conftest
$ac_exeext conftest.
$ac_ext
10360 if test -z "$lt_cv_aix_libpath_"; then
10361 lt_cv_aix_libpath_
=/usr
/lib
:/lib
10366 aix_libpath
=$lt_cv_aix_libpath_
10369 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
10370 # Warning - without using the other run time loading flags,
10371 # -berok will link without error, but may produce a broken library.
10372 no_undefined_flag
=' $wl-bernotok'
10373 allow_undefined_flag
=' $wl-berok'
10374 if test yes = "$with_gnu_ld"; then
10375 # We only use this code for GNU lds that support --whole-archive.
10376 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
10378 # Exported symbols can be pulled into shared objects from archives
10379 whole_archive_flag_spec
='$convenience'
10381 archive_cmds_need_lc
=yes
10382 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10383 # -brtl affects multiple linker settings, -berok does not and is overridden later
10384 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10385 if test svr4
!= "$with_aix_soname"; then
10386 # This is similar to how AIX traditionally builds its shared libraries.
10387 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10389 if test aix
!= "$with_aix_soname"; then
10390 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10392 # used by -dlpreopen to get the symbols
10393 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10395 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10403 # see comment about AmigaOS4 .so support
10404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10405 archive_expsym_cmds
=''
10408 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)'
10409 hardcode_libdir_flag_spec
='-L$libdir'
10410 hardcode_minus_L
=yes
10416 export_dynamic_flag_spec
=-rdynamic
10419 cygwin
* | mingw
* | pw32
* | cegcc
*)
10420 # When not using gcc, we currently assume that we are using
10421 # Microsoft Visual C++.
10422 # hardcode_libdir_flag_spec is actually meaningless, as there is
10423 # no search path for DLLs.
10424 case $cc_basename in
10427 hardcode_libdir_flag_spec
=' '
10428 allow_undefined_flag
=unsupported
10429 always_export_symbols
=yes
10431 # Tell ltmain to make .lib files, not .a files.
10433 # Tell ltmain to make .dll files, not .so files.
10435 # FIXME: Setting linknames here is a bad hack.
10436 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10437 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10438 cp "$export_symbols" "$output_objdir/$soname.def";
10439 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10441 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10443 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10445 # The linker will not automatically build a static lib if we build a DLL.
10446 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10447 enable_shared_with_static_runtimes
=yes
10448 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10449 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10451 old_postinstall_cmds
='chmod 644 $oldlib'
10452 postlink_cmds
='lt_outputfile="@OUTPUT@"~
10453 lt_tool_outputfile="@TOOL_OUTPUT@"~
10454 case $lt_outputfile in
10457 lt_outputfile=$lt_outputfile.exe
10458 lt_tool_outputfile=$lt_tool_outputfile.exe
10461 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10462 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10463 $RM "$lt_outputfile.manifest";
10467 # Assume MSVC wrapper
10468 hardcode_libdir_flag_spec
=' '
10469 allow_undefined_flag
=unsupported
10470 # Tell ltmain to make .lib files, not .a files.
10472 # Tell ltmain to make .dll files, not .so files.
10474 # FIXME: Setting linknames here is a bad hack.
10475 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10476 # The linker will automatically build a .lib file if we build a DLL.
10477 old_archive_from_new_cmds
='true'
10478 # FIXME: Should let the user specify the lib program.
10479 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10480 enable_shared_with_static_runtimes
=yes
10485 darwin
* | rhapsody
*)
10488 archive_cmds_need_lc
=no
10490 hardcode_automatic
=yes
10491 hardcode_shlibpath_var
=unsupported
10492 if test yes = "$lt_cv_ld_force_load"; then
10493 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\"`'
10496 whole_archive_flag_spec
=''
10498 link_all_deplibs
=yes
10499 allow_undefined_flag
=$_lt_dar_allow_undefined
10500 case $cc_basename in
10501 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
10502 *) _lt_dar_can_shared
=$GCC ;;
10504 if test yes = "$_lt_dar_can_shared"; then
10505 output_verbose_link_cmd
=func_echo_all
10506 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10507 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10508 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"
10509 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"
10518 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519 hardcode_libdir_flag_spec
='-L$libdir'
10520 hardcode_shlibpath_var
=no
10523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10524 # support. Future versions do this automatically, but an explicit c++rt0.o
10525 # does not break anything, and helps significantly (at the cost of a little
10528 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10529 hardcode_libdir_flag_spec
='-R$libdir'
10530 hardcode_direct
=yes
10531 hardcode_shlibpath_var
=no
10534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10536 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_direct
=yes
10538 hardcode_minus_L
=yes
10539 hardcode_shlibpath_var
=no
10542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10543 freebsd
* | dragonfly
*)
10544 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10545 hardcode_libdir_flag_spec
='-R$libdir'
10546 hardcode_direct
=yes
10547 hardcode_shlibpath_var
=no
10551 if test yes = "$GCC"; then
10552 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10554 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10556 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10557 hardcode_libdir_separator
=:
10558 hardcode_direct
=yes
10560 # hardcode_minus_L: Not really in the search PATH,
10561 # but as the default location of the library.
10562 hardcode_minus_L
=yes
10563 export_dynamic_flag_spec
='$wl-E'
10567 if test yes,no
= "$GCC,$with_gnu_ld"; then
10568 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10572 if test no
= "$with_gnu_ld"; then
10573 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10574 hardcode_libdir_separator
=:
10575 hardcode_direct
=yes
10576 hardcode_direct_absolute
=yes
10577 export_dynamic_flag_spec
='$wl-E'
10578 # hardcode_minus_L: Not really in the search PATH,
10579 # but as the default location of the library.
10580 hardcode_minus_L
=yes
10585 if test yes,no
= "$GCC,$with_gnu_ld"; then
10588 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10591 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10600 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10603 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10607 # Older versions of the 11.00 compiler do not understand -b yet
10608 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10610 $as_echo_n "checking if $CC understands -b... " >&6; }
10611 if ${lt_cv_prog_compiler__b+:} false
; then :
10612 $as_echo_n "(cached) " >&6
10614 lt_cv_prog_compiler__b
=no
10615 save_LDFLAGS
=$LDFLAGS
10616 LDFLAGS
="$LDFLAGS -b"
10617 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10618 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10619 # The linker can only warn and ignore the option if not recognized
10620 # So say no if there are warnings
10621 if test -s conftest.err
; then
10622 # Append any errors to the config.log.
10623 cat conftest.err
1>&5
10624 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10625 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10626 if diff conftest.exp conftest.er2
>/dev
/null
; then
10627 lt_cv_prog_compiler__b
=yes
10630 lt_cv_prog_compiler__b
=yes
10634 LDFLAGS
=$save_LDFLAGS
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10638 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10640 if test yes = "$lt_cv_prog_compiler__b"; then
10641 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10643 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10649 if test no
= "$with_gnu_ld"; then
10650 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10651 hardcode_libdir_separator
=:
10656 hardcode_shlibpath_var
=no
10659 hardcode_direct
=yes
10660 hardcode_direct_absolute
=yes
10661 export_dynamic_flag_spec
='$wl-E'
10663 # hardcode_minus_L: Not really in the search PATH,
10664 # but as the default location of the library.
10665 hardcode_minus_L
=yes
10671 irix5
* | irix6
* | nonstopux
*)
10672 if test yes = "$GCC"; then
10673 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10674 # Try to use the -exported_symbol ld option, if it does not
10675 # work, assume that -exports_file does not work either and
10676 # implicitly export all symbols.
10677 # This should be the same for all languages, so no per-tag cache variable.
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10679 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10680 if ${lt_cv_irix_exported_symbol+:} false
; then :
10681 $as_echo_n "(cached) " >&6
10683 save_LDFLAGS
=$LDFLAGS
10684 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10686 /* end confdefs.h. */
10687 int foo (void) { return 0; }
10689 if ac_fn_c_try_link
"$LINENO"; then :
10690 lt_cv_irix_exported_symbol
=yes
10692 lt_cv_irix_exported_symbol
=no
10694 rm -f core conftest.err conftest.
$ac_objext \
10695 conftest
$ac_exeext conftest.
$ac_ext
10696 LDFLAGS
=$save_LDFLAGS
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10699 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10700 if test yes = "$lt_cv_irix_exported_symbol"; then
10701 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10704 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'
10705 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'
10707 archive_cmds_need_lc
='no'
10708 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10709 hardcode_libdir_separator
=:
10711 link_all_deplibs
=yes
10715 case $cc_basename in
10717 # Fabrice Bellard et al's Tiny C Compiler
10719 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10725 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10726 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10728 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10730 hardcode_libdir_flag_spec
='-R$libdir'
10731 hardcode_direct
=yes
10732 hardcode_shlibpath_var
=no
10736 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10737 hardcode_direct
=yes
10738 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10739 hardcode_libdir_separator
=:
10740 hardcode_shlibpath_var
=no
10746 openbsd
* | bitrig
*)
10747 if test -f /usr
/libexec
/ld.so
; then
10748 hardcode_direct
=yes
10749 hardcode_shlibpath_var
=no
10750 hardcode_direct_absolute
=yes
10751 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10752 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10753 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10754 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10755 export_dynamic_flag_spec
='$wl-E'
10757 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10766 hardcode_libdir_flag_spec
='-L$libdir'
10767 hardcode_minus_L
=yes
10768 allow_undefined_flag
=unsupported
10770 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10773 $ECHO EXPORTS >> $output_objdir/$libname.def~
10774 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10775 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10776 emximp -o $lib $output_objdir/$libname.def'
10777 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10780 $ECHO EXPORTS >> $output_objdir/$libname.def~
10781 prefix_cmds="$SED"~
10782 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10783 prefix_cmds="$prefix_cmds -e 1d";
10785 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10786 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10787 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10788 emximp -o $lib $output_objdir/$libname.def'
10789 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10790 enable_shared_with_static_runtimes
=yes
10794 if test yes = "$GCC"; then
10795 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10796 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'
10798 allow_undefined_flag
=' -expect_unresolved \*'
10799 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'
10801 archive_cmds_need_lc
='no'
10802 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10803 hardcode_libdir_separator
=:
10806 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10807 if test yes = "$GCC"; then
10808 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10809 archive_cmds
='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10810 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10812 allow_undefined_flag
=' -expect_unresolved \*'
10813 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'
10814 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~
10815 $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'
10817 # Both c and cxx compiler support -rpath directly
10818 hardcode_libdir_flag_spec
='-rpath $libdir'
10820 archive_cmds_need_lc
='no'
10821 hardcode_libdir_separator
=:
10825 no_undefined_flag
=' -z defs'
10826 if test yes = "$GCC"; then
10828 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10832 case `$CC -V 2>&1` in
10835 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10836 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10841 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10847 hardcode_libdir_flag_spec
='-R$libdir'
10848 hardcode_shlibpath_var
=no
10850 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10852 # The compiler driver will combine and reorder linker options,
10853 # but understands '-z linker_flag'. GCC discards it without '$wl',
10854 # but is careful enough not to reorder.
10855 # Supported since Solaris 2.6 (maybe 2.5.1?)
10856 if test yes = "$GCC"; then
10857 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10859 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10863 link_all_deplibs
=yes
10867 if test sequent
= "$host_vendor"; then
10868 # Use $CC to link under sequent, because it throws in some extra .o
10869 # files that make .init and .fini sections work.
10870 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_libdir_flag_spec
='-L$libdir'
10875 hardcode_direct
=yes
10876 hardcode_minus_L
=yes
10877 hardcode_shlibpath_var
=no
10881 case $host_vendor in
10883 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_direct
=yes # is this really true???
10887 ## LD is ld it makes a PLAMLIB
10888 ## CC just makes a GrossModule.
10889 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10890 reload_cmds
='$CC -r -o $output$reload_objs'
10894 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10898 runpath_var
='LD_RUN_PATH'
10899 hardcode_shlibpath_var
=no
10903 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var
=no
10905 export_dynamic_flag_spec
='-Bexport'
10909 if test -d /usr
/nec
; then
10910 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_shlibpath_var
=no
10912 runpath_var
=LD_RUN_PATH
10913 hardcode_runpath_var
=yes
10918 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10919 no_undefined_flag
='$wl-z,text'
10920 archive_cmds_need_lc
=no
10921 hardcode_shlibpath_var
=no
10922 runpath_var
='LD_RUN_PATH'
10924 if test yes = "$GCC"; then
10925 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10928 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 sysv5
* | sco3.2v5
* | sco5v6
*)
10934 # Note: We CANNOT use -z defs as we might desire, because we do not
10935 # link with -lc, and that would cause any symbols used from libc to
10936 # always be unresolved, which means just about no library would
10937 # ever link correctly. If we're not using GNU ld we use -z text
10938 # though, which does catch some bad symbols but isn't as heavy-handed
10940 no_undefined_flag
='$wl-z,text'
10941 allow_undefined_flag
='$wl-z,nodefs'
10942 archive_cmds_need_lc
=no
10943 hardcode_shlibpath_var
=no
10944 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10945 hardcode_libdir_separator
=':'
10946 link_all_deplibs
=yes
10947 export_dynamic_flag_spec
='$wl-Bexport'
10948 runpath_var
='LD_RUN_PATH'
10950 if test yes = "$GCC"; then
10951 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_libdir_flag_spec
='-L$libdir'
10962 hardcode_shlibpath_var
=no
10970 if test sni
= "$host_vendor"; then
10972 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10973 export_dynamic_flag_spec
='$wl-Blargedynsym'
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10980 $as_echo "$ld_shlibs" >&6; }
10981 test no
= "$ld_shlibs" && can_build_shared
=no
10983 with_gnu_ld
=$with_gnu_ld
11000 # Do we need to explicitly link libc?
11002 case "x$archive_cmds_need_lc" in
11004 # Assume -lc should be added
11005 archive_cmds_need_lc
=yes
11007 if test yes,yes = "$GCC,$enable_shared"; then
11008 case $archive_cmds in
11010 # FIXME: we may have to deal with multi-command sequences.
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11018 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11019 $as_echo_n "(cached) " >&6
11022 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11025 (eval $ac_compile) 2>&5
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; } 2>conftest.err
; then
11031 libobjs
=conftest.
$ac_objext
11033 wl
=$lt_prog_compiler_wl
11034 pic_flag
=$lt_prog_compiler_pic
11040 lt_save_allow_undefined_flag
=$allow_undefined_flag
11041 allow_undefined_flag
=
11042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11043 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; }
11048 lt_cv_archive_cmds_need_lc
=no
11050 lt_cv_archive_cmds_need_lc
=yes
11052 allow_undefined_flag
=$lt_save_allow_undefined_flag
11054 cat conftest.err
1>&5
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11060 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11061 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11220 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11222 if test yes = "$GCC"; then
11224 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
11225 *) lt_awk_arg
='/^libraries:/' ;;
11228 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
11229 *) lt_sed_strip_eq
='s|=/|/|g' ;;
11231 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11232 case $lt_search_path_spec in
11234 # if the path contains ";" then we assume it to be the separator
11235 # otherwise default to the standard path separator (i.e. ":") - it is
11236 # assumed that no part of a normal pathname contains ";" but that should
11237 # okay in the real world where ";" in dirpaths is itself problematic.
11238 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11241 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11244 # Ok, now we have the path, separated by spaces, we can step through it
11245 # and add multilib dir if necessary...
11246 lt_tmp_lt_search_path_spec
=
11247 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11248 # ...but if some path component already ends with the multilib dir we assume
11249 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11250 case "$lt_multi_os_dir; $lt_search_path_spec " in
11251 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
11255 for lt_sys_path
in $lt_search_path_spec; do
11256 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11257 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11258 elif test -n "$lt_multi_os_dir"; then
11259 test -d "$lt_sys_path" && \
11260 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11263 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11264 BEGIN {RS = " "; FS = "/|\n";} {
11267 for (lt_i = NF; lt_i > 0; lt_i--) {
11268 if ($lt_i != "" && $lt_i != ".") {
11269 if ($lt_i == "..") {
11272 if (lt_count == 0) {
11273 lt_foo = "/" $lt_i lt_foo;
11280 if (lt_foo != "") { lt_freq[lt_foo]++; }
11281 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11283 # AWK program above erroneously prepends '/' to C:/dos/paths
11286 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11287 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11289 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11291 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11293 library_names_spec
=
11294 libname_spec
='lib$name'
11298 postuninstall_cmds
=
11302 shlibpath_overrides_runpath
=unknown
11304 dynamic_linker
="$host_os ld.so"
11305 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11306 need_lib_prefix
=unknown
11307 hardcode_into_libs
=no
11309 # when you set need_version to no, make sure it does not cause -set_version
11310 # flags to be left without arguments
11311 need_version
=unknown
11317 version_type
=linux
# correct to gnu/linux during the next big refactor
11318 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
11319 shlibpath_var
=LIBPATH
11321 # AIX 3 has no versioning support, so we append a major version to the name.
11322 soname_spec
='$libname$release$shared_ext$major'
11326 version_type
=linux
# correct to gnu/linux during the next big refactor
11329 hardcode_into_libs
=yes
11330 if test ia64
= "$host_cpu"; then
11331 # AIX 5 supports IA64
11332 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11333 shlibpath_var
=LD_LIBRARY_PATH
11335 # With GCC up to 2.95.x, collect2 would create an import file
11336 # for dependence libraries. The import file would start with
11337 # the line '#! .'. This would cause the generated library to
11338 # depend on '.', always an invalid library. This was fixed in
11339 # development snapshots of GCC prior to 3.0.
11341 aix4 | aix4.
[01] | aix4.
[01].
*)
11342 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
11347 can_build_shared
=no
11351 # Using Import Files as archive members, it is possible to support
11352 # filename-based versioning of shared library archives on AIX. While
11353 # this would work for both with and without runtime linking, it will
11354 # prevent static linking of such archives. So we do filename-based
11355 # shared library versioning with .so extension only, which is used
11356 # when both runtime linking and shared linking is enabled.
11357 # Unfortunately, runtime linking may impact performance, so we do
11358 # not want this to be the default eventually. Also, we use the
11359 # versioned .so libs for executables only if there is the -brtl
11360 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11361 # To allow for filename-based versioning support, we need to create
11362 # libNAME.so.V as an archive file, containing:
11363 # *) an Import File, referring to the versioned filename of the
11364 # archive as well as the shared archive member, telling the
11365 # bitwidth (32 or 64) of that shared object, and providing the
11366 # list of exported symbols of that shared object, eventually
11367 # decorated with the 'weak' keyword
11368 # *) the shared object with the F_LOADONLY flag set, to really avoid
11369 # it being seen by the linker.
11370 # At run time we better use the real file rather than another symlink,
11371 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11373 case $with_aix_soname,$aix_use_runtimelinking in
11374 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11375 # soname into executable. Probably we can add versioning support to
11376 # collect2, so additional links can be useful in future.
11377 aix
,yes) # traditional libtool
11378 dynamic_linker
='AIX unversionable lib.so'
11379 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11380 # instead of lib<name>.a to let people know that these are not
11381 # typical AIX shared libraries.
11382 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 aix
,no
) # traditional AIX only
11385 dynamic_linker
='AIX lib.a(lib.so.V)'
11386 # We preserve .a as extension for shared libraries through AIX4.2
11387 # and later when we are not doing run time linking.
11388 library_names_spec
='$libname$release.a $libname.a'
11389 soname_spec
='$libname$release$shared_ext$major'
11391 svr4
,*) # full svr4 only
11392 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
11393 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
11394 # We do not specify a path in Import Files, so LIBPATH fires.
11395 shlibpath_overrides_runpath
=yes
11397 *,yes) # both, prefer svr4
11398 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11399 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
11400 # unpreferred sharedlib libNAME.a needs extra handling
11401 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11402 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11403 # We do not specify a path in Import Files, so LIBPATH fires.
11404 shlibpath_overrides_runpath
=yes
11406 *,no
) # both, prefer aix
11407 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11408 library_names_spec
='$libname$release.a $libname.a'
11409 soname_spec
='$libname$release$shared_ext$major'
11410 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11411 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11412 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11415 shlibpath_var
=LIBPATH
11422 # Since July 2007 AmigaOS4 officially supports .so libraries.
11423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11424 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11427 library_names_spec
='$libname.ixlibrary $libname.a'
11428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11429 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11435 library_names_spec
='$libname$shared_ext'
11436 dynamic_linker
="$host_os ld.so"
11437 shlibpath_var
=LIBRARY_PATH
11441 version_type
=linux
# correct to gnu/linux during the next big refactor
11443 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11444 soname_spec
='$libname$release$shared_ext$major'
11445 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11446 shlibpath_var
=LD_LIBRARY_PATH
11447 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11448 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11449 # the default ld.so.conf also contains /usr/contrib/lib and
11450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11451 # libtool to hard-code these into programs
11454 cygwin
* | mingw
* | pw32
* | cegcc
*)
11455 version_type
=windows
11460 case $GCC,$cc_basename in
11463 library_names_spec
='$libname.dll.a'
11464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11465 postinstall_cmds
='base_file=`basename \$file`~
11466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11467 dldir=$destdir/`dirname \$dlpath`~
11468 test -d \$dldir || mkdir -p \$dldir~
11469 $install_prog $dir/$dlname \$dldir/$dlname~
11470 chmod a+x \$dldir/$dlname~
11471 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11472 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11474 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11475 dlpath=$dir/\$dldll~
11477 shlibpath_overrides_runpath
=yes
11481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11482 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11484 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11487 # MinGW DLLs use traditional 'lib' prefix
11488 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11491 # pw32 DLLs use 'pw' prefix rather than 'lib'
11492 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11495 dynamic_linker
='Win32 ld.exe'
11500 libname_spec
='$name'
11501 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11502 library_names_spec
='$libname.dll.lib'
11506 sys_lib_search_path_spec
=
11509 for lt_path
in $LIB
11512 # Let DOS variable expansion print the short 8.3 style file name.
11513 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11514 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11517 # Convert to MSYS style.
11518 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11521 # Convert to unix form, then to dos form, then back to unix form
11522 # but this time dos style (no spaces!) so that the unix form looks
11523 # like /cygdrive/c/PROGRA~1:/cygdr...
11524 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11525 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11526 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11529 sys_lib_search_path_spec
=$LIB
11530 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11531 # It is most probably a Windows format PATH.
11532 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11534 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11536 # FIXME: find the short name or the path components, as spaces are
11537 # common. (e.g. "Program Files" -> "PROGRA~1")
11541 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11542 postinstall_cmds
='base_file=`basename \$file`~
11543 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11544 dldir=$destdir/`dirname \$dlpath`~
11545 test -d \$dldir || mkdir -p \$dldir~
11546 $install_prog $dir/$dlname \$dldir/$dlname'
11547 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11548 dlpath=$dir/\$dldll~
11550 shlibpath_overrides_runpath
=yes
11551 dynamic_linker
='Win32 link.exe'
11555 # Assume MSVC wrapper
11556 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11557 dynamic_linker
='Win32 ld.exe'
11560 # FIXME: first we should search . and the directory the executable is in
11564 darwin
* | rhapsody
*)
11565 dynamic_linker
="$host_os dyld"
11566 version_type
=darwin
11569 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11570 soname_spec
='$libname$release$major$shared_ext'
11571 shlibpath_overrides_runpath
=yes
11572 shlibpath_var
=DYLD_LIBRARY_PATH
11573 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11575 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11576 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11580 version_type
=linux
# correct to gnu/linux during the next big refactor
11583 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 soname_spec
='$libname$release$shared_ext$major'
11585 shlibpath_var
=LD_LIBRARY_PATH
11588 freebsd
* | dragonfly
*)
11589 # DragonFly does not have aout. When/if they implement a new
11590 # versioning mechanism, adjust this.
11591 if test -x /usr
/bin
/objformat
; then
11592 objformat
=`/usr/bin/objformat`
11595 freebsd
[23].
*) objformat
=aout
;;
11596 *) objformat
=elf
;;
11599 version_type
=freebsd-
$objformat
11600 case $version_type in
11602 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11603 soname_spec
='$libname$release$shared_ext$major'
11608 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11612 shlibpath_var
=LD_LIBRARY_PATH
11615 shlibpath_overrides_runpath
=yes
11617 freebsd3.
[01]* | freebsdelf3.
[01]*)
11618 shlibpath_overrides_runpath
=yes
11619 hardcode_into_libs
=yes
11621 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11622 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11623 shlibpath_overrides_runpath
=no
11624 hardcode_into_libs
=yes
11626 *) # from 4.6 on, and DragonFly
11627 shlibpath_overrides_runpath
=yes
11628 hardcode_into_libs
=yes
11634 version_type
=linux
# correct to gnu/linux during the next big refactor
11637 dynamic_linker
="$host_os runtime_loader"
11638 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11639 soname_spec
='$libname$release$shared_ext$major'
11640 shlibpath_var
=LIBRARY_PATH
11641 shlibpath_overrides_runpath
=no
11642 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11643 hardcode_into_libs
=yes
11646 hpux9
* | hpux10
* | hpux11
*)
11647 # Give a soname corresponding to the major version so that dld.sl refuses to
11648 # link against other versions.
11655 hardcode_into_libs
=yes
11656 dynamic_linker
="$host_os dld.so"
11657 shlibpath_var
=LD_LIBRARY_PATH
11658 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11659 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 soname_spec
='$libname$release$shared_ext$major'
11661 if test 32 = "$HPUX_IA64_MODE"; then
11662 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11663 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11665 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11666 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11671 hardcode_into_libs
=yes
11672 dynamic_linker
="$host_os dld.sl"
11673 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11674 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11675 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11676 soname_spec
='$libname$release$shared_ext$major'
11677 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11678 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11682 dynamic_linker
="$host_os dld.sl"
11683 shlibpath_var
=SHLIB_PATH
11684 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11685 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11686 soname_spec
='$libname$release$shared_ext$major'
11689 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11690 postinstall_cmds
='chmod 555 $lib'
11691 # or fails outright, so override atomically:
11692 install_override_mode
=555
11696 version_type
=linux
# correct to gnu/linux during the next big refactor
11699 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11700 soname_spec
='$libname$release$shared_ext$major'
11701 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11702 shlibpath_var
=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath
=no
11704 hardcode_into_libs
=yes
11707 irix5
* | irix6
* | nonstopux
*)
11709 nonstopux
*) version_type
=nonstopux
;;
11711 if test yes = "$lt_cv_prog_gnu_ld"; then
11712 version_type
=linux
# correct to gnu/linux during the next big refactor
11719 soname_spec
='$libname$release$shared_ext$major'
11720 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11722 irix5
* | nonstopux
*)
11723 libsuff
= shlibsuff
=
11726 case $LD in # libtool.m4 will add one of these switches to LD
11727 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11728 libsuff
= shlibsuff
= libmagic
=32-bit;;
11729 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11730 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11731 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11732 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11733 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11737 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11738 shlibpath_overrides_runpath
=no
11739 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11740 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11741 hardcode_into_libs
=yes
11744 # No shared lib support for Linux oldld, aout, or coff.
11745 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11750 version_type
=none
# Android doesn't support versioned libraries.
11753 library_names_spec
='$libname$release$shared_ext'
11754 soname_spec
='$libname$release$shared_ext'
11756 shlibpath_var
=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath
=yes
11759 # This implies no fast_install, which is unacceptable.
11760 # Some rework will be needed to allow for fast_install
11761 # before this can be enabled.
11762 hardcode_into_libs
=yes
11764 dynamic_linker
='Android linker'
11765 # Don't embed -rpath directories since the linker doesn't support them.
11766 hardcode_libdir_flag_spec
='-L$libdir'
11769 # This must be glibc/ELF.
11770 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11771 version_type
=linux
# correct to gnu/linux during the next big refactor
11774 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11775 soname_spec
='$libname$release$shared_ext$major'
11776 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11777 shlibpath_var
=LD_LIBRARY_PATH
11778 shlibpath_overrides_runpath
=no
11780 # Some binutils ld are patched to set DT_RUNPATH
11781 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11782 $as_echo_n "(cached) " >&6
11784 lt_cv_shlibpath_overrides_runpath
=no
11785 save_LDFLAGS
=$LDFLAGS
11786 save_libdir
=$libdir
11787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11800 if ac_fn_c_try_link
"$LINENO"; then :
11801 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11802 lt_cv_shlibpath_overrides_runpath
=yes
11805 rm -f core conftest.err conftest.
$ac_objext \
11806 conftest
$ac_exeext conftest.
$ac_ext
11807 LDFLAGS
=$save_LDFLAGS
11808 libdir
=$save_libdir
11812 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11814 # This implies no fast_install, which is unacceptable.
11815 # Some rework will be needed to allow for fast_install
11816 # before this can be enabled.
11817 hardcode_into_libs
=yes
11819 # Add ABI-specific directories to the system library path.
11820 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
11822 # Ideally, we could use ldconfig to report *all* directores which are
11823 # searched for libraries, however this is still not possible. Aside from not
11824 # being certain /sbin/ldconfig is available, command
11825 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11826 # even though it is searched at run-time. Try to do the best guess by
11827 # appending ld.so.conf contents (and includes) to the search path.
11828 if test -f /etc
/ld.so.conf
; then
11829 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' ' '`
11830 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11833 # We used to test for /lib/ld.so.1 and disable shared libraries on
11834 # powerpc, because MkLinux only supported shared libraries with the
11835 # GNU dynamic linker. Since this was broken with cross compilers,
11836 # most powerpc-linux boxes support dynamic linking these days and
11837 # people can always --disable-shared, the test was removed, and we
11838 # assume the GNU/Linux dynamic linker is in use.
11839 dynamic_linker
='GNU/Linux ld.so'
11846 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11847 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11848 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11849 dynamic_linker
='NetBSD (a.out) ld.so'
11851 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11852 soname_spec
='$libname$release$shared_ext$major'
11853 dynamic_linker
='NetBSD ld.elf_so'
11855 shlibpath_var
=LD_LIBRARY_PATH
11856 shlibpath_overrides_runpath
=yes
11857 hardcode_into_libs
=yes
11861 version_type
=linux
# correct to gnu/linux during the next big refactor
11862 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11863 shlibpath_var
=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath
=yes
11871 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec
='$libname$release$shared_ext$major'
11873 shlibpath_var
=LD_LIBRARY_PATH
11874 shlibpath_overrides_runpath
=no
11875 hardcode_into_libs
=yes
11876 dynamic_linker
='ldqnx.so'
11879 openbsd
* | bitrig
*)
11881 sys_lib_dlsearch_path_spec
=/usr
/lib
11883 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11888 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11889 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11890 shlibpath_var
=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath
=yes
11895 libname_spec
='$name'
11896 version_type
=windows
11900 # OS/2 can only load a DLL with a base name of 8 characters or less.
11901 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11902 v=$($ECHO $release$versuffix | tr -d .-);
11903 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11904 $ECHO $n$v`$shared_ext'
11905 library_names_spec
='${libname}_dll.$libext'
11906 dynamic_linker
='OS/2 ld.exe'
11907 shlibpath_var
=BEGINLIBPATH
11908 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11909 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11910 postinstall_cmds
='base_file=`basename \$file`~
11911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11912 dldir=$destdir/`dirname \$dlpath`~
11913 test -d \$dldir || mkdir -p \$dldir~
11914 $install_prog $dir/$dlname \$dldir/$dlname~
11915 chmod a+x \$dldir/$dlname~
11916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11919 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11920 dlpath=$dir/\$dldll~
11924 osf3
* | osf4
* | osf5
*)
11928 soname_spec
='$libname$release$shared_ext$major'
11929 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11930 shlibpath_var
=LD_LIBRARY_PATH
11931 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11932 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11940 version_type
=linux
# correct to gnu/linux during the next big refactor
11943 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11944 soname_spec
='$libname$release$shared_ext$major'
11945 shlibpath_var
=LD_LIBRARY_PATH
11946 shlibpath_overrides_runpath
=yes
11947 hardcode_into_libs
=yes
11948 # ldd complains unless libraries are executable
11949 postinstall_cmds
='chmod +x $lib'
11954 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11955 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11956 shlibpath_var
=LD_LIBRARY_PATH
11957 shlibpath_overrides_runpath
=yes
11958 if test yes = "$with_gnu_ld"; then
11965 version_type
=linux
# correct to gnu/linux during the next big refactor
11966 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11967 soname_spec
='$libname$release$shared_ext$major'
11968 shlibpath_var
=LD_LIBRARY_PATH
11969 case $host_vendor in
11971 shlibpath_overrides_runpath
=no
11973 runpath_var
=LD_RUN_PATH
11981 shlibpath_overrides_runpath
=no
11982 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11988 if test -d /usr
/nec
; then
11989 version_type
=linux
# correct to gnu/linux during the next big refactor
11990 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11991 soname_spec
='$libname$shared_ext.$major'
11992 shlibpath_var
=LD_LIBRARY_PATH
11996 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
12000 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12001 soname_spec
='$libname$release$shared_ext$major'
12002 shlibpath_var
=LD_LIBRARY_PATH
12003 shlibpath_overrides_runpath
=yes
12004 hardcode_into_libs
=yes
12005 if test yes = "$with_gnu_ld"; then
12006 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12008 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
12011 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12015 sys_lib_dlsearch_path_spec
='/usr/lib'
12019 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12020 version_type
=linux
# correct to gnu/linux during the next big refactor
12023 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12024 shlibpath_var
=LD_LIBRARY_PATH
12025 shlibpath_overrides_runpath
=no
12026 hardcode_into_libs
=yes
12030 version_type
=linux
# correct to gnu/linux during the next big refactor
12031 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 soname_spec
='$libname$release$shared_ext$major'
12033 shlibpath_var
=LD_LIBRARY_PATH
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12041 $as_echo "$dynamic_linker" >&6; }
12042 test no
= "$dynamic_linker" && can_build_shared
=no
12044 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12045 if test yes = "$GCC"; then
12046 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12049 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12050 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
12053 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12054 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
12057 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12058 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
12060 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12061 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
12063 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12064 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12163 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12165 if test -n "$hardcode_libdir_flag_spec" ||
12166 test -n "$runpath_var" ||
12167 test yes = "$hardcode_automatic"; then
12169 # We can hardcode non-existent directories.
12170 if test no
!= "$hardcode_direct" &&
12171 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12172 # have to relink, otherwise we might link with an installed library
12173 # when we should be linking with a yet-to-be-installed one
12174 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12175 test no
!= "$hardcode_minus_L"; then
12176 # Linking always hardcodes the temporary library directory.
12177 hardcode_action
=relink
12179 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12180 hardcode_action
=immediate
12183 # We cannot hardcode anything, or else we can only hardcode existing
12185 hardcode_action
=unsupported
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12188 $as_echo "$hardcode_action" >&6; }
12190 if test relink
= "$hardcode_action" ||
12191 test yes = "$inherit_rpath"; then
12192 # Fast installation is not supported
12193 enable_fast_install
=no
12194 elif test yes = "$shlibpath_overrides_runpath" ||
12195 test no
= "$enable_shared"; then
12196 # Fast installation is not necessary
12197 enable_fast_install
=needless
12205 if test yes != "$enable_dlopen"; then
12206 enable_dlopen
=unknown
12207 enable_dlopen_self
=unknown
12208 enable_dlopen_self_static
=unknown
12215 lt_cv_dlopen
=load_add_on
12217 lt_cv_dlopen_self
=yes
12220 mingw
* | pw32
* | cegcc
*)
12221 lt_cv_dlopen
=LoadLibrary
12226 lt_cv_dlopen
=dlopen
12231 # if libdl is installed we need to link against it
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS
=$LIBS
12239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12257 if ac_fn_c_try_link
"$LINENO"; then :
12258 ac_cv_lib_dl_dlopen
=yes
12260 ac_cv_lib_dl_dlopen
=no
12262 rm -f core conftest.err conftest.
$ac_objext \
12263 conftest
$ac_exeext conftest.
$ac_ext
12264 LIBS
=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12269 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
12274 lt_cv_dlopen_self
=yes
12281 # Don't try to run any link tests for TPF. We know it's impossible
12282 # because TPF is a cross-compiler, and we know how we open DSOs.
12283 lt_cv_dlopen
=dlopen
12285 lt_cv_dlopen_self
=no
12289 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12290 if test "x$ac_cv_func_shl_load" = xyes
; then :
12291 lt_cv_dlopen
=shl_load
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12294 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12295 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12296 $as_echo_n "(cached) " >&6
12298 ac_check_lib_save_LIBS
=$LIBS
12300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12303 /* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
12313 return shl_load ();
12318 if ac_fn_c_try_link
"$LINENO"; then :
12319 ac_cv_lib_dld_shl_load
=yes
12321 ac_cv_lib_dld_shl_load
=no
12323 rm -f core conftest.err conftest.
$ac_objext \
12324 conftest
$ac_exeext conftest.
$ac_ext
12325 LIBS
=$ac_check_lib_save_LIBS
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12328 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12329 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12330 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
12332 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12333 if test "x$ac_cv_func_dlopen" = xyes
; then :
12334 lt_cv_dlopen
=dlopen
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12337 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12338 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12339 $as_echo_n "(cached) " >&6
12341 ac_check_lib_save_LIBS
=$LIBS
12343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12346 /* Override any GCC internal prototype to avoid an error.
12347 Use char because int might match the return type of a GCC
12348 builtin and then its argument prototype would still apply. */
12361 if ac_fn_c_try_link
"$LINENO"; then :
12362 ac_cv_lib_dl_dlopen
=yes
12364 ac_cv_lib_dl_dlopen
=no
12366 rm -f core conftest.err conftest.
$ac_objext \
12367 conftest
$ac_exeext conftest.
$ac_ext
12368 LIBS
=$ac_check_lib_save_LIBS
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12371 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12372 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12373 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12376 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12377 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12378 $as_echo_n "(cached) " >&6
12380 ac_check_lib_save_LIBS
=$LIBS
12381 LIBS
="-lsvld $LIBS"
12382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12385 /* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12400 if ac_fn_c_try_link
"$LINENO"; then :
12401 ac_cv_lib_svld_dlopen
=yes
12403 ac_cv_lib_svld_dlopen
=no
12405 rm -f core conftest.err conftest.
$ac_objext \
12406 conftest
$ac_exeext conftest.
$ac_ext
12407 LIBS
=$ac_check_lib_save_LIBS
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12410 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12411 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12412 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12415 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12416 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12417 $as_echo_n "(cached) " >&6
12419 ac_check_lib_save_LIBS
=$LIBS
12421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12424 /* Override any GCC internal prototype to avoid an error.
12425 Use char because int might match the return type of a GCC
12426 builtin and then its argument prototype would still apply. */
12434 return dld_link ();
12439 if ac_fn_c_try_link
"$LINENO"; then :
12440 ac_cv_lib_dld_dld_link
=yes
12442 ac_cv_lib_dld_dld_link
=no
12444 rm -f core conftest.err conftest.
$ac_objext \
12445 conftest
$ac_exeext conftest.
$ac_ext
12446 LIBS
=$ac_check_lib_save_LIBS
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12449 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12450 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12451 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
12472 if test no
= "$lt_cv_dlopen"; then
12478 case $lt_cv_dlopen in
12480 save_CPPFLAGS
=$CPPFLAGS
12481 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12483 save_LDFLAGS
=$LDFLAGS
12484 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12487 LIBS
="$lt_cv_dlopen_libs $LIBS"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12490 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12491 if ${lt_cv_dlopen_self+:} false
; then :
12492 $as_echo_n "(cached) " >&6
12494 if test yes = "$cross_compiling"; then :
12495 lt_cv_dlopen_self
=cross
12497 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12498 lt_status
=$lt_dlunknown
12499 cat > conftest.
$ac_ext <<_LT_EOF
12500 #line $LINENO "configure"
12501 #include "confdefs.h"
12510 # define LT_DLGLOBAL RTLD_GLOBAL
12513 # define LT_DLGLOBAL DL_GLOBAL
12515 # define LT_DLGLOBAL 0
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520 find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12526 # define LT_DLLAZY_OR_NOW DL_LAZY
12529 # define LT_DLLAZY_OR_NOW RTLD_NOW
12532 # define LT_DLLAZY_OR_NOW DL_NOW
12534 # define LT_DLLAZY_OR_NOW 0
12541 /* When -fvisibility=hidden is used, assume the code has been annotated
12542 correspondingly for the symbols needed. */
12543 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12544 int fnord () __attribute__((visibility("default")));
12547 int fnord () { return 42; }
12550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12551 int status = $lt_dlunknown;
12555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12558 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12559 else puts (dlerror ());
12561 /* dlclose (self); */
12569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12570 (eval $ac_link) 2>&5
12572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12573 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12574 (.
/conftest
; exit; ) >&5 2>/dev
/null
12576 case x
$lt_status in
12577 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12578 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12579 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12582 # compilation failed
12583 lt_cv_dlopen_self
=no
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12591 $as_echo "$lt_cv_dlopen_self" >&6; }
12593 if test yes = "$lt_cv_dlopen_self"; then
12594 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12596 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12597 if ${lt_cv_dlopen_self_static+:} false
; then :
12598 $as_echo_n "(cached) " >&6
12600 if test yes = "$cross_compiling"; then :
12601 lt_cv_dlopen_self_static
=cross
12603 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12604 lt_status
=$lt_dlunknown
12605 cat > conftest.
$ac_ext <<_LT_EOF
12606 #line $LINENO "configure"
12607 #include "confdefs.h"
12616 # define LT_DLGLOBAL RTLD_GLOBAL
12619 # define LT_DLGLOBAL DL_GLOBAL
12621 # define LT_DLGLOBAL 0
12625 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12626 find out it does not work in some platform. */
12627 #ifndef LT_DLLAZY_OR_NOW
12629 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12632 # define LT_DLLAZY_OR_NOW DL_LAZY
12635 # define LT_DLLAZY_OR_NOW RTLD_NOW
12638 # define LT_DLLAZY_OR_NOW DL_NOW
12640 # define LT_DLLAZY_OR_NOW 0
12647 /* When -fvisibility=hidden is used, assume the code has been annotated
12648 correspondingly for the symbols needed. */
12649 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12650 int fnord () __attribute__((visibility("default")));
12653 int fnord () { return 42; }
12656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12657 int status = $lt_dlunknown;
12661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12664 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12665 else puts (dlerror ());
12667 /* dlclose (self); */
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12676 (eval $ac_link) 2>&5
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12680 (.
/conftest
; exit; ) >&5 2>/dev
/null
12682 case x
$lt_status in
12683 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12684 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12685 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12688 # compilation failed
12689 lt_cv_dlopen_self_static
=no
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12697 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12700 CPPFLAGS
=$save_CPPFLAGS
12701 LDFLAGS
=$save_LDFLAGS
12706 case $lt_cv_dlopen_self in
12707 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12708 *) enable_dlopen_self
=unknown
;;
12711 case $lt_cv_dlopen_self_static in
12712 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12713 *) enable_dlopen_self_static
=unknown
;;
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12736 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12737 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12738 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12739 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12741 $as_echo "yes" >&6; }
12743 # FIXME - insert some real tests, host_os isn't really good enough
12746 if test -n "$STRIP"; then
12747 striplib
="$STRIP -x"
12748 old_striplib
="$STRIP -S"
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750 $as_echo "yes" >&6; }
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 $as_echo "no" >&6; }
12774 # Report what library types will actually be built
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12776 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12778 $as_echo "$can_build_shared" >&6; }
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12781 $as_echo_n "checking whether to build shared libraries... " >&6; }
12782 test no
= "$can_build_shared" && enable_shared
=no
12784 # On AIX, shared libraries and static libraries use the same namespace, and
12785 # are all built from PIC.
12788 test yes = "$enable_shared" && enable_static
=no
12789 if test -n "$RANLIB"; then
12790 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12791 postinstall_cmds
='$RANLIB $lib'
12796 if test ia64
!= "$host_cpu"; then
12797 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12798 yes,aix
,yes) ;; # shared object as lib.so file only
12799 yes,svr4
,*) ;; # shared object as lib.so archive member only
12800 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12806 $as_echo "$enable_shared" >&6; }
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12809 $as_echo_n "checking whether to build static libraries... " >&6; }
12810 # Make sure either enable_shared or enable_static is yes.
12811 test yes = "$enable_shared" || enable_static
=yes
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12813 $as_echo "$enable_static" >&6; }
12820 ac_cpp
='$CPP $CPPFLAGS'
12821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12827 if test -n "$CXX" && ( test no
!= "$CXX" &&
12828 ( (test g
++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12829 (test g
++ != "$CXX"))); then
12831 ac_cpp
='$CXXCPP $CPPFLAGS'
12832 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12833 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12834 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12836 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12837 if test -z "$CXXCPP"; then
12838 if ${ac_cv_prog_CXXCPP+:} false
; then :
12839 $as_echo_n "(cached) " >&6
12841 # Double quotes because CXXCPP needs to be expanded
12842 for CXXCPP
in "$CXX -E" "/lib/cpp"
12844 ac_preproc_ok
=false
12845 for ac_cxx_preproc_warn_flag
in '' yes
12847 # Use a header file that comes with gcc, so configuring glibc
12848 # with a fresh cross-compiler works.
12849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 # <limits.h> exists even on freestanding compilers.
12851 # On the NeXT, cc -E runs the code through the compiler's parser,
12852 # not just through cpp. "Syntax error" is here to catch this case.
12853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12856 # include <limits.h>
12858 # include <assert.h>
12862 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12865 # Broken: fails on valid input.
12868 rm -f conftest.err conftest.i conftest.
$ac_ext
12870 # OK, works on sane cases. Now check whether nonexistent headers
12871 # can be detected and how.
12872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874 #include <ac_nonexistent.h>
12876 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12877 # Broken: success on invalid input.
12880 # Passes both tests.
12884 rm -f conftest.err conftest.i conftest.
$ac_ext
12887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12888 rm -f conftest.i conftest.err conftest.
$ac_ext
12889 if $ac_preproc_ok; then :
12894 ac_cv_prog_CXXCPP
=$CXXCPP
12897 CXXCPP
=$ac_cv_prog_CXXCPP
12899 ac_cv_prog_CXXCPP
=$CXXCPP
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12902 $as_echo "$CXXCPP" >&6; }
12903 ac_preproc_ok
=false
12904 for ac_cxx_preproc_warn_flag
in '' yes
12906 # Use a header file that comes with gcc, so configuring glibc
12907 # with a fresh cross-compiler works.
12908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12909 # <limits.h> exists even on freestanding compilers.
12910 # On the NeXT, cc -E runs the code through the compiler's parser,
12911 # not just through cpp. "Syntax error" is here to catch this case.
12912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12915 # include <limits.h>
12917 # include <assert.h>
12921 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12924 # Broken: fails on valid input.
12927 rm -f conftest.err conftest.i conftest.
$ac_ext
12929 # OK, works on sane cases. Now check whether nonexistent headers
12930 # can be detected and how.
12931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12932 /* end confdefs.h. */
12933 #include <ac_nonexistent.h>
12935 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12936 # Broken: success on invalid input.
12939 # Passes both tests.
12943 rm -f conftest.err conftest.i conftest.
$ac_ext
12946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12947 rm -f conftest.i conftest.err conftest.
$ac_ext
12948 if $ac_preproc_ok; then :
12951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12953 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12954 See \`config.log' for more details" "$LINENO" 5; }
12958 ac_cpp
='$CPP $CPPFLAGS'
12959 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12964 _lt_caught_CXX_error
=yes
12968 ac_cpp
='$CXXCPP $CPPFLAGS'
12969 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12970 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12971 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12973 archive_cmds_need_lc_CXX
=no
12974 allow_undefined_flag_CXX
=
12975 always_export_symbols_CXX
=no
12976 archive_expsym_cmds_CXX
=
12977 compiler_needs_object_CXX
=no
12978 export_dynamic_flag_spec_CXX
=
12979 hardcode_direct_CXX
=no
12980 hardcode_direct_absolute_CXX
=no
12981 hardcode_libdir_flag_spec_CXX
=
12982 hardcode_libdir_separator_CXX
=
12983 hardcode_minus_L_CXX
=no
12984 hardcode_shlibpath_var_CXX
=unsupported
12985 hardcode_automatic_CXX
=no
12986 inherit_rpath_CXX
=no
12988 module_expsym_cmds_CXX
=
12989 link_all_deplibs_CXX
=unknown
12990 old_archive_cmds_CXX
=$old_archive_cmds
12991 reload_flag_CXX
=$reload_flag
12992 reload_cmds_CXX
=$reload_cmds
12993 no_undefined_flag_CXX
=
12994 whole_archive_flag_spec_CXX
=
12995 enable_shared_with_static_runtimes_CXX
=no
12997 # Source file extension for C++ test sources.
13000 # Object file extension for compiled C++ test sources.
13004 # No sense in running all these tests if we already determined that
13005 # the CXX compiler isn't working. Some variables (like enable_shared)
13006 # are currently assumed to apply to all compilers on this platform,
13007 # and will be corrupted by setting them based on a non-working compiler.
13008 if test yes != "$_lt_caught_CXX_error"; then
13009 # Code to be used in simple compile tests
13010 lt_simple_compile_test_code
="int some_variable = 0;"
13012 # Code to be used in simple link tests
13013 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
13015 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13022 # If no C compiler was specified, use CC.
13025 # If no C compiler flags were specified, use CFLAGS.
13026 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
13028 # Allow CC to be a program name with arguments.
13032 # save warnings/boilerplate of simple test code
13033 ac_outfile
=conftest.
$ac_objext
13034 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
13035 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13036 _lt_compiler_boilerplate
=`cat conftest.err`
13039 ac_outfile
=conftest.
$ac_objext
13040 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
13041 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
13042 _lt_linker_boilerplate
=`cat conftest.err`
13046 # Allow CC to be a program name with arguments.
13048 lt_save_CFLAGS
=$CFLAGS
13052 lt_save_with_gnu_ld
=$with_gnu_ld
13053 lt_save_path_LD
=$lt_cv_path_LD
13054 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13055 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
13057 $as_unset lt_cv_prog_gnu_ld
13059 if test -n "${lt_cv_path_LDCXX+set}"; then
13060 lt_cv_path_LD
=$lt_cv_path_LDCXX
13062 $as_unset lt_cv_path_LD
13064 test -z "${LDCXX+set}" || LD
=$LDCXX
13069 func_cc_basename
$compiler
13070 cc_basename
=$func_cc_basename_result
13073 if test -n "$compiler"; then
13074 # We don't want -fno-exception when compiling C++ code, so set the
13075 # no_builtin_flag separately
13076 if test yes = "$GXX"; then
13077 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
13079 lt_prog_compiler_no_builtin_flag_CXX
=
13082 if test yes = "$GXX"; then
13083 # Set up default GNU C++ configuration
13087 # Check whether --with-gnu-ld was given.
13088 if test "${with_gnu_ld+set}" = set; then :
13089 withval
=$with_gnu_ld; test no
= "$withval" || with_gnu_ld
=yes
13095 if test yes = "$GCC"; then
13096 # Check if gcc -print-prog-name=ld gives a path.
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13098 $as_echo_n "checking for ld used by $CC... " >&6; }
13101 # gcc leaves a trailing carriage return, which upsets mingw
13102 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13104 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13107 # Accept absolute paths.
13109 re_direlt
='/[^/][^/]*/\.\./'
13110 # Canonicalize the pathname of ld
13111 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13112 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13113 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13115 test -z "$LD" && LD
=$ac_prog
13118 # If it fails, then pretend we aren't using GCC.
13122 # If it is relative, then search for the first ld in PATH.
13123 with_gnu_ld
=unknown
13126 elif test yes = "$with_gnu_ld"; then
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13128 $as_echo_n "checking for GNU ld... " >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13131 $as_echo_n "checking for non-GNU ld... " >&6; }
13133 if ${lt_cv_path_LD+:} false
; then :
13134 $as_echo_n "(cached) " >&6
13136 if test -z "$LD"; then
13137 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
13138 for ac_dir
in $PATH; do
13140 test -z "$ac_dir" && ac_dir
=.
13141 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13142 lt_cv_path_LD
=$ac_dir/$ac_prog
13143 # Check to see if the program is GNU ld. I'd rather use --version,
13144 # but apparently some variants of GNU ld only accept -v.
13145 # Break only if it was the GNU/non-GNU ld that we prefer.
13146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13147 *GNU
* |
*'with BFD'*)
13148 test no
!= "$with_gnu_ld" && break
13151 test yes != "$with_gnu_ld" && break
13158 lt_cv_path_LD
=$LD # Let the user override the test with a path.
13163 if test -n "$LD"; then
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13165 $as_echo "$LD" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13170 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13173 if ${lt_cv_prog_gnu_ld+:} false
; then :
13174 $as_echo_n "(cached) " >&6
13176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13177 case `$LD -v 2>&1 </dev/null` in
13178 *GNU
* |
*'with BFD'*)
13179 lt_cv_prog_gnu_ld
=yes
13182 lt_cv_prog_gnu_ld
=no
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13188 with_gnu_ld
=$lt_cv_prog_gnu_ld
13196 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13197 # archiving commands below assume that GNU ld is being used.
13198 if test yes = "$with_gnu_ld"; then
13199 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13200 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13202 hardcode_libdir_flag_spec_CXX
='$wl-rpath $wl$libdir'
13203 export_dynamic_flag_spec_CXX
='$wl--export-dynamic'
13205 # If archive_cmds runs LD, not CC, wlarc should be empty
13206 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13207 # investigate it a little bit more. (MM)
13210 # ancient GNU ld didn't support --whole-archive et. al.
13211 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13212 $GREP 'no-whole-archive' > /dev
/null
; then
13213 whole_archive_flag_spec_CXX
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13215 whole_archive_flag_spec_CXX
=
13221 # A generic and very simple default shared library creation
13222 # command for GNU C++ for the case where it uses the native
13223 # linker, instead of GNU ld. If possible, this setting should
13224 # overridden to take advantage of the native linker features on
13225 # the platform it is being used on.
13226 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13229 # Commands to make compiler produce verbose output that lists
13230 # what "hidden" libraries, object files and flags are used when
13231 # linking a shared library.
13232 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13240 # PORTME: fill in a description of your system's C++ link characteristics
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13242 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13246 # FIXME: insert proper C++ library support
13250 if test ia64
= "$host_cpu"; then
13251 # On IA64, the linker does run time linking by default, so we don't
13252 # have to do anything special.
13253 aix_use_runtimelinking
=no
13254 exp_sym_flag
='-Bexport'
13257 aix_use_runtimelinking
=no
13259 # Test if we are trying to use run time linking or normal
13260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13261 # have runtime linking enabled, and use it for executables.
13262 # For shared libraries, we enable/disable runtime linking
13263 # depending on the kind of the shared library created -
13264 # when "with_aix_soname,aix_use_runtimelinking" is:
13265 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13266 # "aix,yes" lib.so shared, rtl:yes, for executables
13267 # lib.a static archive
13268 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13269 # lib.a(lib.so.V) shared, rtl:no, for executables
13270 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13271 # lib.a(lib.so.V) shared, rtl:no
13272 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13273 # lib.a static archive
13274 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
13275 for ld_flag
in $LDFLAGS; do
13278 aix_use_runtimelinking
=yes
13283 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
13284 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13285 # so we don't have lib.a shared libs to link our executables.
13286 # We have to force runtime linking in this case.
13287 aix_use_runtimelinking
=yes
13288 LDFLAGS
="$LDFLAGS -Wl,-brtl"
13293 exp_sym_flag
='-bexport'
13294 no_entry_flag
='-bnoentry'
13297 # When large executables or shared objects are built, AIX ld can
13298 # have problems creating the table of contents. If linking a library
13299 # or program results in "error TOC overflow" add -mminimal-toc to
13300 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13301 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13303 archive_cmds_CXX
=''
13304 hardcode_direct_CXX
=yes
13305 hardcode_direct_absolute_CXX
=yes
13306 hardcode_libdir_separator_CXX
=':'
13307 link_all_deplibs_CXX
=yes
13308 file_list_spec_CXX
='$wl-f,'
13309 case $with_aix_soname,$aix_use_runtimelinking in
13310 aix
,*) ;; # no import file
13311 svr4
,* |
*,yes) # use import file
13312 # The Import File defines what to hardcode.
13313 hardcode_direct_CXX
=no
13314 hardcode_direct_absolute_CXX
=no
13318 if test yes = "$GXX"; then
13319 case $host_os in aix4.
[012]|aix4.
[012].
*)
13320 # We only want to do this on AIX 4.2 and lower, the check
13321 # below for broken collect2 doesn't work under 4.3+
13322 collect2name
=`$CC -print-prog-name=collect2`
13323 if test -f "$collect2name" &&
13324 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
13326 # We have reworked collect2
13329 # We have old collect2
13330 hardcode_direct_CXX
=unsupported
13331 # It fails to find uninstalled libraries when the uninstalled
13332 # path is not listed in the libpath. Setting hardcode_minus_L
13333 # to unsupported forces relinking
13334 hardcode_minus_L_CXX
=yes
13335 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13336 hardcode_libdir_separator_CXX
=
13339 shared_flag
='-shared'
13340 if test yes = "$aix_use_runtimelinking"; then
13341 shared_flag
=$shared_flag' $wl-G'
13343 # Need to ensure runtime linking is disabled for the traditional
13344 # shared library, or the linker may eventually find shared libraries
13345 # /with/ Import File - we do not want to mix them.
13346 shared_flag_aix
='-shared'
13347 shared_flag_svr4
='-shared $wl-G'
13350 if test ia64
= "$host_cpu"; then
13351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13352 # chokes on -Wl,-G. The following line is correct:
13355 if test yes = "$aix_use_runtimelinking"; then
13356 shared_flag
='$wl-G'
13358 shared_flag
='$wl-bM:SRE'
13360 shared_flag_aix
='$wl-bM:SRE'
13361 shared_flag_svr4
='$wl-G'
13365 export_dynamic_flag_spec_CXX
='$wl-bexpall'
13366 # It seems that -bexpall does not export symbols beginning with
13367 # underscore (_), so it is better to generate a list of symbols to
13369 always_export_symbols_CXX
=yes
13370 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13371 # Warning - without using the other runtime loading flags (-brtl),
13372 # -berok will link without error, but may produce a broken library.
13373 # The "-G" linker flag allows undefined symbols.
13374 no_undefined_flag_CXX
='-bernotok'
13375 # Determine the default libpath from the value encoded in an empty
13377 if test set = "${lt_cv_aix_libpath+set}"; then
13378 aix_libpath
=$lt_cv_aix_libpath
13380 if ${lt_cv_aix_libpath__CXX+:} false
; then :
13381 $as_echo_n "(cached) " >&6
13383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13394 if ac_fn_cxx_try_link
"$LINENO"; then :
13396 lt_aix_libpath_sed
='
13397 /Import File Strings/,/^$/ {
13399 s/^0 *\([^ ]*\) *$/\1/
13403 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13404 # Check for a 64-bit object if we didn't find anything.
13405 if test -z "$lt_cv_aix_libpath__CXX"; then
13406 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409 rm -f core conftest.err conftest.
$ac_objext \
13410 conftest
$ac_exeext conftest.
$ac_ext
13411 if test -z "$lt_cv_aix_libpath__CXX"; then
13412 lt_cv_aix_libpath__CXX
=/usr
/lib
:/lib
13417 aix_libpath
=$lt_cv_aix_libpath__CXX
13420 hardcode_libdir_flag_spec_CXX
='$wl-blibpath:$libdir:'"$aix_libpath"
13422 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
13424 if test ia64
= "$host_cpu"; then
13425 hardcode_libdir_flag_spec_CXX
='$wl-R $libdir:/usr/lib:/lib'
13426 allow_undefined_flag_CXX
="-z nodefs"
13427 archive_expsym_cmds_CXX
="\$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"
13429 # Determine the default libpath from the value encoded in an
13430 # empty executable.
13431 if test set = "${lt_cv_aix_libpath+set}"; then
13432 aix_libpath
=$lt_cv_aix_libpath
13434 if ${lt_cv_aix_libpath__CXX+:} false
; then :
13435 $as_echo_n "(cached) " >&6
13437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13448 if ac_fn_cxx_try_link
"$LINENO"; then :
13450 lt_aix_libpath_sed
='
13451 /Import File Strings/,/^$/ {
13453 s/^0 *\([^ ]*\) *$/\1/
13457 lt_cv_aix_libpath__CXX
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13458 # Check for a 64-bit object if we didn't find anything.
13459 if test -z "$lt_cv_aix_libpath__CXX"; then
13460 lt_cv_aix_libpath__CXX
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13463 rm -f core conftest.err conftest.
$ac_objext \
13464 conftest
$ac_exeext conftest.
$ac_ext
13465 if test -z "$lt_cv_aix_libpath__CXX"; then
13466 lt_cv_aix_libpath__CXX
=/usr
/lib
:/lib
13471 aix_libpath
=$lt_cv_aix_libpath__CXX
13474 hardcode_libdir_flag_spec_CXX
='$wl-blibpath:$libdir:'"$aix_libpath"
13475 # Warning - without using the other run time loading flags,
13476 # -berok will link without error, but may produce a broken library.
13477 no_undefined_flag_CXX
=' $wl-bernotok'
13478 allow_undefined_flag_CXX
=' $wl-berok'
13479 if test yes = "$with_gnu_ld"; then
13480 # We only use this code for GNU lds that support --whole-archive.
13481 whole_archive_flag_spec_CXX
='$wl--whole-archive$convenience $wl--no-whole-archive'
13483 # Exported symbols can be pulled into shared objects from archives
13484 whole_archive_flag_spec_CXX
='$convenience'
13486 archive_cmds_need_lc_CXX
=yes
13487 archive_expsym_cmds_CXX
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13488 # -brtl affects multiple linker settings, -berok does not and is overridden later
13489 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13490 if test svr4
!= "$with_aix_soname"; then
13491 # This is similar to how AIX traditionally builds its shared
13492 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13493 archive_expsym_cmds_CXX
="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13495 if test aix
!= "$with_aix_soname"; then
13496 archive_expsym_cmds_CXX
="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13498 # used by -dlpreopen to get the symbols
13499 archive_expsym_cmds_CXX
="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13501 archive_expsym_cmds_CXX
="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13507 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13508 allow_undefined_flag_CXX
=unsupported
13509 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13510 # support --undefined. This deserves some investigation. FIXME
13511 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13518 case $cc_basename in
13520 # FIXME: insert proper C++ library support
13526 cygwin
* | mingw
* | pw32
* | cegcc
*)
13527 case $GXX,$cc_basename in
13530 # hardcode_libdir_flag_spec is actually meaningless, as there is
13531 # no search path for DLLs.
13532 hardcode_libdir_flag_spec_CXX
=' '
13533 allow_undefined_flag_CXX
=unsupported
13534 always_export_symbols_CXX
=yes
13535 file_list_spec_CXX
='@'
13536 # Tell ltmain to make .lib files, not .a files.
13538 # Tell ltmain to make .dll files, not .so files.
13540 # FIXME: Setting linknames here is a bad hack.
13541 archive_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13542 archive_expsym_cmds_CXX
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13543 cp "$export_symbols" "$output_objdir/$soname.def";
13544 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13546 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13550 # The linker will not automatically build a static lib if we build a DLL.
13551 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13552 enable_shared_with_static_runtimes_CXX
=yes
13554 old_postinstall_cmds_CXX
='chmod 644 $oldlib'
13555 postlink_cmds_CXX
='lt_outputfile="@OUTPUT@"~
13556 lt_tool_outputfile="@TOOL_OUTPUT@"~
13557 case $lt_outputfile in
13560 lt_outputfile=$lt_outputfile.exe
13561 lt_tool_outputfile=$lt_tool_outputfile.exe
13564 func_to_tool_file "$lt_outputfile"~
13565 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13566 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13567 $RM "$lt_outputfile.manifest";
13572 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13573 # as there is no search path for DLLs.
13574 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13575 export_dynamic_flag_spec_CXX
='$wl--export-all-symbols'
13576 allow_undefined_flag_CXX
=unsupported
13577 always_export_symbols_CXX
=no
13578 enable_shared_with_static_runtimes_CXX
=yes
13580 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13581 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13582 # If the export-symbols file already is a .def file, use it as
13583 # is; otherwise, prepend EXPORTS...
13584 archive_expsym_cmds_CXX
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13585 cp $export_symbols $output_objdir/$soname.def;
13587 echo EXPORTS > $output_objdir/$soname.def;
13588 cat $export_symbols >> $output_objdir/$soname.def;
13590 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13597 darwin
* | rhapsody
*)
13600 archive_cmds_need_lc_CXX
=no
13601 hardcode_direct_CXX
=no
13602 hardcode_automatic_CXX
=yes
13603 hardcode_shlibpath_var_CXX
=unsupported
13604 if test yes = "$lt_cv_ld_force_load"; then
13605 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13608 whole_archive_flag_spec_CXX
=''
13610 link_all_deplibs_CXX
=yes
13611 allow_undefined_flag_CXX
=$_lt_dar_allow_undefined
13612 case $cc_basename in
13613 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
13614 *) _lt_dar_can_shared
=$GCC ;;
13616 if test yes = "$_lt_dar_can_shared"; then
13617 output_verbose_link_cmd
=func_echo_all
13618 archive_cmds_CXX
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13619 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13620 archive_expsym_cmds_CXX
="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"
13621 module_expsym_cmds_CXX
="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"
13622 if test yes != "$lt_cv_apple_cc_single_mod"; then
13623 archive_cmds_CXX
="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13624 archive_expsym_cmds_CXX
="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13634 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13635 hardcode_minus_L_CXX
=yes
13636 allow_undefined_flag_CXX
=unsupported
13638 archive_cmds_CXX
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13641 $ECHO EXPORTS >> $output_objdir/$libname.def~
13642 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13643 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13644 emximp -o $lib $output_objdir/$libname.def'
13645 archive_expsym_cmds_CXX
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13646 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13647 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13648 $ECHO EXPORTS >> $output_objdir/$libname.def~
13649 prefix_cmds="$SED"~
13650 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13651 prefix_cmds="$prefix_cmds -e 1d";
13653 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13654 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13655 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13656 emximp -o $lib $output_objdir/$libname.def'
13657 old_archive_From_new_cmds_CXX
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13658 enable_shared_with_static_runtimes_CXX
=yes
13662 case $cc_basename in
13664 # FIXME: insert proper C++ library support
13668 # Green Hills C++ Compiler
13669 # FIXME: insert proper C++ library support
13673 # FIXME: insert proper C++ library support
13680 # C++ shared libraries reported to be fairly broken before
13686 archive_cmds_need_lc_CXX
=no
13689 freebsd
* | dragonfly
*)
13690 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13696 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13697 link_all_deplibs_CXX
=yes
13701 hardcode_libdir_flag_spec_CXX
='$wl+b $wl$libdir'
13702 hardcode_libdir_separator_CXX
=:
13703 export_dynamic_flag_spec_CXX
='$wl-E'
13704 hardcode_direct_CXX
=yes
13705 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13706 # but as the default
13707 # location of the library.
13709 case $cc_basename in
13711 # FIXME: insert proper C++ library support
13715 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13716 # Commands to make compiler produce verbose output that lists
13717 # what "hidden" libraries, object files and flags are used when
13718 # linking a shared library.
13720 # There doesn't appear to be a way to prevent this compiler from
13721 # explicitly linking system object files so we need to strip them
13722 # from the output so that they don't get included in the library
13724 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13727 if test yes = "$GXX"; then
13728 archive_cmds_CXX
='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13730 # FIXME: insert proper C++ library support
13738 if test no
= "$with_gnu_ld"; then
13739 hardcode_libdir_flag_spec_CXX
='$wl+b $wl$libdir'
13740 hardcode_libdir_separator_CXX
=:
13746 export_dynamic_flag_spec_CXX
='$wl-E'
13752 hardcode_direct_CXX
=no
13753 hardcode_shlibpath_var_CXX
=no
13756 hardcode_direct_CXX
=yes
13757 hardcode_direct_absolute_CXX
=yes
13758 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13759 # but as the default
13760 # location of the library.
13764 case $cc_basename in
13766 # FIXME: insert proper C++ library support
13772 archive_cmds_CXX
='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13775 archive_cmds_CXX
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13778 archive_cmds_CXX
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13781 # Commands to make compiler produce verbose output that lists
13782 # what "hidden" libraries, object files and flags are used when
13783 # linking a shared library.
13785 # There doesn't appear to be a way to prevent this compiler from
13786 # explicitly linking system object files so we need to strip them
13787 # from the output so that they don't get included in the library
13789 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13792 if test yes = "$GXX"; then
13793 if test no
= "$with_gnu_ld"; then
13796 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13799 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13802 archive_cmds_CXX
='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13807 # FIXME: insert proper C++ library support
13815 hardcode_direct_CXX
=no
13816 hardcode_shlibpath_var_CXX
=no
13817 hardcode_libdir_flag_spec_CXX
='$wl-rpath,$libdir'
13818 export_dynamic_flag_spec_CXX
='$wl-E'
13819 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13820 # Instead, shared libraries are loaded at an image base (0x10000000 by
13821 # default) and relocated if they conflict, which is a slow very memory
13822 # consuming and fragmenting process. To avoid this, we pick a random,
13823 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13824 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13825 archive_cmds_CXX
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13826 archive_expsym_cmds_CXX
='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'
13829 case $cc_basename in
13832 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13834 # Archives containing C++ object files must be created using
13835 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13836 # necessary to make sure instantiated templates are included
13838 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13841 if test yes = "$GXX"; then
13842 if test no
= "$with_gnu_ld"; then
13843 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13845 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13848 link_all_deplibs_CXX
=yes
13851 hardcode_libdir_flag_spec_CXX
='$wl-rpath $wl$libdir'
13852 hardcode_libdir_separator_CXX
=:
13853 inherit_rpath_CXX
=yes
13856 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
13857 case $cc_basename in
13859 # Kuck and Associates, Inc. (KAI) C++ Compiler
13861 # KCC will only create a shared library if the output file
13862 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13863 # to its proper name (with version) after linking.
13864 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13865 archive_expsym_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
13866 # Commands to make compiler produce verbose output that lists
13867 # what "hidden" libraries, object files and flags are used when
13868 # linking a shared library.
13870 # There doesn't appear to be a way to prevent this compiler from
13871 # explicitly linking system object files so we need to strip them
13872 # from the output so that they don't get included in the library
13874 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13876 hardcode_libdir_flag_spec_CXX
='$wl-rpath,$libdir'
13877 export_dynamic_flag_spec_CXX
='$wl--export-dynamic'
13879 # Archives containing C++ object files must be created using
13880 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13881 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13886 # version 8.0 and above of icpc choke on multiply defined symbols
13887 # if we add $predep_objects and $postdep_objects, however 7.1 and
13888 # earlier do not add the objects themselves.
13889 case `$CC -V 2>&1` in
13891 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13892 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13894 *) # Version 8.0 or newer
13897 ia64
*) tmp_idyn
=' -i_dynamic';;
13899 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13900 archive_expsym_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13903 archive_cmds_need_lc_CXX
=no
13904 hardcode_libdir_flag_spec_CXX
='$wl-rpath,$libdir'
13905 export_dynamic_flag_spec_CXX
='$wl--export-dynamic'
13906 whole_archive_flag_spec_CXX
='$wl--whole-archive$convenience $wl--no-whole-archive'
13909 # Portland Group C++ compiler
13911 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13912 prelink_cmds_CXX
='tpldir=Template.dir~
13914 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13915 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13916 old_archive_cmds_CXX
='tpldir=Template.dir~
13918 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13919 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13921 archive_cmds_CXX
='tpldir=Template.dir~
13923 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13924 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13925 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13927 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13928 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13930 *) # Version 6 and above use weak symbols
13931 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13932 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13936 hardcode_libdir_flag_spec_CXX
='$wl--rpath $wl$libdir'
13937 export_dynamic_flag_spec_CXX
='$wl--export-dynamic'
13938 whole_archive_flag_spec_CXX
='$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'
13942 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13943 archive_expsym_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
13945 runpath_var
=LD_RUN_PATH
13946 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13947 hardcode_libdir_separator_CXX
=:
13949 # Commands to make compiler produce verbose output that lists
13950 # what "hidden" libraries, object files and flags are used when
13951 # linking a shared library.
13953 # There doesn't appear to be a way to prevent this compiler from
13954 # explicitly linking system object files so we need to strip them
13955 # from the output so that they don't get included in the library
13957 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13959 xl
* | mpixl
* | bgxl
*)
13960 # IBM XL 8.0 on PPC, with GNU ld
13961 hardcode_libdir_flag_spec_CXX
='$wl-rpath $wl$libdir'
13962 export_dynamic_flag_spec_CXX
='$wl--export-dynamic'
13963 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13964 if test yes = "$supports_anon_versioning"; then
13965 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13967 echo "local: *; };" >> $output_objdir/$libname.ver~
13968 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13972 case `$CC -V 2>&1 | sed 5q` in
13975 no_undefined_flag_CXX
=' -zdefs'
13976 archive_cmds_CXX
='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13977 archive_expsym_cmds_CXX
='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13978 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13979 whole_archive_flag_spec_CXX
='$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'
13980 compiler_needs_object_CXX
=yes
13982 # Not sure whether something based on
13983 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13985 output_verbose_link_cmd
='func_echo_all'
13987 # Archives containing C++ object files must be created using
13988 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13989 # necessary to make sure instantiated templates are included
13991 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13999 # FIXME: insert proper C++ library support
14004 # FIXME: insert proper C++ library support
14009 case $cc_basename in
14011 # FIXME: insert proper C++ library support
14015 # FIXME: insert proper C++ library support
14022 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14023 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14025 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14026 hardcode_direct_CXX
=yes
14027 hardcode_shlibpath_var_CXX
=no
14029 # Workaround some broken pre-1.5 toolchains
14030 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14037 openbsd
* | bitrig
*)
14038 if test -f /usr
/libexec
/ld.so
; then
14039 hardcode_direct_CXX
=yes
14040 hardcode_shlibpath_var_CXX
=no
14041 hardcode_direct_absolute_CXX
=yes
14042 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14043 hardcode_libdir_flag_spec_CXX
='$wl-rpath,$libdir'
14044 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14045 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14046 export_dynamic_flag_spec_CXX
='$wl-E'
14047 whole_archive_flag_spec_CXX
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14049 output_verbose_link_cmd
=func_echo_all
14055 osf3
* | osf4
* | osf5
*)
14056 case $cc_basename in
14058 # Kuck and Associates, Inc. (KAI) C++ Compiler
14060 # KCC will only create a shared library if the output file
14061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14062 # to its proper name (with version) after linking.
14063 archive_cmds_CXX
='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14065 hardcode_libdir_flag_spec_CXX
='$wl-rpath,$libdir'
14066 hardcode_libdir_separator_CXX
=:
14068 # Archives containing C++ object files must be created using
14069 # the KAI C++ compiler.
14071 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
14072 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
14076 # Rational C++ 2.4.1
14077 # FIXME: insert proper C++ library support
14083 allow_undefined_flag_CXX
=' $wl-expect_unresolved $wl\*'
14084 archive_cmds_CXX
='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14085 hardcode_libdir_flag_spec_CXX
='$wl-rpath $wl$libdir'
14088 allow_undefined_flag_CXX
=' -expect_unresolved \*'
14089 archive_cmds_CXX
='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14090 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14091 echo "-hidden">> $lib.exp~
14092 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
14094 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
14098 hardcode_libdir_separator_CXX
=:
14100 # Commands to make compiler produce verbose output that lists
14101 # what "hidden" libraries, object files and flags are used when
14102 # linking a shared library.
14104 # There doesn't appear to be a way to prevent this compiler from
14105 # explicitly linking system object files so we need to strip them
14106 # from the output so that they don't get included in the library
14108 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14111 if test yes,no
= "$GXX,$with_gnu_ld"; then
14112 allow_undefined_flag_CXX
=' $wl-expect_unresolved $wl\*'
14115 archive_cmds_CXX
='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14118 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
14122 hardcode_libdir_flag_spec_CXX
='$wl-rpath $wl$libdir'
14123 hardcode_libdir_separator_CXX
=:
14125 # Commands to make compiler produce verbose output that lists
14126 # what "hidden" libraries, object files and flags are used when
14127 # linking a shared library.
14128 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14131 # FIXME: insert proper C++ library support
14139 # FIXME: insert proper C++ library support
14144 case $cc_basename in
14147 # FIXME: insert proper C++ library support
14152 # FIXME: insert proper C++ library support
14156 # FIXME: insert proper C++ library support
14163 case $cc_basename in
14165 # Sun C++ 4.2, 5.x and Centerline C++
14166 archive_cmds_need_lc_CXX
=yes
14167 no_undefined_flag_CXX
=' -zdefs'
14168 archive_cmds_CXX
='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14169 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14170 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14172 hardcode_libdir_flag_spec_CXX
='-R$libdir'
14173 hardcode_shlibpath_var_CXX
=no
14175 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14177 # The compiler driver will combine and reorder linker options,
14178 # but understands '-z linker_flag'.
14179 # Supported since Solaris 2.6 (maybe 2.5.1?)
14180 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
14183 link_all_deplibs_CXX
=yes
14185 output_verbose_link_cmd
='func_echo_all'
14187 # Archives containing C++ object files must be created using
14188 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14189 # necessary to make sure instantiated templates are included
14191 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
14194 # Green Hills C++ Compiler
14195 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14197 # The C++ compiler must be used to create the archive.
14198 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14201 # GNU C++ compiler with Solaris linker
14202 if test yes,no
= "$GXX,$with_gnu_ld"; then
14203 no_undefined_flag_CXX
=' $wl-z ${wl}defs'
14204 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
14205 archive_cmds_CXX
='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14206 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14209 # Commands to make compiler produce verbose output that lists
14210 # what "hidden" libraries, object files and flags are used when
14211 # linking a shared library.
14212 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14214 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14216 archive_cmds_CXX
='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14217 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14218 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14220 # Commands to make compiler produce verbose output that lists
14221 # what "hidden" libraries, object files and flags are used when
14222 # linking a shared library.
14223 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14226 hardcode_libdir_flag_spec_CXX
='$wl-R $wl$libdir'
14228 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
14230 whole_archive_flag_spec_CXX
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14238 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
14239 no_undefined_flag_CXX
='$wl-z,text'
14240 archive_cmds_need_lc_CXX
=no
14241 hardcode_shlibpath_var_CXX
=no
14242 runpath_var
='LD_RUN_PATH'
14244 case $cc_basename in
14246 archive_cmds_CXX
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14247 archive_expsym_cmds_CXX
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250 archive_cmds_CXX
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_expsym_cmds_CXX
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14256 sysv5
* | sco3.2v5
* | sco5v6
*)
14257 # Note: We CANNOT use -z defs as we might desire, because we do not
14258 # link with -lc, and that would cause any symbols used from libc to
14259 # always be unresolved, which means just about no library would
14260 # ever link correctly. If we're not using GNU ld we use -z text
14261 # though, which does catch some bad symbols but isn't as heavy-handed
14263 no_undefined_flag_CXX
='$wl-z,text'
14264 allow_undefined_flag_CXX
='$wl-z,nodefs'
14265 archive_cmds_need_lc_CXX
=no
14266 hardcode_shlibpath_var_CXX
=no
14267 hardcode_libdir_flag_spec_CXX
='$wl-R,$libdir'
14268 hardcode_libdir_separator_CXX
=':'
14269 link_all_deplibs_CXX
=yes
14270 export_dynamic_flag_spec_CXX
='$wl-Bexport'
14271 runpath_var
='LD_RUN_PATH'
14273 case $cc_basename in
14275 archive_cmds_CXX
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14276 archive_expsym_cmds_CXX
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
14278 '"$old_archive_cmds_CXX"
14279 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
14280 '"$reload_cmds_CXX"
14283 archive_cmds_CXX
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_expsym_cmds_CXX
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290 case $cc_basename in
14292 # NonStop-UX NCC 3.20
14293 # FIXME: insert proper C++ library support
14297 # FIXME: insert proper C++ library support
14304 # FIXME: insert proper C++ library support
14309 # FIXME: insert proper C++ library support
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14315 $as_echo "$ld_shlibs_CXX" >&6; }
14316 test no
= "$ld_shlibs_CXX" && can_build_shared
=no
14322 ## There is no encapsulation within the following macros, do not change
14323 ## the running order or otherwise move them around unless you know exactly
14324 ## what you are doing...
14325 # Dependencies to place before and after the object being linked:
14326 predep_objects_CXX
=
14327 postdep_objects_CXX
=
14330 compiler_lib_search_path_CXX
=
14332 cat > conftest.
$ac_ext <<_LT_EOF
14336 Foo (void) { a = 0; }
14343 _lt_libdeps_save_CFLAGS
=$CFLAGS
14344 case "$CC $CFLAGS " in #(
14345 *\
-flto*\
*) CFLAGS
="$CFLAGS -fno-lto" ;;
14346 *\
-fwhopr*\
*) CFLAGS
="$CFLAGS -fno-whopr" ;;
14347 *\
-fuse-linker-plugin*\
*) CFLAGS
="$CFLAGS -fno-use-linker-plugin" ;;
14350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14351 (eval $ac_compile) 2>&5
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 # Parse the compiler output and extract the necessary
14356 # objects, libraries and library flags.
14358 # Sentinel used to keep track of whether or not we are before
14359 # the conftest object file.
14360 pre_test_object_deps_done
=no
14362 for p
in `eval "$output_verbose_link_cmd"`; do
14366 # Some compilers place space between "-{L,R}" and the path.
14367 # Remove the space.
14368 if test x-L
= "$p" ||
14369 test x-R
= "$p"; then
14374 # Expand the sysroot to ease extracting the directories later.
14375 if test -z "$prev"; then
14377 -L*) func_stripname_cnf
'-L' '' "$p"; prev
=-L; p
=$func_stripname_result ;;
14378 -R*) func_stripname_cnf
'-R' '' "$p"; prev
=-R; p
=$func_stripname_result ;;
14379 -l*) func_stripname_cnf
'-l' '' "$p"; prev
=-l; p
=$func_stripname_result ;;
14383 =*) func_stripname_cnf
'=' '' "$p"; p
=$lt_sysroot$func_stripname_result ;;
14385 if test no
= "$pre_test_object_deps_done"; then
14388 # Internal compiler library paths should come after those
14389 # provided the user. The postdeps already come after the
14390 # user supplied libs so there is no need to process them.
14391 if test -z "$compiler_lib_search_path_CXX"; then
14392 compiler_lib_search_path_CXX
=$prev$p
14394 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} $prev$p"
14397 # The "-l" case would never come before the object being
14398 # linked, so don't bother handling this case.
14401 if test -z "$postdeps_CXX"; then
14402 postdeps_CXX
=$prev$p
14404 postdeps_CXX
="${postdeps_CXX} $prev$p"
14410 *.lto.
$objext) ;; # Ignore GCC LTO objects
14412 # This assumes that the test object file only shows up
14413 # once in the compiler output.
14414 if test "$p" = "conftest.$objext"; then
14415 pre_test_object_deps_done
=yes
14419 if test no
= "$pre_test_object_deps_done"; then
14420 if test -z "$predep_objects_CXX"; then
14421 predep_objects_CXX
=$p
14423 predep_objects_CXX
="$predep_objects_CXX $p"
14426 if test -z "$postdep_objects_CXX"; then
14427 postdep_objects_CXX
=$p
14429 postdep_objects_CXX
="$postdep_objects_CXX $p"
14434 *) ;; # Ignore the rest.
14442 echo "libtool.m4: error: problem compiling CXX test program"
14445 $RM -f confest.
$objext
14446 CFLAGS
=$_lt_libdeps_save_CFLAGS
14448 # PORTME: override above test on systems where it is broken
14451 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14452 # hack all around it, let's just trust "g++" to DTRT.
14453 predep_objects_CXX
=
14454 postdep_objects_CXX
=
14460 case " $postdeps_CXX " in
14461 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
14463 compiler_lib_search_dirs_CXX
=
14464 if test -n "${compiler_lib_search_path_CXX}"; then
14465 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14498 lt_prog_compiler_wl_CXX
=
14499 lt_prog_compiler_pic_CXX
=
14500 lt_prog_compiler_static_CXX
=
14503 # C++ specific cases for pic, static, wl, etc.
14504 if test yes = "$GXX"; then
14505 lt_prog_compiler_wl_CXX
='-Wl,'
14506 lt_prog_compiler_static_CXX
='-static'
14510 # All AIX code is PIC.
14511 if test ia64
= "$host_cpu"; then
14512 # AIX 5 now supports IA64 processor
14513 lt_prog_compiler_static_CXX
='-Bstatic'
14515 lt_prog_compiler_pic_CXX
='-fPIC'
14521 # see comment about AmigaOS4 .so support
14522 lt_prog_compiler_pic_CXX
='-fPIC'
14525 # FIXME: we need at least 68020 code to build shared libraries, but
14526 # adding the '-m68020' flag to GCC prevents building anything better,
14528 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14533 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14534 # PIC is the default for these OSes.
14536 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14537 # This hack is so that the source file can tell whether it is being
14538 # built for inclusion in a dll (and should export symbols for example).
14539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14540 # (--disable-auto-import) libraries
14541 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14544 lt_prog_compiler_static_CXX
='$wl-static'
14548 darwin
* | rhapsody
*)
14549 # PIC is the default on this platform
14550 # Common symbols not allowed in MH_DYLIB files
14551 lt_prog_compiler_pic_CXX
='-fno-common'
14554 # DJGPP does not support shared libraries at all
14555 lt_prog_compiler_pic_CXX
=
14558 # PIC is the default for Haiku.
14559 # The "-static" flag exists, but is broken.
14560 lt_prog_compiler_static_CXX
=
14563 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14564 # Instead, we relocate shared libraries at runtime.
14567 if test -d /usr
/nec
; then
14568 lt_prog_compiler_pic_CXX
=-Kconform_pic
14572 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14573 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14574 # sets the default TLS model and affects inlining.
14579 lt_prog_compiler_pic_CXX
='-fPIC'
14584 # QNX uses GNU C++, but need to define -shared option too, otherwise
14585 # it will coredump.
14586 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14589 lt_prog_compiler_pic_CXX
='-fPIC'
14595 # All AIX code is PIC.
14596 if test ia64
= "$host_cpu"; then
14597 # AIX 5 now supports IA64 processor
14598 lt_prog_compiler_static_CXX
='-Bstatic'
14600 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14604 case $cc_basename in
14606 # Green Hills C++ Compiler
14607 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14611 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14617 case $cc_basename in
14619 lt_prog_compiler_pic_CXX
='-KPIC'
14622 # Green Hills C++ Compiler
14623 lt_prog_compiler_pic_CXX
='-pic'
14629 freebsd
* | dragonfly
*)
14630 # FreeBSD uses GNU C++
14632 hpux9
* | hpux10
* | hpux11
*)
14633 case $cc_basename in
14635 lt_prog_compiler_wl_CXX
='-Wl,'
14636 lt_prog_compiler_static_CXX
='$wl-a ${wl}archive'
14637 if test ia64
!= "$host_cpu"; then
14638 lt_prog_compiler_pic_CXX
='+Z'
14642 lt_prog_compiler_wl_CXX
='-Wl,'
14643 lt_prog_compiler_static_CXX
='$wl-a ${wl}archive'
14649 lt_prog_compiler_pic_CXX
='+Z'
14658 # This is c89, which is MS Visual C++ (no shared libs)
14659 # Anyone wants to do a port?
14661 irix5
* | irix6
* | nonstopux
*)
14662 case $cc_basename in
14664 lt_prog_compiler_wl_CXX
='-Wl,'
14665 lt_prog_compiler_static_CXX
='-non_shared'
14666 # CC pic flag -KPIC is the default.
14672 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
14673 case $cc_basename in
14676 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14677 lt_prog_compiler_pic_CXX
='-fPIC'
14680 # old Intel C++ for x86_64, which still supported -KPIC.
14681 lt_prog_compiler_wl_CXX
='-Wl,'
14682 lt_prog_compiler_pic_CXX
='-KPIC'
14683 lt_prog_compiler_static_CXX
='-static'
14686 # Intel C++, used to be incompatible with GCC.
14687 # ICC 10 doesn't accept -KPIC any more.
14688 lt_prog_compiler_wl_CXX
='-Wl,'
14689 lt_prog_compiler_pic_CXX
='-fPIC'
14690 lt_prog_compiler_static_CXX
='-static'
14693 # Portland Group C++ compiler
14694 lt_prog_compiler_wl_CXX
='-Wl,'
14695 lt_prog_compiler_pic_CXX
='-fpic'
14696 lt_prog_compiler_static_CXX
='-Bstatic'
14700 # Make sure the PIC flag is empty. It appears that all Alpha
14701 # Linux and Compaq Tru64 Unix objects are PIC.
14702 lt_prog_compiler_pic_CXX
=
14703 lt_prog_compiler_static_CXX
='-non_shared'
14705 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14706 # IBM XL 8.0, 9.0 on PPC and BlueGene
14707 lt_prog_compiler_wl_CXX
='-Wl,'
14708 lt_prog_compiler_pic_CXX
='-qpic'
14709 lt_prog_compiler_static_CXX
='-qstaticlink'
14712 case `$CC -V 2>&1 | sed 5q` in
14715 lt_prog_compiler_pic_CXX
='-KPIC'
14716 lt_prog_compiler_static_CXX
='-Bstatic'
14717 lt_prog_compiler_wl_CXX
='-Qoption ld '
14728 case $cc_basename in
14730 lt_prog_compiler_pic_CXX
='-W c,exportall'
14739 # QNX uses GNU C++, but need to define -shared option too, otherwise
14740 # it will coredump.
14741 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14743 osf3
* | osf4
* | osf5
*)
14744 case $cc_basename in
14746 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14749 # Rational C++ 2.4.1
14750 lt_prog_compiler_pic_CXX
='-pic'
14753 # Digital/Compaq C++
14754 lt_prog_compiler_wl_CXX
='-Wl,'
14755 # Make sure the PIC flag is empty. It appears that all Alpha
14756 # Linux and Compaq Tru64 Unix objects are PIC.
14757 lt_prog_compiler_pic_CXX
=
14758 lt_prog_compiler_static_CXX
='-non_shared'
14767 case $cc_basename in
14769 # Sun C++ 4.2, 5.x and Centerline C++
14770 lt_prog_compiler_pic_CXX
='-KPIC'
14771 lt_prog_compiler_static_CXX
='-Bstatic'
14772 lt_prog_compiler_wl_CXX
='-Qoption ld '
14775 # Green Hills C++ Compiler
14776 lt_prog_compiler_pic_CXX
='-PIC'
14783 case $cc_basename in
14786 lt_prog_compiler_pic_CXX
='-pic'
14787 lt_prog_compiler_static_CXX
='-Bstatic'
14791 lt_prog_compiler_pic_CXX
='-pic'
14797 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14798 case $cc_basename in
14800 lt_prog_compiler_wl_CXX
='-Wl,'
14801 lt_prog_compiler_pic_CXX
='-KPIC'
14802 lt_prog_compiler_static_CXX
='-Bstatic'
14807 case $cc_basename in
14809 # NonStop-UX NCC 3.20
14810 lt_prog_compiler_pic_CXX
='-KPIC'
14819 lt_prog_compiler_can_build_shared_CXX
=no
14825 # For platforms that do not support PIC, -DPIC is meaningless:
14827 lt_prog_compiler_pic_CXX
=
14830 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14835 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14836 if ${lt_cv_prog_compiler_pic_CXX+:} false
; then :
14837 $as_echo_n "(cached) " >&6
14839 lt_cv_prog_compiler_pic_CXX
=$lt_prog_compiler_pic_CXX
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14842 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14843 lt_prog_compiler_pic_CXX
=$lt_cv_prog_compiler_pic_CXX
14846 # Check to make sure the PIC flag actually works.
14848 if test -n "$lt_prog_compiler_pic_CXX"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14850 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14851 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14852 $as_echo_n "(cached) " >&6
14854 lt_cv_prog_compiler_pic_works_CXX
=no
14855 ac_outfile
=conftest.
$ac_objext
14856 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14857 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14858 # Insert the option either (1) after the last *FLAGS variable, or
14859 # (2) before a word containing "conftest.", or (3) at the end.
14860 # Note that $ac_compile itself does not contain backslashes and begins
14861 # with a dollar sign (not a hyphen), so the echo should work correctly.
14862 # The option is referenced via a variable to avoid confusing sed.
14863 lt_compile
=`echo "$ac_compile" | $SED \
14864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866 -e 's:$: $lt_compiler_flag:'`
14867 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14868 (eval "$lt_compile" 2>conftest.err
)
14870 cat conftest.err
>&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 if (exit $ac_status) && test -s "$ac_outfile"; then
14873 # The compiler can only warn and ignore the option if not recognized
14874 # So say no if there are warnings other than the usual output.
14875 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14876 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14877 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14878 lt_cv_prog_compiler_pic_works_CXX
=yes
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14885 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14887 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14888 case $lt_prog_compiler_pic_CXX in
14890 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14893 lt_prog_compiler_pic_CXX
=
14894 lt_prog_compiler_can_build_shared_CXX
=no
14904 # Check to make sure the static flag actually works.
14906 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14908 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14909 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14910 $as_echo_n "(cached) " >&6
14912 lt_cv_prog_compiler_static_works_CXX
=no
14913 save_LDFLAGS
=$LDFLAGS
14914 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14915 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14916 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14917 # The linker can only warn and ignore the option if not recognized
14918 # So say no if there are warnings
14919 if test -s conftest.err
; then
14920 # Append any errors to the config.log.
14921 cat conftest.err
1>&5
14922 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14923 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14924 if diff conftest.exp conftest.er2
>/dev
/null
; then
14925 lt_cv_prog_compiler_static_works_CXX
=yes
14928 lt_cv_prog_compiler_static_works_CXX
=yes
14932 LDFLAGS
=$save_LDFLAGS
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14936 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14938 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14941 lt_prog_compiler_static_CXX
=
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14949 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14950 $as_echo_n "(cached) " >&6
14952 lt_cv_prog_compiler_c_o_CXX
=no
14953 $RM -r conftest
2>/dev
/null
14957 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14959 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14960 # Insert the option either (1) after the last *FLAGS variable, or
14961 # (2) before a word containing "conftest.", or (3) at the end.
14962 # Note that $ac_compile itself does not contain backslashes and begins
14963 # with a dollar sign (not a hyphen), so the echo should work correctly.
14964 lt_compile
=`echo "$ac_compile" | $SED \
14965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967 -e 's:$: $lt_compiler_flag:'`
14968 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969 (eval "$lt_compile" 2>out
/conftest.err
)
14971 cat out
/conftest.err
>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14975 # The compiler can only warn and ignore the option if not recognized
14976 # So say no if there are warnings
14977 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14978 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14979 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14980 lt_cv_prog_compiler_c_o_CXX
=yes
14985 # SGI C++ compiler will create directory out/ii_files/ for
14986 # template instantiation
14987 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14988 $RM out
/* && rmdir out
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14995 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15000 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15001 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
15002 $as_echo_n "(cached) " >&6
15004 lt_cv_prog_compiler_c_o_CXX
=no
15005 $RM -r conftest
2>/dev
/null
15009 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15011 lt_compiler_flag
="-o out/conftest2.$ac_objext"
15012 # Insert the option either (1) after the last *FLAGS variable, or
15013 # (2) before a word containing "conftest.", or (3) at the end.
15014 # Note that $ac_compile itself does not contain backslashes and begins
15015 # with a dollar sign (not a hyphen), so the echo should work correctly.
15016 lt_compile
=`echo "$ac_compile" | $SED \
15017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15019 -e 's:$: $lt_compiler_flag:'`
15020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15021 (eval "$lt_compile" 2>out
/conftest.err
)
15023 cat out
/conftest.err
>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
15027 # The compiler can only warn and ignore the option if not recognized
15028 # So say no if there are warnings
15029 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
15030 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
15031 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
15032 lt_cv_prog_compiler_c_o_CXX
=yes
15037 # SGI C++ compiler will create directory out/ii_files/ for
15038 # template instantiation
15039 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
15040 $RM out
/* && rmdir out
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15047 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15052 hard_links
=nottested
15053 if test no
= "$lt_cv_prog_compiler_c_o_CXX" && test no
!= "$need_locks"; then
15054 # do not overwrite the value of need_locks provided by the user
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15056 $as_echo_n "checking if we can lock with hard links... " >&6; }
15059 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15061 ln conftest.a conftest.b
2>&5 || hard_links
=no
15062 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15064 $as_echo "$hard_links" >&6; }
15065 if test no
= "$hard_links"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15067 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15077 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15079 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15080 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15083 # If we're using GNU nm, then we don't want the "-C" option.
15084 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15085 # Without the "-l" option, or with the "-B" option, AIX nm treats
15086 # weak defined symbols like other global defined symbols, whereas
15087 # GNU nm marks them as "W".
15088 # While the 'weak' keyword is ignored in the Export File, we need
15089 # it in the Import File for the 'aix-soname' feature, so we have
15090 # to replace the "-B" option with "-P" for AIX nm.
15091 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15092 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15094 export_symbols_cmds_CXX
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15098 export_symbols_cmds_CXX
=$ltdll_cmds
15100 cygwin
* | mingw
* | cegcc
*)
15101 case $cc_basename in
15103 exclude_expsyms_CXX
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15106 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15107 exclude_expsyms_CXX
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15112 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15117 $as_echo "$ld_shlibs_CXX" >&6; }
15118 test no
= "$ld_shlibs_CXX" && can_build_shared
=no
15120 with_gnu_ld_CXX
=$with_gnu_ld
15128 # Do we need to explicitly link libc?
15130 case "x$archive_cmds_need_lc_CXX" in
15132 # Assume -lc should be added
15133 archive_cmds_need_lc_CXX
=yes
15135 if test yes,yes = "$GCC,$enable_shared"; then
15136 case $archive_cmds_CXX in
15138 # FIXME: we may have to deal with multi-command sequences.
15141 # Test whether the compiler implicitly links with -lc since on some
15142 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15143 # to ld, don't add -lc before -lgcc.
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15145 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15146 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
15147 $as_echo_n "(cached) " >&6
15150 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15153 (eval $ac_compile) 2>&5
15155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15156 test $ac_status = 0; } 2>conftest.err
; then
15159 libobjs
=conftest.
$ac_objext
15161 wl
=$lt_prog_compiler_wl_CXX
15162 pic_flag
=$lt_prog_compiler_pic_CXX
15168 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
15169 allow_undefined_flag_CXX
=
15170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15171 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15174 test $ac_status = 0; }
15176 lt_cv_archive_cmds_need_lc_CXX
=no
15178 lt_cv_archive_cmds_need_lc_CXX
=yes
15180 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
15182 cat conftest.err
1>&5
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15188 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15189 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15258 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15260 library_names_spec
=
15261 libname_spec
='lib$name'
15265 postuninstall_cmds
=
15269 shlibpath_overrides_runpath
=unknown
15271 dynamic_linker
="$host_os ld.so"
15272 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15273 need_lib_prefix
=unknown
15274 hardcode_into_libs
=no
15276 # when you set need_version to no, make sure it does not cause -set_version
15277 # flags to be left without arguments
15278 need_version
=unknown
15284 version_type
=linux
# correct to gnu/linux during the next big refactor
15285 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
15286 shlibpath_var
=LIBPATH
15288 # AIX 3 has no versioning support, so we append a major version to the name.
15289 soname_spec
='$libname$release$shared_ext$major'
15293 version_type
=linux
# correct to gnu/linux during the next big refactor
15296 hardcode_into_libs
=yes
15297 if test ia64
= "$host_cpu"; then
15298 # AIX 5 supports IA64
15299 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15300 shlibpath_var
=LD_LIBRARY_PATH
15302 # With GCC up to 2.95.x, collect2 would create an import file
15303 # for dependence libraries. The import file would start with
15304 # the line '#! .'. This would cause the generated library to
15305 # depend on '.', always an invalid library. This was fixed in
15306 # development snapshots of GCC prior to 3.0.
15308 aix4 | aix4.
[01] | aix4.
[01].
*)
15309 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15311 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
15314 can_build_shared
=no
15318 # Using Import Files as archive members, it is possible to support
15319 # filename-based versioning of shared library archives on AIX. While
15320 # this would work for both with and without runtime linking, it will
15321 # prevent static linking of such archives. So we do filename-based
15322 # shared library versioning with .so extension only, which is used
15323 # when both runtime linking and shared linking is enabled.
15324 # Unfortunately, runtime linking may impact performance, so we do
15325 # not want this to be the default eventually. Also, we use the
15326 # versioned .so libs for executables only if there is the -brtl
15327 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15328 # To allow for filename-based versioning support, we need to create
15329 # libNAME.so.V as an archive file, containing:
15330 # *) an Import File, referring to the versioned filename of the
15331 # archive as well as the shared archive member, telling the
15332 # bitwidth (32 or 64) of that shared object, and providing the
15333 # list of exported symbols of that shared object, eventually
15334 # decorated with the 'weak' keyword
15335 # *) the shared object with the F_LOADONLY flag set, to really avoid
15336 # it being seen by the linker.
15337 # At run time we better use the real file rather than another symlink,
15338 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15340 case $with_aix_soname,$aix_use_runtimelinking in
15341 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15342 # soname into executable. Probably we can add versioning support to
15343 # collect2, so additional links can be useful in future.
15344 aix
,yes) # traditional libtool
15345 dynamic_linker
='AIX unversionable lib.so'
15346 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347 # instead of lib<name>.a to let people know that these are not
15348 # typical AIX shared libraries.
15349 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15351 aix
,no
) # traditional AIX only
15352 dynamic_linker
='AIX lib.a(lib.so.V)'
15353 # We preserve .a as extension for shared libraries through AIX4.2
15354 # and later when we are not doing run time linking.
15355 library_names_spec
='$libname$release.a $libname.a'
15356 soname_spec
='$libname$release$shared_ext$major'
15358 svr4
,*) # full svr4 only
15359 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
15360 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
15361 # We do not specify a path in Import Files, so LIBPATH fires.
15362 shlibpath_overrides_runpath
=yes
15364 *,yes) # both, prefer svr4
15365 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15366 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
15367 # unpreferred sharedlib libNAME.a needs extra handling
15368 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15369 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15370 # We do not specify a path in Import Files, so LIBPATH fires.
15371 shlibpath_overrides_runpath
=yes
15373 *,no
) # both, prefer aix
15374 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15375 library_names_spec
='$libname$release.a $libname.a'
15376 soname_spec
='$libname$release$shared_ext$major'
15377 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15378 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15379 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15382 shlibpath_var
=LIBPATH
15389 # Since July 2007 AmigaOS4 officially supports .so libraries.
15390 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15391 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15394 library_names_spec
='$libname.ixlibrary $libname.a'
15395 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15396 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15402 library_names_spec
='$libname$shared_ext'
15403 dynamic_linker
="$host_os ld.so"
15404 shlibpath_var
=LIBRARY_PATH
15408 version_type
=linux
# correct to gnu/linux during the next big refactor
15410 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15411 soname_spec
='$libname$release$shared_ext$major'
15412 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15413 shlibpath_var
=LD_LIBRARY_PATH
15414 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15415 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15416 # the default ld.so.conf also contains /usr/contrib/lib and
15417 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15418 # libtool to hard-code these into programs
15421 cygwin
* | mingw
* | pw32
* | cegcc
*)
15422 version_type
=windows
15427 case $GCC,$cc_basename in
15430 library_names_spec
='$libname.dll.a'
15431 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15432 postinstall_cmds
='base_file=`basename \$file`~
15433 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15434 dldir=$destdir/`dirname \$dlpath`~
15435 test -d \$dldir || mkdir -p \$dldir~
15436 $install_prog $dir/$dlname \$dldir/$dlname~
15437 chmod a+x \$dldir/$dlname~
15438 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15439 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15441 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15442 dlpath=$dir/\$dldll~
15444 shlibpath_overrides_runpath
=yes
15448 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15449 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
15453 # MinGW DLLs use traditional 'lib' prefix
15454 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
15457 # pw32 DLLs use 'pw' prefix rather than 'lib'
15458 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
15461 dynamic_linker
='Win32 ld.exe'
15466 libname_spec
='$name'
15467 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
15468 library_names_spec
='$libname.dll.lib'
15472 sys_lib_search_path_spec
=
15475 for lt_path
in $LIB
15478 # Let DOS variable expansion print the short 8.3 style file name.
15479 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15480 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
15483 # Convert to MSYS style.
15484 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15487 # Convert to unix form, then to dos form, then back to unix form
15488 # but this time dos style (no spaces!) so that the unix form looks
15489 # like /cygdrive/c/PROGRA~1:/cygdr...
15490 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
15491 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15492 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15495 sys_lib_search_path_spec
=$LIB
15496 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
15497 # It is most probably a Windows format PATH.
15498 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15500 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15502 # FIXME: find the short name or the path components, as spaces are
15503 # common. (e.g. "Program Files" -> "PROGRA~1")
15507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15508 postinstall_cmds
='base_file=`basename \$file`~
15509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15510 dldir=$destdir/`dirname \$dlpath`~
15511 test -d \$dldir || mkdir -p \$dldir~
15512 $install_prog $dir/$dlname \$dldir/$dlname'
15513 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15514 dlpath=$dir/\$dldll~
15516 shlibpath_overrides_runpath
=yes
15517 dynamic_linker
='Win32 link.exe'
15521 # Assume MSVC wrapper
15522 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
15523 dynamic_linker
='Win32 ld.exe'
15526 # FIXME: first we should search . and the directory the executable is in
15530 darwin
* | rhapsody
*)
15531 dynamic_linker
="$host_os dyld"
15532 version_type
=darwin
15535 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
15536 soname_spec
='$libname$release$major$shared_ext'
15537 shlibpath_overrides_runpath
=yes
15538 shlibpath_var
=DYLD_LIBRARY_PATH
15539 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15541 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15545 version_type
=linux
# correct to gnu/linux during the next big refactor
15548 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15549 soname_spec
='$libname$release$shared_ext$major'
15550 shlibpath_var
=LD_LIBRARY_PATH
15553 freebsd
* | dragonfly
*)
15554 # DragonFly does not have aout. When/if they implement a new
15555 # versioning mechanism, adjust this.
15556 if test -x /usr
/bin
/objformat
; then
15557 objformat
=`/usr/bin/objformat`
15560 freebsd
[23].
*) objformat
=aout
;;
15561 *) objformat
=elf
;;
15564 version_type
=freebsd-
$objformat
15565 case $version_type in
15567 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15568 soname_spec
='$libname$release$shared_ext$major'
15573 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15577 shlibpath_var
=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath
=yes
15582 freebsd3.
[01]* | freebsdelf3.
[01]*)
15583 shlibpath_overrides_runpath
=yes
15584 hardcode_into_libs
=yes
15586 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15587 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15588 shlibpath_overrides_runpath
=no
15589 hardcode_into_libs
=yes
15591 *) # from 4.6 on, and DragonFly
15592 shlibpath_overrides_runpath
=yes
15593 hardcode_into_libs
=yes
15599 version_type
=linux
# correct to gnu/linux during the next big refactor
15602 dynamic_linker
="$host_os runtime_loader"
15603 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15604 soname_spec
='$libname$release$shared_ext$major'
15605 shlibpath_var
=LIBRARY_PATH
15606 shlibpath_overrides_runpath
=no
15607 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15608 hardcode_into_libs
=yes
15611 hpux9
* | hpux10
* | hpux11
*)
15612 # Give a soname corresponding to the major version so that dld.sl refuses to
15613 # link against other versions.
15620 hardcode_into_libs
=yes
15621 dynamic_linker
="$host_os dld.so"
15622 shlibpath_var
=LD_LIBRARY_PATH
15623 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15624 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15625 soname_spec
='$libname$release$shared_ext$major'
15626 if test 32 = "$HPUX_IA64_MODE"; then
15627 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15628 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
15630 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15631 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
15636 hardcode_into_libs
=yes
15637 dynamic_linker
="$host_os dld.sl"
15638 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15639 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15640 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15641 soname_spec
='$libname$release$shared_ext$major'
15642 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15643 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15647 dynamic_linker
="$host_os dld.sl"
15648 shlibpath_var
=SHLIB_PATH
15649 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15650 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15651 soname_spec
='$libname$release$shared_ext$major'
15654 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15655 postinstall_cmds
='chmod 555 $lib'
15656 # or fails outright, so override atomically:
15657 install_override_mode
=555
15661 version_type
=linux
# correct to gnu/linux during the next big refactor
15664 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15665 soname_spec
='$libname$release$shared_ext$major'
15666 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15667 shlibpath_var
=LD_LIBRARY_PATH
15668 shlibpath_overrides_runpath
=no
15669 hardcode_into_libs
=yes
15672 irix5
* | irix6
* | nonstopux
*)
15674 nonstopux
*) version_type
=nonstopux
;;
15676 if test yes = "$lt_cv_prog_gnu_ld"; then
15677 version_type
=linux
# correct to gnu/linux during the next big refactor
15684 soname_spec
='$libname$release$shared_ext$major'
15685 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15687 irix5
* | nonstopux
*)
15688 libsuff
= shlibsuff
=
15691 case $LD in # libtool.m4 will add one of these switches to LD
15692 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15693 libsuff
= shlibsuff
= libmagic
=32-bit;;
15694 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15695 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15696 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15697 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15698 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15702 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15703 shlibpath_overrides_runpath
=no
15704 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15705 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
15706 hardcode_into_libs
=yes
15709 # No shared lib support for Linux oldld, aout, or coff.
15710 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15715 version_type
=none
# Android doesn't support versioned libraries.
15718 library_names_spec
='$libname$release$shared_ext'
15719 soname_spec
='$libname$release$shared_ext'
15721 shlibpath_var
=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath
=yes
15724 # This implies no fast_install, which is unacceptable.
15725 # Some rework will be needed to allow for fast_install
15726 # before this can be enabled.
15727 hardcode_into_libs
=yes
15729 dynamic_linker
='Android linker'
15730 # Don't embed -rpath directories since the linker doesn't support them.
15731 hardcode_libdir_flag_spec_CXX
='-L$libdir'
15734 # This must be glibc/ELF.
15735 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15736 version_type
=linux
# correct to gnu/linux during the next big refactor
15739 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15740 soname_spec
='$libname$release$shared_ext$major'
15741 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15742 shlibpath_var
=LD_LIBRARY_PATH
15743 shlibpath_overrides_runpath
=no
15745 # Some binutils ld are patched to set DT_RUNPATH
15746 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15747 $as_echo_n "(cached) " >&6
15749 lt_cv_shlibpath_overrides_runpath
=no
15750 save_LDFLAGS
=$LDFLAGS
15751 save_libdir
=$libdir
15752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15765 if ac_fn_cxx_try_link
"$LINENO"; then :
15766 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15767 lt_cv_shlibpath_overrides_runpath
=yes
15770 rm -f core conftest.err conftest.
$ac_objext \
15771 conftest
$ac_exeext conftest.
$ac_ext
15772 LDFLAGS
=$save_LDFLAGS
15773 libdir
=$save_libdir
15777 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15779 # This implies no fast_install, which is unacceptable.
15780 # Some rework will be needed to allow for fast_install
15781 # before this can be enabled.
15782 hardcode_into_libs
=yes
15784 # Add ABI-specific directories to the system library path.
15785 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
15787 # Ideally, we could use ldconfig to report *all* directores which are
15788 # searched for libraries, however this is still not possible. Aside from not
15789 # being certain /sbin/ldconfig is available, command
15790 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15791 # even though it is searched at run-time. Try to do the best guess by
15792 # appending ld.so.conf contents (and includes) to the search path.
15793 if test -f /etc
/ld.so.conf
; then
15794 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' ' '`
15795 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15798 # We used to test for /lib/ld.so.1 and disable shared libraries on
15799 # powerpc, because MkLinux only supported shared libraries with the
15800 # GNU dynamic linker. Since this was broken with cross compilers,
15801 # most powerpc-linux boxes support dynamic linking these days and
15802 # people can always --disable-shared, the test was removed, and we
15803 # assume the GNU/Linux dynamic linker is in use.
15804 dynamic_linker
='GNU/Linux ld.so'
15811 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15812 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15813 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15814 dynamic_linker
='NetBSD (a.out) ld.so'
15816 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15817 soname_spec
='$libname$release$shared_ext$major'
15818 dynamic_linker
='NetBSD ld.elf_so'
15820 shlibpath_var
=LD_LIBRARY_PATH
15821 shlibpath_overrides_runpath
=yes
15822 hardcode_into_libs
=yes
15826 version_type
=linux
# correct to gnu/linux during the next big refactor
15827 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15828 shlibpath_var
=LD_LIBRARY_PATH
15829 shlibpath_overrides_runpath
=yes
15836 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15837 soname_spec
='$libname$release$shared_ext$major'
15838 shlibpath_var
=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath
=no
15840 hardcode_into_libs
=yes
15841 dynamic_linker
='ldqnx.so'
15844 openbsd
* | bitrig
*)
15846 sys_lib_dlsearch_path_spec
=/usr
/lib
15848 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15853 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15854 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15855 shlibpath_var
=LD_LIBRARY_PATH
15856 shlibpath_overrides_runpath
=yes
15860 libname_spec
='$name'
15861 version_type
=windows
15865 # OS/2 can only load a DLL with a base name of 8 characters or less.
15866 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
15867 v=$($ECHO $release$versuffix | tr -d .-);
15868 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15869 $ECHO $n$v`$shared_ext'
15870 library_names_spec
='${libname}_dll.$libext'
15871 dynamic_linker
='OS/2 ld.exe'
15872 shlibpath_var
=BEGINLIBPATH
15873 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
15874 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15875 postinstall_cmds
='base_file=`basename \$file`~
15876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15877 dldir=$destdir/`dirname \$dlpath`~
15878 test -d \$dldir || mkdir -p \$dldir~
15879 $install_prog $dir/$dlname \$dldir/$dlname~
15880 chmod a+x \$dldir/$dlname~
15881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15884 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15885 dlpath=$dir/\$dldll~
15889 osf3
* | osf4
* | osf5
*)
15893 soname_spec
='$libname$release$shared_ext$major'
15894 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15895 shlibpath_var
=LD_LIBRARY_PATH
15896 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15897 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15905 version_type
=linux
# correct to gnu/linux during the next big refactor
15908 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15909 soname_spec
='$libname$release$shared_ext$major'
15910 shlibpath_var
=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath
=yes
15912 hardcode_into_libs
=yes
15913 # ldd complains unless libraries are executable
15914 postinstall_cmds
='chmod +x $lib'
15919 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15920 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15921 shlibpath_var
=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath
=yes
15923 if test yes = "$with_gnu_ld"; then
15930 version_type
=linux
# correct to gnu/linux during the next big refactor
15931 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15932 soname_spec
='$libname$release$shared_ext$major'
15933 shlibpath_var
=LD_LIBRARY_PATH
15934 case $host_vendor in
15936 shlibpath_overrides_runpath
=no
15938 runpath_var
=LD_RUN_PATH
15946 shlibpath_overrides_runpath
=no
15947 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15953 if test -d /usr
/nec
; then
15954 version_type
=linux
# correct to gnu/linux during the next big refactor
15955 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15956 soname_spec
='$libname$shared_ext.$major'
15957 shlibpath_var
=LD_LIBRARY_PATH
15961 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15965 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15966 soname_spec
='$libname$release$shared_ext$major'
15967 shlibpath_var
=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath
=yes
15969 hardcode_into_libs
=yes
15970 if test yes = "$with_gnu_ld"; then
15971 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15973 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15976 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15980 sys_lib_dlsearch_path_spec
='/usr/lib'
15984 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15985 version_type
=linux
# correct to gnu/linux during the next big refactor
15988 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15989 shlibpath_var
=LD_LIBRARY_PATH
15990 shlibpath_overrides_runpath
=no
15991 hardcode_into_libs
=yes
15995 version_type
=linux
# correct to gnu/linux during the next big refactor
15996 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15997 soname_spec
='$libname$release$shared_ext$major'
15998 shlibpath_var
=LD_LIBRARY_PATH
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16006 $as_echo "$dynamic_linker" >&6; }
16007 test no
= "$dynamic_linker" && can_build_shared
=no
16009 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16010 if test yes = "$GCC"; then
16011 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16014 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16015 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
16018 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16019 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
16022 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16023 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
16025 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16026 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
16028 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16029 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16071 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16072 hardcode_action_CXX
=
16073 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16074 test -n "$runpath_var_CXX" ||
16075 test yes = "$hardcode_automatic_CXX"; then
16077 # We can hardcode non-existent directories.
16078 if test no
!= "$hardcode_direct_CXX" &&
16079 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16080 # have to relink, otherwise we might link with an installed library
16081 # when we should be linking with a yet-to-be-installed one
16082 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16083 test no
!= "$hardcode_minus_L_CXX"; then
16084 # Linking always hardcodes the temporary library directory.
16085 hardcode_action_CXX
=relink
16087 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16088 hardcode_action_CXX
=immediate
16091 # We cannot hardcode anything, or else we can only hardcode existing
16093 hardcode_action_CXX
=unsupported
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16096 $as_echo "$hardcode_action_CXX" >&6; }
16098 if test relink
= "$hardcode_action_CXX" ||
16099 test yes = "$inherit_rpath_CXX"; then
16100 # Fast installation is not supported
16101 enable_fast_install
=no
16102 elif test yes = "$shlibpath_overrides_runpath" ||
16103 test no
= "$enable_shared"; then
16104 # Fast installation is not necessary
16105 enable_fast_install
=needless
16114 fi # test -n "$compiler"
16117 CFLAGS
=$lt_save_CFLAGS
16121 with_gnu_ld
=$lt_save_with_gnu_ld
16122 lt_cv_path_LDCXX
=$lt_cv_path_LD
16123 lt_cv_path_LD
=$lt_save_path_LD
16124 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
16125 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
16126 fi # test yes != "$_lt_caught_CXX_error"
16129 ac_cpp
='$CPP $CPPFLAGS'
16130 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16148 ac_config_commands
="$ac_config_commands libtool"
16153 # Only expand once:
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
16157 $as_echo_n "checking what extension is used for runtime loadable modules... " >&6; }
16158 if ${libltdl_cv_shlibext+:} false
; then :
16159 $as_echo_n "(cached) " >&6
16163 eval libltdl_cv_shlibext
=$shrext_cmds
16165 eval libltdl_cv_shrext
=$shrext_cmds
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
16169 $as_echo "$libltdl_cv_shlibext" >&6; }
16170 if test -n "$libltdl_cv_shlibext"; then
16172 cat >>confdefs.h
<<_ACEOF
16173 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
16177 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
16179 cat >>confdefs.h
<<_ACEOF
16180 #define LT_SHARED_EXT "$libltdl_cv_shrext"
16184 if test -n "$shared_archive_member_spec"; then
16186 cat >>confdefs.h
<<_ACEOF
16187 #define LT_SHARED_LIB_MEMBER "($shared_archive_member_spec.o)"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
16193 $as_echo_n "checking what variable specifies run-time module search path... " >&6; }
16194 if ${lt_cv_module_path_var+:} false
; then :
16195 $as_echo_n "(cached) " >&6
16197 lt_cv_module_path_var
=$shlibpath_var
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
16200 $as_echo "$lt_cv_module_path_var" >&6; }
16201 if test -n "$lt_cv_module_path_var"; then
16203 cat >>confdefs.h
<<_ACEOF
16204 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
16210 $as_echo_n "checking for the default library search path... " >&6; }
16211 if ${lt_cv_sys_dlsearch_path+:} false
; then :
16212 $as_echo_n "(cached) " >&6
16214 lt_cv_sys_dlsearch_path
=$sys_lib_dlsearch_path_spec
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
16217 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
16218 if test -n "$lt_cv_sys_dlsearch_path"; then
16220 for dir
in $lt_cv_sys_dlsearch_path; do
16221 if test -z "$sys_dlsearch_path"; then
16222 sys_dlsearch_path
=$dir
16224 sys_dlsearch_path
=$sys_dlsearch_path$PATH_SEPARATOR$dir
16228 cat >>confdefs.h
<<_ACEOF
16229 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
16239 ac_cpp
='$CPP $CPPFLAGS'
16240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16244 lt_dlload_save_LIBS
=$LIBS
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16248 $as_echo_n "checking for library containing dlopen... " >&6; }
16249 if ${ac_cv_search_dlopen+:} false
; then :
16250 $as_echo_n "(cached) " >&6
16252 ac_func_search_save_LIBS
=$LIBS
16253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16256 /* Override any GCC internal prototype to avoid an error.
16257 Use char because int might match the return type of a GCC
16258 builtin and then its argument prototype would still apply. */
16271 for ac_lib
in '' dl
; do
16272 if test -z "$ac_lib"; then
16273 ac_res
="none required"
16276 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16278 if ac_fn_c_try_link
"$LINENO"; then :
16279 ac_cv_search_dlopen
=$ac_res
16281 rm -f core conftest.err conftest.
$ac_objext \
16283 if ${ac_cv_search_dlopen+:} false
; then :
16287 if ${ac_cv_search_dlopen+:} false
; then :
16290 ac_cv_search_dlopen
=no
16292 rm conftest.
$ac_ext
16293 LIBS
=$ac_func_search_save_LIBS
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16296 $as_echo "$ac_cv_search_dlopen" >&6; }
16297 ac_res
=$ac_cv_search_dlopen
16298 if test "$ac_res" != no
; then :
16299 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16301 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16303 if test "$ac_cv_search_dlopen" != "none required"; then
16306 libltdl_cv_lib_dl_dlopen
=yes
16307 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16310 /* end confdefs.h. */
16312 # include <dlfcn.h>
16323 if ac_fn_c_try_link
"$LINENO"; then :
16325 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16327 libltdl_cv_func_dlopen
=yes
16328 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16331 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16332 if ${ac_cv_lib_svld_dlopen+:} false
; then :
16333 $as_echo_n "(cached) " >&6
16335 ac_check_lib_save_LIBS
=$LIBS
16336 LIBS
="-lsvld $LIBS"
16337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16340 /* Override any GCC internal prototype to avoid an error.
16341 Use char because int might match the return type of a GCC
16342 builtin and then its argument prototype would still apply. */
16355 if ac_fn_c_try_link
"$LINENO"; then :
16356 ac_cv_lib_svld_dlopen
=yes
16358 ac_cv_lib_svld_dlopen
=no
16360 rm -f core conftest.err conftest.
$ac_objext \
16361 conftest
$ac_exeext conftest.
$ac_ext
16362 LIBS
=$ac_check_lib_save_LIBS
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16365 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16366 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
16368 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16370 LIBADD_DLOPEN
=-lsvld libltdl_cv_func_dlopen
=yes
16371 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16375 rm -f core conftest.err conftest.
$ac_objext \
16376 conftest
$ac_exeext conftest.
$ac_ext
16379 if test yes = "$libltdl_cv_func_dlopen" ||
test yes = "$libltdl_cv_lib_dl_dlopen"
16382 LIBS
="$LIBS $LIBADD_DLOPEN"
16383 for ac_func
in dlerror
16385 ac_fn_c_check_func
"$LINENO" "dlerror" "ac_cv_func_dlerror"
16386 if test "x$ac_cv_func_dlerror" = xyes
; then :
16387 cat >>confdefs.h
<<_ACEOF
16388 #define HAVE_DLERROR 1
16399 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16400 if test "x$ac_cv_func_shl_load" = xyes
; then :
16402 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16404 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16407 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16408 if ${ac_cv_lib_dld_shl_load+:} false
; then :
16409 $as_echo_n "(cached) " >&6
16411 ac_check_lib_save_LIBS
=$LIBS
16413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16416 /* Override any GCC internal prototype to avoid an error.
16417 Use char because int might match the return type of a GCC
16418 builtin and then its argument prototype would still apply. */
16426 return shl_load ();
16431 if ac_fn_c_try_link
"$LINENO"; then :
16432 ac_cv_lib_dld_shl_load
=yes
16434 ac_cv_lib_dld_shl_load
=no
16436 rm -f core conftest.err conftest.
$ac_objext \
16437 conftest
$ac_exeext conftest.
$ac_ext
16438 LIBS
=$ac_check_lib_save_LIBS
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16441 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16442 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
16444 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16446 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16447 LIBADD_SHL_LOAD
=-ldld
16456 # We only want this for pre-Mac OS X 10.4.
16457 ac_fn_c_check_func
"$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16458 if test "x$ac_cv_func__dyld_func_lookup" = xyes
; then :
16460 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16462 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16467 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16469 cygwin
* | mingw
* | pw32
*)
16470 ac_fn_c_check_decl
"$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16472 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
; then :
16478 cat >>confdefs.h
<<_ACEOF
16479 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16482 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16487 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16488 if ${ac_cv_lib_dld_dld_link+:} false
; then :
16489 $as_echo_n "(cached) " >&6
16491 ac_check_lib_save_LIBS
=$LIBS
16493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16494 /* end confdefs.h. */
16496 /* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
16506 return dld_link ();
16511 if ac_fn_c_try_link
"$LINENO"; then :
16512 ac_cv_lib_dld_dld_link
=yes
16514 ac_cv_lib_dld_dld_link
=no
16516 rm -f core conftest.err conftest.
$ac_objext \
16517 conftest
$ac_exeext conftest.
$ac_ext
16518 LIBS
=$ac_check_lib_save_LIBS
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16521 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16522 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
16524 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16526 LT_DLLOADERS
="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16533 if test -n "$LT_DLLOADERS"
16535 for lt_loader
in $LT_DLLOADERS; do
16536 LT_DLPREOPEN
="$LT_DLPREOPEN-dlpreopen $lt_loader "
16539 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16544 LIBADD_DL
="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16547 LIBS
=$lt_dlload_save_LIBS
16549 ac_cpp
='$CPP $CPPFLAGS'
16550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
16556 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
16557 if ${lt_cv_sys_symbol_underscore+:} false
; then :
16558 $as_echo_n "(cached) " >&6
16560 lt_cv_sys_symbol_underscore
=no
16561 cat > conftest.
$ac_ext <<_LT_EOF
16562 void nm_test_func(){}
16563 int main(){nm_test_func;return 0;}
16565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16566 (eval $ac_compile) 2>&5
16568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569 test $ac_status = 0; }; then
16570 # Now try to grab the symbols.
16571 ac_nlist
=conftest.nm
16572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
16573 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
16575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16576 test $ac_status = 0; } && test -s "$ac_nlist"; then
16577 # See whether the symbols have a leading underscore.
16578 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
16579 lt_cv_sys_symbol_underscore
=yes
16581 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
16584 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16588 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
16591 echo "configure: failed program was:" >&5
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
16598 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
16599 sys_symbol_underscore
=$lt_cv_sys_symbol_underscore
16602 if test yes = "$lt_cv_sys_symbol_underscore"; then
16603 if test yes = "$libltdl_cv_func_dlopen" ||
test yes = "$libltdl_cv_lib_dl_dlopen"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
16605 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
16606 if ${libltdl_cv_need_uscore+:} false
; then :
16607 $as_echo_n "(cached) " >&6
16609 libltdl_cv_need_uscore
=unknown
16610 dlsym_uscore_save_LIBS
=$LIBS
16611 LIBS
="$LIBS $LIBADD_DLOPEN"
16612 libname
=conftmod
# stay within 8.3 filename limits!
16613 cat >$libname.
$ac_ext <<_LT_EOF
16614 #line $LINENO "configure"
16615 #include "confdefs.h"
16616 /* When -fvisibility=hidden is used, assume the code has been annotated
16617 correspondingly for the symbols needed. */
16618 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16619 int fnord () __attribute__((visibility("default")));
16621 int fnord () { return 42; }
16624 # ltfn_module_cmds module_cmds
16625 # Execute tilde-delimited MODULE_CMDS with environment primed for
16626 # $module_cmds or $archive_cmds type content.
16627 ltfn_module_cmds
()
16628 {( # subshell avoids polluting parent global environment
16629 module_cmds_save_ifs
=$IFS; IFS
='~'
16631 IFS
=$module_cmds_save_ifs
16632 libobjs
=$libname.
$ac_objext; lib
=$libname$libltdl_cv_shlibext
16633 rpath
=/not-exists
; soname
=$libname$libltdl_cv_shlibext; output_objdir
=.
16634 major
=; versuffix
=; verstring
=; deplibs
=
16635 ECHO
=echo; wl
=$lt_prog_compiler_wl; allow_undefined_flag
=
16638 IFS
=$module_cmds_save_ifs
16641 # Compile a loadable module using libtool macro expansion results.
16642 $CC $pic_flag -c $libname.
$ac_ext
16643 ltfn_module_cmds
"${module_cmds:-$archive_cmds}"
16645 # Try to fetch fnord with dlsym().
16646 libltdl_dlunknown
=0; libltdl_dlnouscore
=1; libltdl_dluscore
=2
16647 cat >conftest.
$ac_ext <<_LT_EOF
16648 #line $LINENO "configure"
16649 #include "confdefs.h"
16654 #ifndef RTLD_GLOBAL
16656 # define RTLD_GLOBAL DL_GLOBAL
16658 # define RTLD_GLOBAL 0
16663 # define RTLD_NOW DL_NOW
16665 # define RTLD_NOW 0
16669 void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
16670 int status = $libltdl_dlunknown;
16672 if (dlsym (handle, "fnord"))
16673 status = $libltdl_dlnouscore;
16675 if (dlsym (handle, "_fnord"))
16676 status = $libltdl_dluscore;
16686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16687 (eval $ac_link) 2>&5
16689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
16691 (.
/conftest
; exit; ) >&5 2>/dev
/null
16693 case x
$libltdl_status in
16694 x
$libltdl_dlnouscore) libltdl_cv_need_uscore
=no
;;
16695 x
$libltdl_dluscore) libltdl_cv_need_uscore
=yes ;;
16696 x
*) libltdl_cv_need_uscore
=unknown
;;
16699 rm -rf conftest
* $libname*
16700 LIBS
=$dlsym_uscore_save_LIBS
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
16704 $as_echo "$libltdl_cv_need_uscore" >&6; }
16708 if test yes = "$libltdl_cv_need_uscore"; then
16710 $as_echo "#define NEED_USCORE 1" >>confdefs.h
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
16715 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
16716 if ${lt_cv_sys_dlopen_deplibs+:} false
; then :
16717 $as_echo_n "(cached) " >&6
16719 # PORTME does your system automatically load deplibs for dlopen?
16720 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
16721 # For now, we just catch OSes we know something about -- in the
16722 # future, we'll try test this programmatically.
16723 lt_cv_sys_dlopen_deplibs
=unknown
16725 aix3
*|aix4.1.
*|aix4.2.
*)
16726 # Unknown whether this is true for these versions of AIX, but
16727 # we want this 'case' here to explicitly catch those versions.
16728 lt_cv_sys_dlopen_deplibs
=unknown
16731 lt_cv_sys_dlopen_deplibs
=yes
16736 lt_cv_sys_dlopen_deplibs
=no
16741 lt_cv_sys_dlopen_deplibs
=yes
16744 # Assuming the user has installed a libdl from somewhere, this is true
16745 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
16746 lt_cv_sys_dlopen_deplibs
=yes
16748 freebsd
* | dragonfly
*)
16749 lt_cv_sys_dlopen_deplibs
=yes
16751 gnu
* | linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16752 # GNU and its variants, using gnu ld.so (Glibc)
16753 lt_cv_sys_dlopen_deplibs
=yes
16756 lt_cv_sys_dlopen_deplibs
=yes
16759 lt_cv_sys_dlopen_deplibs
=yes
16761 irix
[12345]*|irix6.
[01]*)
16762 # Catch all versions of IRIX before 6.2, and indicate that we don't
16763 # know how it worked for any of those versions.
16764 lt_cv_sys_dlopen_deplibs
=unknown
16767 # The case above catches anything before 6.2, and it's known that
16768 # at 6.2 and later dlopen does load deplibs.
16769 lt_cv_sys_dlopen_deplibs
=yes
16772 lt_cv_sys_dlopen_deplibs
=yes
16775 lt_cv_sys_dlopen_deplibs
=yes
16778 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
16779 # it did *not* use an RPATH in a shared library to find objects the
16780 # library depends on, so we explicitly say 'no'.
16781 lt_cv_sys_dlopen_deplibs
=no
16783 osf5.0|osf5.0a|osf5.1
)
16784 # dlopen *does* load deplibs and with the right loader patch applied
16785 # it even uses RPATH in a shared library to search for shared objects
16786 # that the library depends on, but there's no easy way to know if that
16787 # patch is installed. Since this is the case, all we can really
16788 # say is unknown -- it depends on the patch being installed. If
16789 # it is, this changes to 'yes'. Without it, it would be 'no'.
16790 lt_cv_sys_dlopen_deplibs
=unknown
16793 # the two cases above should catch all versions of osf <= 5.1. Read
16794 # the comments above for what we know about them.
16795 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
16796 # is used to find them so we can finally say 'yes'.
16797 lt_cv_sys_dlopen_deplibs
=yes
16800 lt_cv_sys_dlopen_deplibs
=yes
16803 lt_cv_sys_dlopen_deplibs
=yes
16805 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16806 libltdl_cv_sys_dlopen_deplibs
=yes
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
16812 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
16813 if test yes != "$lt_cv_sys_dlopen_deplibs"; then
16815 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
16820 for ac_header
in argz.h
16822 ac_fn_c_check_header_compile
"$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
16824 if test "x$ac_cv_header_argz_h" = xyes
; then :
16825 cat >>confdefs.h
<<_ACEOF
16826 #define HAVE_ARGZ_H 1
16834 ac_fn_c_check_type
"$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
16838 if test "x$ac_cv_type_error_t" = xyes
; then :
16840 cat >>confdefs.h
<<_ACEOF
16841 #define HAVE_ERROR_T 1
16847 $as_echo "#define error_t int" >>confdefs.h
16850 $as_echo "#define __error_t_defined 1" >>confdefs.h
16856 for ac_func
in argz_add argz_append argz_count argz_create_sep argz_insert \
16857 argz_next argz_stringify
16859 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16860 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16861 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16862 cat >>confdefs.h
<<_ACEOF
16863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16867 LT_ARGZ_H
=lt__argz.h
;
16869 _LT_LIBOBJS
="$_LT_LIBOBJS lt__argz.$ac_objext"
16875 if test -z "$LT_ARGZ_H"; then :
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
16877 $as_echo_n "checking if argz actually works... " >&6; }
16878 if ${lt_cv_sys_argz_works+:} false
; then :
16879 $as_echo_n "(cached) " >&6
16881 case $host_os in #(
16883 lt_cv_sys_argz_works
=no
16884 if test no
!= "$cross_compiling"; then
16885 lt_cv_sys_argz_works
="guessing no"
16887 lt_sed_extract_leading_digits
='s/^\([0-9\.]*\).*/\1/'
16890 set x
`uname -r | sed -e "$lt_sed_extract_leading_digits"`
16895 if test 1 -lt "$lt_os_major" \
16896 ||
{ test 1 -eq "$lt_os_major" \
16897 && { test 5 -lt "$lt_os_minor" \
16898 ||
{ test 5 -eq "$lt_os_minor" \
16899 && test 24 -lt "$lt_os_micro"; }; }; }; then
16900 lt_cv_sys_argz_works
=yes
16904 *) lt_cv_sys_argz_works
=yes ;;
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
16908 $as_echo "$lt_cv_sys_argz_works" >&6; }
16909 if test yes = "$lt_cv_sys_argz_works"; then :
16911 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
16914 LT_ARGZ_H
=lt__argz.h
16917 _LT_LIBOBJS
="$_LT_LIBOBJS lt__argz.$ac_objext"
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
16925 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
16926 if ${libltdl_cv_preloaded_symbols+:} false
; then :
16927 $as_echo_n "(cached) " >&6
16929 if test -n "$lt_cv_sys_global_symbol_pipe"; then
16930 libltdl_cv_preloaded_symbols
=yes
16932 libltdl_cv_preloaded_symbols
=no
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
16937 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
16938 if test yes = "$libltdl_cv_preloaded_symbols"; then
16940 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
16959 # Check whether --with-included_ltdl was given.
16960 if test "${with_included_ltdl+set}" = set; then :
16961 withval
=$with_included_ltdl;
16965 if test yes != "$with_included_ltdl"; then
16966 # We are not being forced to use the included libltdl sources, so
16967 # decide whether there is a useful installed version we can use.
16968 ac_fn_c_check_header_compile
"$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
16971 if test "x$ac_cv_header_ltdl_h" = xyes
; then :
16972 ac_fn_c_check_decl
"$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
16975 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
; then :
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
16977 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
16978 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false
; then :
16979 $as_echo_n "(cached) " >&6
16981 ac_check_lib_save_LIBS
=$LIBS
16982 LIBS
="-lltdl $LIBS"
16983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16986 /* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16992 char lt_dladvise_preload ();
16996 return lt_dladvise_preload ();
17001 if ac_fn_c_try_link
"$LINENO"; then :
17002 ac_cv_lib_ltdl_lt_dladvise_preload
=yes
17004 ac_cv_lib_ltdl_lt_dladvise_preload
=no
17006 rm -f core conftest.err conftest.
$ac_objext \
17007 conftest
$ac_exeext conftest.
$ac_ext
17008 LIBS
=$ac_check_lib_save_LIBS
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
17011 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
17012 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
; then :
17013 with_included_ltdl
=no
17015 with_included_ltdl
=yes
17019 with_included_ltdl
=yes
17023 with_included_ltdl
=yes
17036 # Check whether --with-ltdl_include was given.
17037 if test "${with_ltdl_include+set}" = set; then :
17038 withval
=$with_ltdl_include;
17042 if test -n "$with_ltdl_include"; then
17043 if test -f "$with_ltdl_include/ltdl.h"; then :
17045 as_fn_error $?
"invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
17048 with_ltdl_include
=no
17052 # Check whether --with-ltdl_lib was given.
17053 if test "${with_ltdl_lib+set}" = set; then :
17054 withval
=$with_ltdl_lib;
17058 if test -n "$with_ltdl_lib"; then
17059 if test -f "$with_ltdl_lib/libltdl.la"; then :
17061 as_fn_error $?
"invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
17067 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
17069 case $enable_ltdl_convenience in
17070 no
) as_fn_error $?
"this package needs a convenience libltdl" "$LINENO" 5 ;;
17071 "") enable_ltdl_convenience
=yes
17072 ac_configure_args
="$ac_configure_args --enable-ltdl-convenience" ;;
17074 LIBLTDL
='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
17076 LTDLINCL
='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
17082 # For backwards non-gettext consistent compatibility...
17088 # If the included ltdl is not to be used, then use the
17089 # preinstalled libltdl we found.
17091 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
17098 as_fn_error $?
"'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
17100 *) with_included_ltdl
=no
17101 LIBLTDL
="-L$with_ltdl_lib -lltdl"
17103 LTDLINCL
=-I$with_ltdl_include
17108 # Report our decision...
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
17110 $as_echo_n "checking where to find libltdl headers... " >&6; }
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
17112 $as_echo "$LTDLINCL" >&6; }
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
17114 $as_echo_n "checking where to find libltdl library... " >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
17116 $as_echo "$LIBLTDL" >&6; }
17120 # Check whether --enable-ltdl-install was given.
17121 if test "${enable_ltdl_install+set}" = set; then :
17122 enableval
=$enable_ltdl_install;
17126 case ,$enable_ltdl_install,$enable_ltdl_convenience in
17128 *) enable_ltdl_convenience
=yes ;;
17131 if test no
!= "${enable_ltdl_install-no}"; then
17133 INSTALL_LTDL_FALSE
='#'
17135 INSTALL_LTDL_TRUE
='#'
17136 INSTALL_LTDL_FALSE
=
17139 if test no
!= "${enable_ltdl_convenience-no}"; then
17140 CONVENIENCE_LTDL_TRUE
=
17141 CONVENIENCE_LTDL_FALSE
='#'
17143 CONVENIENCE_LTDL_TRUE
='#'
17144 CONVENIENCE_LTDL_FALSE
=
17149 subdirs
="$subdirs libltdl"
17154 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
17155 # the user used. This is so that ltdl.h can pick up the parent projects
17156 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
17157 # definitions required by ltdl.c.
17158 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
17162 for ac_header
in unistd.h dl.h sys
/dl.h dld.h mach-o
/dyld.h dirent.h
17164 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17165 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17167 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
17168 cat >>confdefs.h
<<_ACEOF
17169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17177 for ac_func
in closedir opendir readdir
17179 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17180 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17181 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17182 cat >>confdefs.h
<<_ACEOF
17183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17189 _LT_LIBOBJS
="$_LT_LIBOBJS lt__dirent.$ac_objext"
17194 for ac_func
in strlcat strlcpy
17196 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
17198 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
17199 cat >>confdefs.h
<<_ACEOF
17200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17206 _LT_LIBOBJS
="$_LT_LIBOBJS lt__strl.$ac_objext"
17213 cat >>confdefs.h
<<_ACEOF
17214 #define LT_LIBEXT "$libext"
17219 eval "lt_libprefix=\"$libname_spec\""
17221 cat >>confdefs.h
<<_ACEOF
17222 #define LT_LIBPREFIX "$lt_libprefix"
17227 eval "LTDLOPEN=\"$libname_spec\""
17236 # Only expand once:
17241 for ac_prog
in perl5 perl
17243 # Extract the first word of "$ac_prog", so it can be a program name with args.
17244 set dummy
$ac_prog; ac_word
=$2
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17246 $as_echo_n "checking for $ac_word... " >&6; }
17247 if ${ac_cv_path_PERL+:} false
; then :
17248 $as_echo_n "(cached) " >&6
17252 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
17255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17256 for as_dir
in $LPATH
17259 test -z "$as_dir" && as_dir
=.
17260 for ac_exec_ext
in '' $ac_executable_extensions; do
17261 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17262 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17273 PERL
=$ac_cv_path_PERL
17274 if test -n "$PERL"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
17276 $as_echo "$PERL" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17283 test -n "$PERL" && break
17285 test -n "$PERL" || PERL
="perl"
17287 for ac_prog
in courier-config
17289 # Extract the first word of "$ac_prog", so it can be a program name with args.
17290 set dummy
$ac_prog; ac_word
=$2
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17292 $as_echo_n "checking for $ac_word... " >&6; }
17293 if ${ac_cv_path_COURIERCONFIG+:} false
; then :
17294 $as_echo_n "(cached) " >&6
17296 case $COURIERCONFIG in
17298 ac_cv_path_COURIERCONFIG
="$COURIERCONFIG" # Let the user override the test with a path.
17301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17302 for as_dir
in $LPATH
17305 test -z "$as_dir" && as_dir
=.
17306 for ac_exec_ext
in '' $ac_executable_extensions; do
17307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17308 ac_cv_path_COURIERCONFIG
="$as_dir/$ac_word$ac_exec_ext"
17309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17319 COURIERCONFIG
=$ac_cv_path_COURIERCONFIG
17320 if test -n "$COURIERCONFIG"; then
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERCONFIG" >&5
17322 $as_echo "$COURIERCONFIG" >&6; }
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17325 $as_echo "no" >&6; }
17329 test -n "$COURIERCONFIG" && break
17331 test -n "$COURIERCONFIG" || COURIERCONFIG
="courier-config"
17334 ac_fn_c_check_header_mongrel
"$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
17335 if test "x$ac_cv_header_ltdl_h" = xyes
; then :
17338 as_fn_error $?
"Unable to find ltdl.h. Please install Libtool's ltdl library" "$LINENO" 5
17343 if test "$PERL" = "perl"
17345 as_fn_error $?
"Perl is required" "$LINENO" 5
17348 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17349 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17350 eval "prefix=$prefix"
17351 eval "exec_prefix=$exec_prefix"
17352 eval "sysconfdir=$sysconfdir"
17353 eval "bindir=$bindir"
17354 eval "sbindir=$sbindir"
17355 eval "localstatedir=$localstatedir"
17356 eval "libexecdir=$libexecdir"
17357 eval "datarootdir=$datarootdir"
17358 eval "datedir=$datadir"
17360 for ac_prog
in expect
17362 # Extract the first word of "$ac_prog", so it can be a program name with args.
17363 set dummy
$ac_prog; ac_word
=$2
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17365 $as_echo_n "checking for $ac_word... " >&6; }
17366 if ${ac_cv_path_EXPECT+:} false
; then :
17367 $as_echo_n "(cached) " >&6
17371 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
17374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17375 for as_dir
in $LPATH
17378 test -z "$as_dir" && as_dir
=.
17379 for ac_exec_ext
in '' $ac_executable_extensions; do
17380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17381 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
17382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17392 EXPECT
=$ac_cv_path_EXPECT
17393 if test -n "$EXPECT"; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
17395 $as_echo "$EXPECT" >&6; }
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17398 $as_echo "no" >&6; }
17402 test -n "$EXPECT" && break
17404 test -n "$EXPECT" || EXPECT
="expect"
17407 if test "$EXPECT" = "expect"
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
17410 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expect not found - will not be able to change passwds" >&5
17412 $as_echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in webmail" >&5
17414 $as_echo "$as_me: WARNING: in webmail" >&2;}
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -----------------------------------------------------" >&5
17416 $as_echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
17420 cat >>confdefs.h
<<_ACEOF
17421 #define HAVE_EXPECT 1
17426 for ac_prog
in passwd
17428 # Extract the first word of "$ac_prog", so it can be a program name with args.
17429 set dummy
$ac_prog; ac_word
=$2
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17431 $as_echo_n "checking for $ac_word... " >&6; }
17432 if ${ac_cv_path_PASSWD+:} false
; then :
17433 $as_echo_n "(cached) " >&6
17437 ac_cv_path_PASSWD
="$PASSWD" # Let the user override the test with a path.
17440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17441 for as_dir
in $LPATH
17444 test -z "$as_dir" && as_dir
=.
17445 for ac_exec_ext
in '' $ac_executable_extensions; do
17446 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17447 ac_cv_path_PASSWD
="$as_dir/$ac_word$ac_exec_ext"
17448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458 PASSWD
=$ac_cv_path_PASSWD
17459 if test -n "$PASSWD"; then
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PASSWD" >&5
17461 $as_echo "$PASSWD" >&6; }
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17464 $as_echo "no" >&6; }
17468 test -n "$PASSWD" && break
17470 test -n "$PASSWD" || PASSWD
="passwd"
17474 if test "$GCC" = "yes"
17476 CFLAGS
="$CFLAGS -Wall"
17477 CXXFLAGS
="$CXXFLAGS -Wall"
17480 CFLAGS
="$CFLAGS -Ilibs -I${srcdir}/libs"
17481 CXXFLAGS
="$CXXFLAGS -Ilibs -I${srcdir}/libs"
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lm is needed for floor" >&5
17484 $as_echo_n "checking whether -lm is needed for floor... " >&6; }
17485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17486 /* end confdefs.h. */
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17503 if ac_fn_c_try_link
"$LINENO"; then :
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17505 $as_echo "no" >&6; }
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17509 $as_echo "yes" >&6; }
17511 rm -f core conftest.err conftest.
$ac_objext \
17512 conftest
$ac_exeext conftest.
$ac_ext
17515 # Check whether --with-pkgconfdir was given.
17516 if test "${with_pkgconfdir+set}" = set; then :
17517 withval
=$with_pkgconfdir; pkgconfdir
="$withval"
17519 pkgconfdir
="$sysconfdir/authlib"
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17528 $as_echo_n "checking for socket in -lsocket... " >&6; }
17529 if ${ac_cv_lib_socket_socket+:} false
; then :
17530 $as_echo_n "(cached) " >&6
17532 ac_check_lib_save_LIBS
=$LIBS
17533 LIBS
="-lsocket $LIBS"
17534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17535 /* end confdefs.h. */
17537 /* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17552 if ac_fn_c_try_link
"$LINENO"; then :
17553 ac_cv_lib_socket_socket
=yes
17555 ac_cv_lib_socket_socket
=no
17557 rm -f core conftest.err conftest.
$ac_objext \
17558 conftest
$ac_exeext conftest.
$ac_ext
17559 LIBS
=$ac_check_lib_save_LIBS
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17562 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17563 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
17569 if test $result = yes; then
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17573 $as_echo_n "checking for socket in -lsocket... " >&6; }
17574 if ${ac_cv_lib_socket_socket+:} false
; then :
17575 $as_echo_n "(cached) " >&6
17577 ac_check_lib_save_LIBS
=$LIBS
17578 LIBS
="-lsocket -lnsl $LIBS"
17579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17597 if ac_fn_c_try_link
"$LINENO"; then :
17598 ac_cv_lib_socket_socket
=yes
17600 ac_cv_lib_socket_socket
=no
17602 rm -f core conftest.err conftest.
$ac_objext \
17603 conftest
$ac_exeext conftest.
$ac_ext
17604 LIBS
=$ac_check_lib_save_LIBS
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17607 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17608 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
17614 if test $result = yes; then
17615 NETLIBS
= "-lsocket -lnsl"
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17619 $as_echo_n "checking for connect in -lsocket... " >&6; }
17620 if ${ac_cv_lib_socket_connect+:} false
; then :
17621 $as_echo_n "(cached) " >&6
17623 ac_check_lib_save_LIBS
=$LIBS
17624 LIBS
="-lsocket $LIBS"
17625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17626 /* end confdefs.h. */
17628 /* Override any GCC internal prototype to avoid an error.
17629 Use char because int might match the return type of a GCC
17630 builtin and then its argument prototype would still apply. */
17643 if ac_fn_c_try_link
"$LINENO"; then :
17644 ac_cv_lib_socket_connect
=yes
17646 ac_cv_lib_socket_connect
=no
17648 rm -f core conftest.err conftest.
$ac_objext \
17649 conftest
$ac_exeext conftest.
$ac_ext
17650 LIBS
=$ac_check_lib_save_LIBS
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17653 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17654 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
17660 if test $result = yes; then
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17664 $as_echo_n "checking for connect in -lsocket... " >&6; }
17665 if ${ac_cv_lib_socket_connect+:} false
; then :
17666 $as_echo_n "(cached) " >&6
17668 ac_check_lib_save_LIBS
=$LIBS
17669 LIBS
="-lsocket -lnsl $LIBS"
17670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17688 if ac_fn_c_try_link
"$LINENO"; then :
17689 ac_cv_lib_socket_connect
=yes
17691 ac_cv_lib_socket_connect
=no
17693 rm -f core conftest.err conftest.
$ac_objext \
17694 conftest
$ac_exeext conftest.
$ac_ext
17695 LIBS
=$ac_check_lib_save_LIBS
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
17698 $as_echo "$ac_cv_lib_socket_connect" >&6; }
17699 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
17705 if test $result = yes; then
17706 NETLIBS
="-lsocket -lnsl"
17713 if test $USENSL != yes; then
17714 LIBS
="$LIBS $NETLIBS"
17715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17716 /* end confdefs.h. */
17718 /* Override any GCC internal prototype to avoid an error.
17719 Use char because int might match the return type of a GCC
17720 builtin and then its argument prototype would still apply. */
17728 return inet_addr ();
17733 if ac_fn_c_try_link
"$LINENO"; then :
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5
17738 $as_echo_n "checking for inet_addr in -lnsl... " >&6; }
17739 if ${ac_cv_lib_nsl_inet_addr+:} false
; then :
17740 $as_echo_n "(cached) " >&6
17742 ac_check_lib_save_LIBS
=$LIBS
17744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h. */
17747 /* Override any GCC internal prototype to avoid an error.
17748 Use char because int might match the return type of a GCC
17749 builtin and then its argument prototype would still apply. */
17757 return inet_addr ();
17762 if ac_fn_c_try_link
"$LINENO"; then :
17763 ac_cv_lib_nsl_inet_addr
=yes
17765 ac_cv_lib_nsl_inet_addr
=no
17767 rm -f core conftest.err conftest.
$ac_objext \
17768 conftest
$ac_exeext conftest.
$ac_ext
17769 LIBS
=$ac_check_lib_save_LIBS
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5
17772 $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; }
17773 if test "x$ac_cv_lib_nsl_inet_addr" = xyes
; then :
17779 if test $result = yes; then
17780 NETLIBS
="$NETLIBS -lnsl"
17784 rm -f core conftest.err conftest.
$ac_objext \
17785 conftest
$ac_exeext conftest.
$ac_ext
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking courier-unicode library and version" >&5
17794 $as_echo_n "checking courier-unicode library and version... " >&6; }
17796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17797 /* end confdefs.h. */
17799 #include <courier-unicode.h>
17800 #ifndef COURIER_UNICODE_VERSION
17801 #define COURIER_UNICODE_VERSION 0
17804 #if COURIER_UNICODE_VERSION < 210
17805 #error "courier-unicode 2.1 library is required"
17817 if ac_fn_c_try_compile
"$LINENO"; then :
17821 ERROR: The Courier Unicode Library 2.1 header files appear not to be installed.
17822 You may need to upgrade the library or install a separate development
17823 subpackage in addition to the main package." "$LINENO" 5
17826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
17829 $as_echo "ok" >&6; }
17837 # Check whether --with-db was given.
17838 if test "${with_db+set}" = set; then :
17839 withval
=$with_db; db
="$withval"
17853 as_fn_error $?
"Invalid --with-db option." "$LINENO" 5
17859 if test "$db" != "db"
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
17862 $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
17863 if ${ac_cv_lib_gdbm_gdbm_open+:} false
; then :
17864 $as_echo_n "(cached) " >&6
17866 ac_check_lib_save_LIBS
=$LIBS
17867 LIBS
="-lgdbm $LIBS"
17868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17881 return gdbm_open ();
17886 if ac_fn_c_try_link
"$LINENO"; then :
17887 ac_cv_lib_gdbm_gdbm_open
=yes
17889 ac_cv_lib_gdbm_gdbm_open
=no
17891 rm -f core conftest.err conftest.
$ac_objext \
17892 conftest
$ac_exeext conftest.
$ac_ext
17893 LIBS
=$ac_check_lib_save_LIBS
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
17896 $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
17897 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
; then :
17898 LIBGDBM
=-lgdbm ; LIBS
="-lgdbm $LIBS"
17901 ac_fn_c_check_func
"$LINENO" "gdbm_open" "ac_cv_func_gdbm_open"
17902 if test "x$ac_cv_func_gdbm_open" = xyes
; then :
17910 if test "$db" != "gdbm"
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5
17913 $as_echo_n "checking for dbopen in -ldb... " >&6; }
17914 if ${ac_cv_lib_db_dbopen+:} false
; then :
17915 $as_echo_n "(cached) " >&6
17917 ac_check_lib_save_LIBS
=$LIBS
17919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17920 /* end confdefs.h. */
17922 /* Override any GCC internal prototype to avoid an error.
17923 Use char because int might match the return type of a GCC
17924 builtin and then its argument prototype would still apply. */
17937 if ac_fn_c_try_link
"$LINENO"; then :
17938 ac_cv_lib_db_dbopen
=yes
17940 ac_cv_lib_db_dbopen
=no
17942 rm -f core conftest.err conftest.
$ac_objext \
17943 conftest
$ac_exeext conftest.
$ac_ext
17944 LIBS
=$ac_check_lib_save_LIBS
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5
17947 $as_echo "$ac_cv_lib_db_dbopen" >&6; }
17948 if test "x$ac_cv_lib_db_dbopen" = xyes
; then :
17949 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5
17952 $as_echo_n "checking for db_open in -ldb... " >&6; }
17953 if ${ac_cv_lib_db_db_open+:} false
; then :
17954 $as_echo_n "(cached) " >&6
17956 ac_check_lib_save_LIBS
=$LIBS
17958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17976 if ac_fn_c_try_link
"$LINENO"; then :
17977 ac_cv_lib_db_db_open
=yes
17979 ac_cv_lib_db_db_open
=no
17981 rm -f core conftest.err conftest.
$ac_objext \
17982 conftest
$ac_exeext conftest.
$ac_ext
17983 LIBS
=$ac_check_lib_save_LIBS
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5
17986 $as_echo "$ac_cv_lib_db_db_open" >&6; }
17987 if test "x$ac_cv_lib_db_db_open" = xyes
; then :
17988 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5
17991 $as_echo_n "checking for db_env_create in -ldb... " >&6; }
17992 if ${ac_cv_lib_db_db_env_create+:} false
; then :
17993 $as_echo_n "(cached) " >&6
17995 ac_check_lib_save_LIBS
=$LIBS
17997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18006 char db_env_create ();
18010 return db_env_create ();
18015 if ac_fn_c_try_link
"$LINENO"; then :
18016 ac_cv_lib_db_db_env_create
=yes
18018 ac_cv_lib_db_db_env_create
=no
18020 rm -f core conftest.err conftest.
$ac_objext \
18021 conftest
$ac_exeext conftest.
$ac_ext
18022 LIBS
=$ac_check_lib_save_LIBS
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5
18025 $as_echo "$ac_cv_lib_db_db_env_create" >&6; }
18026 if test "x$ac_cv_lib_db_db_env_create" = xyes
; then :
18027 LIBDB
=-ldb; LIBS
="-ldb $LIBS"
18036 ac_fn_c_check_func
"$LINENO" "dbopen" "ac_cv_func_dbopen"
18037 if test "x$ac_cv_func_dbopen" = xyes
; then :
18041 ac_fn_c_check_func
"$LINENO" "db_open" "ac_cv_func_db_open"
18042 if test "x$ac_cv_func_db_open" = xyes
; then :
18046 ac_fn_c_check_func
"$LINENO" "db_env_create" "ac_cv_func_db_env_create"
18047 if test "x$ac_cv_func_db_env_create" = xyes
; then :
18055 if test "$HAVE_GDBM$HAVE_BDB" = ""
18057 as_fn_error $?
"Cannot find either the gdbm or the db library." "$LINENO" 5
18063 if test "$HAVE_GDBM" = "y"
18067 if test "$needs_withdb" = 1
18069 ac_configure_args
="$ac_configure_args --with-db=gdbm"
18071 dblibrary
=libs
/gdbmobj
/libgdbmobj.la
18075 if test "$needs_withdb" = 1
18077 ac_configure_args
="$ac_configure_args --with-db=db"
18079 dblibrary
=libs
/bdbobj
/libbdbobj.la
18086 # Check whether --with-authuserdb was given.
18087 if test "${with_authuserdb+set}" = set; then :
18088 withval
=$with_authuserdb; doauthuserdb
="$withval"
18091 if test -d ${srcdir}/userdb
18098 if test "$doauthuserdb" = "no"
18102 AUTHUSERDB
="authuserdb"
18103 LIBAUTHUSERDB
="libauthuserdb.la"
18108 # Check whether --with-makedatprog was given.
18109 if test "${with_makedatprog+set}" = set; then :
18110 withval
=$with_makedatprog; :
18113 ac_configure_args
="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
18118 cat >dbobj.config
<<EOF
18121 dblibrary=$dblibrary
18132 userdb
="$pkgconfdir/userdb"
18134 # Check whether --with-userdb was given.
18135 if test "${with_userdb+set}" = set; then :
18136 withval
=$with_userdb; userdb
="$withval"
18138 ac_configure_args
="$ac_configure_args '--with-userdb=$userdb'"
18143 cat >>confdefs.h
<<_ACEOF
18144 #define USERDB "$userdb"
18149 for ac_header
in stdio.h
18151 ac_fn_c_check_header_mongrel
"$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
18152 if test "x$ac_cv_header_stdio_h" = xyes
; then :
18153 cat >>confdefs.h
<<_ACEOF
18154 #define HAVE_STDIO_H 1
18166 # Check whether --with-authpam was given.
18167 if test "${with_authpam+set}" = set; then :
18168 withval
=$with_authpam; doauthpam
="$withval"
18172 for ac_header
in security
/pam_appl.h Pam
/pam_appl.h
18174 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18175 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18176 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
18177 cat >>confdefs.h
<<_ACEOF
18178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18185 if test "$doauthpam" = "no"
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18192 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18193 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18194 $as_echo_n "(cached) " >&6
18196 ac_check_lib_save_LIBS
=$LIBS
18198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18199 /* end confdefs.h. */
18201 /* Override any GCC internal prototype to avoid an error.
18202 Use char because int might match the return type of a GCC
18203 builtin and then its argument prototype would still apply. */
18216 if ac_fn_c_try_link
"$LINENO"; then :
18217 ac_cv_lib_dl_dlopen
=yes
18219 ac_cv_lib_dl_dlopen
=no
18221 rm -f core conftest.err conftest.
$ac_objext \
18222 conftest
$ac_exeext conftest.
$ac_ext
18223 LIBS
=$ac_check_lib_save_LIBS
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18227 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
18234 $as_echo_n "checking for pam_start in -lpam... " >&6; }
18235 if ${ac_cv_lib_pam_pam_start+:} false
; then :
18236 $as_echo_n "(cached) " >&6
18238 ac_check_lib_save_LIBS
=$LIBS
18239 LIBS
="-lpam $LIBDL $LIBS"
18240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18253 return pam_start ();
18258 if ac_fn_c_try_link
"$LINENO"; then :
18259 ac_cv_lib_pam_pam_start
=yes
18261 ac_cv_lib_pam_pam_start
=no
18263 rm -f core conftest.err conftest.
$ac_objext \
18264 conftest
$ac_exeext conftest.
$ac_ext
18265 LIBS
=$ac_check_lib_save_LIBS
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
18268 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
18269 if test "x$ac_cv_lib_pam_pam_start" = xyes
; then :
18271 LIBS
="-lpam $LIBDL $LIBS"
18272 for ac_func
in pam_setcred
18274 ac_fn_c_check_func
"$LINENO" "pam_setcred" "ac_cv_func_pam_setcred"
18275 if test "x$ac_cv_func_pam_setcred" = xyes
; then :
18276 cat >>confdefs.h
<<_ACEOF
18277 #define HAVE_PAM_SETCRED 1
18292 if test "$HAVE_PAM" = 1
18294 LIBAUTHPAM
=libauthpam.la
18298 # Check whether --with-authpam-libraries was given.
18299 if test "${with_authpam_libraries+set}" = set; then :
18300 withval
=$with_authpam_libraries; authpamcrypt
="$withval"
18304 AUTHPAMCRYPT
="$authpamcrypt"
18312 # Check whether --with-authldap was given.
18313 if test "${with_authldap+set}" = set; then :
18314 withval
=$with_authldap; doauthldap
="$withval"
18320 for ac_header
in lber.h
18322 ac_fn_c_check_header_mongrel
"$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
18323 if test "x$ac_cv_header_lber_h" = xyes
; then :
18324 cat >>confdefs.h
<<_ACEOF
18325 #define HAVE_LBER_H 1
18332 for ac_header
in ldap.h
18334 ac_fn_c_check_header_mongrel
"$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
18335 if test "x$ac_cv_header_ldap_h" = xyes
; then :
18336 cat >>confdefs.h
<<_ACEOF
18337 #define HAVE_LDAP_H 1
18344 for ac_header
in netinet
/in.h
18346 ac_fn_c_check_header_mongrel
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
18347 if test "x$ac_cv_header_netinet_in_h" = xyes
; then :
18348 cat >>confdefs.h
<<_ACEOF
18349 #define HAVE_NETINET_IN_H 1
18357 if test "$doauthldap" = "no"
18362 LIBS
="$NETLIBS $LIBS"
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lresolv is needed for res_query" >&5
18366 $as_echo_n "checking whether -lresolv is needed for res_query... " >&6; }
18367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18368 /* end confdefs.h. */
18370 #include <sys/types.h>
18371 #if HAVE_NETINET_IN_H
18372 #include <netinet/in.h>
18374 #include <resolv.h>
18376 void (*func)()= (void (*)())res_query;
18386 if ac_fn_c_try_link
"$LINENO"; then :
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18388 $as_echo "no" >&6; }
18391 LIBS
="-lresolv $LIBS"
18393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h. */
18396 #include <sys/types.h>
18397 #if HAVE_NETINET_IN_H
18398 #include <netinet/in.h>
18400 #include <resolv.h>
18402 void (*func)()= (void (*)())res_query;
18412 if ac_fn_c_try_link
"$LINENO"; then :
18414 LDAPLIBS
="-lresolv $LDAPLIBS"
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18417 $as_echo "yes" >&6; }
18420 as_fn_error $?
"Cannot find function res_query" "$LINENO" 5
18422 rm -f core conftest.err conftest.
$ac_objext \
18423 conftest
$ac_exeext conftest.
$ac_ext
18426 rm -f core conftest.err conftest.
$ac_objext \
18427 conftest
$ac_exeext conftest.
$ac_ext
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_scanf in -llber" >&5
18430 $as_echo_n "checking for ber_scanf in -llber... " >&6; }
18431 if ${ac_cv_lib_lber_ber_scanf+:} false
; then :
18432 $as_echo_n "(cached) " >&6
18434 ac_check_lib_save_LIBS
=$LIBS
18435 LIBS
="-llber $LIBS"
18436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18449 return ber_scanf ();
18454 if ac_fn_c_try_link
"$LINENO"; then :
18455 ac_cv_lib_lber_ber_scanf
=yes
18457 ac_cv_lib_lber_ber_scanf
=no
18459 rm -f core conftest.err conftest.
$ac_objext \
18460 conftest
$ac_exeext conftest.
$ac_ext
18461 LIBS
=$ac_check_lib_save_LIBS
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_scanf" >&5
18464 $as_echo "$ac_cv_lib_lber_ber_scanf" >&6; }
18465 if test "x$ac_cv_lib_lber_ber_scanf" = xyes
; then :
18466 LDAPLIBS
="-llber $LDAPLIBS" LIBS
="-llber $LIBS"
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_open in -lldap" >&5
18470 $as_echo_n "checking for ldap_open in -lldap... " >&6; }
18471 if ${ac_cv_lib_ldap_ldap_open+:} false
; then :
18472 $as_echo_n "(cached) " >&6
18474 ac_check_lib_save_LIBS
=$LIBS
18475 LIBS
="-lldap $LIBS"
18476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18489 return ldap_open ();
18494 if ac_fn_c_try_link
"$LINENO"; then :
18495 ac_cv_lib_ldap_ldap_open
=yes
18497 ac_cv_lib_ldap_ldap_open
=no
18499 rm -f core conftest.err conftest.
$ac_objext \
18500 conftest
$ac_exeext conftest.
$ac_ext
18501 LIBS
=$ac_check_lib_save_LIBS
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_open" >&5
18504 $as_echo "$ac_cv_lib_ldap_ldap_open" >&6; }
18505 if test "x$ac_cv_lib_ldap_ldap_open" = xyes
; then :
18506 LDAPLIBS
="-lldap $LDAPLIBS" ; LIBS
="-lldap $LIBS"
18509 ac_fn_c_check_func
"$LINENO" "ldap_search_st" "ac_cv_func_ldap_search_st"
18510 if test "x$ac_cv_func_ldap_search_st" = xyes
; then :
18516 ac_fn_c_check_func
"$LINENO" "ldap_start_tls_s" "ac_cv_func_ldap_start_tls_s"
18517 if test "x$ac_cv_func_ldap_start_tls_s" = xyes
; then :
18523 ac_fn_c_check_func
"$LINENO" "ldap_result2error" "ac_cv_func_ldap_result2error"
18524 if test "x$ac_cv_func_ldap_result2error" = xyes
; then :
18525 HAVE_LDAP_RESULT2ERROR
=1
18527 HAVE_LDAP_RESULT2ERROR
=0
18530 ac_fn_c_check_func
"$LINENO" "ldap_parse_result" "ac_cv_func_ldap_parse_result"
18531 if test "x$ac_cv_func_ldap_parse_result" = xyes
; then :
18532 HAVE_LDAP_PARSE_RESULT
=1
18534 HAVE_LDAP_PARSE_RESULT
=0
18541 # Check whether --with-authldaprc was given.
18542 if test "${with_authldaprc+set}" = set; then :
18543 withval
=$with_authldaprc; authldaprc
="$withval"
18545 authldaprc
="$pkgconfdir/authldaprc"
18551 if test "$HAVE_LDAP" = 1
18553 LIBAUTHLDAP
="libauthldap.la"
18560 if test "$HAVE_LDAP" = 1; then
18562 HAVE_LDAP_FALSE
='#'
18569 cat >>confdefs.h
<<_ACEOF
18570 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
18574 cat >>confdefs.h
<<_ACEOF
18575 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
18579 cat >>confdefs.h
<<_ACEOF
18580 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
18587 # Check whether --with-authpwd was given.
18588 if test "${with_authpwd+set}" = set; then :
18589 withval
=$with_authpwd; doauthpwd
="$withval"
18592 test "$HAVE_PAM" = 1 && doauthpwd
="no"
18593 test "$HAVE_LDAP" = 1 && doauthpwd
="no"
18599 if test "$doauthpwd" = "no"
18603 for ac_func
in endpwent
18605 ac_fn_c_check_func
"$LINENO" "endpwent" "ac_cv_func_endpwent"
18606 if test "x$ac_cv_func_endpwent" = xyes
; then :
18607 cat >>confdefs.h
<<_ACEOF
18608 #define HAVE_ENDPWENT 1
18619 # Check whether --with-authshadow was given.
18620 if test "${with_authshadow+set}" = set; then :
18621 withval
=$with_authshadow; doauthshadow
="$withval"
18624 test "$HAVE_PAM" = 1 && doauthshadow
="no"
18625 test "$HAVE_LDAP" = 1 && doauthshadow
="no"
18629 for ac_header
in shadow.h
18631 ac_fn_c_check_header_mongrel
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
18632 if test "x$ac_cv_header_shadow_h" = xyes
; then :
18633 cat >>confdefs.h
<<_ACEOF
18634 #define HAVE_SHADOW_H 1
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
18644 $as_echo_n "checking for getspent in -lshadow... " >&6; }
18645 if ${ac_cv_lib_shadow_getspent+:} false
; then :
18646 $as_echo_n "(cached) " >&6
18648 ac_check_lib_save_LIBS
=$LIBS
18649 LIBS
="-lshadow $LIBS"
18650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18663 return getspent ();
18668 if ac_fn_c_try_link
"$LINENO"; then :
18669 ac_cv_lib_shadow_getspent
=yes
18671 ac_cv_lib_shadow_getspent
=no
18673 rm -f core conftest.err conftest.
$ac_objext \
18674 conftest
$ac_exeext conftest.
$ac_ext
18675 LIBS
=$ac_check_lib_save_LIBS
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
18678 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
18679 if test "x$ac_cv_lib_shadow_getspent" = xyes
; then :
18680 SHADOWLIBS
="-lshadow" ; LIBS
="-lshadow $LIBS"
18683 for ac_func
in endspent getspent
18685 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
18687 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
18688 cat >>confdefs.h
<<_ACEOF
18689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18697 if test "$doauthshadow" = "no"
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getspent in -lshadow" >&5
18704 $as_echo_n "checking for getspent in -lshadow... " >&6; }
18705 if ${ac_cv_lib_shadow_getspent+:} false
; then :
18706 $as_echo_n "(cached) " >&6
18708 ac_check_lib_save_LIBS
=$LIBS
18709 LIBS
="-lshadow $LIBS"
18710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18711 /* end confdefs.h. */
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18723 return getspent ();
18728 if ac_fn_c_try_link
"$LINENO"; then :
18729 ac_cv_lib_shadow_getspent
=yes
18731 ac_cv_lib_shadow_getspent
=no
18733 rm -f core conftest.err conftest.
$ac_objext \
18734 conftest
$ac_exeext conftest.
$ac_ext
18735 LIBS
=$ac_check_lib_save_LIBS
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shadow_getspent" >&5
18738 $as_echo "$ac_cv_lib_shadow_getspent" >&6; }
18739 if test "x$ac_cv_lib_shadow_getspent" = xyes
; then :
18740 cat >>confdefs.h
<<_ACEOF
18741 #define HAVE_LIBSHADOW 1
18744 LIBS
="-lshadow $LIBS"
18748 ac_fn_c_check_func
"$LINENO" "getspent" "ac_cv_func_getspent"
18749 if test "x$ac_cv_func_getspent" = xyes
; then :
18759 if test "$HAVE_SHADOW" = 1
18761 LIBAUTHSHADOW
="libauthshadow.la"
18767 if test "$HAVE_PWD" = 1
18769 LIBAUTHPWD
="libauthpwd.la"
18777 # Check whether --with-authpgsqlrc was given.
18778 if test "${with_authpgsqlrc+set}" = set; then :
18779 withval
=$with_authpgsqlrc; authpgsqlrc
="$withval"
18781 authpgsqlrc
="$pkgconfdir/authpgsqlrc"
18787 # Check whether --with-authpgsql was given.
18788 if test "${with_authpgsql+set}" = set; then :
18789 withval
=$with_authpgsql; doauthpgsql
="$withval"
18793 for ac_prog
in pg_config
18795 # Extract the first word of "$ac_prog", so it can be a program name with args.
18796 set dummy
$ac_prog; ac_word
=$2
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18798 $as_echo_n "checking for $ac_word... " >&6; }
18799 if ${ac_cv_path_PG_CONFIG+:} false
; then :
18800 $as_echo_n "(cached) " >&6
18804 ac_cv_path_PG_CONFIG
="$PG_CONFIG" # Let the user override the test with a path.
18807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18808 for as_dir
in $LPATH
18811 test -z "$as_dir" && as_dir
=.
18812 for ac_exec_ext
in '' $ac_executable_extensions; do
18813 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18814 ac_cv_path_PG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
18815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18825 PG_CONFIG
=$ac_cv_path_PG_CONFIG
18826 if test -n "$PG_CONFIG"; then
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
18828 $as_echo "$PG_CONFIG" >&6; }
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18835 test -n "$PG_CONFIG" && break
18837 test -n "$PG_CONFIG" || PG_CONFIG
="pg_config"
18842 # Check whether --with-pgsql-libs was given.
18843 if test "${with_pgsql_libs+set}" = set; then :
18844 withval
=$with_pgsql_libs; PGSQL_LIBS
="-L$withval $PGSQL_LIBS"
18846 if test -x $PG_CONFIG
18848 PGSQL_LIBS
="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
18854 # Check whether --with-pgsql-includes was given.
18855 if test "${with_pgsql_includes+set}" = set; then :
18856 withval
=$with_pgsql_includes; PGSQL_CFLAGS
="-I$withval"
18858 if test -x $PG_CONFIG
18860 PGSQL_CFLAGS
="-I`$PG_CONFIG --includedir`"
18866 if test "$doauthpgsql" = ""
18868 LIBS
="$PGSQL_LIBS $LIBS"
18869 ac_fn_c_check_func
"$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18870 if test "x$ac_cv_func_PQsetdbLogin" = xyes
; then :
18878 if test "$doauthpgsql" != "yes"
18884 LIBS
="$PGSQL_LIBS $LIBS"
18885 ac_fn_c_check_func
"$LINENO" "PQsetdbLogin" "ac_cv_func_PQsetdbLogin"
18886 if test "x$ac_cv_func_PQsetdbLogin" = xyes
; then :
18887 AUTHPGSQL
="authpgsql"
18890 as_fn_error $?
"--with-authpgsql specified but no libpq.so" "$LINENO" 5
18895 CFLAGS
="$PGSQL_CFLAGS $CFLAGS"
18896 CXXFLAGS
="$PGSQL_CFLAGS $CXXFLAGS"
18897 LIBAUTHPGSQL
="libauthpgsql.la"
18902 if test "$HAVE_AUTHPGSQL" = 1; then
18903 HAVE_AUTHPGSQL_TRUE
=
18904 HAVE_AUTHPGSQL_FALSE
='#'
18906 HAVE_AUTHPGSQL_TRUE
='#'
18907 HAVE_AUTHPGSQL_FALSE
=
18915 # Check whether --with-authmysqlrc was given.
18916 if test "${with_authmysqlrc+set}" = set; then :
18917 withval
=$with_authmysqlrc; authmysqlrc
="$withval"
18919 authmysqlrc
="$pkgconfdir/authmysqlrc"
18925 # Check whether --with-authmysql was given.
18926 if test "${with_authmysql+set}" = set; then :
18927 withval
=$with_authmysql; doauthmysql
="$withval"
18931 # Check whether --with-mysql-libs was given.
18932 if test "${with_mysql_libs+set}" = set; then :
18933 withval
=$with_mysql_libs; MYSQL_LIBS
="-L$withval -lmysqlclient"
18938 # Check whether --with-mysql-includes was given.
18939 if test "${with_mysql_includes+set}" = set; then :
18940 withval
=$with_mysql_includes; MYSQL_CFLAGS
="-I$withval"
18945 for ac_prog
in mysql_config
18947 # Extract the first word of "$ac_prog", so it can be a program name with args.
18948 set dummy
$ac_prog; ac_word
=$2
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18950 $as_echo_n "checking for $ac_word... " >&6; }
18951 if ${ac_cv_path_MYSQL_CONFIG+:} false
; then :
18952 $as_echo_n "(cached) " >&6
18954 case $MYSQL_CONFIG in
18956 ac_cv_path_MYSQL_CONFIG
="$MYSQL_CONFIG" # Let the user override the test with a path.
18959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18960 for as_dir
in $LPATH
18963 test -z "$as_dir" && as_dir
=.
18964 for ac_exec_ext
in '' $ac_executable_extensions; do
18965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_path_MYSQL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
18967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18977 MYSQL_CONFIG
=$ac_cv_path_MYSQL_CONFIG
18978 if test -n "$MYSQL_CONFIG"; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5
18980 $as_echo "$MYSQL_CONFIG" >&6; }
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18983 $as_echo "no" >&6; }
18987 test -n "$MYSQL_CONFIG" && break
18989 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG
="mysql_config"
18992 if test -x "$MYSQL_CONFIG"
18994 MYSQL_CFLAGS
="`$MYSQL_CONFIG --cflags`"
18995 MYSQL_LIBS
="`$MYSQL_CONFIG --libs`"
18997 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\`\""
18998 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\`\""
19001 if test "$doauthmysql" = ""
19003 LIBS
="$MYSQL_LIBS $LIBS"
19004 ac_fn_c_check_func
"$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19005 if test "x$ac_cv_func_mysql_connect" = xyes
; then :
19010 ac_fn_c_check_func
"$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19011 if test "x$ac_cv_func_mysql_real_connect" = xyes
; then :
19019 if test "$doauthmysql" != "yes"
19025 LIBS
="$MYSQL_LIBS $LIBS"
19026 ac_fn_c_check_func
"$LINENO" "mysql_connect" "ac_cv_func_mysql_connect"
19027 if test "x$ac_cv_func_mysql_connect" = xyes
; then :
19028 LIBAUTHMYSQL
="libauthmysql.la"
19032 ac_fn_c_check_func
"$LINENO" "mysql_real_connect" "ac_cv_func_mysql_real_connect"
19033 if test "x$ac_cv_func_mysql_real_connect" = xyes
; then :
19034 LIBAUTHMYSQL
="libauthmysql.la"
19037 as_fn_error $?
"--with-authmysql specified but no mysqlclient.so" "$LINENO" 5
19047 CFLAGS
="$MYSQL_CFLAGS $CFLAGS"
19048 CXXFLAGS
="$MYSQL_CFLAGS $CXXFLAGS"
19052 if test "$HAVE_AUTHMYSQL" = 1; then
19053 HAVE_AUTHMYSQL_TRUE
=
19054 HAVE_AUTHMYSQL_FALSE
='#'
19056 HAVE_AUTHMYSQL_TRUE
='#'
19057 HAVE_AUTHMYSQL_FALSE
=
19065 # Check whether --with-authsqliterc was given.
19066 if test "${with_authsqliterc+set}" = set; then :
19067 withval
=$with_authsqliterc; authsqliterc
="$withval"
19069 authsqliterc
="$pkgconfdir/authsqliterc"
19075 # Check whether --with-authsqlite was given.
19076 if test "${with_authsqlite+set}" = set; then :
19077 withval
=$with_authsqlite; doauthsqlite
="$withval"
19082 # Check whether --with-sqlite-libs was given.
19083 if test "${with_sqlite_libs+set}" = set; then :
19084 withval
=$with_sqlite_libs; SQLITE_LIBS
="-lsqlite3"
19089 # Check whether --with-sqlite-includes was given.
19090 if test "${with_sqlite_includes+set}" = set; then :
19091 withval
=$with_sqlite_includes; SQLITE_CFLAGS
="-I$withval"
19096 if test "$doauthsqlite" = ""
19098 SQLITE_CFLAGS
="`pkg-config --cflags sqlite3 2>/dev/null`"
19099 SQLITE_LIBS
="`pkg-config --libs sqlite3 2>/dev/null`"
19101 LIBS
="$SQLITE_LIBS $LIBS"
19102 ac_fn_c_check_func
"$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19103 if test "x$ac_cv_func_sqlite3_version" = xyes
; then :
19111 if test "$doauthsqlite" != "yes"
19119 LIBS
="$SQLITE_LIBS $LIBS"
19120 ac_fn_c_check_func
"$LINENO" "sqlite3_version" "ac_cv_func_sqlite3_version"
19121 if test "x$ac_cv_func_sqlite3_version" = xyes
; then :
19124 as_fn_error $?
"Cannot link with $SQLITE_LIBS" "$LINENO" 5
19130 CFLAGS
="$SQLITE_CFLAGS $CFLAGS"
19131 CXXFLAGS
="$SQLITE_CXXFLAGS $CFLAGS"
19132 LIBAUTHSQLITE
="libauthsqlite.la"
19137 if test "$HAVE_AUTHSQLITE" = 1; then
19138 HAVE_AUTHSQLITE_TRUE
=
19139 HAVE_AUTHSQLITE_FALSE
='#'
19141 HAVE_AUTHSQLITE_TRUE
='#'
19142 HAVE_AUTHSQLITE_FALSE
=
19151 # Check whether --with-authcustom was given.
19152 if test "${with_authcustom+set}" = set; then :
19153 withval
=$with_authcustom; doauthcustom
="$withval"
19161 if test "$doauthcustom" = "yes"
19163 LIBAUTHCUSTOM
="libauthcustom.la"
19166 if test "$AUTHCUSTOM" != ""; then
19168 HAVE_CUSTOM_FALSE
='#'
19170 HAVE_CUSTOM_TRUE
='#'
19182 # Check whether --with-pipeprog was given.
19183 if test "${with_pipeprog+set}" = set; then :
19184 withval
=$with_pipeprog; authProg
="$withval"
19186 authProg
="$pkgconfdir/authProg"
19192 # Check whether --with-authpipe was given.
19193 if test "${with_authpipe+set}" = set; then :
19194 withval
=$with_authpipe; doauthpipe
="$withval"
19202 if test "$doauthpipe" = "yes"
19204 LIBAUTHPIPE
="libauthpipe.la"
19207 if test "$AUTHPIPE" != ""; then
19209 HAVE_PIPE_FALSE
='#'
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19220 $as_echo_n "checking for ANSI C header files... " >&6; }
19221 if ${ac_cv_header_stdc+:} false
; then :
19222 $as_echo_n "(cached) " >&6
19224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226 #include <stdlib.h>
19227 #include <stdarg.h>
19228 #include <string.h>
19239 if ac_fn_c_try_compile
"$LINENO"; then :
19240 ac_cv_header_stdc
=yes
19242 ac_cv_header_stdc
=no
19244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19246 if test $ac_cv_header_stdc = yes; then
19247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19250 #include <string.h>
19253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19254 $EGREP "memchr" >/dev
/null
2>&1; then :
19257 ac_cv_header_stdc
=no
19263 if test $ac_cv_header_stdc = yes; then
19264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19266 /* end confdefs.h. */
19267 #include <stdlib.h>
19270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19271 $EGREP "free" >/dev
/null
2>&1; then :
19274 ac_cv_header_stdc
=no
19280 if test $ac_cv_header_stdc = yes; then
19281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19282 if test "$cross_compiling" = yes; then :
19285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19286 /* end confdefs.h. */
19288 #include <stdlib.h>
19289 #if ((' ' & 0x0FF) == 0x020)
19290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19293 # define ISLOWER(c) \
19294 (('a' <= (c) && (c) <= 'i') \
19295 || ('j' <= (c) && (c) <= 'r') \
19296 || ('s' <= (c) && (c) <= 'z'))
19297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19305 for (i = 0; i < 256; i++)
19306 if (XOR (islower (i), ISLOWER (i))
19307 || toupper (i) != TOUPPER (i))
19312 if ac_fn_c_try_run
"$LINENO"; then :
19315 ac_cv_header_stdc
=no
19317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19324 $as_echo "$ac_cv_header_stdc" >&6; }
19325 if test $ac_cv_header_stdc = yes; then
19327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
19332 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
19333 if ${ac_cv_header_sys_wait_h+:} false
; then :
19334 $as_echo_n "(cached) " >&6
19336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/wait.h>
19340 #ifndef WEXITSTATUS
19341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19357 if ac_fn_c_try_compile
"$LINENO"; then :
19358 ac_cv_header_sys_wait_h
=yes
19360 ac_cv_header_sys_wait_h
=no
19362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
19365 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
19366 if test $ac_cv_header_sys_wait_h = yes; then
19368 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
19372 for ac_header
in sys
/stat.h sys
/time.h sys
/wait.h sys
/select.h unistd.h fcntl.h
crypt.h termios.h
19374 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19375 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19376 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
19377 cat >>confdefs.h
<<_ACEOF
19378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19387 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19388 if ${ac_cv_c_const+:} false
; then :
19389 $as_echo_n "(cached) " >&6
19391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19398 #ifndef __cplusplus
19399 /* Ultrix mips cc rejects this sort of thing. */
19400 typedef int charset[2];
19401 const charset cs = { 0, 0 };
19402 /* SunOS 4.1.1 cc rejects this. */
19403 char const *const *pcpcc;
19405 /* NEC SVR4.0.2 mips cc rejects this. */
19406 struct point {int x, y;};
19407 static struct point const zero = {0,0};
19408 /* AIX XL C 1.02.0.0 rejects this.
19409 It does not let you subtract one const X* pointer from another in
19410 an arm of an if-expression whose if-part is not a constant
19412 const char *g = "string";
19413 pcpcc = &g + (g ? g-g : 0);
19414 /* HPUX 7.0 cc rejects these. */
19416 ppc = (char**) pcpcc;
19417 pcpcc = (char const *const *) ppc;
19418 { /* SCO 3.2v4 cc rejects this sort of thing. */
19421 char const *s = 0 ? (char *) 0 : (char const *) 0;
19426 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19427 int x[] = {25, 17};
19428 const int *foo = &x[0];
19431 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19432 typedef const int *iptr;
19436 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19437 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19438 struct s { int j; const int *ap[3]; } bx;
19439 struct s *b = &bx; b->j = 5;
19441 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19442 const int foo = 10;
19443 if (!foo) return 0;
19445 return !cs[0] && !zero.x;
19452 if ac_fn_c_try_compile
"$LINENO"; then :
19457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19460 $as_echo "$ac_cv_c_const" >&6; }
19461 if test $ac_cv_c_const = no
; then
19463 $as_echo "#define const /**/" >>confdefs.h
19467 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
19468 if test "x$ac_cv_type_pid_t" = xyes
; then :
19472 cat >>confdefs.h
<<_ACEOF
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
19479 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
19480 if ${ac_cv_type_uid_t+:} false
; then :
19481 $as_echo_n "(cached) " >&6
19483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h. */
19485 #include <sys/types.h>
19488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19489 $EGREP "uid_t" >/dev
/null
2>&1; then :
19490 ac_cv_type_uid_t
=yes
19492 ac_cv_type_uid_t
=no
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
19498 $as_echo "$ac_cv_type_uid_t" >&6; }
19499 if test $ac_cv_type_uid_t = no
; then
19501 $as_echo "#define uid_t int" >>confdefs.h
19504 $as_echo "#define gid_t int" >>confdefs.h
19508 for ac_func
in setsid setlogin
19510 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
19512 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
19513 cat >>confdefs.h
<<_ACEOF
19514 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19521 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
19522 if ${ac_cv_lib_crypt_crypt+:} false
; then :
19523 $as_echo_n "(cached) " >&6
19525 ac_check_lib_save_LIBS
=$LIBS
19526 LIBS
="-lcrypt $LIBS"
19527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19530 /* Override any GCC internal prototype to avoid an error.
19531 Use char because int might match the return type of a GCC
19532 builtin and then its argument prototype would still apply. */
19545 if ac_fn_c_try_link
"$LINENO"; then :
19546 ac_cv_lib_crypt_crypt
=yes
19548 ac_cv_lib_crypt_crypt
=no
19550 rm -f core conftest.err conftest.
$ac_objext \
19551 conftest
$ac_exeext conftest.
$ac_ext
19552 LIBS
=$ac_check_lib_save_LIBS
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19555 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19556 if test "x$ac_cv_lib_crypt_crypt" = xyes
; then :
19557 CRYPTLIBS
="-lcrypt"
19561 LIBS
="$CRYPTLIBS $LIBS"
19562 ac_fn_c_check_func
"$LINENO" "crypt" "ac_cv_func_crypt"
19563 if test "x$ac_cv_func_crypt" = xyes
; then :
19565 cat >>confdefs.h
<<_ACEOF
19566 #define HAVE_CRYPT 1
19571 ac_fn_c_check_func
"$LINENO" "bcrypt" "ac_cv_func_bcrypt"
19572 if test "x$ac_cv_func_bcrypt" = xyes
; then :
19574 cat >>confdefs.h
<<_ACEOF
19575 #define HAVE_BCRYPT 1
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt() prototype" >&5
19582 $as_echo_n "checking for crypt() prototype... " >&6; }
19583 if ${userdb_cv_NEED_CRYPT_PROTOTYPE+:} false
; then :
19584 $as_echo_n "(cached) " >&6
19586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h. */
19593 #include <unistd.h>
19595 int crypt(int, int);
19606 if ac_fn_c_try_compile
"$LINENO"; then :
19607 userdb_cv_NEED_CRYPT_PROTOTYPE
=1
19609 userdb_cv_NEED_CRYPT_PROTOTYPE
=0
19611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
19616 $as_echo "$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
19619 cat >>confdefs.h
<<_ACEOF
19620 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
19629 # Check whether --with-authdaemonrc was given.
19630 if test "${with_authdaemonrc+set}" = set; then :
19631 withval
=$with_authdaemonrc; authdaemonrc
="$withval"
19633 authdaemonrc
="$pkgconfdir/authdaemonrc"
19639 # Check whether --with-authdaemonvar was given.
19640 if test "${with_authdaemonvar+set}" = set; then :
19641 withval
=$with_authdaemonvar; authdaemonvar
="$withval"
19643 authdaemonvar
="$localstatedir/spool/authdaemon"
19651 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
19656 if test -x "$COURIERCONFIG"
19658 $COURIERCONFIG >conftest.out ||
exit 1
19659 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
19661 rm -f conftest.out conftest2.out
19663 cmailuser
="$mailuser"
19664 cmailgroup
="$mailgroup"
19665 result
=" (from courier-config)"
19668 if test -x "$bindir/courierauthconfig"
19670 $bindir/courierauthconfig
--configfiles >conftest.out ||
exit 1
19671 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
19673 rm -f conftest.out conftest2.out
19675 cmailuser
="$mailuser"
19676 cmailgroup
="$mailgroup"
19677 result
=" (from previous courierauthconfig)"
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail userid" >&5
19688 $as_echo_n "checking for mail userid... " >&6; }
19691 # Check whether --with-mailuser was given.
19692 if test "${with_mailuser+set}" = set; then :
19693 withval
=$with_mailuser; mailuser
="$withval"
19695 if test "$cmailuser" = ""
19697 if test "$cross_compiling" = yes; then :
19698 as_fn_error $?
"Must use --with-mailuser when cross compiling." "$LINENO" 5
19700 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19701 /* end confdefs.h. */
19705 #include <stdlib.h>
19707 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
19715 for (i=0; ids $LB i $RB; i++)
19716 if (getpwnam(ids $LB i $RB)) break;
19718 f=fopen("conftest.out", "w");
19719 if (f && ids $LB i $RB)
19721 fprintf(f, "%s\n", ids $LB i $RB);
19731 if ac_fn_c_try_run
"$LINENO"; then :
19732 mailuser
=`cat conftest.out`
19734 as_fn_error use
--with-mailuser.
"Cannot determine mail user" "$LINENO" 5
19736 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19737 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19741 mailuser
="$cmailuser"
19743 ac_configure_args
="$ac_configure_args --with-mailuser=$mailuser"
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailuser $result" >&5
19748 $as_echo "$mailuser $result" >&6; }
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mail group id" >&5
19751 $as_echo_n "checking for mail group id... " >&6; }
19754 # Check whether --with-mailgroup was given.
19755 if test "${with_mailgroup+set}" = set; then :
19756 withval
=$with_mailgroup; mailgroup
="$withval"
19758 if test "$cmailgroup" = ""
19760 if test "$cross_compiling" = yes; then :
19761 as_fn_error $?
"Must use --with-mailgroup when cross compiling." "$LINENO" 5
19763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19768 #include <stdlib.h>
19770 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
19777 for (i=0; ids $LB i $RB; i++)
19778 if (getgrnam(ids $LB i $RB)) break;
19780 f=fopen("conftest.out", "w");
19781 if (f && ids $LB i $RB)
19783 fprintf(f, "%s\n", ids $LB i $RB);
19793 if ac_fn_c_try_run
"$LINENO"; then :
19794 mailgroup
=`cat conftest.out`
19796 as_fn_error use
--with-mailgroup.
"Cannot determine mail group" "$LINENO" 5
19798 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19799 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19803 mailgroup
="$cmailgroup"
19805 ac_configure_args
="$ac_configure_args --with-mailgroup=$mailgroup"
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailgroup $result" >&5
19810 $as_echo "$mailgroup $result" >&6; }
19816 # Check whether --with-stdheaderdir was given.
19817 if test "${with_stdheaderdir+set}" = set; then :
19818 withval
=$with_stdheaderdir;
19819 if test "$withval" = "no"
19822 cat >>confdefs.h
<<_ACEOF
19823 #define HAVE_NOSTDHEADERDIR 1
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
19832 $as_echo_n "checking for socklen_t... " >&6; }
19833 if ${authlib_cv_hassocklen_t+:} false
; then :
19834 $as_echo_n "(cached) " >&6
19836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19837 /* end confdefs.h. */
19840 #include <sys/types.h>
19841 #include <sys/socket.h>
19846 if ac_fn_c_try_compile
"$LINENO"; then :
19847 authlib_cv_hassocklen_t
=yes
19849 authlib_cv_hassocklen_t
=no
19851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $authlib_cv_hassocklen_t" >&5
19855 $as_echo "$authlib_cv_hassocklen_t" >&6; }
19859 if test $authlib_cv_hassocklen_t = yes
19864 cat >>confdefs.h
<<_ACEOF
19865 #define socklen_t int
19871 # Check whether --with-repository was given.
19872 if test "${with_repository+set}" = set; then :
19873 withval
=$with_repository; REPOSITORY
="$withval"
19878 if test -d ${srcdir}/libs
/docbook
; then
19880 HAVE_SGML_FALSE
='#'
19887 # This gets built by the make rule, and is not in the git repo
19889 for f
in authdaemonrc.
in
19891 if test ! -f "$srcdir/$f"
19893 cp -p "$srcdir/$f.git" "$srcdir/$f"
19894 touch "$srcdir/$f.git"
19898 subdirs
="$subdirs libs/bdbobj libs/gdbmobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog"
19901 ac_config_files
="$ac_config_files Makefile authdaemond authdaemonrc authsystem.passwd README.authdebug.html dbobj.config dbobj.h authmigrate courier-authlib.spec courier-authlib.lpspec courier-authlib.sysvinit courier-authlib.service userdb-test-cram-md5.pl"
19903 cat >confcache
<<\_ACEOF
19904 # This file is a shell script that caches the results of configure
19905 # tests run on this system so they can be shared between configure
19906 # scripts and configure runs, see configure's option --config-cache.
19907 # It is not useful on other systems. If it contains results you don't
19908 # want to keep, you may remove or edit it.
19910 # config.status only pays attention to the cache file if you give it
19911 # the --recheck option to rerun configure.
19913 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19914 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19915 # following values.
19919 # The following way of writing the cache mishandles newlines in values,
19920 # but we know of no workaround that is simple, portable, and efficient.
19921 # So, we kill variables containing newlines.
19922 # Ultrix sh set writes to stderr and can't be redirected directly,
19923 # and sets the high bit in the cache file unless we assign to the vars.
19925 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19926 eval ac_val
=\$
$ac_var
19930 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19931 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19934 _ | IFS | as_nl
) ;; #(
19935 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19936 *) { eval $ac_var=; unset $ac_var;} ;;
19942 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19943 *${as_nl}ac_space
=\
*)
19944 # `set' does not quote correctly, so add quotes: double-quote
19945 # substitution turns \\\\ into \\, and sed turns \\ into \.
19948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19951 # `set' quotes correctly as required by POSIX, so do not add quotes.
19952 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19963 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19965 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19966 if test -w "$cache_file"; then
19967 if test "x$cache_file" != "x/dev/null"; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19969 $as_echo "$as_me: updating cache $cache_file" >&6;}
19970 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19971 cat confcache
>"$cache_file"
19973 case $cache_file in #(
19975 mv -f confcache
"$cache_file"$$
&&
19976 mv -f "$cache_file"$$
"$cache_file" ;; #(
19978 mv -f confcache
"$cache_file" ;;
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19984 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19989 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19990 # Let make expand exec_prefix.
19991 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19993 DEFS
=-DHAVE_CONFIG_H
19998 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19999 # 1. Remove the extension, and $U if already installed.
20000 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20001 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
20002 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20003 # will be set to the directory where LIBOBJS objects are built.
20004 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20005 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
20007 LIBOBJS
=$ac_libobjs
20009 LTLIBOBJS
=$ac_ltlibobjs
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20013 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20014 if test -n "$am_sleep_pid"; then
20015 # Hide warnings about reused PIDs.
20016 wait $am_sleep_pid 2>/dev
/null
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20019 $as_echo "done" >&6; }
20020 if test -n "$EXEEXT"; then
20022 am__EXEEXT_FALSE
='#'
20024 am__EXEEXT_TRUE
='#'
20028 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20029 as_fn_error $?
"conditional \"AMDEP\" was never defined.
20030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20032 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20033 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20036 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20037 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20040 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20041 as_fn_error $?
"conditional \"INSTALL_LTDL\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20044 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20045 as_fn_error $?
"conditional \"CONVENIENCE_LTDL\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20048 LT_CONFIG_H
=courier_auth_config.h
20052 if test -n "$_LT_LIBOBJS"; then
20053 # Remove the extension.
20054 _lt_sed_drop_objext
='s/\.o$//;s/\.obj$//'
20055 for i
in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
20056 _ltdl_libobjs
="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
20057 _ltdl_ltlibobjs
="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
20060 ltdl_LIBOBJS
=$_ltdl_libobjs
20062 ltdl_LTLIBOBJS
=$_ltdl_ltlibobjs
20065 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
20066 as_fn_error $?
"conditional \"HAVE_LDAP\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20069 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
20070 as_fn_error $?
"conditional \"HAVE_AUTHPGSQL\" was never defined.
20071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20073 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
20074 as_fn_error $?
"conditional \"HAVE_AUTHMYSQL\" was never defined.
20075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20077 if test -z "${HAVE_AUTHSQLITE_TRUE}" && test -z "${HAVE_AUTHSQLITE_FALSE}"; then
20078 as_fn_error $?
"conditional \"HAVE_AUTHSQLITE\" was never defined.
20079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20081 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
20082 as_fn_error $?
"conditional \"HAVE_CUSTOM\" was never defined.
20083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20085 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
20086 as_fn_error $?
"conditional \"HAVE_PIPE\" was never defined.
20087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20089 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20090 as_fn_error $?
"conditional \"HAVE_SGML\" was never defined.
20091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094 : "${CONFIG_STATUS=./config.status}"
20096 ac_clean_files_save
=$ac_clean_files
20097 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20099 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20101 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20103 # Generated by $as_me.
20104 # Run this file to recreate the current configuration.
20105 # Compiler output produced by configure, useful for debugging
20106 # configure, is in config.log if it exists.
20109 ac_cs_recheck=false
20112 SHELL=\${CONFIG_SHELL-$SHELL}
20115 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
20116 ## -------------------- ##
20117 ## M4sh Initialization. ##
20118 ## -------------------- ##
20120 # Be more Bourne compatible
20121 DUALCASE
=1; export DUALCASE
# for MKS sh
20122 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20125 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20126 # is contrary to our usage. Disable this feature.
20127 alias -g '${1+"$@"}'='"$@"'
20128 setopt NO_GLOB_SUBST
20130 case `(set -o) 2>/dev/null` in #(
20142 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20143 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20144 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20146 # Prefer a ksh shell builtin over an external printf program on Solaris,
20147 # but without wasting forks for bash or zsh.
20148 if test -z "$BASH_VERSION$ZSH_VERSION" \
20149 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20150 as_echo='print
-r --'
20151 as_echo_n='print
-rn --'
20152 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20153 as_echo='printf %s
\n'
20154 as_echo_n='printf %s
'
20156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20157 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
20158 as_echo_n='/usr
/ucb
/echo -n'
20160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20161 as_echo_n_body='eval
20165 expr "X$arg" : "X\\(.*\\)$as_nl";
20166 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20168 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
20170 export as_echo_n_body
20171 as_echo_n='sh
-c $as_echo_n_body as_echo
'
20173 export as_echo_body
20174 as_echo='sh
-c $as_echo_body as_echo
'
20177 # The user is always right.
20178 if test "${PATH_SEPARATOR+set}" != set; then
20180 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20181 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20188 # We need space, tab and new line, in precisely that order. Quoting is
20189 # there to prevent editors from complaining about space-tab.
20190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191 # splitting by setting IFS to empty value.)
20194 # Find who we are. Look in the path if we contain no directory separator.
20197 *[\\/]* ) as_myself=$0 ;;
20198 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20199 for as_dir in $PATH
20202 test -z "$as_dir" && as_dir=.
20203 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20209 # We did not find ourselves, most probably we were run as `sh COMMAND'
20210 # in which case we are not to be found in the path.
20211 if test "x$as_myself" = x
; then
20214 if test ! -f "$as_myself"; then
20215 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20219 # Unset variables that we do not need and which cause bugs (e.g. in
20220 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20221 # suppresses any "Segmentation fault" message there. '((' could
20222 # trigger a bug in pdksh 5.2.14.
20223 for as_var
in BASH_ENV ENV MAIL MAILPATH
20224 do eval test x\
${$as_var+set} = xset \
20225 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20238 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20241 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20242 # ----------------------------------------
20243 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20244 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20245 # script with STATUS, using 1 if that was 0.
20248 as_status
=$1; test $as_status -eq 0 && as_status
=1
20250 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20251 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20253 $as_echo "$as_me: error: $2" >&2
20254 as_fn_exit
$as_status
20258 # as_fn_set_status STATUS
20259 # -----------------------
20260 # Set $? to STATUS, without forking.
20261 as_fn_set_status
()
20264 } # as_fn_set_status
20266 # as_fn_exit STATUS
20267 # -----------------
20268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20272 as_fn_set_status
$1
20278 # Portably unset VAR.
20281 { eval $1=; unset $1;}
20283 as_unset
=as_fn_unset
20284 # as_fn_append VAR VALUE
20285 # ----------------------
20286 # Append the text in VALUE to the end of the definition contained in VAR. Take
20287 # advantage of any shell optimizations that allow amortized linear growth over
20288 # repeated appends, instead of the typical quadratic growth present in naive
20290 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20291 eval 'as_fn_append ()
20302 # as_fn_arith ARG...
20303 # ------------------
20304 # Perform arithmetic evaluation on the ARGs, and store the result in the
20305 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20306 # must be portable across $(()) and expr.
20307 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20308 eval 'as_fn_arith ()
20315 as_val
=`expr "$@" || test $? -eq 1`
20320 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20321 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20327 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20328 as_basename
=basename
20333 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20339 as_me
=`$as_basename -- "$0" ||
20340 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20341 X"$0" : 'X\(//\)$' \| \
20342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20344 sed '/^.*\/\([^/][^/]*\)\/*$/{
20358 # Avoid depending upon Character Ranges.
20359 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20360 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20361 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20362 as_cr_digits
='0123456789'
20363 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20365 ECHO_C
= ECHO_N
= ECHO_T
=
20366 case `echo -n x` in #(((((
20368 case `echo 'xy\c'` in
20369 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20371 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20378 rm -f conf$$ conf$$.exe conf$$.
file
20379 if test -d conf$$.dir
; then
20380 rm -f conf$$.dir
/conf$$.
file
20383 mkdir conf$$.dir
2>/dev
/null
20385 if (echo >conf$$.
file) 2>/dev
/null
; then
20386 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20388 # ... but there are two gotchas:
20389 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20390 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20391 # In both cases, we have to default to `cp -pR'.
20392 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20394 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20402 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20403 rmdir conf$$.dir
2>/dev
/null
20408 # Create "$as_dir" as a directory, including parents if necessary.
20413 -*) as_dir
=.
/$as_dir;;
20415 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20419 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20420 *) as_qdir
=$as_dir;;
20422 as_dirs
="'$as_qdir' $as_dirs"
20423 as_dir
=`$as_dirname -- "$as_dir" ||
20424 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20425 X"$as_dir" : 'X\(//\)[^/]' \| \
20426 X"$as_dir" : 'X\(//\)$' \| \
20427 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20428 $as_echo X"$as_dir" |
20429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20433 /^X\(\/\/\)[^/].*/{
20446 test -d "$as_dir" && break
20448 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20449 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20453 if mkdir
-p .
2>/dev
/null
; then
20454 as_mkdir_p
='mkdir -p "$as_dir"'
20456 test -d .
/-p && rmdir .
/-p
20461 # as_fn_executable_p FILE
20462 # -----------------------
20463 # Test if FILE is an executable regular file.
20464 as_fn_executable_p
()
20466 test -f "$1" && test -x "$1"
20467 } # as_fn_executable_p
20468 as_test_x
='test -x'
20469 as_executable_p
=as_fn_executable_p
20471 # Sed expression to map a string onto a valid CPP name.
20472 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20474 # Sed expression to map a string onto a valid variable name.
20475 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20479 ## ----------------------------------- ##
20480 ## Main body of $CONFIG_STATUS script. ##
20481 ## ----------------------------------- ##
20483 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20486 # Save the log message, to keep $0 and so on meaningful, and to
20487 # report actual input values of CONFIG_FILES etc. instead of their
20488 # values after options handling.
20490 This file was extended by courier-authlib $as_me 0.69.0, which was
20491 generated by GNU Autoconf 2.69. Invocation command line was
20493 CONFIG_FILES = $CONFIG_FILES
20494 CONFIG_HEADERS = $CONFIG_HEADERS
20495 CONFIG_LINKS = $CONFIG_LINKS
20496 CONFIG_COMMANDS = $CONFIG_COMMANDS
20499 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20504 case $ac_config_files in *"
20505 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20508 case $ac_config_headers in *"
20509 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
20513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20514 # Files that config.status was made for.
20515 config_files="$ac_config_files"
20516 config_headers="$ac_config_headers"
20517 config_commands="$ac_config_commands"
20521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20523 \`$as_me' instantiates files and other configuration actions
20524 from templates according to the current configuration. Unless the files
20525 and actions are specified as TAGs, all are instantiated by default.
20527 Usage: $0 [OPTION]... [TAG]...
20529 -h, --help print this help, then exit
20530 -V, --version print version number and configuration settings, then exit
20531 --config print configuration, then exit
20532 -q, --quiet, --silent
20533 do not print progress messages
20534 -d, --debug don't remove temporary files
20535 --recheck update $as_me by reconfiguring in the same conditions
20536 --file=FILE[:TEMPLATE]
20537 instantiate the configuration file FILE
20538 --header=FILE[:TEMPLATE]
20539 instantiate the configuration header FILE
20541 Configuration files:
20544 Configuration headers:
20547 Configuration commands:
20550 Report bugs to <courier-users@lists.sourceforge.net>."
20553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20554 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20556 courier-authlib config.status 0.69.0
20557 configured by $0, generated by GNU Autoconf 2.69,
20558 with options \\"\$ac_cs_config\\"
20560 Copyright (C) 2012 Free Software Foundation, Inc.
20561 This config.status script is free software; the Free Software Foundation
20562 gives unlimited permission to copy, distribute and modify it."
20569 test -n "\$AWK" || AWK=awk
20572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20573 # The default lists apply if the user does not specify any file.
20579 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20580 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20584 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20596 # Handling of the options.
20597 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20599 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20600 $as_echo "$ac_cs_version"; exit ;;
20601 --config |
--confi |
--conf |
--con |
--co |
--c )
20602 $as_echo "$ac_cs_config"; exit ;;
20603 --debug |
--debu |
--deb |
--de |
--d |
-d )
20605 --file |
--fil |
--fi |
--f )
20608 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20609 '') as_fn_error $?
"missing file argument" ;;
20611 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20612 ac_need_defaults
=false
;;
20613 --header |
--heade |
--head |
--hea )
20616 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20618 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
20619 ac_need_defaults
=false
;;
20621 # Conflict between --help and --header
20622 as_fn_error $?
"ambiguous option: \`$1'
20623 Try \`$0 --help' for more information.";;
20624 --help |
--hel |
-h )
20625 $as_echo "$ac_cs_usage"; exit ;;
20626 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20627 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20630 # This is an error.
20631 -*) as_fn_error $?
"unrecognized option: \`$1'
20632 Try \`$0 --help' for more information." ;;
20634 *) as_fn_append ac_config_targets
" $1"
20635 ac_need_defaults
=false
;;
20641 ac_configure_extra_args
=
20643 if $ac_cs_silent; then
20645 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20650 if \$ac_cs_recheck; then
20651 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20654 CONFIG_SHELL='$SHELL'
20655 export CONFIG_SHELL
20660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20665 ## Running $as_me. ##
20671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20675 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20678 # The HP-UX ksh and POSIX shell print the target directory to stdout
20679 # if CDPATH is set.
20680 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20682 sed_quote_subst='$sed_quote_subst'
20683 double_quote_subst='$double_quote_subst'
20684 delay_variable_subst='$delay_variable_subst'
20685 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20686 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20687 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20688 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20689 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20690 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20691 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20692 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20693 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20694 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20695 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20696 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20697 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20698 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20699 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20700 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20701 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20702 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20703 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20704 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20705 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20706 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20707 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20708 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20709 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20710 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20711 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20712 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20713 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20714 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20715 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20716 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20717 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20718 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20719 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20720 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20721 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20722 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20723 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20724 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20725 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20726 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20741 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20742 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20743 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"`'
20744 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20745 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20746 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20747 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20748 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20749 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20750 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20751 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20752 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20753 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20754 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20755 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20756 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20757 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20758 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20759 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20760 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20761 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20762 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20763 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20764 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20765 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20766 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20767 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20768 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20769 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20770 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20771 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20772 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20773 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20774 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20775 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20776 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20777 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20778 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20779 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20780 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20781 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20782 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20783 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20784 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20785 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20786 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20787 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20788 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20789 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20790 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20791 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20792 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20793 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20794 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20795 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20796 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20797 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20798 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20799 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20800 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20801 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20802 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20803 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20804 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20805 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20806 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20807 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20808 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20809 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20810 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20811 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20812 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20813 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20814 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20815 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20816 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20817 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20818 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20819 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20820 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20821 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20822 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20823 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20824 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20825 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20826 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20827 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20828 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20829 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20830 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20831 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20832 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20833 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20834 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20835 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20836 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20837 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20838 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20839 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20840 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20841 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20842 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20843 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20844 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20845 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20846 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20847 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20848 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20849 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20850 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20851 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20852 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20853 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20854 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20855 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20856 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20857 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20858 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20859 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20860 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20861 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20862 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20863 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20864 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20865 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20866 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20867 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20868 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20869 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20870 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20871 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20872 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20873 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20876 LTCFLAGS='$LTCFLAGS'
20877 compiler='$compiler_DEFAULT'
20879 # A function that is used when there is no print builtin or printf.
20880 func_fallback_echo ()
20882 eval 'cat <<_LTECHO_EOF
20887 # Quote evaled strings.
20902 deplibs_check_method \
20907 sharedlib_from_linklib_cmd \
20910 archiver_list_spec \
20916 lt_cv_sys_global_symbol_pipe \
20917 lt_cv_sys_global_symbol_to_cdecl \
20918 lt_cv_sys_global_symbol_to_import \
20919 lt_cv_sys_global_symbol_to_c_name_address \
20920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20921 lt_cv_nm_interface \
20922 nm_file_list_spec \
20923 lt_cv_truncate_bin \
20924 lt_prog_compiler_no_builtin_flag \
20925 lt_prog_compiler_pic \
20926 lt_prog_compiler_wl \
20927 lt_prog_compiler_static \
20928 lt_cv_prog_compiler_c_o \
20937 export_dynamic_flag_spec \
20938 whole_archive_flag_spec \
20939 compiler_needs_object \
20941 allow_undefined_flag \
20942 no_undefined_flag \
20943 hardcode_libdir_flag_spec \
20944 hardcode_libdir_separator \
20948 variables_saved_for_relink \
20950 library_names_spec \
20952 install_override_mode \
20956 compiler_lib_search_dirs \
20961 compiler_lib_search_path \
20965 lt_prog_compiler_no_builtin_flag_CXX \
20966 lt_prog_compiler_pic_CXX \
20967 lt_prog_compiler_wl_CXX \
20968 lt_prog_compiler_static_CXX \
20969 lt_cv_prog_compiler_c_o_CXX \
20970 export_dynamic_flag_spec_CXX \
20971 whole_archive_flag_spec_CXX \
20972 compiler_needs_object_CXX \
20974 allow_undefined_flag_CXX \
20975 no_undefined_flag_CXX \
20976 hardcode_libdir_flag_spec_CXX \
20977 hardcode_libdir_separator_CXX \
20978 exclude_expsyms_CXX \
20979 include_expsyms_CXX \
20980 file_list_spec_CXX \
20981 compiler_lib_search_dirs_CXX \
20982 predep_objects_CXX \
20983 postdep_objects_CXX \
20986 compiler_lib_search_path_CXX; do
20987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20988 *[\\\\\\\`\\"\\\$]*)
20989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20997 # Double-quote double-evaled strings.
20998 for var in reload_cmds \
20999 old_postinstall_cmds \
21000 old_postuninstall_cmds \
21002 extract_expsyms_cmds \
21003 old_archive_from_new_cmds \
21004 old_archive_from_expsyms_cmds \
21006 archive_expsym_cmds \
21008 module_expsym_cmds \
21009 export_symbols_cmds \
21013 postuninstall_cmds \
21015 sys_lib_search_path_spec \
21016 configure_time_dlsearch_path \
21017 configure_time_lt_sys_library_path \
21019 old_archive_cmds_CXX \
21020 old_archive_from_new_cmds_CXX \
21021 old_archive_from_expsyms_cmds_CXX \
21023 archive_expsym_cmds_CXX \
21025 module_expsym_cmds_CXX \
21026 export_symbols_cmds_CXX \
21028 postlink_cmds_CXX; do
21029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21030 *[\\\\\\\`\\"\\\$]*)
21031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21039 ac_aux_dir='$ac_aux_dir'
21041 # See if we are running on zsh, and set the options that allow our
21042 # commands through without removal of \ escapes INIT.
21043 if test -n "\${ZSH_VERSION+set}"; then
21044 setopt NO_GLOB_SUBST
21060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21062 # Handling of arguments.
21063 for ac_config_target
in $ac_config_targets
21065 case $ac_config_target in
21066 "courier_auth_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS courier_auth_config.h" ;;
21067 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
21068 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
21069 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
21070 "authdaemond") CONFIG_FILES
="$CONFIG_FILES authdaemond" ;;
21071 "authdaemonrc") CONFIG_FILES
="$CONFIG_FILES authdaemonrc" ;;
21072 "authsystem.passwd") CONFIG_FILES
="$CONFIG_FILES authsystem.passwd" ;;
21073 "README.authdebug.html") CONFIG_FILES
="$CONFIG_FILES README.authdebug.html" ;;
21074 "dbobj.config") CONFIG_FILES
="$CONFIG_FILES dbobj.config" ;;
21075 "dbobj.h") CONFIG_FILES
="$CONFIG_FILES dbobj.h" ;;
21076 "authmigrate") CONFIG_FILES
="$CONFIG_FILES authmigrate" ;;
21077 "courier-authlib.spec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.spec" ;;
21078 "courier-authlib.lpspec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.lpspec" ;;
21079 "courier-authlib.sysvinit") CONFIG_FILES
="$CONFIG_FILES courier-authlib.sysvinit" ;;
21080 "courier-authlib.service") CONFIG_FILES
="$CONFIG_FILES courier-authlib.service" ;;
21081 "userdb-test-cram-md5.pl") CONFIG_FILES
="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
21083 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21088 # If the user did not use the arguments to specify the items to instantiate,
21089 # then the envvar interface is used. Set only those that are not.
21090 # We use the long form for the default assignment because of an extremely
21091 # bizarre bug on SunOS 4.1.3.
21092 if $ac_need_defaults; then
21093 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21094 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21095 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21098 # Have a temporary directory for convenience. Make it in the build tree
21099 # simply because there is no reason against having it here, and in addition,
21100 # creating and moving files from /tmp can sometimes cause problems.
21101 # Hook for its removal unless debugging.
21102 # Note that there is a small window in which the directory will not be cleaned:
21103 # after its creation but before its name has been assigned to `$tmp'.
21107 trap 'exit_status=$?
21108 : "${ac_tmp:=$tmp}"
21109 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21111 trap 'as_fn_exit 1' 1 2 13 15
21113 # Create a (secure) tmp directory for tmp files.
21116 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21120 tmp
=.
/conf$$
-$RANDOM
21121 (umask 077 && mkdir
"$tmp")
21122 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
21125 # Set up the scripts for CONFIG_FILES section.
21126 # No need to generate them if there are no CONFIG_FILES.
21127 # This happens for instance with `./config.status config.h'.
21128 if test -n "$CONFIG_FILES"; then
21131 ac_cr
=`echo X | tr X '\015'`
21132 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21133 # But we know of no other shell where ac_cr would be empty at this
21134 # point, so we can use a bashism as a fallback.
21135 if test "x$ac_cr" = x
; then
21136 eval ac_cr
=\$
\'\\r
\'
21138 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21139 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21142 ac_cs_awk_cr
=$ac_cr
21145 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21150 echo "cat >conf$$subs.awk <<_ACEOF" &&
21151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21153 } >conf$$subs.sh ||
21154 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21155 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21157 for ac_last_try in false false false false false :; do
21158 . ./conf$$subs.sh ||
21159 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21161 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
21162 if test $ac_delim_n = $ac_delim_num; then
21164 elif $ac_last_try; then
21165 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
21167 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21170 rm -f conf$$subs.sh
21172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21173 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
21177 s/^/S["/; s
/!.
*/"]=/
21187 s/\(.\{148\}\)..*/\1/
21189 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
21194 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21201 s/\(.\{148\}\)..*/\1/
21203 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
21207 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
21212 ' <conf$$subs.awk | sed '
21217 ' >>$CONFIG_STATUS || ac_write_fail=1
21218 rm -f conf$$subs.awk
21219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21221 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
21222 for (key in S) S_is_set[key] = 1
21228 nfields = split(line, field, "@
")
21230 len = length(field[1])
21231 for (i = 2; i < nfields; i++) {
21233 keylen = length(key)
21234 if (S_is_set[key]) {
21236 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21237 len += length(value) + length(field[++i])
21248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21249 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21250 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
21253 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
21254 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
21257 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21258 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
21259 # trailing colons and then remove the whole line if VPATH becomes empty
21260 # (actually we leave an empty line to preserve line numbers).
21261 if test "x
$srcdir" = x.; then
21262 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281 fi # test -n "$CONFIG_FILES"
21283 # Set up the scripts for CONFIG_HEADERS section.
21284 # No need to generate them if there are no CONFIG_HEADERS.
21285 # This happens for instance with `./config.status Makefile'.
21286 if test -n "$CONFIG_HEADERS"; then
21287 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
21291 # Transform confdefs.h into an awk script `defines.awk', embedded as
21292 # here-document in config.status, that substitutes the proper values into
21293 # config.h.in to produce config.h.
21295 # Create a delimiter string that does not exist in confdefs.h, to ease
21296 # handling of long lines.
21298 for ac_last_try in false false :; do
21299 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
21300 if test -z "$ac_tt"; then
21302 elif $ac_last_try; then
21303 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
21305 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
21309 # For the awk script, D is an array of macro values keyed by name,
21310 # likewise P contains macro parameters if any. Preserve backslash
21311 # newline sequences.
21313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21315 s/.\{148\}/&'"$ac_delim"'/g
21318 s/^[ ]*#[ ]*define[ ][ ]*/ /
21325 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
21327 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
21331 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
21332 D["\
1"]=" \
3\\\\\\n
"\\/p
21334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
21339 s/.\{148\}/&'"$ac_delim"'/g
21344 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
21347 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
21349 ' <confdefs.h | sed '
21350 s/'"$ac_delim"'/"\\\
21351 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21354 for (key in D) D_is_set[key] = 1
21357 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21359 split(line, arg, " ")
21360 if (arg[1] == "#") {
21364 defundef
= substr
(arg
[1], 2)
21367 split(mac1
, mac2
, "(") #)
21369 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
21370 if (D_is_set
[macro
]) {
21371 # Preserve the white space surrounding the "#".
21372 print prefix
"define", macro P
[macro
] D
[macro
]
21375 # Replace #undef with comments. This is necessary, for example,
21376 # in the case of _POSIX_SOURCE, which is predefined and required
21377 # on some systems where configure will not decide to define it.
21378 if (defundef
== "undef") {
21379 print
"/*", prefix defundef
, macro
, "*/"
21387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21388 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
21389 fi # test -n "$CONFIG_HEADERS"
21392 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21397 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21399 case $ac_mode$ac_tag in
21401 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
21402 :[FH
]-) ac_tag
=-:-;;
21403 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21420 -) ac_f
="$ac_tmp/stdin";;
21421 *) # Look for the file first in the build tree, then in the source tree
21422 # (if the path is not absolute). The absolute path cannot be DOS-style,
21423 # because $ac_f cannot contain `:'.
21427 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21429 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21431 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21432 as_fn_append ac_file_inputs
" '$ac_f'"
21435 # Let's still pretend it is `configure' which instantiates (i.e., don't
21436 # use $as_me), people would be surprised to read:
21437 # /* config.h. Generated by config.status. */
21438 configure_input
='Generated from '`
21439 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21441 if test x
"$ac_file" != x-
; then
21442 configure_input
="$ac_file. $configure_input"
21443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21444 $as_echo "$as_me: creating $ac_file" >&6;}
21446 # Neutralize special characters interpreted by sed in replacement strings.
21447 case $configure_input in #(
21448 *\
&* |
*\|
* |
*\\* )
21449 ac_sed_conf_input
=`$as_echo "$configure_input" |
21450 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21451 *) ac_sed_conf_input
=$configure_input;;
21455 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
21456 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
21461 ac_dir
=`$as_dirname -- "$ac_file" ||
21462 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$ac_file" : 'X\(//\)[^/]' \| \
21464 X"$ac_file" : 'X\(//\)$' \| \
21465 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$ac_file" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21471 /^X\(\/\/\)[^/].*/{
21484 as_dir
="$ac_dir"; as_fn_mkdir_p
21488 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21490 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21491 # A ".." for each directory in $ac_dir_suffix.
21492 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21493 case $ac_top_builddir_sub in
21494 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21495 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21498 ac_abs_top_builddir
=$ac_pwd
21499 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21500 # for backward compatibility:
21501 ac_top_builddir
=$ac_top_build_prefix
21504 .
) # We are building in place.
21506 ac_top_srcdir
=$ac_top_builddir_sub
21507 ac_abs_top_srcdir
=$ac_pwd ;;
21508 [\\/]* | ?
:[\\/]* ) # Absolute name.
21509 ac_srcdir
=$srcdir$ac_dir_suffix;
21510 ac_top_srcdir
=$srcdir
21511 ac_abs_top_srcdir
=$srcdir ;;
21512 *) # Relative name.
21513 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21514 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21515 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21517 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21527 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21528 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21530 ac_MKDIR_P
=$MKDIR_P
21532 [\\/$
]* | ?
:[\\/]* ) ;;
21533 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
21537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21538 # If the template does not know about datarootdir, expand it.
21539 # FIXME: This hack should be removed a few years after 2.60.
21540 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21551 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21552 *datarootdir
*) ac_datarootdir_seen
=yes;;
21553 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21555 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21558 ac_datarootdir_hack='
21559 s&@datadir@&$datadir&g
21560 s&@docdir@&$docdir&g
21561 s&@infodir@&$infodir&g
21562 s&@localedir@&$localedir&g
21563 s&@mandir@&$mandir&g
21564 s&\\\${datarootdir}&$datarootdir&g' ;;
21568 # Neutralize VPATH when `$srcdir' = `.'.
21569 # Shell code in configure.ac might set extrasub.
21570 # FIXME: do we really want to maintain this feature?
21571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21572 ac_sed_extra="$ac_vpsub
21575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21577 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21578 s|@configure_input@|
$ac_sed_conf_input|
;t t
21579 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21580 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21581 s
&@srcdir@
&$ac_srcdir&;t t
21582 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21583 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21584 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21585 s
&@builddir@
&$ac_builddir&;t t
21586 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21587 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21588 s
&@INSTALL@
&$ac_INSTALL&;t t
21589 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
21590 $ac_datarootdir_hack
21592 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
21593 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21596 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21598 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21600 which seems to be undefined. Please make sure it is defined" >&5
21601 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21602 which seems to be undefined. Please make sure it is defined" >&2;}
21604 rm -f "$ac_tmp/stdin"
21606 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21607 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21615 if test x"$ac_file" != x-; then
21617 $as_echo "/* $configure_input */" \
21618 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21619 } >"$ac_tmp/config.h" \
21620 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21621 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21623 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21626 mv "$ac_tmp/config.h" "$ac_file" \
21627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21630 $as_echo "/* $configure_input */" \
21631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21632 || as_fn_error $? "could not create -" "$LINENO" 5
21634 # Compute "$ac_file"'s index
in $config_headers.
21637 for _am_header
in $config_headers :; do
21638 case $_am_header in
21639 $_am_arg |
$_am_arg:* )
21642 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
21645 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21646 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21647 X"$_am_arg" : 'X\(//\)[^/]' \| \
21648 X"$_am_arg" : 'X\(//\)$' \| \
21649 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21650 $as_echo X"$_am_arg" |
21651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21655 /^X\(\/\/\)[^/].*/{
21667 s/.*/./; q'`/stamp-h
$_am_stamp_count
21670 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21671 $as_echo "$as_me: executing $ac_file commands" >&6;}
21676 case $ac_file$ac_mode in
21677 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
21678 # Older Autoconf quotes --file arguments for eval, but not when files
21679 # are listed without --file. Let's play safe and only enable the eval
21680 # if we detect the quoting.
21681 case $CONFIG_FILES in
21682 *\'*) eval set x
"$CONFIG_FILES" ;;
21683 *) set x
$CONFIG_FILES ;;
21688 # Strip MF so we end up with the name of the file.
21689 mf
=`echo "$mf" | sed -e 's/:.*$//'`
21690 # Check whether this is an Automake generated Makefile or not.
21691 # We used to match only the files named 'Makefile.in', but
21692 # some people rename them; so instead we look at the file content.
21693 # Grep'ing the first line is not enough: some people post-process
21694 # each Makefile.in and add a new line on top of each file to say so.
21695 # Grep'ing the whole file is not good either: AIX grep has a line
21696 # limit of 2048, but all sed's we know have understand at least 4000.
21697 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
21698 dirpart
=`$as_dirname -- "$mf" ||
21699 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21700 X"$mf" : 'X\(//\)[^/]' \| \
21701 X"$mf" : 'X\(//\)$' \| \
21702 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21708 /^X\(\/\/\)[^/].*/{
21724 # Extract the definition of DEPDIR, am__include, and am__quote
21725 # from the Makefile without running 'make'.
21726 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
21727 test -z "$DEPDIR" && continue
21728 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
21729 test -z "$am__include" && continue
21730 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
21731 # Find all dependency output files, they are included files with
21732 # $(DEPDIR) in their names. We invoke sed twice because it is the
21733 # simplest approach to changing $(DEPDIR) to its actual value in the
21735 for file in `sed -n "
21736 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21737 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21738 # Make sure the directory exists.
21739 test -f "$dirpart/$file" && continue
21740 fdir
=`$as_dirname -- "$file" ||
21741 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21742 X"$file" : 'X\(//\)[^/]' \| \
21743 X"$file" : 'X\(//\)$' \| \
21744 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21745 $as_echo X"$file" |
21746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21750 /^X\(\/\/\)[^/].*/{
21763 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
21764 # echo "creating $dirpart/$file"
21765 echo '# dummy' > "$dirpart/$file"
21772 # See if we are running on zsh, and set the options that allow our
21773 # commands through without removal of \ escapes.
21774 if test -n "${ZSH_VERSION+set}"; then
21775 setopt NO_GLOB_SUBST
21779 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21782 cat <<_LT_EOF >> "$cfgfile"
21784 # Generated automatically by $as_me ($PACKAGE) $VERSION
21785 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21786 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21788 # Provide generalized library-building support services.
21789 # Written by Gordon Matzigkeit, 1996
21791 # Copyright (C) 2014 Free Software Foundation, Inc.
21792 # This is free software; see the source for copying conditions. There is NO
21793 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21795 # GNU Libtool is free software; you can redistribute it and/or modify
21796 # it under the terms of the GNU General Public License as published by
21797 # the Free Software Foundation; either version 2 of of the License, or
21798 # (at your option) any later version.
21800 # As a special exception to the GNU General Public License, if you
21801 # distribute this file as part of a program or library that is built
21802 # using GNU Libtool, you may include this file under the same
21803 # distribution terms that you use for the rest of that program.
21805 # GNU Libtool is distributed in the hope that it will be useful, but
21806 # WITHOUT ANY WARRANTY; without even the implied warranty of
21807 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21808 # GNU General Public License for more details.
21810 # You should have received a copy of the GNU General Public License
21811 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21814 # The names of the tagged configurations supported by this script.
21815 available_tags='CXX '
21817 # Configured defaults for sys_lib_dlsearch_path munging.
21818 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21820 # ### BEGIN LIBTOOL CONFIG
21822 # Which release of libtool.m4 was used?
21823 macro_version=$macro_version
21824 macro_revision=$macro_revision
21826 # Whether or not to build shared libraries.
21827 build_libtool_libs=$enable_shared
21829 # Whether or not to build static libraries.
21830 build_old_libs=$enable_static
21832 # What type of objects to build.
21835 # Whether or not to optimize for fast installation.
21836 fast_install=$enable_fast_install
21838 # Shared archive member basename,for filename based shared library versioning on AIX.
21839 shared_archive_member_spec=$shared_archive_member_spec
21841 # Shell to use when invoking shell scripts.
21844 # An echo program that protects backslashes.
21847 # The PATH separator for the build system.
21848 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21851 host_alias=$host_alias
21855 # The build system.
21856 build_alias=$build_alias
21860 # A sed program that does not truncate output.
21863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21864 Xsed="\$SED -e 1s/^X//"
21866 # A grep program that handles long lines.
21872 # A literal string matcher.
21875 # A BSD- or MS-compatible name lister.
21878 # Whether we need soft or hard links.
21881 # What is the maximum length of a command?
21882 max_cmd_len=$max_cmd_len
21884 # Object file suffix (normally "o").
21887 # Executable file suffix (normally "").
21890 # whether the shell understands "unset".
21893 # turn spaces into newlines.
21896 # turn newlines into spaces.
21899 # convert \$build file names to \$host format.
21900 to_host_file_cmd=$lt_cv_to_host_file_cmd
21902 # convert \$build files to toolchain format.
21903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21905 # An object symbol dumper.
21906 OBJDUMP=$lt_OBJDUMP
21908 # Method to check whether dependent libraries are shared objects.
21909 deplibs_check_method=$lt_deplibs_check_method
21911 # Command to use when deplibs_check_method = "file_magic".
21912 file_magic_cmd=$lt_file_magic_cmd
21914 # How to find potential files when deplibs_check_method = "file_magic".
21915 file_magic_glob=$lt_file_magic_glob
21917 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21918 want_nocaseglob=$lt_want_nocaseglob
21920 # DLL creation program.
21921 DLLTOOL=$lt_DLLTOOL
21923 # Command to associate shared and link libraries.
21924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21929 # Flags to create an archive.
21930 AR_FLAGS=$lt_AR_FLAGS
21932 # How to feed a file listing to the archiver.
21933 archiver_list_spec=$lt_archiver_list_spec
21935 # A symbol stripping program.
21938 # Commands used to install an old-style archive.
21940 old_postinstall_cmds=$lt_old_postinstall_cmds
21941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21943 # Whether to use a lock for old archive extraction.
21944 lock_old_archive_extraction=$lock_old_archive_extraction
21949 # LTCC compiler flags.
21950 LTCFLAGS=$lt_CFLAGS
21952 # Take the output of nm and produce a listing of raw symbols and C names.
21953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21955 # Transform the output of nm in a proper C declaration.
21956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21958 # Transform the output of nm into a list of symbols to manually relocate.
21959 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21961 # Transform the output of nm in a C name address pair.
21962 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21964 # Transform the output of nm in a C name address pair when lib prefix is needed.
21965 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21967 # The name lister interface.
21968 nm_interface=$lt_lt_cv_nm_interface
21970 # Specify filename containing input files for \$NM.
21971 nm_file_list_spec=$lt_nm_file_list_spec
21973 # The root where to search for dependent libraries,and where our libraries should be installed.
21974 lt_sysroot=$lt_sysroot
21976 # Command to truncate a binary pipe.
21977 lt_truncate_bin=$lt_lt_cv_truncate_bin
21979 # The name of the directory that contains temporary libtool files.
21982 # Used to examine libraries when file_magic_cmd begins with "file".
21983 MAGIC_CMD=$MAGIC_CMD
21985 # Must we lock files when doing compilation?
21986 need_locks=$lt_need_locks
21989 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21991 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21992 DSYMUTIL=$lt_DSYMUTIL
21994 # Tool to change global to local symbols on Mac OS X.
21997 # Tool to manipulate fat objects and archives on Mac OS X.
22000 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22003 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22004 OTOOL64=$lt_OTOOL64
22006 # Old archive suffix (normally "a").
22009 # Shared library suffix (normally ".so").
22010 shrext_cmds=$lt_shrext_cmds
22012 # The commands to extract the exported symbol list from a shared archive.
22013 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22015 # Variables whose values should be saved in libtool wrapper scripts and
22016 # restored at link time.
22017 variables_saved_for_relink=$lt_variables_saved_for_relink
22019 # Do we need the "lib" prefix for modules?
22020 need_lib_prefix=$need_lib_prefix
22022 # Do we need a version for libraries?
22023 need_version=$need_version
22025 # Library versioning type.
22026 version_type=$version_type
22028 # Shared library runtime path variable.
22029 runpath_var=$runpath_var
22031 # Shared library path variable.
22032 shlibpath_var=$shlibpath_var
22034 # Is shlibpath searched before the hard-coded library search path?
22035 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22037 # Format of library name prefix.
22038 libname_spec=$lt_libname_spec
22040 # List of archive names. First name is the real one, the rest are links.
22041 # The last name is the one that the linker finds with -lNAME
22042 library_names_spec=$lt_library_names_spec
22044 # The coded name of the library, if different from the real name.
22045 soname_spec=$lt_soname_spec
22047 # Permission mode override for installation of shared libraries.
22048 install_override_mode=$lt_install_override_mode
22050 # Command to use after installation of a shared archive.
22051 postinstall_cmds=$lt_postinstall_cmds
22053 # Command to use after uninstallation of a shared archive.
22054 postuninstall_cmds=$lt_postuninstall_cmds
22056 # Commands used to finish a libtool library installation in a directory.
22057 finish_cmds=$lt_finish_cmds
22059 # As "finish_cmds", except a single script fragment to be evaled but
22061 finish_eval=$lt_finish_eval
22063 # Whether we should hardcode library paths into libraries.
22064 hardcode_into_libs=$hardcode_into_libs
22066 # Compile-time system search path for libraries.
22067 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22069 # Detected run-time system search path for libraries.
22070 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22072 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22073 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22075 # Whether dlopen is supported.
22076 dlopen_support=$enable_dlopen
22078 # Whether dlopen of programs is supported.
22079 dlopen_self=$enable_dlopen_self
22081 # Whether dlopen of statically linked programs is supported.
22082 dlopen_self_static=$enable_dlopen_self_static
22084 # Commands to strip libraries.
22085 old_striplib=$lt_old_striplib
22086 striplib=$lt_striplib
22089 # The linker used to build libraries.
22092 # How to create reloadable object files.
22093 reload_flag=$lt_reload_flag
22094 reload_cmds=$lt_reload_cmds
22096 # Commands used to build an old-style archive.
22097 old_archive_cmds=$lt_old_archive_cmds
22099 # A language specific compiler.
22102 # Is the compiler the GNU compiler?
22105 # Compiler flag to turn off builtin functions.
22106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22108 # Additional compiler flags for building library objects.
22109 pic_flag=$lt_lt_prog_compiler_pic
22111 # How to pass a linker flag through the compiler.
22112 wl=$lt_lt_prog_compiler_wl
22114 # Compiler flag to prevent dynamic linking.
22115 link_static_flag=$lt_lt_prog_compiler_static
22117 # Does compiler simultaneously support -c and -o options?
22118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22120 # Whether or not to add -lc for building shared libraries.
22121 build_libtool_need_lc=$archive_cmds_need_lc
22123 # Whether or not to disallow shared libs when runtime libs are static.
22124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22126 # Compiler flag to allow reflexive dlopens.
22127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22129 # Compiler flag to generate shared objects directly from archives.
22130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22132 # Whether the compiler copes with passing no objects directly.
22133 compiler_needs_object=$lt_compiler_needs_object
22135 # Create an old-style archive from a shared archive.
22136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22138 # Create a temporary old-style archive to link instead of a shared archive.
22139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22141 # Commands used to build a shared archive.
22142 archive_cmds=$lt_archive_cmds
22143 archive_expsym_cmds=$lt_archive_expsym_cmds
22145 # Commands used to build a loadable module if different from building
22146 # a shared archive.
22147 module_cmds=$lt_module_cmds
22148 module_expsym_cmds=$lt_module_expsym_cmds
22150 # Whether we are building with GNU ld or not.
22151 with_gnu_ld=$lt_with_gnu_ld
22153 # Flag that allows shared libraries with undefined symbols to be built.
22154 allow_undefined_flag=$lt_allow_undefined_flag
22156 # Flag that enforces no undefined symbols.
22157 no_undefined_flag=$lt_no_undefined_flag
22159 # Flag to hardcode \$libdir into a binary during linking.
22160 # This must work even if \$libdir does not exist
22161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22163 # Whether we need a single "-rpath" flag with a separated argument.
22164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22166 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22167 # DIR into the resulting binary.
22168 hardcode_direct=$hardcode_direct
22170 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22171 # DIR into the resulting binary and the resulting library dependency is
22172 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22173 # library is relocated.
22174 hardcode_direct_absolute=$hardcode_direct_absolute
22176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22177 # into the resulting binary.
22178 hardcode_minus_L=$hardcode_minus_L
22180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22181 # into the resulting binary.
22182 hardcode_shlibpath_var=$hardcode_shlibpath_var
22184 # Set to "yes" if building a shared library automatically hardcodes DIR
22185 # into the library and all subsequent libraries and executables linked
22187 hardcode_automatic=$hardcode_automatic
22189 # Set to yes if linker adds runtime paths of dependent libraries
22190 # to runtime path list.
22191 inherit_rpath=$inherit_rpath
22193 # Whether libtool must link a program against all its dependency libraries.
22194 link_all_deplibs=$link_all_deplibs
22196 # Set to "yes" if exported symbols are required.
22197 always_export_symbols=$always_export_symbols
22199 # The commands to list exported symbols.
22200 export_symbols_cmds=$lt_export_symbols_cmds
22202 # Symbols that should not be listed in the preloaded symbols.
22203 exclude_expsyms=$lt_exclude_expsyms
22205 # Symbols that must always be exported.
22206 include_expsyms=$lt_include_expsyms
22208 # Commands necessary for linking programs (against libraries) with templates.
22209 prelink_cmds=$lt_prelink_cmds
22211 # Commands necessary for finishing linking programs.
22212 postlink_cmds=$lt_postlink_cmds
22214 # Specify filename containing input files.
22215 file_list_spec=$lt_file_list_spec
22217 # How to hardcode a shared library path into an executable.
22218 hardcode_action=$hardcode_action
22220 # The directories searched by this compiler when creating a shared library.
22221 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22223 # Dependencies to place before and after the objects being linked to
22224 # create a shared library.
22225 predep_objects=$lt_predep_objects
22226 postdep_objects=$lt_postdep_objects
22227 predeps=$lt_predeps
22228 postdeps=$lt_postdeps
22230 # The library search path used internally by the compiler when linking
22231 # a shared library.
22232 compiler_lib_search_path=$lt_compiler_lib_search_path
22234 # ### END LIBTOOL CONFIG
22238 cat <<'_LT_EOF' >> "$cfgfile"
22240 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22242 # func_munge_path_list VARIABLE PATH
22243 # -----------------------------------
22244 # VARIABLE is name of variable containing _space_ separated list of
22245 # directories to be munged by the contents of PATH, which is string
22248 # string "DIR[ DIR]" will be prepended to VARIABLE
22250 # string "DIR[ DIR]" will be appended to VARIABLE
22251 # "DIRP[:DIRP]::[DIRA:]DIRA"
22252 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22253 # "DIRA[ DIRA]" will be appended to VARIABLE
22255 # VARIABLE will be replaced by "DIR[ DIR]"
22256 func_munge_path_list ()
22262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22265 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22268 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22269 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22272 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22278 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22279 func_cc_basename ()
22281 for cc_temp in $*""; do
22283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22289 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22293 # ### END FUNCTIONS SHARED WITH CONFIGURE
22299 cat <<\_LT_EOF
>> "$cfgfile"
22300 # AIX sometimes has problems with the GCC collect2 program. For some
22301 # reason, if we set the COLLECT_NAMES environment variable, the problems
22302 # vanish in a puff of smoke.
22303 if test set != "${COLLECT_NAMES+set}"; then
22305 export COLLECT_NAMES
22312 ltmain
=$ac_aux_dir/ltmain.sh
22315 # We use sed instead of cat because bash on DJGPP gets confused if
22316 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22317 # text mode, it properly converts lines to CR/LF. This bash problem
22318 # is reportedly fixed, but why not run on old versions too?
22319 sed '$q' "$ltmain" >> "$cfgfile" \
22320 ||
(rm -f "$cfgfile"; exit 1)
22322 mv -f "$cfgfile" "$ofile" ||
22323 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22327 cat <<_LT_EOF >> "$ofile"
22329 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22331 # The linker used to build libraries.
22334 # How to create reloadable object files.
22335 reload_flag=$lt_reload_flag_CXX
22336 reload_cmds=$lt_reload_cmds_CXX
22338 # Commands used to build an old-style archive.
22339 old_archive_cmds=$lt_old_archive_cmds_CXX
22341 # A language specific compiler.
22342 CC=$lt_compiler_CXX
22344 # Is the compiler the GNU compiler?
22347 # Compiler flag to turn off builtin functions.
22348 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22350 # Additional compiler flags for building library objects.
22351 pic_flag=$lt_lt_prog_compiler_pic_CXX
22353 # How to pass a linker flag through the compiler.
22354 wl=$lt_lt_prog_compiler_wl_CXX
22356 # Compiler flag to prevent dynamic linking.
22357 link_static_flag=$lt_lt_prog_compiler_static_CXX
22359 # Does compiler simultaneously support -c and -o options?
22360 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22362 # Whether or not to add -lc for building shared libraries.
22363 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22365 # Whether or not to disallow shared libs when runtime libs are static.
22366 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22368 # Compiler flag to allow reflexive dlopens.
22369 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22371 # Compiler flag to generate shared objects directly from archives.
22372 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22374 # Whether the compiler copes with passing no objects directly.
22375 compiler_needs_object=$lt_compiler_needs_object_CXX
22377 # Create an old-style archive from a shared archive.
22378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22380 # Create a temporary old-style archive to link instead of a shared archive.
22381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22383 # Commands used to build a shared archive.
22384 archive_cmds=$lt_archive_cmds_CXX
22385 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22387 # Commands used to build a loadable module if different from building
22388 # a shared archive.
22389 module_cmds=$lt_module_cmds_CXX
22390 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22392 # Whether we are building with GNU ld or not.
22393 with_gnu_ld=$lt_with_gnu_ld_CXX
22395 # Flag that allows shared libraries with undefined symbols to be built.
22396 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22398 # Flag that enforces no undefined symbols.
22399 no_undefined_flag=$lt_no_undefined_flag_CXX
22401 # Flag to hardcode \$libdir into a binary during linking.
22402 # This must work even if \$libdir does not exist
22403 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22405 # Whether we need a single "-rpath" flag with a separated argument.
22406 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22408 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22409 # DIR into the resulting binary.
22410 hardcode_direct=$hardcode_direct_CXX
22412 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22413 # DIR into the resulting binary and the resulting library dependency is
22414 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22415 # library is relocated.
22416 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22418 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22419 # into the resulting binary.
22420 hardcode_minus_L=$hardcode_minus_L_CXX
22422 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22423 # into the resulting binary.
22424 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22426 # Set to "yes" if building a shared library automatically hardcodes DIR
22427 # into the library and all subsequent libraries and executables linked
22429 hardcode_automatic=$hardcode_automatic_CXX
22431 # Set to yes if linker adds runtime paths of dependent libraries
22432 # to runtime path list.
22433 inherit_rpath=$inherit_rpath_CXX
22435 # Whether libtool must link a program against all its dependency libraries.
22436 link_all_deplibs=$link_all_deplibs_CXX
22438 # Set to "yes" if exported symbols are required.
22439 always_export_symbols=$always_export_symbols_CXX
22441 # The commands to list exported symbols.
22442 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22444 # Symbols that should not be listed in the preloaded symbols.
22445 exclude_expsyms=$lt_exclude_expsyms_CXX
22447 # Symbols that must always be exported.
22448 include_expsyms=$lt_include_expsyms_CXX
22450 # Commands necessary for linking programs (against libraries) with templates.
22451 prelink_cmds=$lt_prelink_cmds_CXX
22453 # Commands necessary for finishing linking programs.
22454 postlink_cmds=$lt_postlink_cmds_CXX
22456 # Specify filename containing input files.
22457 file_list_spec=$lt_file_list_spec_CXX
22459 # How to hardcode a shared library path into an executable.
22460 hardcode_action=$hardcode_action_CXX
22462 # The directories searched by this compiler when creating a shared library.
22463 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22465 # Dependencies to place before and after the objects being linked to
22466 # create a shared library.
22467 predep_objects=$lt_predep_objects_CXX
22468 postdep_objects=$lt_postdep_objects_CXX
22469 predeps=$lt_predeps_CXX
22470 postdeps=$lt_postdeps_CXX
22472 # The library search path used internally by the compiler when linking
22473 # a shared library.
22474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22476 # ### END LIBTOOL TAG CONFIG: CXX
22487 ac_clean_files
=$ac_clean_files_save
22489 test $ac_write_fail = 0 ||
22490 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
22493 # configure is writing to config.log, and then calls config.status.
22494 # config.status does its own redirection, appending to config.log.
22495 # Unfortunately, on DOS this fails, as config.log is still kept open
22496 # by configure, so config.status won't be able to write to it; its
22497 # output is simply discarded. So we exec the FD to /dev/null,
22498 # effectively closing config.log, so it can be properly (re)opened and
22499 # appended to by config.status. When coming back to configure, we
22500 # need to make the FD available again.
22501 if test "$no_create" != yes; then
22503 ac_config_status_args
=
22504 test "$silent" = yes &&
22505 ac_config_status_args
="$ac_config_status_args --quiet"
22507 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22510 # would make configure fail if this is the last instruction.
22511 $ac_cs_success || as_fn_exit
1
22515 # CONFIG_SUBDIRS section.
22517 if test "$no_recursion" != yes; then
22519 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22520 # so they do not pile up.
22521 ac_sub_configure_args
=
22523 eval "set x $ac_configure_args"
22527 if test -n "$ac_prev"; then
22532 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22533 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22534 ac_prev
=cache_file
;;
22535 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22536 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22539 --config-cache |
-C)
22541 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22543 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22545 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22547 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22549 --disable-option-checking)
22553 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22555 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
22559 # Always prepend --prefix to ensure using the same prefix
22560 # in subdir configurations.
22561 ac_arg
="--prefix=$prefix"
22563 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22565 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
22568 if test "$silent" = yes; then
22569 ac_sub_configure_args
="--silent $ac_sub_configure_args"
22572 # Always prepend --disable-option-checking to silence warnings, since
22573 # different subdirs can have different --enable and --with options.
22574 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
22577 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22579 # Do not complain, so a configure script can configure whichever
22580 # parts of a large source tree are present.
22581 test -d "$srcdir/$ac_dir" ||
continue
22583 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22584 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22585 $as_echo "$ac_msg" >&6
22586 as_dir
="$ac_dir"; as_fn_mkdir_p
22590 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22592 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22593 # A ".." for each directory in $ac_dir_suffix.
22594 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22595 case $ac_top_builddir_sub in
22596 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22597 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22600 ac_abs_top_builddir
=$ac_pwd
22601 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22602 # for backward compatibility:
22603 ac_top_builddir
=$ac_top_build_prefix
22606 .
) # We are building in place.
22608 ac_top_srcdir
=$ac_top_builddir_sub
22609 ac_abs_top_srcdir
=$ac_pwd ;;
22610 [\\/]* | ?
:[\\/]* ) # Absolute name.
22611 ac_srcdir
=$srcdir$ac_dir_suffix;
22612 ac_top_srcdir
=$srcdir
22613 ac_abs_top_srcdir
=$srcdir ;;
22614 *) # Relative name.
22615 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22616 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22617 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22619 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22624 # Check for guested configure; otherwise get Cygnus style configure.
22625 if test -f "$ac_srcdir/configure.gnu"; then
22626 ac_sub_configure
=$ac_srcdir/configure.gnu
22627 elif test -f "$ac_srcdir/configure"; then
22628 ac_sub_configure
=$ac_srcdir/configure
22629 elif test -f "$ac_srcdir/configure.in"; then
22630 # This should be Cygnus configure.
22631 ac_sub_configure
=$ac_aux_dir/configure
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22638 # The recursion is here.
22639 if test -n "$ac_sub_configure"; then
22640 # Make the cache file name correct relative to the subdirectory.
22641 case $cache_file in
22642 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22643 *) # Relative name.
22644 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22648 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22649 # The eval makes quoting arguments work.
22650 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22651 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22652 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
22659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}